Languages

File Types

Used site-wide - for example, in plugin.xml, a xxxxx_menu.php or e_xxxxxx.php file.

Defining Language Terms aka 'LANS'

Avoid duplicating terms, particularly in the admin area. If defining terms for admin, always search lan_admin.php for existing LANs which may match what you require. Never use HTML or URLs inside LAN definitions. Use double quotes within the defines and use str_replace() for variables where needed. See the examples below:

Good:

define("LAN_XXX", "Thank you Firstname");define("LAN_XXX", "Go to [x] to see the results."); // Good - replace [ and ] with <a href='...'> and </a> using str_replace()define("LAN_XXX", "I want to [quote] here"); // Good - replace [ and ] with " " using str_replace()

Avoid short language strings for words such as 'and', 'to' and so on. There aren't always equivalents in other languages. If embedding values into a phrase, use substitution. Avoid using substitution terms which are real words or known bbcodes.