Class Lang
This class is used to manage translations
Methods summary
public static
|
|
public static
|
|
public static
boolean
|
|
public static
string
|
|
public static
|
#
addKeysToJavascript( string $keys )
Add language keys to Javascript. To add several keys, you can call one time this function, each parameters being a language key that wille be added to JavaScript |
public static
|
#
getUserTranslations( string $plugin, string $language )
Get the translations data the user customized on the interface |
public static
|
#
saveUserTranslations( string $plugin, string $language, array $data )
Save translated data the user customized on the interface |
Constants summary
string |
DEFAULT_LANGUAGE
|
#
'en'
|
string |
ORIGIN_CACHE_FILE
|
#
'lang-file-paths.php'
|
string |
CACHE_DIR
|
#
'lang/'
|
string |
TRANSLATIONS_DIR
|
#
'admin/translations/'
|