mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 23:56:58 +02:00
Updated e107 Coding Standard (markdown)
@@ -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.
|
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]');
|
$srch = array('[x]','[y]','[z]');
|
||||||
$repl = array($changed,$errors,$unchanged);
|
$repl = array($changed,$errors,$unchanged);
|
||||||
$text = str_replace($srch,$repl,LAN_EXAMPLE_01);
|
$text = str_replace($srch,$repl,LAN_EXAMPLE_01);
|
||||||
|
Reference in New Issue
Block a user