otsaloma / gaupol

Editor for text-based subtitle files
https://otsaloma.io/gaupol/
GNU General Public License v3.0
250 stars 35 forks source link

Fields in gaupol/enums.py never be translated #210

Closed tzwasd closed 1 year ago

tzwasd commented 1 year ago

These string fields can't be tanslated for anyway.

(1) Screenshot from main window: Screenshot_20230525_222906 (2) Screenshot from preference window: Screenshot_20230525_223027

otsaloma commented 1 year ago

Are you sure? Those are marked as translatable and are extracted to the POT and PO files.

https://github.com/otsaloma/gaupol/blob/master/gaupol/enums.py#L81-L85

I seem to have some locale trouble on my system, I can't test myself right now.

otsaloma commented 1 year ago

Sorry, this might be some kind of an import order issue. Maybe I have changed the import order at some point and broken this. I'll test once I have my system back in shape.

otsaloma commented 1 year ago

I confirm now, this has probably been broken a long time. I don't know anymore what I had originally thought about how this should work. I think I need to add some lazy gettext wrappers for the enums.