MrGlockenspiel / activate-linux

The "Activate Windows" watermark ported to Linux
GNU General Public License v3.0
4.38k stars 92 forks source link

Language Override #195

Closed Ruby-Dragon closed 1 month ago

Ruby-Dragon commented 7 months ago

If I want my watermark to be in German, but I don't want my system language to be in German, the only option right now is to manually add the German translation in as the Title and Subtitle. To solve this problem, I propose that a language override is added to allow the user to specify what language should be used. I am attempting to implement it right now, but the current setup for i18n makes this kind of a pain.

MrGlockenspiel commented 7 months ago

you should be able to use env variables to override it, i.e. LANG=de_DE.utf8 activate-linux

Ruby-Dragon commented 7 months ago

Interestingly, trying with fr_FR works, but de_DE does not

MrGlockenspiel commented 7 months ago

both seem to work fine for me

Ruby-Dragon commented 7 months ago

strange. Still, I think that allowing the language to be overridden may be helpful as it may make it easier for people to change the language without having to figure out the env variable trick.

Ruby-Dragon commented 7 months ago

Can somebody please test my code here and maybe find why it isn't working https://github.com/Ruby-Dragon/activate-linux/tree/langoverride ? The error is coming from the Wayland code, but I have not changed ANYTHING even close to that. This should allow the user to override their system language with the -o flag, but it gives this error instead: zwlr_layer_surface_v1@9: error 1: the layer surface has a width of 0 but its anchor doesn't include the left and the right screen edge.

AHOHNMYC commented 7 months ago

@Ruby-Dragon absolutely useless as now activate-linux uses default standard and well known LANG variable.