@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * Return an instance of the cache used for i18n data. |
| 121 | - * @return Zend_Cache |
|
| 121 | + * @return Zend_Cache_Core |
|
| 122 | 122 | */ |
| 123 | 123 | public static function get_cache() { |
| 124 | 124 | return SS_Cache::factory( |
@@ -2173,6 +2173,7 @@ discard block |
||
| 2173 | 2173 | |
| 2174 | 2174 | /** |
| 2175 | 2175 | * @param String |
| 2176 | + * @param string $name |
|
| 2176 | 2177 | * @return Zend_Translate |
| 2177 | 2178 | */ |
| 2178 | 2179 | public static function get_translator($name) { |
@@ -2186,6 +2187,7 @@ discard block |
||
| 2186 | 2187 | * @param Zend_Translate Needs to implement {@link i18nTranslateAdapterInterface} |
| 2187 | 2188 | * @param String If left blank will override the default translator. |
| 2188 | 2189 | * @param Int |
| 2190 | + * @param string $name |
|
| 2189 | 2191 | */ |
| 2190 | 2192 | public static function register_translator($translator, $name, $priority = 10) { |
| 2191 | 2193 | if (!is_int($priority)) throw new InvalidArgumentException("register_translator expects an int priority"); |
@@ -2315,7 +2317,7 @@ discard block |
||
| 2315 | 2317 | * |
| 2316 | 2318 | * @see get_locale_name() |
| 2317 | 2319 | * |
| 2318 | - * @param mixed $code Language code |
|
| 2320 | + * @param string $code Language code |
|
| 2319 | 2321 | * @param boolean $native If true, the native name will be returned |
| 2320 | 2322 | * @return Name of the language |
| 2321 | 2323 | */ |
@@ -2472,6 +2474,7 @@ discard block |
||
| 2472 | 2474 | * |
| 2473 | 2475 | * Note: Does not check for {@link $allowed_locales}. |
| 2474 | 2476 | * |
| 2477 | + * @param string $locale |
|
| 2475 | 2478 | * @return boolean |
| 2476 | 2479 | */ |
| 2477 | 2480 | public static function validate_locale($locale) { |