valid xhtml 1.0 strict
 

last changed : 01/24/10

Language Files

For every supported language exists a respective file in the "lang" directory e.g. efileman_german.pm contains all necessary values for german speaking users. You can change these values or create a new language file as described below.

Copy an existing language file and rename it from e.g. efileman_english.pm to efileman_chinese.pm.

Adjust the charset variable to the respective value, for chinese set $charset = "gb2312". See the documentation on www.w3.org for another charset value.

Don't rename the $TEXT variable and use only capital letters e.g. $TEXT{'filespace'}. $text{'filespace'} won't work.

Don't rename the values inside the $TEXT variable. What you can do is to add a new $TEXT value e.g. $TEXT{'mytext'} and use in your skin file as ##TEXT'mytext'##. See skins section for more information.

You can use HTML tags in all $TEXT variables wich used to print messages to the user, e.g. $TEXT{'comment'} or $TEXT{'sendmailsuc'}.
For example: $TEXT{'sendmailsuc'} = "Mail has been send <b>sucessfully</b>.";
to get this Message:
"Mail has been send sucessfully."

You can adjust the format of date and time by changing the four variables $TEXT{'month'}, $TEXT{'weekday'}, $TEXT{'date'} and $TEXT{'time'}. Use for example abbreviations for month and weekday values. Change the order or the separate characters of time and date or remove something, e.g.:

  • $TEXT{'time'} = "hh:mm:ss";
  • $TEXT{'time'} = "hh.mm";
  • $TEXT{'time'} = "hh Hour mm Minutes and ss Seconds";

Here we have changes in comparison to efileman version 7.04. These values are capitalized.

  • $TEXT{'date'} = "DD.MM.YY";
  • $TEXT{'date'} = "DD-MM-YYYY";
  • $TEXT{'date'} = "MM/DD/YY";
  • $TEXT{'date'} = "MM YYYY";

The variables $TEXT{'date'} and $TEXT{'time'} are used for display of timestamp of files and directories and are represented there as ##dfdate## and ##dftime##. The $TEXT{'datetime'} variable enables the adaption of complete display of current server(!) date and time according the respective language, e.g.

Here we have changes in comparison to efileman version 7.04. Use the predefined values $TEXT{'time'} and $TEXT{'date'} in curly brackets.

  • $TEXT{'datetime'} = "weekday, month DD, YYYY ({time})"; (english, using defined value of $TEXT{'time'})
  • $TEXT{'datetime'} = "weekday DD de month de YYYY (hh:mm)"; (spanish)
  • $TEXT{'datetime'} = "Heute ist weekday der DD.month YYYY (hh:mm Uhr)"; (german)
  • $TEXT{'datetime'} = "month weekday {date} {time}"; (using defined value of $TEXT{'date'} and $TEXT{'time'})

Basically all language file varibale are represented in skin files according to the excample: $TEXT{'upload'} by ##TEXT'upload'##,
excepting the variables $TEXT{'month'}, $TEXT{'weekday'}, $TEXT{'date'}, $TEXT{'time'} and $TEXT{'datetime'}.
These are represented as ##month##, ##day##, ##date## (##dfdate##), ##time## (##dftime##) and ##datetime## because these values are proceded before by the script.
The same applays to ##copyright## which value is defined in script.

The language file is Perl code !

The syntax of $TEXT{'date'} = "MM YYYY"; defines the key "date" of a Hash named TEXT with the respective value "mm yyyy" and the required semicolon as end of code statement. The value is enclosed by quotation. Don't add text after semicolon in the same line without an comment directive # like:
$TEXT{'date'} = "MM YYYY"; # this is a comment

If you change the language file pay attentation to the syntax. Otherwise the script won't work.
Don't add a new key like $TEXT{'mykey'} if already exist, because the first value will be overwritten by this new value.

If you want to copy and paste HTML Code from your editor into language file with quotations inside the code like <p style="color:#efefef;">... enclose the complete Hash value by qq{your text} instead the quotation like
$TEXT{'mykey'} = qq{<p style="color:#efefef;">...</p>};



 
 
bookmark this site at del.icio.us bookmark this site at mister-wong.de bookmark this site at furl.net bookmark this site at ho.tli.st bookmark this site at blogmarks.net bookmark this site at stumbleupon.com bookmark this site at scuttle.org