1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Updated e107 Coding Standard (markdown)

CaMer0n
2012-11-27 20:14:53 -08:00
parent 294b6271c9
commit 779e0cf81e

@@ -292,6 +292,14 @@ To check whether a particular plugin is installed, use function e107::isInstalle
## Language Files and LANS
To load a language file from the current theme's directory:
e107::lan('theme'); // loads e107_themes/CURRENT_THEME/languages/English.php (when English is selected)
To load a language file from a plugin folder:
e107::lan('gallery'); // loads e107_plugins/gallery/languagues/English.php (when English is selected)
Avoid duplicating terms, particularly in the admin area. If coding for admin, always search lan_admin.php and the lan_xxxx.php of the specific page you are working on for existing LANs which may match what you need translated. Avoid using HTML or Urls inside LAN definitions.
**Good:**