Location: PHPKode > scripts > Lightweight Club Calendar > lc-calendar-0.9.4/documentation/translate_lcc.txt
| LCC translation |

LCC can handle multiple languages.
The prefered language is determined automatically from LCC_View.

Languages are stored in SMARTY configfiles as simple "key = value" pairs.
You can do everything smarty offers you for SMARTY configfiles!
LCC uses two separate language files.
Core language files live under "core/lang/" and are named "[ISO 639-1 code].conf",
for example: "core/lang/en.conf".
Each design could implement its own language files under the designs "lang/" subfolder.
This can be used to implement additional language variables specific for the design
or to overwrite the existing core language variables.

How Language files are loaded
First, LCC determines the users language. Then it will try to load a core
language file. If LCC can't find a core language file for the users language,
it will try to load the fallback language file "en.conf".

After that, LCC looks inside the selected designs directory for a language file
under the "lang" subfolder. If it finds a language file with an name equal
the loaded core language file name, it loads this design specific language file.
The design specific langauge file will overwrite language variables set by the core.

Automatic resolution from the core
Some language variables are used by the core to make dynamic lookups.
For formular elements, if something went wrong (bad input format or missing mandatory field),
The descriptive text of the field and the errortext to be shown is dynamically looked up.
This special variables therefore need to follow a specific naming sheme.
See the core language files for more information.
Return current item: Lightweight Club Calendar