DevinWalker / wp-rollback

Rollback any WordPress.org plugin or theme to a previous (or newer) version.
https://wprollback.com
81 stars 22 forks source link

Fix i18n in JS and PHP #65

Closed pedro-mendonca closed 8 months ago

pedro-mendonca commented 8 months ago

Description

Add missing gettext to JS strings to allow translation. Add missing comments to translators for strings with variables. Add missing textdomain.

How Has This Been Tested?

Built the package with npm run build. Built the .pot with the new strings. Translated all the new strings to Portuguese. Built the json files for the JS translation. The strings now appear translated as desired.

Screenshots (jpeg or gifs if applicable):

imagem imagem

Types of changes

New strings for translation from JS code.

Checklist: