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.

PVoutput support

Websolarlog is capable to send the logged data to the free Solar Logger service PVoutput for sharing and comparing your Solar data.

Websolarlog sends, when the inverter is awake and you configured this feature, every 5 min. your data to PVoutput. So you can compare and share your solar data with other solar-systems in the world.

We also have our own PVoutput team, feel free to join us:
PVoutput team WebSolarLog

 

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/