Function Module_admin_lang->find_lang_matches
Definitions
adminzone/pages/modules/admin_lang.php
- Finds equivalents for a given string, in a different language, by automatic searching of codes and content.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $old | string | No | No | required parameter | N/A | N/A | The language string we are searching for the equivalent of |
| $lang | LANGUAGE_NAME | No | No | required parameter | N/A | N/A | The language we want an equivalent in |
Returns
- The match (or blank if no match can be found)
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Finds equivalents for a given string, in a different language, by automatic searching of codes and content.
*
* @param string $old The language string we are searching for the equivalent of
* @param LANGUAGE_NAME $lang The language we want an equivalent in
* @return string The match (or blank if no match can be found)
*/
public function find_lang_matches(string $old, string $lang) : string
* Finds equivalents for a given string, in a different language, by automatic searching of codes and content.
*
* @param string $old The language string we are searching for the equivalent of
* @param LANGUAGE_NAME $lang The language we want an equivalent in
* @return string The match (or blank if no match can be found)
*/
public function find_lang_matches(string $old, string $lang) : string

