Difference between revisions of "Translation How-To"
m (→Frequently Asked Questions / Tips for translators) |
(popeye as recommended tool for master branch translations) |
||
Line 5: | Line 5: | ||
(These are all the strings displayed in Freeplane program, especially in menus and dialogs) | (These are all the strings displayed in Freeplane program, especially in menus and dialogs) | ||
− | == weblate online translation tool == | + | == weblate online translation tool for translating the stable version== |
− | Freeplane uses a new collaborative [http://weblate.org web based translation] tool developed by [http://cihar.com Michal Čihař]. | + | For stable version 1.2.x Freeplane uses a new collaborative [http://weblate.org web based translation] tool developed by [http://cihar.com Michal Čihař]. All translations performed there are merged into both bug fix branch and the actual development 1.3.x. |
Please note: | Please note: | ||
* the english is Freeplane default language and can not be translated in weblate but directly in Git | * the english is Freeplane default language and can not be translated in weblate but directly in Git | ||
Line 16: | Line 16: | ||
If you are faced to bugs on the weblate tool, you can report them [https://github.com/nijel/weblate/issues here]. | If you are faced to bugs on the weblate tool, you can report them [https://github.com/nijel/weblate/issues here]. | ||
− | == | + | == Popeye translation tool for translating the version under development (1.3.x)== |
− | + | #Download [https://sourceforge.net/projects/popeye/ Popeye translation tool] | |
− | + | #Get the latest translation file from Freeplane source code repository both for the [https://github.com/freeplane/freeplane/blob/master/freeplane/viewer-resources/translations/Resources_en.properties reference language (en)] and for [https://github.com/freeplane/freeplane/tree/master/freeplane/resources/translations your language]. | |
− | + | #In Popeye : create a project and do the translation. | |
− | + | #You can now add the new translation on your current Freeplane installation for test : in your Freeplane installation directory, create subfolders ''resources/translations'' and put your translation file there (if you are running Freeplane Portable version, subfolders to create are ''App\Freeplane\resources\translations''). Start Freeplane and check your translation while running Freeplane | |
− | + | #When translation is ok, submit your file: go to the [http://sourceforge.net/apps/mantisbt/freeplane/search.php?project_id=12&hide_status_id=90 Mantis Bug Tracker] (requires Sourceforge log-in) then | |
− | You can now add | + | * click on "Report Issue" |
− | + | * set project to "Translations" | |
− | + | * upload your new translation file. | |
− | |||
− | Start Freeplane and check your translation while running Freeplane | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Frequently Asked Questions / Tips for translators == | == Frequently Asked Questions / Tips for translators == |
Revision as of 21:02, 20 April 2013
This page will give you all the information you need to translate Freeplane into your own language.
Contents
Freeplane translation (translation of the Graphical User Interface -GUI-)
(These are all the strings displayed in Freeplane program, especially in menus and dialogs)
weblate online translation tool for translating the stable version
For stable version 1.2.x Freeplane uses a new collaborative web based translation tool developed by Michal Čihař. All translations performed there are merged into both bug fix branch and the actual development 1.3.x. Please note:
- the english is Freeplane default language and can not be translated in weblate but directly in Git
- to be able to translate, you need to know english because in weblate "template strings" to translate are english ones
- the translation is done for the "stable" branch, currently 1.2.x branch (translation of master branch can be done throught Git)
Register and submit your FreePlane translations here.
If you are faced to bugs on the weblate tool, you can report them here.
Popeye translation tool for translating the version under development (1.3.x)
- Download Popeye translation tool
- Get the latest translation file from Freeplane source code repository both for the reference language (en) and for your language.
- In Popeye : create a project and do the translation.
- You can now add the new translation on your current Freeplane installation for test : in your Freeplane installation directory, create subfolders resources/translations and put your translation file there (if you are running Freeplane Portable version, subfolders to create are App\Freeplane\resources\translations). Start Freeplane and check your translation while running Freeplane
- When translation is ok, submit your file: go to the Mantis Bug Tracker (requires Sourceforge log-in) then
- click on "Report Issue"
- set project to "Translations"
- upload your new translation file.
Frequently Asked Questions / Tips for translators
- While running Freeplane, why are some strings ending with "[translate me]"?
- As long as a key is missing in a translation, Freeplane automatically uses "<English text> [translate me]" as translation. Translators should translate these strings in priority and then remove "[translate me]".
- Why are strings ending with "[auto]"?
- Translation files can be submitted to an automatic translation tool, then strings of type "<English text> [translate me]" becomes strings of type "<local language text> [auto]". Translators should search and review these strings and then remove "[auto]".
- Why is there sometimes space before values?
- spaces before values are ignored, don't care.
- Why is there & character before some values (sometimes "in" the words)?
- the ampersand (&) is used to mark keys in the menu (i.e. open the menu, press the key/letter to activate the menu entry) - while translating, you need to make sure that each letter is only used once per menu.
- Some values begins by <html> with no </html> at the end?
- Java accepts unclosed tags - don't care.
- Some keys are not used / displayed in the software
- you should stay aligned with the English version to be on the safe side, but if keys are not used, it's a bug you can report in Mantis Bug Tracker.
- When testing Freeplane with my translation file, some menus are missing or some buttons have no label, why?
- If you leave any empty keys in the file, Freeplane assumes they are valid translations and displays nothing. There are differences between "empty key in the translation file" which displays nothing and "missing key in the translation file" which displays "<English text> [translate me]" (see above).
- Your translation is truncated
- If your translation is truncated when displayed, it may contains a ' (apostrophe) character (e.g. Freeplane displays "Copier l" instead of "Copier l'identifiant"), you may simply enter the ' character twice (ie "Copier l"identifiant") as translation, where " is twice the character '. Most of the time, ' apostrophe characters should be handled as in the English version (for some strings which are used in format statements put them twice, for other strings put them once).
Translation of third party tool used in Freeplane
JOrtho spell checker
For spell check Freeplane relies on JOrtho project. JOrtho translation file contains very few strings and only 5 are used in Freeplane but if you want to translate this file too, you can get it at its current location.
Translation of Tutorial or Documentation maps
These are the mind maps you get when you press Help → Tutorial (freeplaneTutorial.mm) and Help → Documentation (freeplane.mm).
Basic steps
- Create a working directory myTranslations.
- Copy the most recent English documentation from http://freeplane.sourceforge.net/mapsOnline. For this choose Help > Documentation Maps Online and select the map of your choice; or copy your last translation.
- make a subdirecory structure for images: myTranslations/doc; (if you use these, also myTranslations/mouse and myTranslations/key).
- Copy images you reuse or put new images you use in myTranslations.doc (possibly also myTranslations/mouse and myTranslations/key).
- Edit your translation. Drag your images from the defined subdirectories into your translation (assuming URI's are relative).
- Test the translation, in particular the images.
- Zip directory myTranslations.
- Select Help > report a bug, select new report of type translation and upload the zip file.
Note Check Help > Documentation Maps Online > indexMap > Images/doc for the images used in the present doc mind maps.
Old
- Download the latest version of freeplane.mm and FP_MenuReference.mm (or an already existing versions in your language) from the repository.
- The current link is https://github.com/freeplane/freeplane/tree/master/freeplane/resources/translations/ (but check if it's not an outdated link)
- Visit pages http://freeplane.sourceforge.net/doc/freeplane_all_languages.html and http://freeplane.sourceforge.net/doc/FP_MenuReference_all_languages.html to see how the documentation is automaticly translated by Google Translate.
- Using the latest development version of Freeplane, just create a map in your language (or complete the one already existing).
- As it's almost impossible to track differences between maps and ensure an exact one to one relationship between the languages, we don't expect this from translators.
- To track changes of freeplane.mm filters can be useful: Open the file in normal mindmap mode (not via F1) and apply a "Date filter" with the modification time set to the last time you have edited the translated map.
- Just make sure that the map is consistent with the current version of Freeplane, as complete as possible and helpful to users.
- Go to the tracker (requires Sourceforge log-in) and upload your map (the Project should be set to Translations).
Keys Mapping translation
TBD
Java Help translation
TBD (the current version doesn't allow for localization). Hint for later: http://jhelpdev.sourceforge.net/