Coding standards
Security in ResourceSpace
Developer reference
Database
User api session functions
Geolocation functions
Storage test functions
Cli functions
Lang translation functions

lang_translation_input()

Description

Encode PHP packs using the keyed-object representation in the translation schema.

Parameters

ColumnTypeDefaultDescription
$value: mixed
: $value
&$tags ?array null: mixed { if is_array$value
$value mixed Pack value.

Return

mixed JSON-ready value.

Location

include/lang_translation_functions.php lines 41 to 44

Definition

 
function lang_translation_input(mixed $value): mixed
{
    return 
is_array($value) ? (object) array_map(lang_translation_input(...), $value) : $value;
}

This article was last updated 27th November 2026 18:35 Europe/London time based on the source file dated 27th November 2026 17:15 Europe/London time.