[vlc-devel] commit: Add some fallback for language we have a translation ( Christophe Mutricy )
git version control
git at videolan.org
Mon Sep 7 22:40:53 CEST 2009
vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Sun Sep 6 19:35:41 2009 +0100| [271354ef76c662ce8810d8091b7be0d84baeac88] | committer: Christophe Mutricy
Add some fallback for language we have a translation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=271354ef76c662ce8810d8091b7be0d84baeac88
---
src/text/wincp.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/text/wincp.c b/src/text/wincp.c
index 7cbcd10..ba69fe9 100644
--- a/src/text/wincp.c
+++ b/src/text/wincp.c
@@ -85,12 +85,14 @@ static const char *FindFallbackEncoding (const char *locale)
// -> Latin-1 instead
/* Cyrillic alphabet languages (ISO-8859-5) */
- static const char cyrillic[] = "be" "bg" "mk" "ru" "sr";
+ static const char cyrillic[] = "be" "bg" "mk" "ru" "sr" "mn";
+ // FIXME: cyrillic only true for mn in Mongolia
if (!locale_match (cyrillic, locale))
return "CP1251"; // KOI8, ISO-8859-5 and CP1251 are incompatible(?)
/* Arabic (ISO-8859-6) */
- if (!locale_match ("ar", locale))
+ static const char arabic[] = "ar" "ckb" "fa";
+ if (!locale_match (arabic, locale))
// FIXME: someone check if we should return CP1256 or ISO-8859-6
return "CP1256"; // CP1256 is(?) more common, but incompatible(?)
@@ -146,7 +148,9 @@ static const char *FindFallbackEncoding (const char *locale)
return "CP949"; // Microsoft non-standard superset of EUC-KR
// Thai
- if (!locale_match ("th", locale))
+ static const char thai[] = "th" "km" "lo";
+ //FIXME: afaik, khmer and lao are/were not in windows and are close to tahi
+ if (!locale_match (thai, locale))
return "TIS-620";
// Vietnamese (FIXME: more infos needed)
More information about the vlc-devel
mailing list