public static function init(common_ext_Extension $extension, $langCode)
    {
    	// if the langCode is empty do nothing
    	if (empty($langCode)){
    		throw new Exception("Language is not defined");
    	}
    	
		//init the ClearFw l10n tools
        $translations = tao_models_classes_LanguageService::singleton()->getServerBundle($langCode);
        l10n::init($translations);

        $serviceManager = \oat\oatbox\service\ServiceManager::getServiceManager();
        $extraPoService = $serviceManager->get(\oat\tao\model\i18n\ExtraPoService::SERVICE_ID);
        $extraPoCount = $extraPoService->requirePos();
    }
public static function init(common_ext_Extension $extension, $langCode)
    {
    	// if the langCode is empty do nothing
    	if (empty($langCode)){
    		throw new Exception("Language is not defined");
    	}
    	
		//init the ClearFw l10n tools
        $translations = tao_models_classes_LanguageService::singleton()->getServerBundle($langCode);
        l10n::init($translations);

        $serviceManager = \oat\oatbox\service\ServiceManager::getServiceManager();
        $extraPoService = $serviceManager->get(\oat\tao\model\i18n\ExtraPoService::SERVICE_ID);
        $extraPoCount = $extraPoService->requirePos();
    }
public static function init ( common_ext_Extension $ extension , $ langCode ) { // if the langCode is empty do nothing if ( empty ( $ langCode ) ) { throw new Exception ( "Language is not defined" ) ; } //init the ClearFw l10n tools $ translations = tao_models_classes_LanguageService :: singleton ( ) -> getServerBundle ( $ langCode ) ; l10n :: init ( $ translations ) ; $ serviceManager = \ oat \ oatbox \ service \ ServiceManager :: getServiceManager ( ) ; $ extraPoService = $ serviceManager -> get ( \ oat \ tao \ model \ i18n \ ExtraPoService :: SERVICE_ID ) ; $ extraPoCount = $ extraPoService -> requirePos ( ) ; }
Load the translation strings

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  common_ext_Extension $extension
@param  string langCode
@return mixed
Load the translation strings