gnome-shell-extension-ddterm icon indicating copy to clipboard operation
gnome-shell-extension-ddterm copied to clipboard

Localization support

Open vantu5z opened this issue 2 years ago • 10 comments

Is it in plans to add localization support?

vantu5z avatar Dec 22 '21 06:12 vantu5z

No, I didn't plan to add translations (if you mean that by "localization"). But most of the user-visible labels are in .ui files and even marked as "translatable." So, as far as I understand, it should be easily doable.

amezin avatar Dec 24 '21 20:12 amezin

There is a French translation now https://github.com/amezin/gnome-shell-extension-ddterm/blob/master/po/fr.po

amezin avatar Jul 19 '22 02:07 amezin

I should probably connect the project to Transifex/Crowdin/some other translation tool.

@arnaud-feldmann What do you think? Do you have a preference?

amezin avatar Jul 19 '22 05:07 amezin

Hi, I never used any of it, so I don't know. That's your project, chose what you want :) As for me, i'd rather have a simple thing that does its thing lets me do the manual .po edits without overriding my choices, but your project your choice

Le mar. 19 juil. 2022, 07:50, Aleksandr Mezin @.***> a écrit :

I should probably connect the project to Transifex/Crowdin/some other translation tool.

@arnaud-feldmann https://github.com/arnaud-feldmann What do you think? Do you have a preference?

— Reply to this email directly, view it on GitHub https://github.com/amezin/gnome-shell-extension-ddterm/issues/107#issuecomment-1188627440, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOO4HFTF2LOMEQLZYMLJQOTVUY633ANCNFSM5KRZLZSA . You are receiving this because you were mentioned.Message ID: @.***>

arnaud-feldmann avatar Jul 19 '22 06:07 arnaud-feldmann

@arnaud-feldmann I want some kind of web-based dashboard. Where I can see the statistics about untranslated messages. And where you could subscribe for notifications about new untranslated strings. Otherwise, it'll be hard to ensure that a new release is fully translated.

amezin avatar Jul 19 '22 12:07 amezin

Also: source markers in *.po files (#: glade/prefs.ui:36) become outdated at some point. What's the typical approach to deal with them?

I see multiple options:

  1. Require them to be always up to date in every commit (i. e. run msgmerge and fail if there is a diff).
  2. Automatically update them periodically (daily/weekly)
  3. Only update them when translation files are modified
  4. Never update for existing messages

I'm leaning towards (1) - I like to keep everything up to date and correct. But it means that many commits will have to include translation file changes.

amezin avatar Jul 27 '22 18:07 amezin

As you wish.

Thanks for you package anyway, that's very useful, simple, nicely integrated into GNOME, and that's just what i needed.

Le mer. 27 juil. 2022, 20:15, Aleksandr Mezin @.***> a écrit :

Also: source markers in *.po files (#: glade/prefs.ui:36) become outdated at some point. What's the typical approach to deal with them?

I see multiple options:

  1. Require them to be always up to date in every commit (i. e. run msgmerge and fail if there is a diff).
  2. Automatically update them periodically (daily/weekly)
  3. Only update them when translation files are modified
  4. Never update for existing messages

I'm leaning towards (1) - I like to keep everything up to date and correct. But it means that many commits will have to include translation file changes.

— Reply to this email directly, view it on GitHub https://github.com/ddterm/gnome-shell-extension-ddterm/issues/107#issuecomment-1197131463, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOO4HFRRK4GISLYR5Q6CPJTVWF4ERANCNFSM5KRZLZSA . You are receiving this because you were mentioned.Message ID: @.***>

arnaud-feldmann avatar Jul 27 '22 18:07 arnaud-feldmann

Try to translate, but translation applied only for panel icon menu. Should I do something else to apply it?

vantu5z avatar Sep 23 '22 07:09 vantu5z

Try to translate, but translation applied only for panel icon menu. Should I do something else to apply it?

@vantu5z What do you mean ? Have you tried to add a new translation, or to use my french one ?

arnaud-feldmann avatar Sep 23 '22 07:09 arnaud-feldmann

@arnaud-feldmann I try to add Russian translation, what I do:

  1. Create ru.po in po/ dir.
  2. run make msgmerge to add strings to *.po files.
  3. edit po file by gtranslator (it add header string too).
  4. run make install to compile translations and install addon.

All is fine, *.mo files is created, addon installed. But I see translation only in panel icon menu and not in prereference dialog or popup menu.

vantu5z avatar Sep 23 '22 07:09 vantu5z

Dear translators, there are a few new strings: https://github.com/ddterm/gnome-shell-extension-ddterm/commit/8a5c56a05a2d4a486747f2e1bc1886f74971aff5

amezin avatar Nov 04 '22 19:11 amezin

Ok I do that

arnaud-feldmann avatar Nov 04 '22 20:11 arnaud-feldmann