summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--transex3/inc/export.hxx14
-rw-r--r--transex3/source/export.cxx6
-rw-r--r--transex3/source/export2.cxx10
-rw-r--r--transex3/source/merge.cxx5
4 files changed, 24 insertions, 11 deletions
diff --git a/transex3/inc/export.hxx b/transex3/inc/export.hxx
index 1286e85db600..02cc26a44258 100644
--- a/transex3/inc/export.hxx
+++ b/transex3/inc/export.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: export.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: nf $ $Date: 2001-07-31 13:12:25 $
+ * last change: $Author: nf $ $Date: 2002-04-04 13:43:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -187,11 +187,15 @@
#define CATALAN_ISO "ca"
#define CATALAN_INDEX 28
+#define THAI 66
+#define THAI_ISO "th"
+#define THAI_INDEX 29
+
// special language for l10n framework
#define EXTERN 99
-#define EXTERN_INDEX 29
+#define EXTERN_INDEX 30
-#define LANGUAGES 30
+#define LANGUAGES 31
#define LANGUAGE_ALLOWED( n ) (( n != 0xFFFF ) && ( Export::LanguageAllowed( Export::LangId[ n ] )) && \
(( Export::LangId[ n ] == 01 ) || ( Export::LangId[ n ] == 03 ) || ( Export::LangId[ n ] == 07 ) || \
@@ -201,7 +205,7 @@
( Export::LangId[ n ] == 48 ) || ( Export::LangId[ n ] == 49 ) || ( Export::LangId[ n ] == 55 ) || \
( Export::LangId[ n ] == 81 ) || ( Export::LangId[ n ] == 82 ) || ( Export::LangId[ n ] == 86 ) || \
( Export::LangId[ n ] == 88 ) || ( Export::LangId[ n ] == 90 ) || ( Export::LangId[ n ] == 96 ) || \
- ( Export::LangId[ n ] == 00 ) || ( Export::LangId[ n ] == 99 )))
+ ( Export::LangId[ n ] == 66 ) || ( Export::LangId[ n ] == 00 ) || ( Export::LangId[ n ] == 99 )))
#define GERMAN_LIST_LINE_INDEX LANGUAGES
#define LIST_REFID (GERMAN_LIST_LINE_INDEX+1)
diff --git a/transex3/source/export.cxx b/transex3/source/export.cxx
index cb00b72ed6d8..3dd6cd25ba71 100644
--- a/transex3/source/export.cxx
+++ b/transex3/source/export.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: export.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: nf $ $Date: 2001-10-19 10:20:01 $
+ * last change: $Author: nf $ $Date: 2002-04-04 13:44:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1253,6 +1253,8 @@ USHORT Export::GetLangIndex( const ByteString &rLang )
return HEBREW_INDEX;
else if ( sLang == "CATALAN" )
return CATALAN_INDEX;
+ else if ( sLang == "THAI" )
+ return THAI_INDEX;
else if ( sLang == "EXTERN" )
return EXTERN_INDEX;
diff --git a/transex3/source/export2.cxx b/transex3/source/export2.cxx
index 6e4d251b1caf..e414b49d04fc 100644
--- a/transex3/source/export2.cxx
+++ b/transex3/source/export2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: export2.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: nf $ $Date: 2002-01-14 14:11:04 $
+ * last change: $Author: nf $ $Date: 2002-04-04 13:44:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -144,6 +144,7 @@ USHORT Export::LangId[ LANGUAGES ] =
ARABIC,
HEBREW,
CATALAN,
+ THAI,
EXTERN
};
@@ -191,6 +192,7 @@ CharSet Export::GetCharSet( USHORT nLangId )
case ARABIC: return RTL_TEXTENCODING_MS_1256;
case HEBREW: return RTL_TEXTENCODING_MS_1255;
case CATALAN: return RTL_TEXTENCODING_MS_1252;
+ case THAI: return RTL_TEXTENCODING_UTF8;
case EXTERN: return RTL_TEXTENCODING_UTF8;
}
return 0xFFFF;
@@ -260,6 +262,8 @@ USHORT Export::GetLangByIsoLang( const ByteString &rIsoLang )
return HEBREW;
else if ( sLang == ByteString( CATALAN_ISO ).ToUpperAscii())
return CATALAN;
+ else if ( sLang == ByteString( THAI_ISO ).ToUpperAscii())
+ return THAI;
else if ( sLang == ByteString( sIsoCode99 ).ToUpperAscii())
return EXTERN;
@@ -299,6 +303,7 @@ ByteString Export::GetIsoLangByIndex( USHORT nIndex )
case ARABIC_INDEX: return ARABIC_ISO;
case HEBREW_INDEX: return HEBREW_ISO;
case CATALAN_INDEX: return CATALAN_ISO;
+ case THAI_INDEX: return THAI_ISO;
case EXTERN_INDEX: return sIsoCode99;
}
return "";
@@ -424,6 +429,7 @@ const ByteString Export::LangName[ LANGUAGES ] =
"arabic",
"hebrew",
"catalan",
+ "thai",
"extern"
};
diff --git a/transex3/source/merge.cxx b/transex3/source/merge.cxx
index a95fdc631035..45549657d5e5 100644
--- a/transex3/source/merge.cxx
+++ b/transex3/source/merge.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: merge.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: nf $ $Date: 2001-05-28 12:38:01 $
+ * last change: $Author: nf $ $Date: 2002-04-04 13:44:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -412,6 +412,7 @@ USHORT MergeDataFile::GetLangIndex( USHORT nId )
case ARABIC: return ARABIC_INDEX;
case HEBREW: return HEBREW_INDEX;
case CATALAN: return CATALAN_INDEX;
+ case THAI: return THAI_INDEX;
case EXTERN: return EXTERN_INDEX;
}
return 0xFFFF;