Internationalisation (LAN)
Introduction
Your website can be used in different languages. In order for your plugin or theme areas to be displayed in a specific language, it needs to be translated.
Language files
File Types
There are three types of language files that can be used in your plugin.
Defining Language Terms
Language Terms are more commonly known as LAN's. You can define LAN's by using PHP constants:
Best practices
Avoid duplicating terms, particularly in the admin area.
Never use HTML or URLs inside LAN definitions.
Avoid short language strings for common words
Examples are words such as 'and', 'to' and so on. There aren't always equivalents in other languages.
Avoid using substitution terms which are real words or known BBCodes.
Examples
Good
Bad
Substitution
Loading Language Files
e107::lan()
To load a language file from a plugin folder, use e107::lan()
:
This will include the following paths:
Last updated