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

--- Comment #21 from Andras Timar <[email protected]> ---
(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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to