Added autonyms directly to langdb.yaml

* Can add languages not in MW
* Can get rid of foo / bar names which include different scripts
* Can get rid of directionality marks
* PHP scripts to generate the jquery.uls.data.js is now independent of
  mediawiki and moved the scripts to lib/jquery.uls/data
* No pretty printing for the jquery.uls.data.js and added a 'do not edit' comment.
* Related changes in RL module definition and example html

Change-Id: I9a360dbdec4e9312aa5c76f801424ff95a8550d6
This commit is contained in:
Niklas Laxström
2012-08-12 19:28:23 +00:00
committed by Gerrit Code Review
parent 7414184593
commit 23763bd247
10 changed files with 579 additions and 1460 deletions

File diff suppressed because one or more lines are too long

View File

@@ -44,7 +44,7 @@
* @return string
*/
$.uls.data.autonym = function( language ) {
return $.uls.data.autonyms[language];
return ( $.uls.data.languages[language] && $.uls.data.languages[language][2] ) || language;
};
/**