Class

LangLoader

Package: Core\Lang Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Loic ROUCHON horn@phpboost.com Version: PHPBoost 5.2 - last update: 2018 10 30 Since: PHPBoost 3.0 - 2009 09 29 Contributor: Julien BRISWALTER j1.seth@phpboost.com Located at: core/lang/LangLoader.class.php
Methods summary
public static
# set_locale( string $locale )

sets the language locale

public static string
# get_locale( )

Returns the current language locale

public static
public static
public static string
# get_message( string $message_id, string $filename, string $module = '' )
public static string[string]
# get( string $filename, string $module = '', string $forced_file = '' )

Retrieves the language file

$filename

in

/$module/lang/$locale/$filename.php

If module is empty, the kernel lang folder will be used

public static
# clear_lang_cache( )

clear the lang cache (for unit test only)