LocaleId doesn't supported locale variant
Issue #459
resolved
net.sf.okapi.common.LocaleId doesn't support String with '@' char. as it is valid in GetText. e.g sr@latin
https://www.gnu.org/software/gettext/manual/html_node/Locale-Names.html
'Some locale names use ‘ll_CC.@variant’'
Comments (5)
-
-
It does support "sr@latn", but you need to use LocaleId.fromPOSIXLocale("sr@latin")
Locale ids with @ are a POSIX convention.
Even the parent topic of the link provided in the initial report is "Setting the POSIX Locale"
And with the LocaleId update to use ICU the rs@latin is also properly mapped to sr-Latn.
-
@nmihai_2000 It sounds like we can close this?
-
Yes, thank you :-) Mihai
-
- changed status to resolved
Hooray
- Log in to comment
Java 7 now has much better locale support. We originally started with Java 5 and decided not to use the built-in Java Locale class. We should look at the Java 7 locale class and create a thin LocaleId wrapper around it to get the functionality we need