From 564ef5b82c12275878b40166eb7ddc28a87372f4 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 16 Sep 2014 01:40:56 +0000 Subject: [PATCH] Translation fixes. --- common/lc_basewindow.h | 4 +- leocad.pro | 4 +- qt/qtmain.cpp | 14 +- resources/leocad_pt_BR.ts | 644 +++++++++++++++++++------------------- 4 files changed, 334 insertions(+), 332 deletions(-) diff --git a/common/lc_basewindow.h b/common/lc_basewindow.h index fb1b228a..07c5b581 100644 --- a/common/lc_basewindow.h +++ b/common/lc_basewindow.h @@ -146,7 +146,9 @@ struct lcPreferencesDialogOptions class lcBaseWindow { - public: + Q_DECLARE_TR_FUNCTIONS(lcBaseWindow) + +public: lcBaseWindow() { mHandle = NULL; diff --git a/leocad.pro b/leocad.pro index 0ce721fc..3aa8af1d 100644 --- a/leocad.pro +++ b/leocad.pro @@ -33,8 +33,8 @@ isEmpty(QMAKE_LRELEASE) { } lrelease.input = TRANSLATIONS -lrelease.output = resources/${QMAKE_FILE_BASE}.qm -lrelease.commands = $$QMAKE_LRELEASE -silent ${QMAKE_FILE_IN} -qm resources/${QMAKE_FILE_BASE}.qm +lrelease.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm +lrelease.commands = $$QMAKE_LRELEASE -silent ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm lrelease.CONFIG += no_link target_predeps QMAKE_EXTRA_COMPILERS += lrelease diff --git a/qt/qtmain.cpp b/qt/qtmain.cpp index c81a781d..75c839d9 100644 --- a/qt/qtmain.cpp +++ b/qt/qtmain.cpp @@ -298,31 +298,31 @@ bool lcBaseWindow::DoDialog(LC_DIALOG_TYPE Type, void* Data) switch (Type) { case LC_DIALOG_OPEN_PROJECT: - result = QFileDialog::getOpenFileName(parent, parent->tr("Open Project"), FileName, parent->tr("Supported Files (*.lcd *.ldr *.dat *.mpd);;All Files (*.*)")); + result = QFileDialog::getOpenFileName(parent, tr("Open Project"), FileName, tr("Supported Files (*.lcd *.ldr *.dat *.mpd);;All Files (*.*)")); break; case LC_DIALOG_SAVE_PROJECT: - result = QFileDialog::getSaveFileName(parent, parent->tr("Save Project"), FileName, parent->tr("Supported Files (*.ldr *.dat);;All Files (*.*)")); + result = QFileDialog::getSaveFileName(parent, tr("Save Project"), FileName, tr("Supported Files (*.ldr *.dat);;All Files (*.*)")); break; case LC_DIALOG_MERGE_PROJECT: - result = QFileDialog::getOpenFileName(parent, parent->tr("Merge Project"), FileName, parent->tr("Supported Files (*.lcd *.ldr *.dat *.mpd);;All Files (*.*)")); + result = QFileDialog::getOpenFileName(parent, tr("Merge Project"), FileName, tr("Supported Files (*.lcd *.ldr *.dat *.mpd);;All Files (*.*)")); break; case LC_DIALOG_EXPORT_3DSTUDIO: - result = QFileDialog::getSaveFileName(parent, parent->tr("Export 3D Studio"), FileName, parent->tr("3DS Files (*.3ds);;All Files (*.*)")); + result = QFileDialog::getSaveFileName(parent, tr("Export 3D Studio"), FileName, tr("3DS Files (*.3ds);;All Files (*.*)")); break; case LC_DIALOG_EXPORT_BRICKLINK: - result = QFileDialog::getSaveFileName(parent, parent->tr("Export BrickLink"), FileName, parent->tr("XML Files (*.xml);;All Files (*.*)")); + result = QFileDialog::getSaveFileName(parent, tr("Export BrickLink"), FileName, tr("XML Files (*.xml);;All Files (*.*)")); break; case LC_DIALOG_EXPORT_CSV: - result = QFileDialog::getSaveFileName(parent, parent->tr("Export CSV"), FileName, parent->tr("CSV Files (*.csv);;All Files (*.*)")); + result = QFileDialog::getSaveFileName(parent, tr("Export CSV"), FileName, tr("CSV Files (*.csv);;All Files (*.*)")); break; case LC_DIALOG_EXPORT_WAVEFRONT: - result = QFileDialog::getSaveFileName(parent, parent->tr("Export Wavefront"), FileName, parent->tr("Wavefront Files (*.obj);;All Files (*.*)")); + result = QFileDialog::getSaveFileName(parent, tr("Export Wavefront"), FileName, tr("Wavefront Files (*.obj);;All Files (*.*)")); break; default: diff --git a/resources/leocad_pt_BR.ts b/resources/leocad_pt_BR.ts index 20d59449..00dce8ca 100644 --- a/resources/leocad_pt_BR.ts +++ b/resources/leocad_pt_BR.ts @@ -28,63 +28,63 @@ - + New SpotLight - + New Camera - + Move - + Rotate - - + + Zoom - + Pan - + Orbit - + Roll - + Insert - + New Light - + Deleting - + Painting @@ -92,68 +92,68 @@ lcBaseWindow - + Open Project - + Abrir Projeto - - + + Supported Files (*.lcd *.ldr *.dat *.mpd);;All Files (*.*) - + Save Project - + Salvar Projeto - + Supported Files (*.ldr *.dat);;All Files (*.*) - + Merge Project - + Export 3D Studio - + 3DS Files (*.3ds);;All Files (*.*) - + Export BrickLink - + XML Files (*.xml);;All Files (*.*) - + Export CSV - + CSV Files (*.csv);;All Files (*.*) - + Export Wavefront - + Wavefront Files (*.obj);;All Files (*.*) @@ -161,32 +161,32 @@ lcQAboutDialog - + About LeoCAD - + LeoCAD Version 0.00.0 - + LeoCAD is a free application that can be used to create virtual LEGO models. - + <a href="http://www.leocad.org">http://www.leocad.org</a> - + System Information - + LeoCAD Version @@ -194,27 +194,27 @@ lcQArrayDialog - + Array - + Dimensions - + Offsets - + Rotations - + Array is empty. @@ -222,37 +222,37 @@ lcQCategoryDialog - + Category - + Name: - + Keywords: - + Edit Category - + New Category - + Name cannot be empty. - + Keywords cannot be empty. @@ -260,53 +260,53 @@ lcQEditGroupsDialog - + Edit Groups - + Editar Grupos - + New Group - + Novo Grupo lcQFindDialog - + Find - + Name - + Nome - + Part ID - + Color - + Cor lcQGroupDialog - + Group - + Grupo - + Name - + Nome - + Name cannot be empty. @@ -314,119 +314,119 @@ lcQHTMLDialog - + HTML Options - + General - + Output folder: - + ... - + Image format: - + BMP - + JPEG - + PNG - + Transparent image background - + Layout - + Single page - + One step per page - - + + Width: - - + + Height: - + Index page - + Highlight new parts - + Parts List - + At the end - + After each step - + Color: - + Create images - + Output folder cannot be empty. - + Select Output Folder @@ -434,102 +434,102 @@ lcQImageDialog - + Save Image - + File name: - + Format: - + Width: - + Height: - + BMP - + JPEG - + PNG - + ... - + Transparent background - + First step: - + Last step: - + Output File cannot be empty. - + Please enter a width between 1 and 2048. - + Please enter a height between 1 and 2048. - + First step must be between 1 and 9999. - + Last step must be between 1 and 9999. - + Last step must be greater than first step. - + Save Image File - + Supported Files (*.bmp *.png *.jpg);;BMP Files (*.bmp);;PNG Files (*.png);;JPEG Files (*.jpg);;All Files (*.*) @@ -537,157 +537,157 @@ lcQMainWindow - + New Project Novo Projeto - + Open Project - + Abrir Projeto - + Save Project - + Salvar Projeto - + Lock Menu - + Snap XY - + Snap Z - + Snap Menu - + Snap Angle Menu - + Transform - + C&ameras - + &File - + &Export - + &Edit - + &View - + &Viewpoints - + Projection - + Ste&p - + T&oolbars - + &Piece - + &Help - + Standard - + Tools - + Time - + Parts - + Properties - + Step %1 - + M: %1 %2 R: %3 - + &Undo %1 - + &Undo - + &Redo %1 - + &Redo @@ -695,7 +695,7 @@ lcQMinifigDialog - + Dialog @@ -703,69 +703,69 @@ lcQPOVRayDialog - + POV-Ray Export - + Output File - + POV-Ray Executable - + LGEO Path (optional) - + Render Scene - - - + + + ... - + Output File cannot be empty. - + Save POV-Ray File - + POV-Ray Files (*.pov);;All Files (*.*) - + Executable Files (*.exe);;All Files (*.*) - + All Files (*.*) - + Open POV-Ray Executable - + Open LGEO Folder @@ -773,7 +773,7 @@ lcQPartsTree - + Search Results @@ -781,353 +781,353 @@ lcQPreferencesDialog - + Preferences - + General - + Default author name: - + Default projects folder: - - - - + + + + ... - + Custom parts library: - + POV-Ray Executable: - + LGEO Path: - + Mouse sensitivity: - + Check for updates: - + Never - + Nunca - + Once a day - + Uma vez por dia - + Once a week - + Uma vez por semana - + Don't allow relative snap - + Fixed direction keys - + Rendering - + Edge lines - + Axis icon - + width - + Anti-aliasing - + Enable lighting - + 2x - + 2x - + 4x - + 4x - + 8x - + 8x - + Base Grid - + Draw studs - + studs - + Draw lines every - - + + Categories - + Parts Library Categories - + Name - + Nome - + Number - - + + Import... - - + + Export... - - + + Reset... - + Category - + New... - + Edit... - + Delete... - + Keyboard - + Keyboard Shortcuts - + Command - - + + Shortcut - + Key sequence: - + Assign - + Remove - + Grid spacing must be greater than 0. - + Open Projects Folder - + Open Parts Library Folder - + Executable Files (*.exe);;All Files (*.*) - + All Files (*.*) - + Open POV-Ray Executable - + Open LGEO Folder - + Select Grid Stud Color - + Select Grid Line Color - + Unassigned - + Are you sure you want to delete the category '%1'? - + Import Categories - - - - + + + + Text Files (*.txt);;All Files (*.*) - + Error loading categories file. - + Export Categories - + Error saving categories file. - + Are you sure you want to load the default categories? - + Import shortcuts - + Error loading keyboard shortcuts file. - + Export shortcuts - + Error saving keyboard shortcuts file. - + Are you sure you want to load the default keyboard shortcuts? @@ -1135,137 +1135,137 @@ lcQPropertiesDialog - + Properties - + Summary - + Author: - + Description: - + Comments: - + Scene - + Background - + Solid Color - + Image - + Gradient - + ... - + Tile - + Environment - + Fog - + Density - + Ambient Light - + Set default options for new projects - + Parts Used - + %1 Properties - + Part - + Select Background Color - + Select Background Top Color - + Select Background Bottom Color - + Select Fog Color - + Select Ambient Light Color - + Select Background Image - + All Image Files (*.png *.jpg *.gif *.bmp);;PNG Files (*.png);;JPEG Files (*.jpg);;GIF Files (*.gif);;BMP Files (*.bmp);;All Files (*.*) @@ -1273,187 +1273,187 @@ lcQPropertiesTree - + Property - + Value - - + + Position - - - - - + + + + + X - - - - - + + + + + Y - - - - - + + + + + Z - + Rotation - + Visibility - + Show - + Hide - + Appearance - + Color - + Part - + Target - - + + Up - + Orthographic - + FOV - + Near - + Far - + Name - + Nome lcQSelectDialog - + Select Objects - + Selecionar Objetos - + All - + Todos - + None - + Nenhum - + Invert - + Inverter lcQUpdateDialog - + LeoCAD Updates - + Connecting to update server... - + <p>There's a newer version of LeoCAD available for download (%1.%2.%3).</p> - + <p>You are using the latest LeoCAD version.</p> - + <p>There are new parts available.</p> - + <p>There are no new parts available at this time.</p> - + <p>Visit <a href="http://www.leocad.org/files/">http://www.leocad.org/files/</a> to download.</p> - + Error parsing update information. - + Error connecting to the update server.