ActiveMath Installation How-tosSuchen |
Translating the ActiveMath Server SoftwareThis page under construction explains how to start the translation of the ActiveMath server with a new language. It should also be useful to correct or adapt the translations’ terms. See also other pages about translation. AboutThis page is an adaptation and enrichment of the README file in ActiveMath distribution under This page does not cover the translation of content for which other documentation is expected in short. Ingredients of the ActiveMath translationThe ActiveMath learning environment has the following source of textual messages which need to be adapted to each language:
Translators’ workFirst, an enrichment of the configuration will be needed in order to introduce the language, even if missing all translations. Translators should then edit the phrases file and compile. Translators are, then, expected to go through all the directories of Finally, translators should edit each of the Encoding warningIt has been a convention that all text files in ActiveMath are encoded using the Introducing a new language
messages.defaultLanguage.i=XX'where i is a number not already used by the other languages, and XX is your language code (eg. `messages.defaultLanguage.4=cn`). ### The Phrase file - For your language XX, create a file ‘i18n/phrases_XX.properties’, which must be in UTF-8. Start with an existing phrase file and use it as a template. The phrase file starts with a comment that contains more information on how to encode phrases. - Each phrase file starts with a list of language names. Add your language to *each* of the phrase files. The name of your language must be written in the language itself (“Deutsch”, not “German”). Here is the current list: language.de=Deutsch
language.en=English
language.fr=Français
language.es=Español
language.it=Italiano
language.nl=Nederlands
language.ru=Русский
language.zh=中文
Variants TranslationThe following files, at least, need to be translated by adding a variant:
Testing
Unfortunately, you currently have to restart ActiveMath for the changes to take effect.
Adding new text to the GUIWhen adding a new key to the GUI (because you are programming a new thingie) or changing the semantic of a message, please make sure to impact all properties files. You fill with correct values for the files you can. For the others, you fill them commented out and the word MISSING as follows: # MISSING: register.beHappy = Let's be happy! This way, localizers (which can be really external persons) can browse seasonally through the properties file of their language and find all the “MISSING”! Also, they see the english text and have a clue about what the phrase is. How to remove a languageIt sounds dumb to do so but it’s meaningful if you are writing skins which, typically, will only be available in context where only one or two languages make sense and is writable. You need, for this, to overwrite the properties declaring the language making it empty. As follow, to remove french in the current ActiveMath, add the following in ActiveMath-indvidiual.properties: messages.defaultLanguage.3 = (in other configuration files, which ActiveMath-individual.properties overwrites,
the value is Translating core contentTODO: describe the task here, which involves the same OMDoc translation task for the Adding a language to the search toolThe search tool needs special care for new languages and may fail to work with an added language. This is because several procedures are made to enhance the retrieval quality and they depend on each language. Note that the search tool only searches the current language (different opinions welcome) unless otherwise indicated. For now, if you are lucky, you will find your content. In any case, an investigation is required to find the two following ingredients:
One you have found approaches to this, which might to say english stemming and phonetic tokenization is ok for now, you should please contact the developers so that we can enable this for the new language… it will require development on our part though this may be really small. Trackback URL for this post:http://eds.activemath.org/de/trackback/100
|
nl also in the list
nl should also be in the list…