Adding a new language¶
This document describes how to add a new language to the Mumie system. As an example, we consider the Swedish language.
Create the language¶
Let <checkin_root> denote your checkin root on your local computer. Recall that languages are kept in system/languages
(cf. [[doc:manuals:general_principles:index|general principles]]). Change the working directory as follows:
cd <checkin_root>/system/languages
(take care to replace <checkin_root> by the actual checkin root). Open a text editor and create a file with the following content:
<?xml version="1.0" encoding="ASCII"?> <mumie:language xmlns:mumie="http://www.mumie.net/xml-namespace/document/metainfo"> <mumie:name>Swedish</mumie:name> <mumie:description> Swedish language </mumie:description> <mumie:code>se</mumie:code> </mumie:language>
Save the file with the name
lng_se.meta.xml
This is the master file of the new language. Finally, upload the new language to the Mumie server:
mmckin -a <alias> lng_se.meta.xml
Replace <alias> the the appropriate server account alias. If the alias is default
, you can omit -a <alias>
.
The language does now exist on the server.
Declare the new language in Mmcdk¶
Mmcdk stores the languages it knows in a Java system property named net.mumie.cdk.langCodes
. The value of the property is a comma-separated list of language codes. The default is en,de
. We must add the new language to this list. This can be done in two ways:
System-wide¶
Let <build_prefix> be the Mumie build prefix (i.e., the location where all your Mumie software is installed). Open the file
<build_prefix>/etc/mmcdk/local_mmcdk.init
in a text browser. Create the file if it does not exist already. Insert the line
mmjvmc setprop net.mumie.cdk.langCodes=en,de,se
If you have changed the default list before, replace en,de
by the actual list if languages.
Ask each user to restart mmjvmd.
For a singe user¶
Do the same as above, but replace
<build_prefix>/etc/mmcdk/local_mmcdk.init
by
~/.mmcdk/mmcdk.init
Create the folder ~.mmcdk
if necessary.