[Libreoffice-bugs] [Bug 80713] Missing string reference keys [KeyID] in Writer

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Dec 1 15:02:59 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=80713

--- Comment #21 from Andras Timar <timar74 at gmail.com> ---
(In reply to Gabor Kelemen from comment #20)
> $ git grep "Lightproof grammar checker" | grep name
> en/pythonpath/lightproof_impl_en.py:name = "Lightproof grammar checker
> (English)"
> hu_HU/pythonpath/lightproof_impl_hu_HU.py:name = "Lightproof grammar checker
> (magyar)"
> pt_BR/pythonpath/lightproof_impl_pt_BR.py:name = "Lightproof grammar checker
> (Portuguese Brazilian)"
> ru_RU/pythonpath/lightproof_impl_ru_RU.py:name = "Lightproof grammar checker
> (Russian)"
> 
> Not sure what could be a simple way to translate these.
> 

Currently we have (in case of e.g. Hungarian)

   # XServiceDisplayName
    def getServiceDisplayName(self, aLocale):
        return lightproof_impl_hu_HU.name

which returns:
    name = "Lightproof grammar checker (magyar)"

Option 1: translate with .properties files, like we localize LibreLogo
Option 2: use gettext (and beware of Python 2 vs. Python 3)
Option 3: (hack) localize in cui/source/options/optlingu.cxx where we use this
return value

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171201/70c1818e/attachment.html>


More information about the Libreoffice-bugs mailing list