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:
committed by
Gerrit Code Review
parent
7414184593
commit
23763bd247
5
lib/jquery.uls/src/jquery.uls.data.js
Normal file
5
lib/jquery.uls/src/jquery.uls.data.js
Normal file
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user