edit_languages.php
\file \brief Manage languages
Call: edit_languages.php?.... ... refresh=[langid] ... reparse all texts in lang ... del=[langid] ... do delete ... op=Save ... do insert new ... op=Change ... do update ... new=1 ... display new lang. screen ... chg=[langid] ... display edit screen
PHP version 8.1
Tags
Table of Contents
Functions
- edit_languages_alert_duplicate() : void
- Prepare a JavaScript code that checks for duplicate names in languages.
- edit_languages_refresh() : string
- Refresh sentence and text items from a specific language.
- edit_languages_delete() : string
- Delete a language.
- edit_languages_op_save() : string
- Save a new language to the database.
- edit_languages_op_change() : string
- Edit an existing text in the database.
- load_language() : Language
- Load a language object based in language ID.
- edit_languages_displayThirdPartyVoiceAPI() : void
- edit_language_form() : void
- Create the form for a language.
- get_wizard_selectoptions() : string
- Returns a dropdown menu of the different languages.
- edit_languages_new() : void
- Display a form to create a new language.
- edit_languages_change() : void
- Display a form to edit an existing language.
- edit_languages_display() : void
- Display the standard page of saved languages.
- edit_languages_do_page() : void
- Display a variation of the edit_language page.
Functions
edit_languages_alert_duplicate()
Prepare a JavaScript code that checks for duplicate names in languages.
edit_languages_alert_duplicate() : void
edit_languages_refresh()
Refresh sentence and text items from a specific language.
edit_languages_refresh(int $lid) : string
Parameters
- $lid : int
-
Language ID
Tags
Return values
string —Number of sentences and textitems refreshed
edit_languages_delete()
Delete a language.
edit_languages_delete(int $lid) : string
Parameters
- $lid : int
-
Language ID
Tags
Return values
string —Info on the number of languages deleted
edit_languages_op_save()
Save a new language to the database.
edit_languages_op_save() : string
Tags
Return values
string —Success or error message
edit_languages_op_change()
Edit an existing text in the database.
edit_languages_op_change(int $lid) : string
Parameters
- $lid : int
-
Language ID
Tags
Return values
string —Number of texts updated and items reparsed.
load_language()
Load a language object based in language ID.
load_language(int $lgid) : Language
Parameters
- $lgid : int
-
Language ID, if 0 load empty data.
Tags
Return values
Language —Created object
edit_languages_displayThirdPartyVoiceAPI()
edit_languages_displayThirdPartyVoiceAPI() : void
edit_language_form()
Create the form for a language.
edit_language_form(Language $language) : void
Parameters
- $language : Language
-
Language object
get_wizard_selectoptions()
Returns a dropdown menu of the different languages.
get_wizard_selectoptions(string $currentnativelanguage) : string
Parameters
- $currentnativelanguage : string
-
Default language
Return values
stringedit_languages_new()
Display a form to create a new language.
edit_languages_new() : void
edit_languages_change()
Display a form to edit an existing language.
edit_languages_change(int $lid) : void
Parameters
- $lid : int
-
Language ID
Tags
edit_languages_display()
Display the standard page of saved languages.
edit_languages_display(string $message) : void
Parameters
- $message : string
-
An information message to display.
Tags
edit_languages_do_page()
Display a variation of the edit_language page.
edit_languages_do_page() : void