[Koha-bugs] [Bug 25321] Move translatable strings out of strings.inc into the corresponding JavaScript
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Sep 10 20:38:04 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25321
Owen Leonard <oleonard at myacpl.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #109031|0 |1
is obsolete| |
--- Comment #5 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 109858
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109858&action=edit
Bug 25321: Move translatable strings out of strings.inc into the corresponding
JavaScript
This patch moves string definitions out of strings.inc and into the
corresponding JavaScript files.
To test, apply the patch and test various pages in the staff interface:
A few suggestions:
- Perform a catalog search and view the detail page for a bibliographic record.
- Confirm that the search results browser in the left-hand sidebar
work correctly and that the title attributes of the controls are
correct.
- Locate a patron with multiple checkouts. View the checkout page and
test the various controls in the table of checkouts: Renew, check in,
return claims, etc.
- View the list of holds on a patron's account. Test suspending and
resuming holds.
TESTING TRANSLATABILITY
- Update a translation, e.g. fr-FR:
> cd misc/translator
> perl translate update fr-FR
- Open the corresponding .po file for JavaScript strings, e.g.
misc/translator/po/fr-FR-messages-js.po
- Locate strings pulled from
koha-tmpl/intranet-tmpl/prog/js/checkouts.js for
translation, e.g.:
msgid "Checked in"
msgstr ""
- Edit the "msgstr" string however you want (it's just for
testing).
- Install the updated translation:
> perl translate install fr-FR
- Switch to your newly translated language in the staff client
and repeat the test plan above. The translated strings should
appear.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list