diff --git a/main.cpp b/main.cpp index f17b66f..de5fd63 100644 --- a/main.cpp +++ b/main.cpp @@ -140,12 +140,13 @@ int main(int argc, char *argv[]) // IMPORTANT: Translator must be set *before* the MainWindow is created for it to work. QSettings settings; + // Get language from command line or user settings QString lang = parser.value("lang").isEmpty() ? settings.value("language").toString() : parser.value("lang"); if (MM::SUPPORTED_LANGUAGES.contains(lang)) { - QLocale::setDefault(QLocale(lang)); + //QLocale::setDefault(QLocale(lang)); QTranslator qtTranslator; #ifdef Q_OS_WIN32 qtTranslator.load(QString("qt_%1").arg(lang), @@ -156,9 +157,9 @@ int main(int argc, char *argv[]) #endif app.installTranslator(&qtTranslator); - QTranslator localization; - localization.load(QString(":/mapmap_%1").arg(lang)); - app.installTranslator(&localization); + QTranslator appTranslator; + appTranslator.load(QString("translations/mapmap_%1").arg(lang)); + app.installTranslator(&appTranslator); } else { qWarning() << "Unrecognized/unsupported language: " << lang; diff --git a/translations/mapmap_en.ts b/translations/mapmap_en.ts index 6740f66..344108d 100644 --- a/translations/mapmap_en.ts +++ b/translations/mapmap_en.ts @@ -1,6 +1,59 @@ + + AboutDialog + + + About %1 + + + + + MapMap is a free/open source video mapping software. + + + + + Copyright &copy; 2013 %1. + + + + + See the + + + + + %1 website + + + + + About + + + + + Changelog + + + + + Librairies + + + + + Contributors + + + + + License + + + ConsoleWindow @@ -53,524 +106,538 @@ MainWindow - + Open project Open project - - + + MapMap files (*.%1) MapMap files (*.%1) - + Save project Save project - + Import media source file Import media source file - + Media files (%1 %2);;All files (*) Media files (%1 %2);;All files (*) - + Available camera Available camera - + Select camera Select camera - + + No camera available No camera available - + + You can not use this feature! No camera available in your system You can not use this feature! No camera available in your system - + Select Color Select Color - About MapMap - About MapMap + About MapMap - <h2><img src=":mapmap-title"/> %1</h2><p>Copyright &copy; 2013 %2.</p><p>MapMap is a free software for video mapping.</p><p>Projection mapping, also known as video mapping and spatial augmented reality, is a projection technology used to turn objects, often irregularly shaped, into a display surface for video projection. These objects may be complex industrial landscapes, such as buildings. By using specialized software, a two or three dimensional object is spatially mapped on the virtual program which mimics the real environment it is to be projected on. The software can interact with a projector to fit any desired image onto the surface of that object. This technique is used by artists and advertisers alike who can add extra dimensions, optical illusions, and notions of movement onto previously static objects. The video is commonly combined with, or triggered by, audio to create an audio-visual narrative.This project was made possible by the support of the International Organization of La Francophonie.</p><p>http://mapmap.info<br />http://www.francophonie.org</p> - <h2><img src=":mapmap-title"/> %1</h2><p>Copyright &copy; 2013 %2.</p><p>MapMap is a free software for video mapping.</p><p>Projection mapping, also known as video mapping and spatial augmented reality, is a projection technology used to turn objects, often irregularly shaped, into a display surface for video projection. These objects may be complex industrial landscapes, such as buildings. By using specialized software, a two or three dimensional object is spatially mapped on the virtual program which mimics the real environment it is to be projected on. The software can interact with a projector to fit any desired image onto the surface of that object. This technique is used by artists and advertisers alike who can add extra dimensions, optical illusions, and notions of movement onto previously static objects. The video is commonly combined with, or triggered by, audio to create an audio-visual narrative.This project was made possible by the support of the International Organization of La Francophonie.</p><p>http://mapmap.info<br />http://www.francophonie.org</p> + <h2><img src=":mapmap-title"/> %1</h2><p>Copyright &copy; 2013 %2.</p><p>MapMap is a free software for video mapping.</p><p>Projection mapping, also known as video mapping and spatial augmented reality, is a projection technology used to turn objects, often irregularly shaped, into a display surface for video projection. These objects may be complex industrial landscapes, such as buildings. By using specialized software, a two or three dimensional object is spatially mapped on the virtual program which mimics the real environment it is to be projected on. The software can interact with a projector to fit any desired image onto the surface of that object. This technique is used by artists and advertisers alike who can add extra dimensions, optical illusions, and notions of movement onto previously static objects. The video is commonly combined with, or triggered by, audio to create an audio-visual narrative.This project was made possible by the support of the International Organization of La Francophonie.</p><p>http://mapmap.info<br />http://www.francophonie.org</p> - - - + + + MapMap MapMap - + Remove this paint and all its associated mappings? Remove this paint and all its associated mappings? - + Paints Paints - + Mappings Mappings - + &New &New - + Create a new project Create a new project - + &Open... &Open... - + Open an existing project Open an existing project - + &Save &Save - + Save the project Save the project - + Save &As... Save &As... - + Save the project as... Save the project as... - + No Recents Videos No Recents Videos - + &Import Media File... &Import Media File... - + Import a video or image file... Import a video or image file... - + Open &Camera Device... Open &Camera Device... - + Choose your camera device... Choose your camera device... - + Add &Color Paint... Add &Color Paint... - + Add a color paint... Add a color paint... - + E&xit E&xit - + Exit the application Exit the application - + &Undo &Undo - + &Redo &Redo - + &About MapMap &About MapMap - + Show the application's About box Show the application's About box - + Duplicate Duplicate - + Duplicate item Duplicate item - + Delete mapping Delete mapping - - + + Delete item Delete item - - + + Rename Rename - - + + Rename item Rename item - + Lock mapping Lock mapping - + Lock mapping item Lock mapping item - + Hide mapping Hide mapping - + Hide mapping item Hide mapping item - + Solo mapping Solo mapping - + solo mapping item solo mapping item - + Delete paint Delete paint - + &Preferences... &Preferences... - + Configure preferences... Configure preferences... - + Add &Mesh Add &Mesh - + Add mesh Add mesh - + Add &Triangle Add &Triangle - + Add triangle Add triangle - + Add &Ellipse Add &Ellipse - + Add ellipse Add ellipse - - + + Play Play - - + + Pause Pause - - + + Rewind Rewind - + Toggle &Fullscreen Toggle &Fullscreen - + Toggle Fullscreen Toggle Fullscreen - + &Display Controls &Display Controls - + Display canvas controls Display canvas controls - + &Display Controls of Mappings of a Paint &Display Controls of Mappings of a Paint - + Display all canvas controls related to current paint Display all canvas controls related to current paint - + &Sticky Vertices &Sticky Vertices - + Enable sticky vertices Enable sticky vertices - + Show &Test Signal Show &Test Signal - + Show Test signal Show Test signal - - Display &Undo Stack - Display &Undo Stack + + Display &Undo History + - + + Undo history + + + + Display &Undo Stack + Display &Undo Stack + + + Open Conso&le Open Conso&le - + Display &Zoom Toolbar Display &Zoom Toolbar - + &Menu Bar &Menu Bar - + Main Perspective Main Perspective - + Switch to the Main perspective. Switch to the Main perspective. - + Source Perspective Source Perspective - + Switch to the Source perspective. Switch to the Source perspective. - + Destination Perspective Destination Perspective - + Switch to the Destination perspective. Switch to the Destination perspective. - + Report bug... Report bug... - + Technical Support Technical Support - + Documentation Documentation - + + Submit Feedback... + + + + &File &File - + Open Recents Projects Open Recents Projects - + Open Recents Videos Open Recents Videos - + &Edit &Edit - + &Source &Source - + &Destination &Destination - + &Playback &Playback - + &Output &Output - + &Tools &Tools - + &Window &Window - + Toolbars Toolbars - + &Help &Help - + &Toolbar &Toolbar - + The document has been modified. Do you want to save your changes? The document has been modified. Do you want to save your changes? - - + + Error reading mapping project file Error reading mapping project file - - + + Cannot read file %1: %2. Cannot read file %1: %2. - + Parse error in file %1: %2 @@ -579,110 +646,109 @@ Do you want to save your changes? %2 - + File loaded File loaded - + Error saving mapping project Error saving mapping project - + Cannot write file %1: %2. Cannot write file %1: %2. - + File saved File saved - + Untitled Untitled - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project MapMap Project - - + + &%1 %2 &%1 %2 - + Clear List Clear List - + No Recents Projects No Recents Projects - + %1 - %2x%3 %1 - %2x%3 - + File imported File imported - + Color paint added Color paint added - + Warning Warning - + The following file is not supported: %1 The following file is not supported: %1 - + Cannot load movie Cannot load movie - + Unable to use the file « %1 » The original file is not found. Will you locate? Unable to use the file « %1 » The original file is not found. Will you locate? - + Locate file « %1 » Locate file « %1 » - + %1 files (%2) %1 files (%2) - Undo stack - Undo stack + Undo stack @@ -711,22 +777,22 @@ The original file is not found. Will you locate? MappingItemDelegate - + Solo mapping Solo mapping - + Lock mapping Lock mapping - + Duplicate mapping Duplicate mapping - + Delete mapping Delete mapping @@ -739,132 +805,141 @@ The original file is not found. Will you locate? Preferences - + Large Large - + Medium Medium - + Small Small - + + Language (requires restart) + + + + Toolbar icon size (requires restart) Toolbar icon size (requires restart) - + Enable Sticky vertices Enable Sticky vertices - + Sensitivity Sensitivity - + Vertex Vertex - + Shape Shape - + Layers Layers - + Show resolution on output Show resolution on output - + Classic test card Classic test card - + PAL test card PAL test card - + NTSC test card NTSC test card - + Send OSC messages Send OSC messages - + to machine to machine - + at port at port - + Listen OSC messages Listen OSC messages - + on port on port - + Refresh Refresh - + Local IP Local IP - + OSC Setup OSC Setup - - Apparence - Apparence + + Interface + - + Apparence + Apparence + + + Mapping & Shape Mapping & Shape - + Output Output - + Controls Controls - + Advanced Advanced @@ -907,12 +982,12 @@ The original file is not found. Will you locate? - + Problem at creation of shape. Problem at creation of shape. - + Unable to create paint of type '%1'. @@ -983,12 +1058,12 @@ Line %2, column %3 Problem at creation of mapping. - + Initiating program... Initiating program... - + Done. Done. diff --git a/translations/mapmap_fr.ts b/translations/mapmap_fr.ts index b427114..5432f37 100644 --- a/translations/mapmap_fr.ts +++ b/translations/mapmap_fr.ts @@ -1,6 +1,49 @@ + + AboutDialog + + About %1 + + + + MapMap is a free/open source video mapping software. + + + + Copyright &copy; 2013 %1. + + + + See the + + + + %1 website + + + + About + + + + Changelog + + + + Librairies + + + + Contributors + + + + License + + + ConsoleWindow @@ -46,7 +89,7 @@ MainWindow About MapMap - À propos de MapMap + À propos de MapMap &New @@ -319,10 +362,6 @@ No camera available in your system Select Color Choisir une couleur - - <h2><img src=":mapmap-title"/> %1</h2><p>Copyright &copy; 2013 %2.</p><p>MapMap is a free software for video mapping.</p><p>Projection mapping, also known as video mapping and spatial augmented reality, is a projection technology used to turn objects, often irregularly shaped, into a display surface for video projection. These objects may be complex industrial landscapes, such as buildings. By using specialized software, a two or three dimensional object is spatially mapped on the virtual program which mimics the real environment it is to be projected on. The software can interact with a projector to fit any desired image onto the surface of that object. This technique is used by artists and advertisers alike who can add extra dimensions, optical illusions, and notions of movement onto previously static objects. The video is commonly combined with, or triggered by, audio to create an audio-visual narrative.This project was made possible by the support of the International Organization of La Francophonie.</p><p>http://mapmap.info<br />http://www.francophonie.org</p> - - Paints Sources @@ -481,7 +520,7 @@ No camera available in your system Display &Undo Stack - Afficher la liste des &Undo + Afficher la liste des &Undo Open Conso&le @@ -613,7 +652,15 @@ The original file is not found. Will you locate? - Undo stack + Display &Undo History + + + + Submit Feedback... + + + + Undo history @@ -644,15 +691,15 @@ The original file is not found. Will you locate? Lock mapping - + Verrouiller le mapping Duplicate mapping - + Dupliquer un mapping Delete mapping - + Supprimer le mapping @@ -745,10 +792,6 @@ The original file is not found. Will you locate? OSC Setup - - Apparence - - Mapping & Shape @@ -765,6 +808,14 @@ The original file is not found. Will you locate? Advanced + + Language (requires restart) + + + + Interface + + QObject @@ -876,7 +927,7 @@ Ligne %2, colonne %3 Delete mapping - + Supprimer le mapping Problem at creation of shape. @@ -911,7 +962,11 @@ Ligne %2, colonne %3 Problème à la création de la source - Problème à la création du mapping + + + + + Problem at creation of mapping. @@ -1053,7 +1108,7 @@ Ligne %2, colonne %3 QtFontEditWidget ... - + ... Select Font