Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added some instructions for translators on some important strings

  • Loading branch information...
commit ce31ac9abd945571b6452b42c9de196c2ef7231a 1 parent d7d8758
moodler authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 admin/lang.php
View
6 admin/lang.php
@@ -201,6 +201,12 @@
unset($string);
include("$enlangdir/$currentfile");
$enstring = $string;
+ if ($currentlang != 'en') {
+ $enstring['thislanguage'] = "<< TRANSLATORS: Specify the name of your language here. If possible use Unicode Numeric Character References >>";
+ $enstring['thischarset'] = "<< TRANSLATORS: Specify the character set of your language here. Note that all text created while this language is active will be stored using this character set, so don't change it once you have set it. Example: iso-8859-1 >>";
+ $enstring['thisdirection'] = "<< TRANSLATORS: This string specifies the direction of your text, either left-to-right or right-to-left. Insert either 'ltr' or 'rtl' here. >>";
+ $enstring['parentlanguage'] = "<< TRANSLATORS: If your language has a Parent Language that Moodle should use when strings are missing from your language pack, then specify the code for it here. If you leave this blank then English will be used. Example: nl >>";
+ }
ksort($enstring);
unset($string);
Please sign in to comment.
Something went wrong with that request. Please try again.