Internationalization Addon for languages files
- Wednesday, December 04 2002 @ 07:41 pm EST
- Contributed by: Anonymous
- Views: 4,443
Hi there,
I just got the code for this COOOOL site, it\'s great really, I like it and I am goning to use it in my site soon.
Just one thing that I like you developer to add.
* you had a variable named ($LANG_CHARSET) in your language files which makes it easy to decode other languages by browser. BUT
1. I would like you to add the following variables as a standard so your code could be used for internatioal languages such as BIdirectional languages that are displayed from RIGHT TO LEFt:
$LANG_DEFAULT_DIR = \"RTL\" \' RTL for right to left and LTR for left to right direction.
This variable will be appened to the <html> tag as <html dir=rtl> which indecates the direction of page.
$LANG_LEFT_ALIGN = \"LEFT\"
$LANG_RIGHT_ALIGN = \"RIGHT\"
Those variables will be uses as to set the default alignment for an item in the page. For some reason, Right To Left laguages should have the value of those variables to be reversed to appear correctly in the page as:
$LANG_LEFT_ALIGN = \"RIGHT\"
$LANG_RIGHT_ALIGN = \"LEFT\"
So, in conclusion, it will help to translate the site and give an internationalization hint,
so, bidirectional languages such as \"Arabic\" will use the values:
$LANG_DEFAULT_DIR = \"RTL\"
$LANG_LEFT_ALIGN = \"RIGHT\"
$LANG_RIGHT_ALIGN = \"LEFT\"
while langauages such as English will use:
$LANG_DEFAULT_DIR = \"LTR\"
$LANG_LEFT_ALIGN = \"LEFT\"
$LANG_RIGHT_ALIGN = \"RIGHT\"
I hope it\'s clear. Tell me if you need and furture explainations.
Regards,
Ageel911@yahoo.com
I just got the code for this COOOOL site, it\'s great really, I like it and I am goning to use it in my site soon.
Just one thing that I like you developer to add.
* you had a variable named ($LANG_CHARSET) in your language files which makes it easy to decode other languages by browser. BUT
1. I would like you to add the following variables as a standard so your code could be used for internatioal languages such as BIdirectional languages that are displayed from RIGHT TO LEFt:
$LANG_DEFAULT_DIR = \"RTL\" \' RTL for right to left and LTR for left to right direction.
This variable will be appened to the <html> tag as <html dir=rtl> which indecates the direction of page.
$LANG_LEFT_ALIGN = \"LEFT\"
$LANG_RIGHT_ALIGN = \"RIGHT\"
Those variables will be uses as to set the default alignment for an item in the page. For some reason, Right To Left laguages should have the value of those variables to be reversed to appear correctly in the page as:
$LANG_LEFT_ALIGN = \"RIGHT\"
$LANG_RIGHT_ALIGN = \"LEFT\"
So, in conclusion, it will help to translate the site and give an internationalization hint,
so, bidirectional languages such as \"Arabic\" will use the values:
$LANG_DEFAULT_DIR = \"RTL\"
$LANG_LEFT_ALIGN = \"RIGHT\"
$LANG_RIGHT_ALIGN = \"LEFT\"
while langauages such as English will use:
$LANG_DEFAULT_DIR = \"LTR\"
$LANG_LEFT_ALIGN = \"LEFT\"
$LANG_RIGHT_ALIGN = \"RIGHT\"
I hope it\'s clear. Tell me if you need and furture explainations.
Regards,
Ageel911@yahoo.com