Class LegacyCodes
Xoops\Core\Locale\LegacyCodes - locale code to/from XOOPS legacy language directory names
XOOPS 2.5.x and earlier used language defines for translations. These defines were stored in in a directory structure in this form, where modulename is the module's "dirname" and languagename is a lowercase english name for the language, i.e. "spanish" or "french": modules/modulename/language/languagename/ modules/modulename/language/languagename/admin.php modules/modulename/language/languagename/blocks.php modules/modulename/language/languagename/main.php modules/modulename/language/languagename/modinfo.php modules/modulename/language/languagename/help/help.html modules/modulename/language/languagename/mail_template/*.tpl
This class provides a translation from a local code, such as "fr_FR," to the legacy language name, so that language files in legacy modules can be loaded, if needed.
Package: Xoops
Category: Xoops\Core\Locale\LegacyCodes
Copyright: 2015 XOOPS Project (http://xoops.org)/
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Richard Griffith richard@geekwright.com
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Locale/LegacyCodes.php
public static
string[]
|
|
public static
string|null
|
#
getLocaleCode( string $languageDir )
Get locale code representing a legacy language directory name |