2024.8.23
|
Static Public Member Functions | |
static | getActionSwitchLang ($lang) |
static | getMenuLang () |
static | process () |
Data Fields | |
const | MENU = 'lang' |
Class TplAppLang
This class provides methods to generate and manage language-related menu items and actions within the Bearsampp application. It includes functionalities for creating language switch actions and processing language menus.
Definition at line 17 of file class.tpl.app.lang.php.
|
static |
Generates the action to switch the application language.
This method creates the action string for switching the application language. It includes commands to reload the application after the language switch. The action string is used to define what happens when the switch language action is triggered.
string | $lang | The language code to switch to. |
Definition at line 84 of file class.tpl.app.lang.php.
References TplAppReload\getActionReload(), TplApp\getActionRun(), and Action\SWITCH_LANG.
|
static |
Generates the language menu items and associated actions.
This method creates menu items for each available language and defines the actions to be taken when a language menu item is selected. It uses the global language object to retrieve the list of available languages and the current language.
@global object $bearsamppLang Provides language support for retrieving language-specific values.
Definition at line 50 of file class.tpl.app.lang.php.
References $bearsamppLang, TplApp\getActionMulti(), TplAestan\GLYPH_CHECK, TplApp\SECTION_CALL, TplApp\SECTION_CONTENT, and Action\SWITCH_LANG.
|
static |
Processes and generates the language menu.
This method generates the language menu for the application, including the available languages and the actions to be taken when a language is selected.
@global object $bearsamppLang Provides language support for retrieving language-specific values.
Definition at line 32 of file class.tpl.app.lang.php.
References $bearsamppLang, TplApp\getMenu(), and Lang\LANG.
Referenced by TplApp\getSectionMenuRight().
const TplAppLang::MENU = 'lang' |
Definition at line 20 of file class.tpl.app.lang.php.