WSN Gallery
Language Variables
Language Variables
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.

Use of these prefixes is no longer recommended, due to the wide variety of capitalization rules in different languages -- you never know whose language you'll be breaking the ability to translate for.

Thus if we want Yes instead of yes in a particular spot we can use {P_LANG_YES}.

Rating:


5/5 based on 2 votes. The median rating is 5.

Submitted: 05/16/04 (Edited 06/03/09)

Description: Guide to using language variables.

Views: 1467 views. Averaging 1 views per day.
In the most recent 30 day period, there've been 1 views.

Previous Article | Next Article

Features Showcase Purchase Services Resources Support