Menu

Translators: Please remove double vars

2004-07-28
2004-08-01
  • Boudewijn Sjouke

    Hi all,

    In almost all language files there seem to be doubles in variables. The two following situations appear:

    1. variables that exist in lang.xx.php as well as in configure.help.xx.php. For this, I checked the code and removed the obsolete vars from the language files. In the LANG.CHANGELOG is indicated, which variables are changed and/or deleted.

    2. variables that exist twice or more in the same language file. You have to check this yourself with the tool Roland made, extract.php. Just log in to PHPGedView (if needed) and add extract.php to the URL. Then choose your language and press "Double". The program will show which variables exist more than once in which file. You have to remove these manually. Please be sure to use an adequate editor for this.

    Thanks
    Boudewijn.

     
    • Eduardo Cociña

      One problem:

      I've dowloaded extract.php and run it but although I also dnlded the last LANG_CHANGELOGn.txt from CVS, it's no clear where's the right place for a var.
      For example, in my translated files extract.php shows that $pgv_lang["show_phpinfo"] exists both in lang.es-ar.php
      and in configure_help.es-ar.php but the var doesn't appear in LANG_CHANGELOG.txt.
      So question is... how to find where the proper place for a var is???

       
      • Boudewijn Sjouke

        Hi Eduardo,

        The english language files are the reference files for each language. Since they are now cleaned up, any comparison between english language files and files of other languages gives reliable differences.
        In the language editor of PGV you can make this comparison, and see that $pgv_lang["show_phpinfo"] does not exist in the lang.en.php file, but does in your lang.es-ar.php. So you can remove it from your file. The same applies for other differences you see there.

        Remember I only cleaned up english files and noted in the lang.changelog.txt what I removed or changed there. It may very well be that in other languages more variables are double than I discovered in english.
        But if you use both the language editor and extract.php they should be consistent again in the end.

        Regards,
        Boudewijn.

         
    • Eduardo Cociña

      Thank you Boudewijn.

      Now I did it.

       
    • Christophe B.

      Christophe B. - 2004-08-01

      You can download from CVS a new file named : checklang.php

      For each selected lang, this tool shows the ratio between english vars / translated vars.

      Original files are NOT modified.

      Output files are named : *.NEW.php
      They have to be verified before use (UTF8 format, header, etc ...).

      Christophe

       

Log in to post a comment.