phpBB API Documentation
Class

acp_language

class acp_language

Properties

$u_action
$main_files
$language_header
$lang_header
$language_file
$language_directory

Methods

main($id, $mode)

default_variables()

Set default language variables/header

get_filename($lang_iso, $directory, $filename, $check_store = false, $only_return_filename = false)

Get filename/location of language file

add_to_archive($compress, $filelist, $lang_iso, $directory = '')

Add files to archive

add_input_field()

Little helper to add some hardcoded template bits

print_language_entries($lang_ary, $key_prefix = '', $input_field = true)

Print language entries

compare_language_files($source_lang, $dest_lang, $directory, $file)

Compare two language files

prepare_lang_entry($text, $store = true)

Return language string value for storage

format_lang_array($key, $value, $tabs = ' ')

Format language array for storage

Details

at line 32
public main($id, $mode)

Parameters

$id
$mode

at line 1179
public default_variables()

Set default language variables/header

at line 1233
public get_filename($lang_iso, $directory, $filename, $check_store = false, $only_return_filename = false)

Get filename/location of language file

Parameters

$lang_iso
$directory
$filename
$check_store
$only_return_filename

at line 1259
public add_to_archive($compress, $filelist, $lang_iso, $directory = '')

Add files to archive

Parameters

$compress
$filelist
$lang_iso
$directory

at line 1277
public add_input_field()

Little helper to add some hardcoded template bits

at line 1306
public print_language_entries($lang_ary, $key_prefix = '', $input_field = true)

Print language entries

Parameters

$lang_ary
$key_prefix
$input_field

at line 1385
public compare_language_files($source_lang, $dest_lang, $directory, $file)

Compare two language files

Parameters

$source_lang
$dest_lang
$directory
$file

at line 1424
public prepare_lang_entry($text, $store = true)

Return language string value for storage

Parameters

$text
$store

at line 1440
public format_lang_array($key, $value, $tabs = ' ')

Format language array for storage

Parameters

$key
$value
$tabs