-
Notifications
You must be signed in to change notification settings - Fork 10
Languages
By default, Mollify opens in english. To change default language, use following client option:
$(document).ready(function(){
mollify.App.init({
"language": {
default: "de"
},
...
});
});
By default all users use the default language. To enable user specific language, list all available options
$(document).ready(function(){
mollify.App.init({
"language": {
default: "de",
options: ["en", "de"]
},
...
});
});
This will use Deutsch as default language for all users, but in user admin view it is possible to set user language to English as well.
To correct localization errors, do following steps:
-
Open your copy of the localization file, Mollify localization files are located at "
localization/texts_xx.json
" -
Find the incorrect value, correct it, and save the file
-
Reload Mollify to verify the result
-
Send the corrected localizations to me, and I will include them in the next version
If some texts are missing, use the same procedure to add new lines. Reference texts can be taken from English localization file.
If your language is not found, see next chapter on how to create a new localization.
To localize into new language, do following steps:
-
Copy English version "
localization/texts_en.json
" into a new file with your locale identifier (from installation package, or from version control) -
Edit the file, and change the locale identifier in the beginning of file
-
Localize all the values in the file
-
Edit the
index.html
page, and change the default language -
Send the localization file to me, and I will include it in the next version