diff options
author | Eike Rathke <erack@redhat.com> | 2014-04-17 23:53:11 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-04-17 23:54:08 +0200 |
commit | e84331b4fdbbdca1e221c990578aaf889038d60a (patch) | |
tree | daf318ae3232d4db2c72b5ce6e381bcad83ac9a2 | |
parent | f3501ee89ff65cd40468e84f4d9fb52f12a67b0f (diff) |
introduce second static GetLanguageString() with explicit bool parameter
Change-Id: Ief79b8871701cc2e39e421145370feb246ce5e20
-rw-r--r-- | include/svtools/langtab.hxx | 1 | ||||
-rw-r--r-- | svtools/source/misc/langtab.cxx | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/svtools/langtab.hxx b/include/svtools/langtab.hxx index 7521313d9ef2..7f437e0f600f 100644 --- a/include/svtools/langtab.hxx +++ b/include/svtools/langtab.hxx @@ -47,6 +47,7 @@ public: LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const; static OUString GetLanguageString( const LanguageType eType ); + static OUString GetLanguageString( const LanguageType eType, bool bUserInterfaceSelection ); static LanguageType GetLanguageType( const OUString& rStr ); }; diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx index e5c7cc40b338..236f07483f02 100644 --- a/svtools/source/misc/langtab.cxx +++ b/svtools/source/misc/langtab.cxx @@ -154,7 +154,12 @@ const OUString SvtLanguageTable::GetString( const LanguageType eType, bool bUser OUString SvtLanguageTable::GetLanguageString( const LanguageType eType ) { - return theLanguageTable::get().GetString( eType ); + return theLanguageTable::get().GetString( eType, false ); +} + +OUString SvtLanguageTable::GetLanguageString( const LanguageType eType, bool bUserInterfaceSelection ) +{ + return theLanguageTable::get().GetString( eType, bUserInterfaceSelection ); } |