From e32c7e033a695871102c129bd46129399f222f74 Mon Sep 17 00:00:00 2001 From: tatiana Date: Wed, 13 Jan 2010 18:21:12 +0000 Subject: [PATCH] ENH: Translation to pt (code and po) #96 --- i18n/invesalius_en.po | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------- i18n/invesalius_es.po | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------- i18n/invesalius_pt_BR.po | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------- invesalius/control.py | 6 +++--- invesalius/gui/dialogs.py | 6 +----- locale/en/LC_MESSAGES/invesalius.mo | Bin 482 -> 0 bytes locale/es/LC_MESSAGES/invesalius.mo | Bin 524 -> 0 bytes locale/pt_BR/LC_MESSAGES/invesalius.mo | Bin 13047 -> 0 bytes 8 files changed, 190 insertions(+), 140 deletions(-) diff --git a/i18n/invesalius_en.po b/i18n/invesalius_en.po index b5c42b6..f41b77d 100644 --- a/i18n/invesalius_en.po +++ b/i18n/invesalius_en.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: InVesalius 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-01-13 11:37-0200\n" +"POT-Creation-Date: 2010-01-13 16:09-0200\n" "PO-Revision-Date: 2010-01-07 11:25-0300\n" "Last-Translator: Invesalius team \n" "Language-Team: InVesalius Team \n" @@ -47,8 +47,8 @@ msgstr "" msgid "Inverse Gray" msgstr "" -#: constants.py:152 constants.py:212 dicom_preview_panel.py:355 -#: dicom_preview_panel.py:356 presets.py:30 presets.py:48 presets.py:119 +#: constants.py:152 constants.py:212 dicom_preview_panel.py:365 +#: dicom_preview_panel.py:366 presets.py:30 presets.py:48 presets.py:119 msgid "Bone" msgstr "" @@ -106,7 +106,7 @@ msgstr "" msgid "Brain" msgstr "" -#: constants.py:215 slice_menu.py:39 slice_menu.py:51 +#: constants.py:215 control.py:293 slice_menu.py:39 slice_menu.py:51 msgid "Default" msgstr "" @@ -142,7 +142,7 @@ msgstr "" msgid "Mediastinum" msgstr "" -#: constants.py:224 slice_menu.py:46 slice_menu.py:51 +#: constants.py:224 control.py:294 slice_menu.py:46 slice_menu.py:51 msgid "Manual" msgstr "" @@ -314,6 +314,19 @@ msgstr "" msgid "Cut plane" msgstr "" +#: control.py:232 +#, python-format +msgid "Loading file %d of %d" +msgstr "" + +#: control.py:314 +msgid "Untitled" +msgstr "" + +#: control.py:379 +msgid "Fix gantry tilt applying the degrees bellow" +msgstr "" + #: data_notebook.py:44 msgid "Masks" msgstr "" @@ -378,88 +391,93 @@ msgstr "" msgid "Volume" msgstr "" -#: default_viewers.py:410 +#: default_viewers.py:411 msgid "Preset name" msgstr "" -#: default_viewers.py:413 +#: default_viewers.py:414 msgid "Save raycasting preset" msgstr "" -#: default_viewers.py:438 +#: default_viewers.py:439 msgid "Tools" msgstr "" -#: dialogs.py:51 +#: dialogs.py:50 msgid "Value will be applied." msgstr "" -#: dialogs.py:55 +#: dialogs.py:54 msgid "Value will not be applied." msgstr "" -#: dialogs.py:93 +#: dialogs.py:92 msgid "Loading DICOM files" msgstr "" -#: dialogs.py:141 frame.py:531 +#: dialogs.py:137 frame.py:531 msgid "Open InVesalius 3 project..." msgstr "" -#: dialogs.py:164 +#: dialogs.py:160 msgid "Choose a DICOM folder:" msgstr "" -#: dialogs.py:189 +#: dialogs.py:185 msgid "Save project as..." msgstr "" -#: dialogs.py:192 +#: dialogs.py:188 msgid "InVesalius project (*.inv3)|*.inv3" msgstr "" -#: dialogs.py:255 dialogs.py:294 dialogs.py:316 +#: dialogs.py:251 dialogs.py:290 dialogs.py:312 #, python-format msgid "" "The project %s has been modified.\n" "Save changes?" msgstr "" -#: dialogs.py:282 +#: dialogs.py:265 +#, python-format +msgid "%s is an empty directory." +msgstr "" + +#: dialogs.py:278 msgid "There are no DICOM files on the selected directory." msgstr "" -#: dialogs.py:340 +#: dialogs.py:336 msgid "(c) 2007 Center for Information Technology Renato Archer" msgstr "" -#: dialogs.py:342 +#: dialogs.py:338 msgid "InVesalius is a software for medical imaging 3D reconstruction. " msgstr "" -#: dialogs.py:343 +#: dialogs.py:339 msgid "" "Its input is a sequency of DICOM 2D image files acquired with CT or MR.\n" "\n" msgstr "" -#: dialogs.py:344 +#: dialogs.py:340 msgid "The software also allows generating correspondent STL files," msgstr "" -#: dialogs.py:345 +#: dialogs.py:341 msgid "so the user can print 3D physical models of the patient's anatomy " msgstr "" -#: dialogs.py:346 +#: dialogs.py:342 msgid "using Rapid Prototyping." msgstr "" -#: dialogs.py:349 +#: dialogs.py:345 msgid "GNU GPL (General Public License) version 2" msgstr "" -#: dialogs.py:364 +#: dialogs.py:360 msgid "Save raycasting preset as:" msgstr "" @@ -485,36 +503,36 @@ msgid "" "Made in InVesalius" msgstr "" -#: dicom_preview_panel.py:146 dicom_preview_panel.py:147 +#: dicom_preview_panel.py:156 dicom_preview_panel.py:157 msgid "Image" msgstr "" -#: dicom_preview_panel.py:364 +#: dicom_preview_panel.py:374 msgid "image size" msgstr "" -#: dicom_preview_panel.py:373 +#: dicom_preview_panel.py:383 msgid "" "id\n" "protocol" msgstr "" -#: dicom_preview_panel.py:380 +#: dicom_preview_panel.py:390 msgid "" "date time\n" " Made in InVesalius" msgstr "" -#: dicom_preview_panel.py:426 +#: dicom_preview_panel.py:436 msgid "Auto-play" msgstr "" -#: dicom_preview_panel.py:650 +#: dicom_preview_panel.py:660 #, python-format msgid "%d Images" msgstr "" -#: dicom_preview_panel.py:767 dicom_preview_panel.py:788 +#: dicom_preview_panel.py:777 dicom_preview_panel.py:798 #, python-format msgid "Image %d" msgstr "" @@ -784,51 +802,51 @@ msgstr "" msgid "Open an existing project..." msgstr "" -#: task_slice.py:79 +#: task_slice.py:80 msgid "Create mask for slice segmentation and edition" msgstr "" -#: task_slice.py:80 +#: task_slice.py:81 msgid "Create new mask" msgstr "" -#: task_slice.py:108 +#: task_slice.py:109 msgid "Create 3D surface" msgstr "" -#: task_slice.py:137 +#: task_slice.py:138 msgid "Name of new mask:" msgstr "" -#: task_slice.py:138 +#: task_slice.py:139 msgid "InVesalius 3 - New mask" msgstr "" -#: task_slice.py:196 +#: task_slice.py:197 msgid "Mask properties" msgstr "" -#: task_slice.py:204 +#: task_slice.py:205 msgid "Advanced edition tools" msgstr "" -#: task_slice.py:288 +#: task_slice.py:289 msgid "Set predefined or manual threshold:" msgstr "" -#: task_slice.py:440 +#: task_slice.py:441 msgid "Choose brush type, size or operation:" msgstr "" -#: task_slice.py:446 +#: task_slice.py:447 msgid "Circle" msgstr "" -#: task_slice.py:450 +#: task_slice.py:451 msgid "Square" msgstr "" -#: task_slice.py:486 +#: task_slice.py:487 msgid "Brush threshold range:" msgstr "" diff --git a/i18n/invesalius_es.po b/i18n/invesalius_es.po index e2bf66f..d16e8bc 100644 --- a/i18n/invesalius_es.po +++ b/i18n/invesalius_es.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: InVesalius 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-01-13 11:37-0200\n" +"POT-Creation-Date: 2010-01-13 16:09-0200\n" "PO-Revision-Date: 2010-01-07 11:25-0300\n" "Last-Translator: Invesalius team \n" "Language-Team: InVesalius Team \n" @@ -47,8 +47,8 @@ msgstr "" msgid "Inverse Gray" msgstr "" -#: constants.py:152 constants.py:212 dicom_preview_panel.py:355 -#: dicom_preview_panel.py:356 presets.py:30 presets.py:48 presets.py:119 +#: constants.py:152 constants.py:212 dicom_preview_panel.py:365 +#: dicom_preview_panel.py:366 presets.py:30 presets.py:48 presets.py:119 msgid "Bone" msgstr "" @@ -106,7 +106,7 @@ msgstr "" msgid "Brain" msgstr "" -#: constants.py:215 slice_menu.py:39 slice_menu.py:51 +#: constants.py:215 control.py:293 slice_menu.py:39 slice_menu.py:51 msgid "Default" msgstr "" @@ -142,7 +142,7 @@ msgstr "" msgid "Mediastinum" msgstr "" -#: constants.py:224 slice_menu.py:46 slice_menu.py:51 +#: constants.py:224 control.py:294 slice_menu.py:46 slice_menu.py:51 msgid "Manual" msgstr "" @@ -314,6 +314,19 @@ msgstr "" msgid "Cut plane" msgstr "" +#: control.py:232 +#, python-format +msgid "Loading file %d of %d" +msgstr "" + +#: control.py:314 +msgid "Untitled" +msgstr "" + +#: control.py:379 +msgid "Fix gantry tilt applying the degrees bellow" +msgstr "" + #: data_notebook.py:44 msgid "Masks" msgstr "" @@ -378,88 +391,93 @@ msgstr "" msgid "Volume" msgstr "" -#: default_viewers.py:410 +#: default_viewers.py:411 msgid "Preset name" msgstr "" -#: default_viewers.py:413 +#: default_viewers.py:414 msgid "Save raycasting preset" msgstr "" -#: default_viewers.py:438 +#: default_viewers.py:439 msgid "Tools" msgstr "" -#: dialogs.py:51 +#: dialogs.py:50 msgid "Value will be applied." msgstr "" -#: dialogs.py:55 +#: dialogs.py:54 msgid "Value will not be applied." msgstr "" -#: dialogs.py:93 +#: dialogs.py:92 msgid "Loading DICOM files" msgstr "" -#: dialogs.py:141 frame.py:531 +#: dialogs.py:137 frame.py:531 msgid "Open InVesalius 3 project..." msgstr "" -#: dialogs.py:164 +#: dialogs.py:160 msgid "Choose a DICOM folder:" msgstr "" -#: dialogs.py:189 +#: dialogs.py:185 msgid "Save project as..." msgstr "" -#: dialogs.py:192 +#: dialogs.py:188 msgid "InVesalius project (*.inv3)|*.inv3" msgstr "" -#: dialogs.py:255 dialogs.py:294 dialogs.py:316 +#: dialogs.py:251 dialogs.py:290 dialogs.py:312 #, python-format msgid "" "The project %s has been modified.\n" "Save changes?" msgstr "" -#: dialogs.py:282 +#: dialogs.py:265 +#, python-format +msgid "%s is an empty directory." +msgstr "" + +#: dialogs.py:278 msgid "There are no DICOM files on the selected directory." msgstr "" -#: dialogs.py:340 +#: dialogs.py:336 msgid "(c) 2007 Center for Information Technology Renato Archer" msgstr "" -#: dialogs.py:342 +#: dialogs.py:338 msgid "InVesalius is a software for medical imaging 3D reconstruction. " msgstr "" -#: dialogs.py:343 +#: dialogs.py:339 msgid "" "Its input is a sequency of DICOM 2D image files acquired with CT or MR.\n" "\n" msgstr "" -#: dialogs.py:344 +#: dialogs.py:340 msgid "The software also allows generating correspondent STL files," msgstr "" -#: dialogs.py:345 +#: dialogs.py:341 msgid "so the user can print 3D physical models of the patient's anatomy " msgstr "" -#: dialogs.py:346 +#: dialogs.py:342 msgid "using Rapid Prototyping." msgstr "" -#: dialogs.py:349 +#: dialogs.py:345 msgid "GNU GPL (General Public License) version 2" msgstr "" -#: dialogs.py:364 +#: dialogs.py:360 msgid "Save raycasting preset as:" msgstr "" @@ -485,36 +503,36 @@ msgid "" "Made in InVesalius" msgstr "" -#: dicom_preview_panel.py:146 dicom_preview_panel.py:147 +#: dicom_preview_panel.py:156 dicom_preview_panel.py:157 msgid "Image" msgstr "" -#: dicom_preview_panel.py:364 +#: dicom_preview_panel.py:374 msgid "image size" msgstr "" -#: dicom_preview_panel.py:373 +#: dicom_preview_panel.py:383 msgid "" "id\n" "protocol" msgstr "" -#: dicom_preview_panel.py:380 +#: dicom_preview_panel.py:390 msgid "" "date time\n" " Made in InVesalius" msgstr "" -#: dicom_preview_panel.py:426 +#: dicom_preview_panel.py:436 msgid "Auto-play" msgstr "" -#: dicom_preview_panel.py:650 +#: dicom_preview_panel.py:660 #, python-format msgid "%d Images" msgstr "" -#: dicom_preview_panel.py:767 dicom_preview_panel.py:788 +#: dicom_preview_panel.py:777 dicom_preview_panel.py:798 #, python-format msgid "Image %d" msgstr "" @@ -784,51 +802,51 @@ msgstr "" msgid "Open an existing project..." msgstr "" -#: task_slice.py:79 +#: task_slice.py:80 msgid "Create mask for slice segmentation and edition" msgstr "" -#: task_slice.py:80 +#: task_slice.py:81 msgid "Create new mask" msgstr "" -#: task_slice.py:108 +#: task_slice.py:109 msgid "Create 3D surface" msgstr "" -#: task_slice.py:137 +#: task_slice.py:138 msgid "Name of new mask:" msgstr "" -#: task_slice.py:138 +#: task_slice.py:139 msgid "InVesalius 3 - New mask" msgstr "" -#: task_slice.py:196 +#: task_slice.py:197 msgid "Mask properties" msgstr "" -#: task_slice.py:204 +#: task_slice.py:205 msgid "Advanced edition tools" msgstr "" -#: task_slice.py:288 +#: task_slice.py:289 msgid "Set predefined or manual threshold:" msgstr "" -#: task_slice.py:440 +#: task_slice.py:441 msgid "Choose brush type, size or operation:" msgstr "" -#: task_slice.py:446 +#: task_slice.py:447 msgid "Circle" msgstr "" -#: task_slice.py:450 +#: task_slice.py:451 msgid "Square" msgstr "" -#: task_slice.py:486 +#: task_slice.py:487 msgid "Brush threshold range:" msgstr "" diff --git a/i18n/invesalius_pt_BR.po b/i18n/invesalius_pt_BR.po index 5224eb5..3e6ff9d 100644 --- a/i18n/invesalius_pt_BR.po +++ b/i18n/invesalius_pt_BR.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: InVesalius 3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-01-13 11:37-0200\n" +"POT-Creation-Date: 2010-01-13 16:09-0200\n" "PO-Revision-Date: 2010-01-07 11:25-0300\n" "Last-Translator: Invesalius team \n" "Language-Team: InVesalius Team \n" @@ -47,8 +47,8 @@ msgstr "Oceano" msgid "Inverse Gray" msgstr "Cinza invertido" -#: constants.py:152 constants.py:212 dicom_preview_panel.py:355 -#: dicom_preview_panel.py:356 presets.py:30 presets.py:48 presets.py:119 +#: constants.py:152 constants.py:212 dicom_preview_panel.py:365 +#: dicom_preview_panel.py:366 presets.py:30 presets.py:48 presets.py:119 msgid "Bone" msgstr "Osso" @@ -106,7 +106,7 @@ msgstr "Fossa Posterior Cerebral" msgid "Brain" msgstr "Cérebro" -#: constants.py:215 slice_menu.py:39 slice_menu.py:51 +#: constants.py:215 control.py:293 slice_menu.py:39 slice_menu.py:51 msgid "Default" msgstr "Padrão" @@ -142,7 +142,7 @@ msgstr "Pulmão - Duro" msgid "Mediastinum" msgstr "Mediastino" -#: constants.py:224 slice_menu.py:46 slice_menu.py:51 +#: constants.py:224 control.py:294 slice_menu.py:46 slice_menu.py:51 msgid "Manual" msgstr "Manual" @@ -314,6 +314,19 @@ msgstr " Desabilitado" msgid "Cut plane" msgstr "Plano para corte" +#: control.py:232 +#, python-format +msgid "Loading file %d of %d" +msgstr "Carregando arquivo %d de %d" + +#: control.py:314 +msgid "Untitled" +msgstr "Sem nome" + +#: control.py:379 +msgid "Fix gantry tilt applying the degrees bellow" +msgstr "Corrigir inclinação (gantry-tilt), aplicando o seguinte valor" + #: data_notebook.py:44 msgid "Masks" msgstr "Máscaras" @@ -378,47 +391,47 @@ msgstr "Fatia Sagital" msgid "Volume" msgstr "Volume" -#: default_viewers.py:410 +#: default_viewers.py:411 msgid "Preset name" msgstr "Nome do padrão" -#: default_viewers.py:413 +#: default_viewers.py:414 msgid "Save raycasting preset" msgstr "Salvar modo raycasting" -#: default_viewers.py:438 +#: default_viewers.py:439 msgid "Tools" msgstr "Ferramentas" -#: dialogs.py:51 +#: dialogs.py:50 msgid "Value will be applied." msgstr "Valor será aplicado." -#: dialogs.py:55 +#: dialogs.py:54 msgid "Value will not be applied." msgstr "Valor não será aplicado." -#: dialogs.py:93 +#: dialogs.py:92 msgid "Loading DICOM files" msgstr "Carregando arquivos DICOM" -#: dialogs.py:141 frame.py:531 +#: dialogs.py:137 frame.py:531 msgid "Open InVesalius 3 project..." msgstr "Abrir projeto do InVesalius 3" -#: dialogs.py:164 +#: dialogs.py:160 msgid "Choose a DICOM folder:" msgstr "Selecione uma pasta DICOM:" -#: dialogs.py:189 +#: dialogs.py:185 msgid "Save project as..." msgstr "Salvar projeto como..." -#: dialogs.py:192 +#: dialogs.py:188 msgid "InVesalius project (*.inv3)|*.inv3" msgstr "Projeto InVesalius (*.inv3)|*.inv3" -#: dialogs.py:255 dialogs.py:294 dialogs.py:316 +#: dialogs.py:251 dialogs.py:290 dialogs.py:312 #, python-format msgid "" "The project %s has been modified.\n" @@ -427,19 +440,24 @@ msgstr "" "O projeto %s foi modificado.\n" " Deseja salvar as alterações?" -#: dialogs.py:282 +#: dialogs.py:265 +#, python-format +msgid "%s is an empty directory." +msgstr "%s é um diretório vazio." + +#: dialogs.py:278 msgid "There are no DICOM files on the selected directory." msgstr "Não há arquivos DICOM no diretório selecionado" -#: dialogs.py:340 +#: dialogs.py:336 msgid "(c) 2007 Center for Information Technology Renato Archer" msgstr "(r) 2007 Centro de Tecnologia da Informação Renato Archer" -#: dialogs.py:342 +#: dialogs.py:338 msgid "InVesalius is a software for medical imaging 3D reconstruction. " msgstr "InVesalius é um software para reconstrução de imagens médicas. " -#: dialogs.py:343 +#: dialogs.py:339 msgid "" "Its input is a sequency of DICOM 2D image files acquired with CT or MR.\n" "\n" @@ -447,25 +465,25 @@ msgstr "" "Sua entrada é um conjunto de arquivos 2D DICOM obtidos através de TC ou RM.\n" "\n" -#: dialogs.py:344 +#: dialogs.py:340 msgid "The software also allows generating correspondent STL files," msgstr "O software também permite a geração de arquivos STL correspondentes," -#: dialogs.py:345 +#: dialogs.py:341 msgid "so the user can print 3D physical models of the patient's anatomy " msgstr "" "que podem ser utilizados para impressão física de modelos anatômicos do " "paciente" -#: dialogs.py:346 +#: dialogs.py:342 msgid "using Rapid Prototyping." msgstr "utilizando Prototipagem Rápida." -#: dialogs.py:349 +#: dialogs.py:345 msgid "GNU GPL (General Public License) version 2" msgstr "GNU GPL (Licença Pública Geral) versão 2" -#: dialogs.py:364 +#: dialogs.py:360 msgid "Save raycasting preset as:" msgstr "Salvar modo de raycasting como:" @@ -493,15 +511,15 @@ msgstr "" "%s %s\n" " Criado com InVesalius" -#: dicom_preview_panel.py:146 dicom_preview_panel.py:147 +#: dicom_preview_panel.py:156 dicom_preview_panel.py:157 msgid "Image" msgstr "Imagem" -#: dicom_preview_panel.py:364 +#: dicom_preview_panel.py:374 msgid "image size" msgstr "tamanho da imagem" -#: dicom_preview_panel.py:373 +#: dicom_preview_panel.py:383 msgid "" "id\n" "protocol" @@ -509,7 +527,7 @@ msgstr "" "id\n" "protocolo" -#: dicom_preview_panel.py:380 +#: dicom_preview_panel.py:390 msgid "" "date time\n" " Made in InVesalius" @@ -517,16 +535,16 @@ msgstr "" "data hora\n" " Criado com InVesalius" -#: dicom_preview_panel.py:426 +#: dicom_preview_panel.py:436 msgid "Auto-play" msgstr "Reproduzir" -#: dicom_preview_panel.py:650 +#: dicom_preview_panel.py:660 #, python-format msgid "%d Images" msgstr "%d Imagens" -#: dicom_preview_panel.py:767 dicom_preview_panel.py:788 +#: dicom_preview_panel.py:777 dicom_preview_panel.py:798 #, python-format msgid "Image %d" msgstr "Imagem %d" @@ -796,51 +814,51 @@ msgstr "Abrir um projeto InVesalius existente..." msgid "Open an existing project..." msgstr "Abrir um projeto existente..." -#: task_slice.py:79 +#: task_slice.py:80 msgid "Create mask for slice segmentation and edition" msgstr "Criar máscara para segmentação e edição de fatia" -#: task_slice.py:80 +#: task_slice.py:81 msgid "Create new mask" msgstr "Nome da nova máscara:" -#: task_slice.py:108 +#: task_slice.py:109 msgid "Create 3D surface" msgstr "Criar superfície 3D" -#: task_slice.py:137 +#: task_slice.py:138 msgid "Name of new mask:" msgstr "Nome da nova máscara:" -#: task_slice.py:138 +#: task_slice.py:139 msgid "InVesalius 3 - New mask" msgstr "InVesalius 3 - Nova máscara" -#: task_slice.py:196 +#: task_slice.py:197 msgid "Mask properties" msgstr "Propriedades da máscara" -#: task_slice.py:204 +#: task_slice.py:205 msgid "Advanced edition tools" msgstr "Ferramentas avançadas de edição" -#: task_slice.py:288 +#: task_slice.py:289 msgid "Set predefined or manual threshold:" msgstr "Selecione ou edite valor de limiar:" -#: task_slice.py:440 +#: task_slice.py:441 msgid "Choose brush type, size or operation:" msgstr "Tipo, tamanho e operação do pincel:" -#: task_slice.py:446 +#: task_slice.py:447 msgid "Circle" msgstr "Círculo" -#: task_slice.py:450 +#: task_slice.py:451 msgid "Square" msgstr "Quadrado" -#: task_slice.py:486 +#: task_slice.py:487 msgid "Brush threshold range:" msgstr "Limiar do pincel:" diff --git a/invesalius/control.py b/invesalius/control.py index 62ef5d9..0d2dc4e 100755 --- a/invesalius/control.py +++ b/invesalius/control.py @@ -229,7 +229,7 @@ class Controller(): def Progress(self, evt): data = evt.data if (data): - message = "Loading file %d of %d"%(data[0],data[1]) + message = _("Loading file %d of %d")%(data[0],data[1]) if (data): if not(self.progress_dialog): @@ -311,7 +311,7 @@ class Controller(): def CreateAnalyzeProject(self, imagedata): proj = prj.Project() - proj.name = "Untitled" + proj.name = _("Untitled") proj.SetAcquisitionModality("MRI") proj.imagedata = imagedata #TODO: Verify if all Analyse are in AXIAL orientation @@ -376,7 +376,7 @@ class Controller(): tilt_value = dicom.acquisition.tilt if (tilt_value) and (gui): # Tell user gantry tilt and fix, according to answer - message = "Fix gantry tilt applying the degrees bellow" + message = _("Fix gantry tilt applying the degrees bellow") value = -1*tilt_value tilt_value = dialog.ShowNumberDialog(message, value) imagedata = utils.FixGantryTilt(imagedata, tilt_value) diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py index 5409db0..856288f 100644 --- a/invesalius/gui/dialogs.py +++ b/invesalius/gui/dialogs.py @@ -36,7 +36,6 @@ class NumberDialog(wx.Dialog): self.PostCreate(pre) # Static text which contains message to user - print "message: ", message label = wx.StaticText(self, -1, message) # Numeric value to be changed by user @@ -100,9 +99,6 @@ class ProgressDialog(object): parent = None, style = wx.PD_CAN_ABORT | wx.PD_APP_MODAL, - #| wx.PD_ELAPSED_TIME - #| wx.PD_ESTIMATED_TIME - #| wx.PD_REMAINING_TIME ) self.dlg.Bind(wx.EVT_BUTTON, self.Cancel) @@ -266,7 +262,7 @@ def SaveChangesDialog__Old(filename): def ImportEmptyDirectory(dirpath): - msg = "%s is an empty directory." % dirpath + msg = _("%s is an empty directory.") % dirpath if sys.platform == 'darwin': dlg = wx.MessageDialog(None, "", msg, diff --git a/locale/en/LC_MESSAGES/invesalius.mo b/locale/en/LC_MESSAGES/invesalius.mo index 36a8ead..a986087 100644 Binary files a/locale/en/LC_MESSAGES/invesalius.mo and b/locale/en/LC_MESSAGES/invesalius.mo differ diff --git a/locale/es/LC_MESSAGES/invesalius.mo b/locale/es/LC_MESSAGES/invesalius.mo index 125cfe9..b8c22d1 100644 Binary files a/locale/es/LC_MESSAGES/invesalius.mo and b/locale/es/LC_MESSAGES/invesalius.mo differ diff --git a/locale/pt_BR/LC_MESSAGES/invesalius.mo b/locale/pt_BR/LC_MESSAGES/invesalius.mo index 26f2aa1..cb6924d 100644 Binary files a/locale/pt_BR/LC_MESSAGES/invesalius.mo and b/locale/pt_BR/LC_MESSAGES/invesalius.mo differ -- libgit2 0.21.2