Summary: | Translation script doesn't like concatenated javascript strings | ||
---|---|---|---|
Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | I18N/L10N | Assignee: | Aleksa Vujicic <aleksa> |
Status: | RESOLVED DUPLICATE | QA Contact: | Ian Walls <koha.sekjal> |
Severity: | normal | ||
Priority: | P5 - low | CC: | wizzyrea |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: | Translate scripts now handle javascript variables inside strings. |
Description
Katrin Fischer
2011-12-07 06:16:08 UTC
Created attachment 7392 [details] [review] Translate scripts now handle javascript variables inside strings. The translation scripts now convert variables into '%s' when generating or reading from .po files, and convert '%s' into variables when creating translated .tt files. This means that it should work when creating, updating, or installing a language. What is a test plan for this? Is it necessary to edit the .po file to test? I was testing this and noted some anomalies - namely that the javascript menus were broken after running the new translation scripts. I would have to spend some time looking at po files that were right before I could determine whether or not the script is working correctly - things looked mighty strange in there to me. I can reproduce the problems with javascript Liz noted. This is my test plan: 1) Applied the patch 2) Ran perl translate update <langcode> on 2 languages (de-DE, it-IT) 3) Ran perl translate install <langcode) on my 2 languages 4) Turned on those languages in systempreferences 5) Checked - normal templates - javascript toolbars (example: circulation? - XSLT translation (OPAC, staff) - javascript error messages (cataloging, trying to delete record with items) Examples for found problems: - Toolbar in patron account in staff (circulation) - OPAC deatail page - item tabs and more searches |