Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Jonathan Druart 8e364c4c6a Bug 11262: Don't require hardcoded translations for seasonal numbering pattern to work
This patch removes the use of POSIX::strftime which is based on the
locales of the system.

The DateTime module translates month and day name with success, without
any locale installed.

For the saesons, I use the way used in Koha: write the word in
templates. On this way the translate script will match them and allow
translators to translate them.

This patch adds a regression: the season names are not translated
following the locale selected.
This could be done when bug 8044 will be pushed.

Test plan:
0/ Update your po files and translate the season name.
1/ Create a numbering pattern using season.
example:
Name: Seasonal
Numbering formula: {X}
X: Season, Add=1, Every=1, Set back to 0 when more than 3, formatting
"name of season"
And test the prediction pattern with:
frequency: 1/3 month
First issue : 2013-09-21
length: 12 months
X begins with 2 (21th Septembre is Fall)
2/ Click on the test pattern button, you should get:
Fall       21/09/2013
Winter     21/12/2013
Spring     21/03/2014
Summer     21/06/2014

Change the locale and verify the season names are *not* translated.
Change the Koha language and verify the season names are translated.

3/ Create a numbering pattern using day or month name.
example:
Name: day
Numbering formula: {X}
X: day, Add=1, Every=1, Set back to 0 when more than 6, formatting "name
of day"
Frequency: 1/day
First issue: 2013-11-18
length: 1 month
X begins with 0
You should get:
Monday  18/11/2013
Tuesday     19/11/2013
Wednesday   20/11/2013
[...]
Sunday      15/12/2013
Monday      16/12/2013
Tuesday     17/12/2013

change the locale and verify the day names are translated.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described. No koha-qa errors

Tested on top of Bug 11265 and Bug 11263,
and solved merge conflict

Updating PO file gives seasons to translate.
Tested using seasons, day and month

Only note is different behavior
1) To use seasons you need to use staff in desired language
2) To use day and month only need to select locale

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
No regressions found. Passes koha-qa.pl, t and xt

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tested this again on top of 11263 and it works as described.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-05-05 05:05:54 +00:00
..
acqui Bug 10875: (follow-up) make displaying/hiding inactive funds work cross-browser 2014-05-04 21:55:02 +00:00
admin Bug 10862: (follow-up) fix a couple of issues 2014-05-05 03:07:23 +00:00
authorities Bug 7442: fix crash when selecting an authority with 200$x or 200$y (UNIMARC) 2014-05-05 01:09:29 +00:00
basket Bug 12107 - Move checkboxes jQuery plugin outside of language-specific directory 2014-04-25 15:12:20 +00:00
batch Bug 9210: wrap long lines in printed hold notices 2014-01-15 15:51:44 +00:00
catalogue Bug 10944: fix mixed content warnings for covers on staff client 2014-05-05 03:30:02 +00:00
cataloguing Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
circ Bug 8231: display warning at check in if borrower is restricted 2014-05-05 00:41:32 +00:00
course_reserves Bug 11570 - Upgrade jQueryUI to latest version in the staff client 2014-04-07 15:37:27 +00:00
errors Bug 2780 - Capitalize strings consistently (Error pages) 2012-04-10 10:03:32 +02:00
help Bug 10845: Multi transport types for holds 2014-05-02 20:29:19 +00:00
installer Bug 2774 - Path to theme is hard-coded in many places 2013-06-07 09:04:15 -07:00
labels Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
members Bug 766: Use a TT include instead of a method in the AV plugin 2014-05-04 23:04:35 +00:00
offline_circ Bug 12107 - Move checkboxes jQuery plugin outside of language-specific directory 2014-04-25 15:12:20 +00:00
patron_lists Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
patroncards Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
plugins Bug 7804 - Add Koha Plugin System - QA Followup 2 2013-03-20 14:50:19 -04:00
reports Bug 11679: Add ODS as an export format for reports 2014-04-28 19:06:41 +00:00
reserve Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
reviews Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
rotating_collections Bug 2780 - Capitalize strings consistently (reserve, review, rotating collections) 2012-04-10 10:04:13 +02:00
serials Bug 11262: Don't require hardcoded translations for seasonal numbering pattern to work 2014-05-05 05:05:54 +00:00
services Bug 10475 - Item form in acquisition not hiding subfields properly 2013-07-12 20:40:15 +00:00
sms Bug 2780 - Capitalize strings consistently - various 2012-04-10 10:04:16 +02:00
suggestion Bug 11724: Make Funds/Status on suggestions page sortable/searchable 2014-04-28 17:25:29 +00:00
tags Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
test Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00
tools Bug 9016: (follow-up) standardize case of message transport type columns 2014-05-02 21:17:49 +00:00
virtualshelves Bug 12116 - Move fixFloat jQuery plugin outside of language-specific directory 2014-04-25 15:21:11 +00:00
z3950 Bug 9265 - Switch to HTML5 doctype in OPAC and staff client 2013-01-31 11:47:04 -05:00
about.tt Bug 11578: QA follow-up 2014-05-03 18:16:11 +00:00
auth.tt Bug 11146: Show a go back link on no permission page 2013-11-23 19:43:37 +00:00
intranet-main.tt Bug 10415 - Add course reserves to staff client home page 2014-03-12 18:15:24 +00:00