jluttine / rofi-power-menu

Configurable power menu mode for Rofi and dmenu
MIT License
422 stars 53 forks source link

Menu translation #28

Open xt0ph opened 8 months ago

xt0ph commented 8 months ago

Is there a plan to translate the menu entries? I could offer you a PR if you want.

jluttine commented 8 months ago

I haven't had such plans but sounds good to me. :+1: Could you describe how you'd implement it? I suppose, the script would check the language from locale settings? But this could perhaps be explicitly overridden by a CLI argument?

xt0ph commented 8 months ago

Yes, I check the language from locale settings. I had not thought of proposing the override by a parameter but it is easily achievable. For the moment I'm still wondering where to put the files for the different languages. I was thinking of separating them from the script, but the installation will be less easy than now. Putting the translations in the script requires a modification for each new language.