Exemplo n.º 1
0
 /**
  * Loads the translations into the system.
  */
 private static function _loadTranslations($language)
 {
     // no time strings loaded? load them and store it all in static variables
     if (self::$timeAgoStrings == NULL || self::$language != $language) {
         include __DIR__ . '/translations/' . $language . '.php';
         // storing the time strings in the current object
         self::$timeAgoStrings = $timeAgoStrings;
         // loads the language files
         if (self::$timeAgoStrings == NULL) {
             error_log('Could not load language file for language ' . $language . '. Please ensure that the file exists in ' . __DIR__ . 'translations/' . $language . '.php');
         }
     }
     // storing the language
     self::$language = $language;
 }