.languagesByScript* -> .getLanguagesByScript*
This commit is contained in:
@@ -154,7 +154,7 @@
|
|||||||
* @return array of strings (languages codes)
|
* @return array of strings (languages codes)
|
||||||
*/
|
*/
|
||||||
$.uls.data.getLanguagesInRegion = function( region ) {
|
$.uls.data.getLanguagesInRegion = function( region ) {
|
||||||
return $.uls.data.languagesInRegions( [ region ] );
|
return $.uls.data.getLanguagesInRegions( [ region ] );
|
||||||
};
|
};
|
||||||
|
|
||||||
$.uls.data.languagesInRegion = function( region ) { // deprecated
|
$.uls.data.languagesInRegion = function( region ) { // deprecated
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
* @return array of strings (languages codes)
|
* @return array of strings (languages codes)
|
||||||
*/
|
*/
|
||||||
$.uls.data.getLanguagesInRegionGroup = function( groupNum ) {
|
$.uls.data.getLanguagesInRegionGroup = function( groupNum ) {
|
||||||
return $.uls.data.languagesInRegions( $.uls.data.regionsInGroup( groupNum ) );
|
return $.uls.data.getLanguagesInRegions( $.uls.data.regionsInGroup( groupNum ) );
|
||||||
};
|
};
|
||||||
|
|
||||||
$.uls.data.languagesInRegionGroup = function( groupNum ) { // deprecated
|
$.uls.data.languagesInRegionGroup = function( groupNum ) { // deprecated
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
* @return associative array
|
* @return associative array
|
||||||
*/
|
*/
|
||||||
$.uls.data.getLanguagesByScriptGroupInRegion = function( region ) {
|
$.uls.data.getLanguagesByScriptGroupInRegion = function( region ) {
|
||||||
return $.uls.data.languagesByScriptGroupInRegions( [ region ] );
|
return $.uls.data.getLanguagesByScriptGroupInRegions( [ region ] );
|
||||||
};
|
};
|
||||||
|
|
||||||
$.uls.data.languagesByScriptGroupInRegion = function( region ) { // deprecated
|
$.uls.data.languagesByScriptGroupInRegion = function( region ) { // deprecated
|
||||||
@@ -249,7 +249,7 @@
|
|||||||
* @return associative array
|
* @return associative array
|
||||||
*/
|
*/
|
||||||
$.uls.data.getAllLanguagesByScriptGroup = function() {
|
$.uls.data.getAllLanguagesByScriptGroup = function() {
|
||||||
return $.uls.data.languagesByScriptGroupInRegions( $.uls.data.getAllRegions() );
|
return $.uls.data.getLanguagesByScriptGroupInRegions( $.uls.data.getAllRegions() );
|
||||||
};
|
};
|
||||||
|
|
||||||
$.uls.data.allLanguagesByScriptGroup = function() { // deprecated
|
$.uls.data.allLanguagesByScriptGroup = function() { // deprecated
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
|
|
||||||
search: function() {
|
search: function() {
|
||||||
var query = $.trim( this.$element.val() ),
|
var query = $.trim( this.$element.val() ),
|
||||||
languages = $.uls.data.languagesByScriptGroup( this.options.languages ),
|
languages = $.uls.data.getLanguagesByScriptGroup( this.options.languages ),
|
||||||
scriptGroup, langNum, langCode;
|
scriptGroup, langNum, langCode;
|
||||||
this.resultCount = 0;
|
this.resultCount = 0;
|
||||||
for ( scriptGroup in languages ) {
|
for ( scriptGroup in languages ) {
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
} else {
|
} else {
|
||||||
this.cache = {};
|
this.cache = {};
|
||||||
// Get the languages grouped by script group
|
// Get the languages grouped by script group
|
||||||
var languagesByScriptGroup = $.uls.data.languagesByScriptGroup( this.options.languages );
|
var languagesByScriptGroup = $.uls.data.getLanguagesByScriptGroup( this.options.languages );
|
||||||
for ( var scriptGroup in languagesByScriptGroup ) {
|
for ( var scriptGroup in languagesByScriptGroup ) {
|
||||||
// Get the languages for the script group
|
// Get the languages for the script group
|
||||||
var languages = languagesByScriptGroup[scriptGroup];
|
var languages = languagesByScriptGroup[scriptGroup];
|
||||||
|
|||||||
Reference in New Issue
Block a user