G-dH / custom-hot-corners-extended

A GNOME Shell Extension that allows you to give a function to any corner or edge of your monitors and expand your keyboard capabilities.
GNU General Public License v3.0
131 stars 19 forks source link

Translation support availible? #10

Open Etamuk opened 3 years ago

Etamuk commented 3 years ago

Hello,

I did some work on German translation based on cs-po file (because there is no pot file). I would like to test that translation on my system but there seems to be no structure for translations in this app, right?

Kind regards

G-dH commented 3 years ago

Hi, the extension is ready for translations when it comes to the technical side of thing, but I was constantly changing the texts so I stopped to generate the .pot file until it settle down. The English definitely needs corrections, but I'll upload current POT soon.

G-dH commented 3 years ago

You can use this command in extension directory to generate it:

find ./ -regex '.*\.js' -exec xgettext --keyword=_ --output=custom-hot-corners-extended.pot {} \+
Etamuk commented 3 years ago

You can use this command in extension directory to generate it:

find ./ -regex '.*\.js\' -exec xgettext --keyword=_ --output=custom-hot-corners-extended.pot {} \+

Thank you for that quick answer. When I try your command I get this error: find: failed to compile regular expression '.*\.js\': Trailing backslash

But it´s no big problem. I will stay tuned and begin to translate when it´s ready.

G-dH commented 3 years ago

Forgotten backslash (fixed), the command was originally created for .js and also .ui files which I removed and simplified the command...

Etamuk commented 3 years ago

Thank you. It works now. :+1:

G-dH commented 2 years ago

Makefile now can generate the pot files using:

make pot
Etamuk commented 2 years ago

Nice. I will work on German translation soon.