Language Variables
By Paul
5/5 based on 1 vote. The median rating is 5.
By Paul
Language template variables (mainly used for translation purposes) can be customized in the 'language' area of your admin panel. You can add new ones there or change the content of existing ones.
Displaying a languge item is simple. In any template, type {LANG_ followed by the name of the language variable. For example, {LANG_YES} written in the template will show your visitors the word 'yes' if you're using the english language pack.
Sometimes you may want to use a word or term which you already have a language variable for, but you want to use it in a different case. For instance, you may want it all lowercase this time. You don't need to create a new variable.
{LANG_: Normal.
{U_LANG_: All uppercase.
{L_LANG_: All lowercase.
{P_LANG_: First letter capitalized, rest lowercase.
{PALL_LANG_: First letter of each word capitalized, rest lowercase.
Thus if we want Yes instead of yes in a particular spot we can use {P_LANG_YES}.
Displaying a languge item is simple. In any template, type {LANG_ followed by the name of the language variable. For example, {LANG_YES} written in the template will show your visitors the word 'yes' if you're using the english language pack.
Sometimes you may want to use a word or term which you already have a language variable for, but you want to use it in a different case. For instance, you may want it all lowercase this time. You don't need to create a new variable.
{LANG_: Normal.
{U_LANG_: All uppercase.
{L_LANG_: All lowercase.
{P_LANG_: First letter capitalized, rest lowercase.
{PALL_LANG_: First letter of each word capitalized, rest lowercase.
Thus if we want Yes instead of yes in a particular spot we can use {P_LANG_YES}.
Rating:
5/5 based on 1 vote. The median rating is 5.
Submitted: 05/16/04
Description: Guide to using language variables.
Views:
1344 views. Averaging 1 per day.
In the most recent 30 day period, there've been 0 views.

Print
E-Mail