diff options
author | Eike Rathke <erack@redhat.com> | 2013-07-11 18:47:22 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-07-11 19:15:51 +0200 |
commit | 96a5c866a94590c993629013c41f00b7d496f70e (patch) | |
tree | cc2ddf3f5612da8f9e777a67312c64b49fa63bc2 /sfx2/source/menu/thessubmenu.cxx | |
parent | a0ab8e389cca3db9fef0547925cdcc6d71e9b43d (diff) |
use LanguageTag to convert
Change-Id: Id32a8a75cd24a8acc4dada689a5688767de6745b
Diffstat (limited to 'sfx2/source/menu/thessubmenu.cxx')
-rw-r--r-- | sfx2/source/menu/thessubmenu.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sfx2/source/menu/thessubmenu.cxx b/sfx2/source/menu/thessubmenu.cxx index 287ed2000546..3c22420ba4fd 100644 --- a/sfx2/source/menu/thessubmenu.cxx +++ b/sfx2/source/menu/thessubmenu.cxx @@ -53,13 +53,7 @@ void SfxThesSubMenuHelper::GetLocale( xub_StrLen nDelimPos ) { String aIsoLang( rLookUpString.Copy( nDelimPos + 1) ); - const xub_StrLen nPos = aIsoLang.Search( '-' ); - if (nPos != STRING_NOTFOUND) - { - rLocale.Language = aIsoLang.Copy( 0, nPos ); - rLocale.Country = aIsoLang.Copy( nPos + 1 ); - rLocale.Variant = String::EmptyString(); - } + rLocale = LanguageTag( aIsoLang).getLocale(); } |