diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-12-13 19:17:48 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2017-12-14 11:31:50 +0100 |
commit | eaccbef4f4f9509152efb7613f2ff48a2d6e7a5e (patch) | |
tree | 458e6f8eebde83eb7e9667a3091e5dd1305eb3b2 /include | |
parent | 689176e9424e617a64edd5e233b750b2269a7275 (diff) |
lokdialog: Allow switching language of some of the ResMgr's.
This way, it is possible to have all the strings translated in dialogs even
when different users use different languages. [It was already possible
to have different languages previously, but not everything in the dialog has
switched - like the buttons at the bottom of the dialogs etc.]
Change-Id: I29a5ae6d31a370eec60397884200b684ec1bf5b9
Reviewed-on: https://gerrit.libreoffice.org/46417
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/resmgr.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tools/resmgr.hxx b/include/tools/resmgr.hxx index 024c745dbd23..0679818a0b8a 100644 --- a/include/tools/resmgr.hxx +++ b/include/tools/resmgr.hxx @@ -190,6 +190,9 @@ public: OUString ReadString(); OString ReadByteString(); + /// The locale of this ResMgr. + const LanguageTag& GetLocale() const; + static void SetReadStringHook( ResHookProc pProc ); static ResHookProc GetReadStringHook(); static void SetDefaultLocale( const LanguageTag& rLocale ); |