You make strings translatable by using the __ function. Replace
- Code: Select all
$var = "Hello, World!";
with
- Code: Select all
$var = __("Hello, World!");
Currently, po files in extensions aren't loaded by PivotX. They have to be merged (manually) with the main po file in the langs directly. We will make a solution for this. Anyway, I would recommend extension authors to include/create the pot file, and then we might include it in the main pot file (for all extensions that are uploaded to
http://extensions.pivotx.net/). It helps translators if there is just one po file to translate ...