[Koha-bugs] [Bug 6709] marc21_field_006.xml and marc21_field_008.xml can't be translated.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Apr 28 01:22:23 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6709

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #17758|0                           |1
        is obsolete|                            |

--- Comment #10 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 17759
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17759&action=edit
Bug 6709 - marc21_field_006.xml and marc21_field_008.xml can't be translated

This patch changes
1) structure and schema for xml files used in MARC21
006 and 008 value builders.
2) JavaScript functions used to show value builders.
3) Adds xml processing to translation script

Any translatable string has been moved to an xml element,
those strings that no need translation remains as xml
attributes.

NOTE_1: I do not include as translatable material types
codes, because those values are restricted in schema
definition. But this restriction can be removed.

NOTE_2: Anyone with experience in XML/XSD please
check the new schema definition.

NOTE_3: Anyone with experience in the former and
JavaScript please check xmlControlfield.js

To test:
1) Apply the patch
2) Verify that 006 and 008 value builders show and work
properly
3) Update translation files for your favorite language,
a new set of strings must show up corresponding to
names and descriptions on value builders.

Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>

Signoff notes: Tested both value builders. They work as expected. Running
$ perl translate update es-ES
resulted in the xml string being added to the relevant .po file (the staff
one).
No koha-qa.pl errors BTW. To-.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list