diff options
author | Nils Fuhrmann <nf@openoffice.org> | 2002-11-18 10:49:56 +0000 |
---|---|---|
committer | Nils Fuhrmann <nf@openoffice.org> | 2002-11-18 10:49:56 +0000 |
commit | 5a9b390e95cf314a7e86dc8319b4139fa9bf0fc5 (patch) | |
tree | 52d02d66be40625050e213a7e7eba0310b5f644b /transex3 | |
parent | 19b002fa12f8131f3e6bfad86aa5b93092965c0b (diff) |
Added support for hindi #105243#
Diffstat (limited to 'transex3')
-rw-r--r-- | transex3/inc/export.hxx | 19 | ||||
-rw-r--r-- | transex3/source/export2.cxx | 9 |
2 files changed, 19 insertions, 9 deletions
diff --git a/transex3/inc/export.hxx b/transex3/inc/export.hxx index 02cc26a44258..7e66756e4a89 100644 --- a/transex3/inc/export.hxx +++ b/transex3/inc/export.hxx @@ -2,9 +2,9 @@ * * $RCSfile: export.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: nf $ $Date: 2002-04-04 13:43:21 $ + * last change: $Author: nf $ $Date: 2002-11-18 11:49:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -191,21 +191,26 @@ #define THAI_ISO "th" #define THAI_INDEX 29 +#define HINDI 91 +#define HINDI_ISO "hi-IN" +#define HINDI_INDEX 30 + // special language for l10n framework #define EXTERN 99 -#define EXTERN_INDEX 30 +#define EXTERN_INDEX 31 -#define LANGUAGES 31 +#define LANGUAGES 32 -#define LANGUAGE_ALLOWED( n ) (( n != 0xFFFF ) && ( Export::LanguageAllowed( Export::LangId[ n ] )) && \ +#define LANGUAGE_ALLOWED( n ) (( n != 0xFFFF ) && ( Export::LanguageAllowed( Export::LangId[ n ] )) && \ (( Export::LangId[ n ] == 01 ) || ( Export::LangId[ n ] == 03 ) || ( Export::LangId[ n ] == 07 ) || \ - ( Export::LangId[ n ] == 30 ) || ( Export::LangId[ n ] == 31 ) || ( Export::LangId[ n ] == 33 ) || \ + ( Export::LangId[ n ] == 30 ) || ( Export::LangId[ n ] == 31 ) || ( Export::LangId[ n ] == 33 ) || \ ( Export::LangId[ n ] == 34 ) || ( Export::LangId[ n ] == 35 ) || ( Export::LangId[ n ] == 37 ) || \ ( Export::LangId[ n ] == 39 ) || ( Export::LangId[ n ] == 45 ) || ( Export::LangId[ n ] == 46 ) || \ ( 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 ] == 66 ) || ( Export::LangId[ n ] == 00 ) || ( Export::LangId[ n ] == 99 ))) + ( Export::LangId[ n ] == 66 ) || ( Export::LangId[ n ] == 91 ) || ( 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/export2.cxx b/transex3/source/export2.cxx index beee327ef88d..703d22d38fda 100644 --- a/transex3/source/export2.cxx +++ b/transex3/source/export2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: export2.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.21 $ * - * last change: $Author: nf $ $Date: 2002-06-26 13:06:47 $ + * last change: $Author: nf $ $Date: 2002-11-18 11:49:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -146,6 +146,7 @@ USHORT Export::LangId[ LANGUAGES ] = HEBREW, CATALAN, THAI, + HINDI, EXTERN }; @@ -233,6 +234,8 @@ USHORT Export::GetLangByIsoLang( const ByteString &rIsoLang ) return CATALAN; else if ( sLang == ByteString( THAI_ISO ).ToUpperAscii()) return THAI; + else if ( sLang == ByteString( HINDI_ISO ).ToUpperAscii()) + return HINDI; else if ( sLang == ByteString( sIsoCode99 ).ToUpperAscii()) return EXTERN; @@ -273,6 +276,7 @@ ByteString Export::GetIsoLangByIndex( USHORT nIndex ) case HEBREW_INDEX: return HEBREW_ISO; case CATALAN_INDEX: return CATALAN_ISO; case THAI_INDEX: return THAI_ISO; + case HINDI_INDEX: return HINDI_ISO; case EXTERN_INDEX: return sIsoCode99; } return ""; @@ -399,6 +403,7 @@ const ByteString Export::LangName[ LANGUAGES ] = "hebrew", "catalan", "thai", + "hindi", "extern" }; |