Languages



The language module helps you to generate your own language files. Note that you probably have to use it only on your own computer because it's needed many times and requires files access to use it's results.

Preparation
Note: all operations of this step will not correct or damage your current translation files. All resulting files will be saved in separate new directory. XXX means your own language everywhere below.

  • Use "Select language" option from the menu and select "English" indepentently of language you want to process
  • Use "Load constants" option to extract and load all the constants from all the PHP files of your site
  • Use "Load translations" to extract and load translations from all english translation files. This is needed later to put english translations in comments for those constants, that are not yet translated in your own language.
  • Use "Select language" option from the menu to select your own language, which you want to process
  • Use "Load translations" to extract and load translations from all translation files for your own language.
  • Use "Add missing" option from the menu.
  • Use "Generate" for generation of new translation files for your own language. /lang_temp/ directory will be created. All new translation files will be put there. /language/XXX/missing.php will be created. It will contain all constants that are missed in your own language translation files.


  • Translation work
  • Edit the file called /language/XXX/missing.php manually (you have to work, sorry) where XXX is your language.
  • Load the translation for your language again to refresh missing translations
  • Generate the translation file
  • Return to first point of this part, until /language/XXX/missing.php will contain only constants with unknown meaning for you or none of them, just header.


  • Final language installation
  • Copy all directories from /lang_temp to the root of your site




  • Advanced language module use

    If you want to have personal translations for your site and keep them for futur release
  • Copy the file /language/XXX/total.php to /language/XXX/personnal.php
  • Edit this file to build a personal translation if you want (delete the unchanged translations)
  • Load translation files for your language again to use your personal translations
  • Generate the translation files
  • Copy all directories from /lang_temp to the root of your site


  • If You want to init language "XXX" files from another language "YYY"
  • Do all the preparation steps for the language "YYY" you want to use as a model
  • Copy the file total.php from language/YYY/total.php to language/XXX/total.php
  • Proceed like above