From bd4a6830527b3d1482e41f084098de66eacf5bcd Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Tue, 8 Dec 2015 21:11:58 +0100 Subject: [PATCH] Bug 15304: Remove Norwegian strings from nl-search.tt When nl-search.pl gets data from the Norwegian national patron database, it does so in an XML format that has Norwegian element names. nl-search.pl displays the data with the Noregian element names as labels. This means Norwegian words turn up in translations, which is messy. This patch replaces the Norwegian labels with English ones. To test: - Only Norwegian libraries and vendors get access to search against the national patron database, so a proper functional test is not possible - Alternative 1: Just have a look at the nl-search.tt template before and after the patch and verify that after the patch the Norwegian strings that would be visible to a user are gone - Alternative 2: - Verify that e.g. en-GB-staff-prog.po contains the Norwegian string "kjonn" - Apply the patch - Create new .po files with e.g. "./translate create en-GB" - Verify that "kjonn" is now gone from en-GB-staff-prog.po Version 2: Tweak a couple of labels to be more in line with labels used elsewhere in Koha, to avoid variants when translating. Version 3: Replace e.g. "Gender: " with "Gender: " to avoid similar-except-for-whitespace strings in translation. Signed-off-by: Bernardo Gonzalez Kriegel A few new strings, all previous removed. No koha-qa errors Signed-off-by: Marcel de Rooy Signed-off-by: Brendan A Gallagher --- .../prog/en/modules/members/nl-search.tt | 80 +++++++++---------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/nl-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/nl-search.tt index b8a9791170..ae06764a21 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/nl-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/nl-search.tt @@ -80,46 +80,46 @@

