diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-02-01 22:39:43 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@novell.com> | 2011-02-02 14:33:30 +0100 |
commit | bd8f53d4aed31b9b423a13569ec71f9c4062bd05 (patch) | |
tree | c57a5f4d3dc036dc18a4e254fcd030234493b539 /sfx2 | |
parent | b36a77276898d95210b2f173fa1a56a28a558638 (diff) |
wikihelp: Do not check for existence of the localized help.
In case we do not have the help installed, it is up to the online service to
decide the fallback in case a language version is not available.
Signed-off-by: Thorsten Behrens <tbehrens@novell.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/sfxhelp.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index a6f22be9f7b7..e5fc8af222cc 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -113,7 +113,10 @@ void NoHelpErrorBox::RequestHelp( const HelpEvent& ) #define STARTERLIST 0 -rtl::OUString HelpLocaleString() +static bool impl_hasHelpInstalled(); + +/// Return the locale we prefer for displaying help +static rtl::OUString HelpLocaleString() { static rtl::OUString aLocaleStr; if (!aLocaleStr.getLength()) @@ -124,7 +127,7 @@ rtl::OUString HelpLocaleString() ::utl::ConfigManager::LOCALE ); aLocale >>= aLocaleStr; bool bOk = aLocaleStr.getLength() != 0; - if ( bOk ) + if ( impl_hasHelpInstalled() && bOk ) { rtl::OUString aBaseInstallPath; // utl::Bootstrap::PathStatus aBaseLocateResult = |