Closed olafgrabienski closed 6 years ago
ok. I'll check into this js integration. thanks!
replace Drupal.t
.
I went ahead and merged my PR at https://github.com/backdrop-contrib/potx/pull/4. It gets the UI working.
I noticed that while Backdrop.t() calls are now exported, they all are reported as line number "0". But that seems to be the current design of the module that it doesn't track line numbers in JS files. So it's not perfect but it's matching the Drupal module functionality.
I extracted the language template files of the
core
and theprofiles
directory of a Backdrop 1.6.3. site using the potx module via Drush.When I compared these files at random with a language template file exported otherwise, I noticed that some (or all?)
.js
files weren't respected by potx.As an example see
core/misc/backdrop.js
which seemingly wasn't interpreted by potx although there are relevant language strings in it, for instanceBackdrop.t("An AJAX HTTP error occurred.")
.