From 701dd98c07c67313bebe663558f197ffc635284e Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Sat, 22 Mar 2014 12:02:12 -0300 Subject: [PATCH] [PASSED QA] Bug 10818 - System preference OAI-PMH:ConfFile isn't translatable This patch correct english display for OAI-PMH:ConfFile syspref, and makes it's strings translatable To test: 1) On Administration > System preferences > Web Services OAI-PMH:ConfFile syspref doesn't have description before file box. Text after that box is not translated. 2) Choose your prefered language, xx-YY, update po files cd misc/translator perl translate update xx-YY 3) Look into xx-YY-pref.po for any occurence of "YAML", there is none 4) Apply the patch 5) Update po files again 6) Look into xx-YY-pref.po, now there are 2 entries 7) Also reload page from 1) and check for text before file box. Signed-off-by: Mark Tompsett NOTE: I had to use install and not update, but the idea is the same. Having fixed the English po files, the other language po files (I used fr-FR) correctly generates text before the system preference text box. It's still English, but that is expected, as far as I know, since the French po files are lacking the translation for the strings. This corrects two problems at the same time, not just the original bug problem. 1) Missing text before system preference text box. 2) Missing string to translate in the po file. Where (2) is the original problem. Signed-off-by: Katrin Fischer Works for me as described, only changes YAML pref file. --- .../intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref index 7a4c9105..b74563c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref @@ -17,7 +17,7 @@ Web services: class: integer - records at a time in response to a ListRecords or ListIdentifiers query. - - - YAML OAI Koha server configuration file: + - "YAML OAI Koha server configuration file:" - pref: "OAI-PMH:ConfFile" class: file - . If empty, Koha OAI Server operates in normal mode, otherwise it operates in extended mode. In extended mode, it's possible to parameter other formats than marcxml or Dublin Core. OAI-PMH:ConfFile specify a YAML configuration file which list available metadata formats and XSL file used to create them from marcxml records. -- 1.8.3.2