pop-os / desktop-icons-ng

Packaging of https://gitlab.com/rastersoft/desktop-icons-ng
GNU General Public License v3.0
6 stars 7 forks source link

Packaged version doesn't respect language settings #4

Closed jacobgkau closed 3 years ago

jacobgkau commented 3 years ago

The extension's right-click menu and preferences dialog do not respect the system's language settings (they are always in English, even if the language was changed in Settings -> Region & Language and the session was restarted.) If I install the extension from extensions.gnome.org, it does respect the language settings.

Tested with Portuguese (Brazil) and French, both of which have translation files in the package.

ids1024 commented 3 years ago

Strange. The translation files are installed, and work in Python:

import gettext
gettext.translation('ding', languages=['es']).gettext('Show a context menu item to delete permanently')

I guess it isn't loading translations from the normal system directory for some reason...

ids1024 commented 3 years ago

Ah yes, I suppose it's the way the bindtextdomain call is written. Should be easy to fix.