haiku/headers/os/locale
Adrien Destugues 41853a8bbf locale kit: allow creating a catalog without entry_ref
The catalogs are loaded from separate files, so there is no need to have
an app entry_ref to load them, just a MIME type is enough.

The implementation is a bit simplified: only the default catalog format
is allowed (unlike when loading from entry_ref, where extra catalog
formats can be added in add-ons).

Unrelated cleanup: remove unused code to load catalogs from attributes
of an application. We considered this when designing the locale kit, but
using resources or separate files works better.

Use this in Cortex, where some strings are in a static library, so they
don't have an associated executable or library or add-on to identify
them. The code in Cortex is not complete localization, several parts
should use StringForRate, BStringFormat, etc.

Change-Id: I09be22b1f50891250c4497c51e1db8dcee279140
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3172
Reviewed-by: Kacper Kasper <kacperkasper@gmail.com>
2020-09-01 18:14:57 +00:00
..
tools Add B_TRANSLATE_MARK_CONTEXT to Catalog.h and tools/CollectingCatalog.h 2017-08-07 06:55:28 +02:00
Catalog.h locale kit: allow creating a catalog without entry_ref 2020-09-01 18:14:57 +00:00
CatalogData.h Fix instanciate_catalog prototype 2015-01-17 17:02:40 +01:00
Collator.h Remove deprecated BCollatorAddOn and implementations. 2017-05-29 08:52:44 +02:00
Country.h BCountry: add SetTo and InitCheck. 2019-12-02 12:32:15 +00:00
DateFormat.h BDateFormat: Properly map day values to ICU day-of-week. 2017-09-16 17:42:54 +02:00
DateTimeFormat.h Remove even more Locale Kit cruft. 2017-07-30 14:46:41 -04:00
DurationFormat.h BDurationFormat::Format docs, update method params 2017-11-10 14:59:33 -08:00
Format.h Remove even more Locale Kit cruft. 2017-07-30 14:46:41 -04:00
FormattingConventions.h locale: Fix 24 hour format for DateTimeFormats. 2016-06-18 18:09:56 -04:00
Language.h Update icu x86_64 package with namespace renaming enabled. 2015-05-10 21:52:36 +02:00
Locale.h
LocaleRoster.h locale: Fix another class/struct mixup. 2017-12-03 13:44:30 -05:00
LocaleStrings.h
NumberFormat.h BNumberFormat: add Parse() and GetSymbol(). 2017-07-23 11:40:25 +02:00
RelativeDateTimeFormat.h Implement a formatter for relative dates. 2017-08-25 21:14:27 +02:00
StringFormat.h BMessageFormat: Rename to BStringFormat. 2018-08-13 20:49:00 -04:00
TextEncoding.h BTextEncoding: even more style fixes. 2016-09-27 20:41:26 +02:00
TimeFormat.h Update icu x86_64 package with namespace renaming enabled. 2015-05-10 21:52:36 +02:00
TimeUnitFormat.h Fix style formatting issue in BTimeUnitFormat, update BDurationFormat accordingly. 2017-05-17 19:53:46 +02:00
TimeZone.h Update icu x86_64 package with namespace renaming enabled. 2015-05-10 21:52:36 +02:00
UnicodeChar.h