This topic is locked

Languages

3/2/2006 3:00:13 PM
PHPRunner General questions
rjks author

Hallo Admin,
I am trying to add Messages to the language files, which ones must I change when using templates?
in phprunner\lang or phprunner\source\
I have tried updating the english.lng lang files for example with the following data
<message tag="MAINMENU"]="Mainmenu";

<message tag="MASTERDATA"]="Masterdata";

<message tag="BASISDATA"]="Basisdata";

<message tag="MASTERDATA"]="Masterdata";

<message tag="ARTICLEDATA"]="Articledata";

<message tag="CUSTOMERDATA"]="Customerdata";

<message tag="SUPPLIERDATA"]="Supplierdata";

<message tag="WAREHOUSEDATA"]="Warehousedata";

<message tag="DETAILS"]="Details";

<message tag="PRODUCT"]="Product";

<message tag="COMPLETE"]="Complete";

<message tag="English"]["LIST"]="List";

<message tag="VAT"]="VAT";

<message tag="TEXTMODULES"]="Textmodules";

<message tag="BANKCODE"]="Bankcode";

<message tag="EFFECTUATION"]="Effectuation";

<message tag="CATEGORY"]="Category";

<message tag="MATERIAL"]="Material";

<message tag="PRODUCT"]="Product";

<message tag="DESIGN"]="Design";

<message tag="CASHDESK"]="cash desk";

<message tag="WORKORDER"]="Workorder";

<message tag="DELIVERYORDER"]="delivery order";

<message tag="USERADMINISTRATION"]="user administration";

<message tag="SYSTEMSETTINGS"]="system settings";

<message tag="SYSTEM"]="system";

<message tag="HELP"]="Help";

<message tag="FAQS"]="FAQ´s";

<message tag="GENERALTERMSOFBUSINESS"]="GENERALTERMSOFBUSINESS";

<message tag="DIVERSES"]="diverses";

<message tag="DATABASE"]="database";

<message tag="MAINTAINANCE"]="maintainance";

<message tag="REORGANISATION"]="Reorg";

<message tag="INDEX"]="index";

<message tag="FAQS"]="FAQ´s";

<message tag="GOODS"]="Goods";

<message tag="ENTRIES"]="entries";

<message tag="EXITS"]="exits";

<message tag="JOURNAL"]="Journal";

<message tag="INVENTUR"]="inventur";
however none of them appear in the languages file after building my project they are ignored see below
$mlang_messages["English"]["PASSWORD"]="Password";

$mlang_messages["English"]["NEXT_MONTH"]="next month";

$mlang_messages["English"]["LONG_BINARY"]="LONG BINARY DATA - CANNOT BE DISPLAYED";

$mlang_messages["English"]["FIELDS_CC"]="The Following fields must be valid Credit Card Numbers";

$mlang_messages["English"]["EQUALS"]="Equals";
$mlang_messages["French"]=array();

$mlang_charsets["French"]="Windows-1252";

$mlang_messages["French"]["USER_NOREG2"]="n'est pas enregistre.";
Is it possible to update the languages automatically when using templates or must they be changed by hand after each build??
Thanks in advance
Robert

Sergey Kornilov admin 3/3/2006

Robert,
you can add your messages to .lng files.

However you should follow the XML syntax.
I.e. add the following:

<message tag="MAINMENU">Mainmenu</message>

...

rjks author 3/4/2006

Hallo Admin,
thanks for the info, too many trees again I suppose.
Of course it works when the syntax is correct.
Thanks again.
Robert

D
davidmylien 3/9/2006

Hi ! Admin:

  1. I want to my php appplication (use phprunner as generator) to support Chinese Language (UTF8),

    What should do ?
  2. Can do as following steps ?

    a. add new language file chinese.lng (following XML syntax)

    b. add new line to languages.cfg
    but I do not know the lcid and codepage for Chinese Language (UTF8) ,

    please let me know how to do it.
    <language filename="Turkish.lng" name="Turkish" lcid="1055" codepage="1254" charset="Windows-1254" />
    3.Thanks
    David Lien