/** * method: add * * todo: write documentation */ public static function add($langCode, $langName, $default = false) { self::$supported[$langCode] = $langName; /* NOTE: Set the default language to the first language added OR if you passed in a language (which will override anything you set automatically) */ if (!self::$default || $default) { self::$default = $langCode; } }