realmazharhussain / nautilus-code

Extension for Nautilus (GNOME Files) which adds right-click menu items to open current folder in code editors e.g. VSCode, GNOME Builder
79 stars 8 forks source link

Translations #14

Closed infeeeee closed 1 year ago

infeeeee commented 1 year ago

Hello, and thank you for this nice extension.

It would be nice to add i18n support, maybe with po files.

I use Gnome on my native language, and on the rightclick menu this is the only item in English, it annoys my OCD.

As it's only 2 words, it shouldn't be a big task to translate the program :)

Thank you!

realmazharhussain commented 1 year ago

It's not just two words. If the phrase "Open in" is to be translated, names of the editors must also be translatable. The phrase would also need to be changed to "Open in %s" in order to accommodate languages which need the editor name to be somewhere other than the end e.g. Urdu requires it to be at the start.

Currently, I just do "Open in " + editor_name and it works.

I'll work on adding translation support.

realmazharhussain commented 1 year ago

I've added translation support. Now you can write translation for your language. POT file is located in po subdirectory and named nautilus-code.pot.