OpenPrinting / system-config-printer

Graphical user interface for CUPS administration
GNU General Public License v2.0
163 stars 89 forks source link

Fallback to using LC_CTYPE if LC_MESSAGES is empty and fix _language use #108

Closed antlarr-suse closed 6 years ago

antlarr-suse commented 6 years ago

On openSUSE, LC_MESSAGES is not set by default, so fallback to LC_CTYPE in that case.

Also, self._language is not a list (unlike in other classes) but the language itself, so if we get the first element, we would be getting the first letter, not the language.

zdohnal commented 6 years ago

Hi, I'm sorry for being late. Patch looks ok, thank you for creating it!