* Started to work on GUI improvements. Menu tabs introduced. Heading to fix MDL-8012
* "Number of missing strings" or "No missing strings" displayed in the missing mode. Fixes MDL-7029
This commit covers changes from 1.88.2.5 to 1.88.2.8 which were accidentally done on MOODLE_18_STABLE instead of HEAD.
There was a problem with pure substr() which could possibly produce XHTML parsing error - see an example:
substr('Marks & Spencer', 0, 9) -> 'Marks &am' ... is not XHTML compliance
The new function takes care of HTML entities during cutting the string.
There are only two columns in the translation table form now. Odd and even
rows' background alters.
See MDL-8334 and http://moodle.org/mod/forum/discuss.php?d=62800 for more info about this.
Because the tags <pre>...</pre> are used when displaying original English
version of missing texts, the screen may get very wide. This patch displays
only first 60 characters followed by '...'. This produces better output.
* "go to next/previous missing" links can be displayed (see LANG_DISPLAY_MISSING_LINKS)
* submit button may be repeated (see LANG_SUBMIT_REPEAT*)
* added (empty) "summary" attribute for the <table>'s
* added error_reporting(E_ALL ^ E_NOTICE); in "compare" mode (even in debug environment we know that missing keys are missing strings here, not bugs ;-)
* LANG_DEFAULT_FILE can be now set. moodle.php used to be opened automatically. As it was (and still is) one of the biggest files it usually took a long time to load the page even if you just want to choose the file to translate.
* added links from "missing" to "compare" mode page
* English strings are now key-sorted in "missing" mode
* list of files with missing strings is now displayed at the top of "missing" page
* A lot of changes to support translation of *_utf8_local langugage packs. Needs testing
* Merged with version by Mitsuhiro Yoshida - display icon links instead of text links (I have changed the position of arrow icons to not to be so close each other)
Modified /admin/lang.php to allow us to still use periods in language string keys. The lang.php script just replaces the periods with ##46# for the form inputs and then puts the periods back in before saving to the language file.
This means that there is no need to update language files at all. They will just work even with periods in the string keys.