It is possible to localize WebSolarLog and, at this moment, it uses the language settings of your browser. We are working on the ability to set the language from the front end so every visitor of your solar logger can look/read it in his own language (if the language exists).
WebSolarLog uses the PHP gettext function to translate the page on the fly.
In the WebSolarLog root directory you can find the “locale” subdirectory. Below you see the tree of the Locale directory:
You can make your own localization by making a subdirectory in locale with the language code of you language. When that’s done, you can download a PO-editor and load the WebSolarLog root directory in the tool. Now you can translate the English default language to your language.
With the following command, you can get your current locale code:
root@server:~$ locale
In my case i get:
….
LANG=nl_NL.UTF-8
….
This gives me the language code “nl_NL” and so i make a directory “nl_NL”:
Now open the PO-editor and load the WebSolarLog root Directory as the project home.
The editor now gives you the ability to translate all the translatable string in WebSolarLog.
Translate everything and save the files in the LC_MESSAGES directory of your locale directory (in my case “nl_NL”).
If you have any questions relating on the post, feel free to post it in our help/support forum.