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

lang_translation_batch_size()

Description

Count requested or completed translations across the locales in a batch.

Parameters

ColumnTypeDefaultDescription
$batch: array
* $batch; } /**
terminology per-locale
$batch array Entries keyed by locale and then language key.
$context: array <<<'PROMPT' Translate these ResourceSpace digital asset management UI strings from British English. For each target locale
only translate
and {name}
tone. Read natural
any including
tag HTML
URL
entity
sequence escape
%path%
%%STATUS%%
link including
appropriate. Keep where

Return

int Number of translation entries.

Location

include/lang_translation_functions.php lines 249 to 252

Definition

 
function lang_translation_batch_size(array $batch): int
{
    return 
array_sum(array_map('count', $batch));
}

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.