get_available_languages Wordpress function


Description:

Get all available languages based on the presence of *.mo files in a given directory. The default directory is WP_LANG_DIR.


Syntax:


Arguments:

(string) $dir A directory in which to search for language files. The default directory is WP_LANG_DIR.


Return Type:

(array) Array of language codes or an empty array if no languages are present. Language codes are formed by stripping the .mo extension from the language file names.


Define At:

wp-includes/l10n.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_available_languages


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×