/haiku/src/tests/kits/locale/ |
H A D | LanguageTest.cpp | 31 BLanguage language("jp"); in TestLanguageParseJapanese() local 34 CPPUNIT_ASSERT_EQUAL(BString("jp"), language.ID()); in TestLanguageParseJapanese() 35 CPPUNIT_ASSERT_EQUAL(BString("jp"), language.Code()); in TestLanguageParseJapanese() 36 CPPUNIT_ASSERT_EQUAL(BString(""), language.ScriptCode()); in TestLanguageParseJapanese() 37 CPPUNIT_ASSERT_EQUAL(BString(""), language.CountryCode()); in TestLanguageParseJapanese() 47 BLanguage language("fr_FR"); in TestLanguageParseFrenchWithCountry() local 50 CPPUNIT_ASSERT_EQUAL(BString("fr_FR"), language.ID()); in TestLanguageParseFrenchWithCountry() 51 CPPUNIT_ASSERT_EQUAL(BString("fr"), language.Code()); in TestLanguageParseFrenchWithCountry() 52 CPPUNIT_ASSERT_EQUAL(BString(""), language.ScriptCode()); in TestLanguageParseFrenchWithCountry() 53 CPPUNIT_ASSERT_EQUAL(BString("FR"), language.CountryCode()); in TestLanguageParseFrenchWithCountry() [all …]
|
H A D | DateFormatTest.cpp | 33 const char* language; in TestCustomFormat() member 62 for (int i = 0; tests[i].language != NULL; i++) in TestCustomFormat() 66 BLanguage language(tests[i].language); in TestCustomFormat() local 73 BDateTimeFormat format(language, formatting); in TestCustomFormat() 87 BDateTimeFormat format(language, formatting); in TestCustomFormat() 100 BDateTimeFormat format(language, formatting); in TestCustomFormat() 117 const char* language; in TestFormat() member 141 for (int i = 0; values[i].language != NULL; i++) { in TestFormat() 144 BLanguage language(values[i].language); in TestFormat() local 147 BDateFormat dateFormat(language, formatting); in TestFormat() [all …]
|
H A D | RelativeDateTimeFormatTest.cpp | 58 const char* language; in TestFormat() member 99 for (int i = 0; values[i].language != NULL; i++) { in TestFormat() 103 BLanguage language(values[i].language); in TestFormat() local 105 BRelativeDateTimeFormat format(language, formatting); in TestFormat()
|
/haiku/src/kits/locale/ |
H A D | Format.cpp | 24 BFormat::BFormat(const BLanguage& language, in BFormat() argument 27 _Initialize(language, conventions); in BFormat() 56 BLanguage language; in _Initialize() local 62 fInitStatus = locale.GetLanguage(&language); in _Initialize() 66 return _Initialize(language, conventions); in _Initialize() 71 BFormat::_Initialize(const BLanguage& language, in _Initialize() argument 75 fLanguage = language; in _Initialize()
|
H A D | Locale.cpp | 15 BLocale::BLocale(const BLanguage* language, in BLocale() argument 23 if (language != NULL) in BLocale() 24 fLanguage = *language; in BLocale() 85 BLocale::GetLanguage(BLanguage* language) const in GetLanguage() 87 if (!language) in GetLanguage() 94 *language = fLanguage; in GetLanguage()
|
H A D | Catalog.cpp | 30 BCatalog::BCatalog(const entry_ref& catalogOwner, const char* language, in BCatalog() argument 36 SetTo(catalogOwner, language, fingerprint); in BCatalog() 40 BCatalog::BCatalog(const char* signature, const char* language) in BCatalog() argument 45 SetTo(signature, language); in BCatalog() 192 BCatalog::SetTo(const entry_ref& catalogOwner, const char* language, in SetTo() argument 201 language, fingerprint); in SetTo() 208 BCatalog::SetTo(const char* signature, const char* language) in SetTo() argument 216 language); in SetTo()
|
H A D | MutableLocaleRoster.cpp | 140 const char* language) in CreateCatalog() argument 142 if (!type || !signature || !language) in CreateCatalog() 156 BCatalogData* catalog = info->fCreateFunc(signature, language); in CreateCatalog() 179 const char* language, int32 fingerprint) const in LoadCatalog() argument 193 if (language != NULL) { in LoadCatalog() 195 languages.AddString("language", language); in LoadCatalog() 256 const char* language) const in LoadCatalog() 263 if (language != NULL) { in LoadCatalog() 265 languages.AddString("language", language); in LoadCatalog()
|
H A D | TimeZone.cpp | 43 BTimeZone::BTimeZone(const char* zoneID, const BLanguage* language) in BTimeZone() argument 50 SetTo(zoneID, language); in BTimeZone() 237 BTimeZone::SetLanguage(const BLanguage* language) in SetLanguage() argument 239 return SetTo(fZoneID, language); in SetLanguage() 244 BTimeZone::SetTo(const char* zoneID, const BLanguage* language) in SetTo() argument 261 if (language != NULL) { in SetTo() 262 fICULocale = new Locale(language->Code()); in SetTo()
|
H A D | LocaleRoster.cpp | 69 country_code_for_language(const BLanguage& language) in country_code_for_language() argument 71 if (language.IsCountrySpecific()) in country_code_for_language() 72 return language.CountryCode(); in country_code_for_language() 76 switch ((tolower(language.Code()[0]) << 8) | tolower(language.Code()[1])) { in country_code_for_language() 119 return language.Code(); in country_code_for_language() 187 BLanguage* language = new(std::nothrow) BLanguage(languageCode); in GetLanguage() local 188 if (language == NULL) in GetLanguage() 191 *_language = language; in GetLanguage() 425 BLanguage language(languageCode); in GetFlagIconForLanguage() local 426 const char* countryCode = country_code_for_language(language); in GetFlagIconForLanguage()
|
/haiku/headers/private/locale/ |
H A D | LanguagePrivate.h | 14 Private(const BLanguage* language = NULL) 16 fLanguage(language) in fLanguage() argument 21 SetTo(const BLanguage* language) in SetTo() argument 23 fLanguage = language; in SetTo()
|
H A D | DefaultCatalog.h | 27 DefaultCatalog(const entry_ref &catalogOwner, const char *language, 33 const char *language); 50 const char *language, uint32 fingerprint); 52 const char *language);
|
H A D | PlainTextCatalog.h | 21 PlainTextCatalog(const entry_ref& owner, const char *language, 25 const char *language); 37 const char *language, uint32 fingerprint);
|
H A D | MutableLocaleRoster.h | 53 const char* language = NULL, 56 const char* language = NULL) const; 61 const char* language);
|
/haiku/src/apps/haikudepot/util/ |
H A D | LocaleUtils.cpp | 173 BString language; in _DeriveSystemDefaultLanguage() local 174 if (preferredLanguages.FindString("language", 0, &language) == B_OK) in _DeriveSystemDefaultLanguage() 175 return LanguageRef(new Language(language, language, true)); in _DeriveSystemDefaultLanguage() 219 LanguageRef language = repository->LanguageAtIndex(i); in _IndexOfBestMatchingLanguage() local 220 if (0 == StringUtils::NullSafeCompare(code, language->Code()) in _IndexOfBestMatchingLanguage() 221 && 0 == StringUtils::NullSafeCompare(countryCode, language->CountryCode())) { in _IndexOfBestMatchingLanguage() 229 LanguageRef language = repository->LanguageAtIndex(i); in _IndexOfBestMatchingLanguage() local 230 if (0 == StringUtils::NullSafeCompare(code, language->Code())) in _IndexOfBestMatchingLanguage()
|
H A D | StorageUtils.h | 48 static status_t DumpExportReferenceDataPath(BPath& path, const LanguageRef language); 49 static status_t DumpExportRepositoryDataPath(BPath& path, const LanguageRef language); 51 const LanguageRef language);
|
/haiku/src/tools/locale/ |
H A D | PlainTextCatalog.cpp | 76 const char *language, uint32 fingerprint) in PlainTextCatalog() argument 78 HashMapCatalog("", language, fingerprint) in PlainTextCatalog() 86 language, strerror(fInitCheck)); in PlainTextCatalog() 96 const char *language) in PlainTextCatalog() argument 98 HashMapCatalog(signature, language, 0), in PlainTextCatalog() 331 PlainTextCatalog::Instantiate(const entry_ref &owner, const char *language, in Instantiate() argument 335 = new(std::nothrow) PlainTextCatalog(owner, language, fingerprint); in Instantiate() 348 instantiate_catalog(const entry_ref &owner, const char *language, in instantiate_catalog() argument 351 return PlainTextCatalog::Instantiate(owner, language, fingerprint); in instantiate_catalog() 356 create_catalog(const char *signature, const char *language) in create_catalog() argument [all …]
|
H A D | DefaultCatalog.cpp | 71 const char *language, uint32 fingerprint) in DefaultCatalog() argument 73 HashMapCatalog("", language, fingerprint) in DefaultCatalog() 78 language, strerror(fInitCheck)); in DefaultCatalog() 100 const char *language) in DefaultCatalog() argument 102 HashMapCatalog(signature, language, 0), in DefaultCatalog() 388 DefaultCatalog::Instantiate(const entry_ref &catalogOwner, const char *language, in Instantiate() argument 392 = new(std::nothrow) DefaultCatalog(catalogOwner, language, fingerprint); in Instantiate() 402 DefaultCatalog::Create(const char *signature, const char *language) in Create() argument 405 = new(std::nothrow) DefaultCatalog("", signature, language); in Create()
|
/haiku/docs/user/locale/ |
H A D | Locale.dox | 30 A locale is defined by the combination of a country and a language. 38 or parsing of dates, times, and numbers, in the natural language of 46 \fn BLocale::BLocale(const BLanguage* language, 49 \a language and \a conventions. 111 \fn status_t BLocale::GetLanguage(BLanguage* language) const 112 \brief Sets \a language object to the default language for the BLocale. 114 \param language A pointer to a BLanguage object to fill out. 118 \retval B_BAD_VALUE \c NULL \a language object passed in. 145 \brief Gets the language string for the locale. 147 \param id The locale \a id to get the language of. [all …]
|
H A D | Catalog.dox | 32 translation of this string in the user's specified language, if available. 65 system so that the user get strings in the language he's the most fluent 68 For example, if the user sets his language preferences as French(France), 79 language in the source code. This avoids mixing 3 or more languages in the 97 \fn BCatalog::BCatalog(const entry_ref& catalogOwner, const char* language, 101 If you don't specify a language, the system default list will be used. 102 The language is passed here as a 2 letter ISO code. 114 \param language The language of the catalog to load. If \c NULL, the user 125 \fn BCatalog::BCatalog(const char* signature, const char* language) 128 If you don't specify a language, the system default list will be used. [all …]
|
/haiku/src/data/bin/ |
H A D | userguide | 3 language=$(locale -l) 6 languageBase=$(echo $language | awk -F_ '{print $1}') 11 localizedUserGuide=$userGuideDir/"$language"/contents.html
|
H A D | quicktour | 3 language=$(locale -l) 6 languageBase=$(echo $language | awk -F_ '{print $1}') 10 localizedQuicktour=/boot/system/documentation/welcome/"$language"/quicktour.html
|
/haiku/data/bin/ |
H A D | welcome | 3 language=$(locale -l) 6 languageBase=$(echo $language | awk -F_ '{print $1}') 10 localizedWelcomeFile=/boot/system/documentation/welcome/welcome_"$language".html
|
/haiku/src/apps/firstbootprompt/ |
H A D | BootPromptWindow.cpp | 83 LanguageItem(const char* label, const char* language) in LanguageItem() argument 86 fLanguage(language) in LanguageItem() 279 BLanguage language(item->Language()); in MessageReceived() local 280 BMenuItem* keymapItem = _KeymapItemForLanguage(language); in MessageReceived() 349 BString language; in _InitCatalog() local 350 if (BLocaleRoster::Default()->GetCatalog()->GetLanguage(&language) == B_OK) in _InitCatalog() 351 settings.AddString("language", language.String()); in _InitCatalog() 355 BFormattingConventions conventions(language.String()); in _InitCatalog() 449 BLanguage* language; in _PopulateLanguages() local 450 if (BLocaleRoster::Default()->GetLanguage(languageID, &language) in _PopulateLanguages() [all …]
|
/haiku/src/add-ons/locale/catalogs/plaintext/ |
H A D | Catalog.cpp | 76 PlainTextCatalog::PlainTextCatalog(const entry_ref &owner, const char *language, in PlainTextCatalog() argument 79 HashMapCatalog("", language, fingerprint) in PlainTextCatalog() 137 const char *language) in PlainTextCatalog() argument 139 HashMapCatalog(signature, language, 0), in PlainTextCatalog() 380 PlainTextCatalog::Instantiate(const entry_ref& owner, const char *language, in Instantiate() argument 384 = new(std::nothrow) PlainTextCatalog(owner, language, fingerprint); in Instantiate() 394 instantiate_catalog(const entry_ref& owner, const char *language, in instantiate_catalog() argument 398 = new(std::nothrow) PlainTextCatalog(owner, language, fingerprint); in instantiate_catalog() 408 create_catalog(const char *signature, const char *language) in create_catalog() argument 411 = new(std::nothrow) PlainTextCatalog("emptycat", signature, language); in create_catalog()
|
/haiku/headers/os/locale/ |
H A D | TimeZone.h | 25 const BLanguage* language = NULL); 42 const BLanguage* language = NULL); 44 status_t SetLanguage(const BLanguage* language);
|