Index: trunk/extensions/Babel/Babel.php |
— | — | @@ -6,6 +6,9 @@ |
7 | 7 | * Adds a parser function to allow automated generation of a babel userbox |
8 | 8 | * column with the ability to include custom templates. |
9 | 9 | * |
| 10 | + * TODO: |
| 11 | + * Supress category for babel level 0. |
| 12 | + * |
10 | 13 | * @addtogroup Extensions |
11 | 14 | * |
12 | 15 | * @link http://www.mediawiki.org/wiki/Extension:Babel |
— | — | @@ -228,7 +231,13 @@ |
229 | 232 | */ |
230 | 233 | $names = Language::getLanguageNames(); |
231 | 234 | |
232 | | - $name = $names[ $code ]; |
| 235 | + /* Temporary measure to supress PHP Notice until ISO 639-3 |
| 236 | + * to ISO 639-1 correlation is implemented and a system to |
| 237 | + * also try and get messages from CLDR is implemented. |
| 238 | + */ |
| 239 | + if( $names[ $code ] ) { |
| 240 | + $name = $names[ $code ]; |
| 241 | + } |
233 | 242 | |
234 | 243 | /* Generate the text displayed on the right hand side of the |
235 | 244 | * box. |