B4J Code Snippet B4J Simple Code to create PHPLang files & Manage Translation with a Excel WorkBook

Sometimes it is very hard to have to maintain a translation of a website PHP.
Erel has long published an impressive tool: B4XLocalizator that greatly facilitates the work of translation within the app with a Excel workbook.

Well, I have made this simple code to help generate the files that allow us to maintain a website translated in several languages.
Inspired on: https://www.b4x.com/android/forum/threads/b4x-localizator-localize-your-b4x-applications.68751/


EXCEL SHEET
1587150787663.png


GENERATED FILES
1587150888147.png


CODE GENERATED (\Objects\language\en_lang.php)
PHP:
<?php
$lang['acceso'] = 'Access';
$lang['account_information'] = 'Account Information';
$lang['active'] = 'Active';
$lang['active_client'] = 'Active Client';
$lang['add'] = 'Add';
$lang['add_client'] = 'Add Client';
?>


Regards :)
 

Attachments

  • b4j_strings-php_lang.zip
    9.5 KB · Views: 246
  • 1587150844883.png
    1587150844883.png
    19.6 KB · Views: 213
Top