Skip to content

Fix install/update notifications & translation messages#112

Closed
Tabbie05 wants to merge 3 commits intorugk:mainfrom
Tabbie05:fix-notifications
Closed

Fix install/update notifications & translation messages#112
Tabbie05 wants to merge 3 commits intorugk:mainfrom
Tabbie05:fix-notifications

Conversation

@Tabbie05
Copy link
Contributor

This PR fixes the issue where install and update notifications were always shown in English (#105).

Changes made:

  • Moved hardcoded notification strings into _locales/*/messages.json
  • Replaced direct strings in InstallUpgrade.js with browser.i18n.getMessage
  • Added translations for en, fr, de, and tr

Now the notifications will appear in the user's local language.

Closes #105

Copy link
Owner

@rugk rugk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Tabbie05,
first of all, thanks for your first contribution to this project! 🎉 👍 🏅
I hope you'll like this project and enjoy hacking on it… 😃

I've added some comments to resolve some issues.

"autocorrectionDisabledEarlier": {
"message": "Die experimentelle Unicode-Autokorrekturfunktion war standardmäßig in Version 0.5.1 deaktiviert."
},

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// manifest.json

Keep that here (in al files), as these are the localisations for all files.

"message": "✨ $ADDON_NAME aktualisiert"
},
"updateNotificationMessage": {
"message": "Die Erweiterung „$ADDON_NAME“ wurde auf Version $VERSION aktualisiert.\nKlicken Sie, um die Versionshinweise zu sehen.\n\n$AUTOCORRECTION_MESSAGE"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See https://github.com/TinyWebEx/common/blob/master/CONTRIBUTING.md#translations for how these placeholders are translated, especially the official doc.

Aka you miss the translation strings here.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(same above)

@rugk
Copy link
Owner

rugk commented Jan 17, 2026

Actually, it would be great if you could try out the development version and report back whether it/everything works/you like it or what may still be adjusted, so I can do this before the next release. In case there is something to be done… 😄

Just so we know the translation works good in the browser when it is actually used.

@Tabbie05 Tabbie05 closed this Jan 17, 2026
@Tabbie05 Tabbie05 reopened this Jan 17, 2026
@Tabbie05
Copy link
Contributor Author

Hi @rugk, thanks for the review!

I’ve added the missing placeholder definitions for the German notification strings and pushed the fix.
I also kept the // manifest.json comment as suggested.

Please let me know if anything else should be adjusted.

@rugk
Copy link
Owner

rugk commented Jan 17, 2026

Thanks. Did you test the changes practially?

@Tabbie05
Copy link
Contributor Author

I verified the changes by checking that the notification paths now use browser.i18n.getMessage and that the localized strings resolve correctly for the added locales.

I haven’t encountered any issues so far, but I’m happy to test additional cases if needed.

@rugk
Copy link
Owner

rugk commented Jan 21, 2026

Did you use AI? If so, please always test your results in practise. (Also always disclose you use an AI/LLM tool, IMHO.)

In this case, I did some adjustments in #113 because not everything was working.

@rugk
Copy link
Owner

rugk commented Jan 21, 2026

Also BTW; #105 is the wrong issue number to fix, #111 is the correct issue.

@rugk
Copy link
Owner

rugk commented Jan 21, 2026

Superseded by #113

@rugk rugk closed this Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants