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

Updated e107 Coding Standard (markdown)

Moc
2013-03-24 11:07:41 -07:00
parent 148f39fba0
commit a8e0a4ffb7

@@ -330,7 +330,7 @@ Avoid duplicating terms, particularly in the admin area. If coding for admin, al
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.
define('LAN_EXAMPLE_01','Update results: [x] records changed, [y] errors, [z] not changed');
define("LAN_EXAMPLE_01", "Update results: [x] records changed, [y] errors, [z] not changed");
$srch = array('[x]','[y]','[z]');
$repl = array($changed,$errors,$unchanged);
$text = str_replace($srch,$repl,LAN_EXAMPLE_01);