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

lang_translation_load_pack()

Description

Load the entries defined by one pre-existing PHP language file.

Parameters

ColumnTypeDefaultDescription
$file: string []; if is_file$file
$file string Language file path.

Return

array Entries keyed by language key.

Location

include/lang_translation_functions.php lines 763 to 770

Definition

 
function lang_translation_load_pack(string $file): array
{
    
$lang = [];
    if (
is_file($file)) {
        require 
$file;
    }
    return 
$lang;
}

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.