Mercurial > repos > IBBoard
comparison Lang/Translation.cs @ 81:09f71d10c249
* Fix documentation - we're now using ISO codes (or should be, although we do handle invalid ones)
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 18 Apr 2010 14:09:16 +0000 |
parents | da339d10c5fe |
children | 5182df00c558 |
comparison
equal
deleted
inserted
replaced
80:a23c07137fa4 | 81:09f71d10c249 |
---|---|
280 | 280 |
281 item.Text = GetTranslation(item.Name, defaultText, replacements); | 281 item.Text = GetTranslation(item.Name, defaultText, replacements); |
282 } | 282 } |
283 | 283 |
284 /// <summary> | 284 /// <summary> |
285 /// Get the current local translation language. This is an arbitrary string used in the translation file's name and will not necessarily match the ISO language code. | 285 /// Get the current local translation language. This is the "language code" used by the translation and should match the ISO code for the language. |
286 /// </summary> | 286 /// </summary> |
287 /// <returns> | 287 /// <returns> |
288 /// The string used in the file name of the current local translation | 288 /// The string used as the language code of the current local translation |
289 /// </returns> | 289 /// </returns> |
290 public static string GetTranslationLanguage() | 290 public static string GetTranslationLanguage() |
291 { | 291 { |
292 return (currentTranslations != null ? currentTranslations.LanguageCode : ""); | 292 return (currentTranslations != null ? currentTranslations.LanguageCode : ""); |
293 } | 293 } |