[% p.navn | html_entity %]

    -[% IF ( p.kjonn ) %]
  1. kjonn: [% p.kjonn | html_entity %]
  2. [% END %] -[% IF ( p.fdato ) %]
  3. fdato: [% p.fdato | html_entity %]
  4. [% END %] -[% IF ( p.lnr ) %]
  5. lnr: [% p.lnr | html_entity %]
  6. [% END %] -[% IF ( p.fnr_hash ) %]
  7. fnr_hash: [% p.fnr_hash | html_entity %]
  8. [% END %] - -[% IF ( p.epost ) %]
  9. epost: [% p.epost | html_entity %]
  10. [% END %] -[% IF ( p.epost_sjekk ) %]
  11. epost_sjekk: [% p.epost_sjekk | html_entity %]
  12. [% END %] - -[% IF ( p.tlf_mobil ) %]
  13. tlf_mobil: [% p.tlf_mobil | html_entity %]
  14. [% END %] -[% IF ( p.tlf_hjemme ) %]
  15. tlf_hjemme: [% p.tlf_hjemme | html_entity %]
  16. [% END %] -[% IF ( p.tlf_jobb ) %]
  17. tlf_jobb: [% p.tlf_jobb | html_entity %]
  18. [% END %] - -[% IF ( p.p_adresse1 ) %]
  19. p_adresse1: [% p.p_adresse1 | html_entity %]
  20. [% END %] -[% IF ( p.p_adresse2 ) %]
  21. p_adresse2: [% p.p_adresse2 | html_entity %]
  22. [% END %] -[% IF ( p.p_postnr ) %]
  23. p_postnr: [% p.p_postnr | html_entity %]
  24. [% END %] -[% IF ( p.p_sted ) %]
  25. p_sted: [% p.p_sted | html_entity %]
  26. [% END %] -[% IF ( p.p_land ) %]
  27. p_land: [% p.p_land | html_entity %]
  28. [% END %] -[% IF ( p.p_sjekk ) %]
  29. p_sjekk: [% p.p_sjekk | html_entity %]
  30. [% END %] - -[% IF ( p.m_adresse1 ) %]
  31. m_adresse1: [% p.m_adresse1 | html_entity %]
  32. [% END %] -[% IF ( p.m_adresse2 ) %]
  33. m_adresse2: [% p.m_adresse2 | html_entity %]
  34. [% END %] -[% IF ( p.m_postnr ) %]
  35. m_postnr: [% p.m_postnr | html_entity %]
  36. [% END %] -[% IF ( p.m_sted ) %]
  37. m_sted: [% p.m_sted | html_entity %]
  38. [% END %] -[% IF ( p.m_land ) %]
  39. m_land: [% p.m_land | html_entity %]
  40. [% END %] -[% IF ( p.m_sjek ) %]
  41. m_sjekk: [% p.m_sjekk | html_entity %]
  42. [% END %] -[% IF ( p.m_gyldig_til ) %]
  43. m_gyldig_til: [% p.m_gyldig_til | html_entity %]
  44. [% END %] - -[% IF ( p.pin ) %]
  45. pin: [% p.pin | html_entity %]
  46. [% END %] -[% IF ( p.passord ) %]
  47. passsord: [% p.passord | html_entity %]
  48. [% END %] -[% IF ( p.feide ) %]
  49. feide: [% p.feide | html_entity %]
  50. [% END %] -[% IF ( p.folkeregsjekk_dato ) %]
  51. folkeregsjekk_dato: [% p.folkeregsjekk_dato | html_entity %]
  52. [% END %] - -[% IF ( p.hjemmebibliotek ) %]
  53. hjemmebibliotek: [% p.hjemmebibliotek | html_entity %]
  54. [% END %] -[% IF ( p.opprettet ) %]
  55. opprettet: [% p.opprettet | html_entity %]
  56. [% END %] -[% IF ( p.opprettet_av ) %]
  57. opprettet_av: [% p.opprettet_av | html_entity %]
  58. [% END %] -[% IF ( p.sist_endret ) %]
  59. sist_endret: [% p.sist_endret | html_entity %]
  60. [% END %] -[% IF ( p.sist_endret_av ) %]
  61. sist_endret_av: [% p.sist_endret_av | html_entity %]
  62. [% END %] -[% IF ( p.gyldig_til ) %]
  63. gyldig_til: [% p.gyldig_til | html_entity %]
  64. [% END %] - -[% IF ( p.prim_kontakt ) %]
  65. prim_kontakt: [% p.prim_kontakt | html_entity %]
  66. [% END %] +[% IF ( p.kjonn ) %]
  67. Gender: [% p.kjonn | html_entity %]
  68. [% END %] +[% IF ( p.fdato ) %]
  69. Date of birth: [% p.fdato | html_entity %]
  70. [% END %] +[% IF ( p.lnr ) %]
  71. Card number: [% p.lnr | html_entity %]
  72. [% END %] +[% IF ( p.fnr_hash ) %]
  73. Social security number hash: [% p.fnr_hash | html_entity %]
  74. [% END %] + +[% IF ( p.epost ) %]
  75. Email: [% p.epost | html_entity %]
  76. [% END %] +[% IF ( p.epost_sjekk ) %]
  77. Email check: [% p.epost_sjekk | html_entity %]
  78. [% END %] + +[% IF ( p.tlf_mobil ) %]
  79. Phone - mobile: [% p.tlf_mobil | html_entity %]
  80. [% END %] +[% IF ( p.tlf_hjemme ) %]
  81. Phone - home: [% p.tlf_hjemme | html_entity %]
  82. [% END %] +[% IF ( p.tlf_jobb ) %]
  83. Phone - work: [% p.tlf_jobb | html_entity %]
  84. [% END %] + +[% IF ( p.p_adresse1 ) %]
  85. Address: [% p.p_adresse1 | html_entity %]
  86. [% END %] +[% IF ( p.p_adresse2 ) %]
  87. Address 2: [% p.p_adresse2 | html_entity %]
  88. [% END %] +[% IF ( p.p_postnr ) %]
  89. Zip/Postal code: [% p.p_postnr | html_entity %]
  90. [% END %] +[% IF ( p.p_sted ) %]
  91. City: [% p.p_sted | html_entity %]
  92. [% END %] +[% IF ( p.p_land ) %]
  93. Country: [% p.p_land | html_entity %]
  94. [% END %] +[% IF ( p.p_sjekk ) %]
  95. Check: [% p.p_sjekk | html_entity %]
  96. [% END %] + +[% IF ( p.m_adresse1 ) %]
  97. Address: [% p.m_adresse1 | html_entity %]
  98. [% END %] +[% IF ( p.m_adresse2 ) %]
  99. Address 2: [% p.m_adresse2 | html_entity %]
  100. [% END %] +[% IF ( p.m_postnr ) %]
  101. Zip/Postal code: [% p.m_postnr | html_entity %]
  102. [% END %] +[% IF ( p.m_sted ) %]
  103. City: [% p.m_sted | html_entity %]
  104. [% END %] +[% IF ( p.m_land ) %]
  105. Country: [% p.m_land | html_entity %]
  106. [% END %] +[% IF ( p.m_sjek ) %]
  107. Check: [% p.m_sjekk | html_entity %]
  108. [% END %] +[% IF ( p.m_gyldig_til ) %]
  109. Valid until: [% p.m_gyldig_til | html_entity %]
  110. [% END %] + +[% IF ( p.pin ) %]
  111. PIN: [% p.pin | html_entity %]
  112. [% END %] +[% IF ( p.passord ) %]
  113. Password: [% p.passord | html_entity %]
  114. [% END %] +[% IF ( p.feide ) %]
  115. FEIDE: [% p.feide | html_entity %]
  116. [% END %] +[% IF ( p.folkeregsjekk_dato ) %]
  117. Population registry date check: [% p.folkeregsjekk_dato | html_entity %]
  118. [% END %] + +[% IF ( p.hjemmebibliotek ) %]
  119. Home library: [% p.hjemmebibliotek | html_entity %]
  120. [% END %] +[% IF ( p.opprettet ) %]
  121. Created: [% p.opprettet | html_entity %]
  122. [% END %] +[% IF ( p.opprettet_av ) %]
  123. Created by: [% p.opprettet_av | html_entity %]
  124. [% END %] +[% IF ( p.sist_endret ) %]
  125. Last changed: [% p.sist_endret | html_entity %]
  126. [% END %] +[% IF ( p.sist_endret_av ) %]
  127. Last changed by: [% p.sist_endret_av | html_entity %]
  128. [% END %] +[% IF ( p.gyldig_til ) %]
  129. Valid until: [% p.gyldig_til | html_entity %]
  130. [% END %] + +[% IF ( p.prim_kontakt ) %]
  131. Primary contact: [% p.prim_kontakt | html_entity %]
  132. [% END %]
-- 2.39.2