diff options
author | Eike Rathke <erack@redhat.com> | 2013-07-12 02:22:16 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-07-12 02:22:49 +0200 |
commit | 15e35498e602e9a844ea4067044f8f8efd72755b (patch) | |
tree | 5d0871c5204b7c9dcda3e46d12b9fbd346a07652 /vcl/unx/gtk/a11y/atktextattributes.cxx | |
parent | ae32dd4f7d2dc4592c54390f75a5f3479c899f18 (diff) |
use LanguageTag to convert, and some FIXME-BCP47 comments
Change-Id: I63abfdfbd9f94993ce583ebd4cf8ef44d2068112
Diffstat (limited to 'vcl/unx/gtk/a11y/atktextattributes.cxx')
-rw-r--r-- | vcl/unx/gtk/a11y/atktextattributes.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/unx/gtk/a11y/atktextattributes.cxx b/vcl/unx/gtk/a11y/atktextattributes.cxx index a5612b43e39f..130c866cb3f3 100644 --- a/vcl/unx/gtk/a11y/atktextattributes.cxx +++ b/vcl/unx/gtk/a11y/atktextattributes.cxx @@ -707,15 +707,18 @@ Kerning2Stretch(const uno::Any& rAny) static gchar* Locale2String(const uno::Any& rAny) { + /* FIXME-BCP47: support language tags? And why is country lowercase? */ lang::Locale aLocale = rAny.get<lang::Locale> (); + LanguageTag aLanguageTag( aLocale); return g_strdup_printf( "%s-%s", - OUStringToOString( aLocale.Language, RTL_TEXTENCODING_ASCII_US).getStr(), - OUStringToOString( aLocale.Country, RTL_TEXTENCODING_ASCII_US).toAsciiLowerCase().getStr() ); + OUStringToOString( aLanguageTag.getLanguage(), RTL_TEXTENCODING_ASCII_US).getStr(), + OUStringToOString( aLanguageTag.getCountry(), RTL_TEXTENCODING_ASCII_US).toAsciiLowerCase().getStr() ); } static bool String2Locale( uno::Any& rAny, const gchar * value ) { + /* FIXME-BCP47: support language tags? */ bool ret = false; gchar ** str_array = g_strsplit_set( value, "-.@", -1 ); |