Language and Localization

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:

  • Root
    • Locale
      • en_GB
        • LC_MESSAGES
          • default.po
          • default.mo

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”:

  • Root
    • Locale
      • en_GB
        • LC_MESSAGES
          • default.po
          • default.mo
      • nl_NL
        • LC_MESSAGES

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.

Code freeze

We want to release an stable version off websolarlog. However new features keeps coming. We have decided to make the current features more stable and fix bugs we encounter. When things are stable the first official stable release will an fact.

 

If you have any questions, suggestions or what so ever regarding this post, feel free to post on our google support forum:
http://www.websolarlog.com/index.php/help-support/