Bugzilla – Attachment 55164 Details for
Bug 17245
Untranslatable abbreviated names of seasons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17245: Untranslatable abbreviated names of seasons.
Bug-17245-Untranslatable-abbreviated-names-of-seas.patch (text/plain), 3.25 KB, created by
Rafal Kopaczka
on 2016-09-03 16:43:23 UTC
(
hide
)
Description:
Bug 17245: Untranslatable abbreviated names of seasons.
Filename:
MIME Type:
Creator:
Rafal Kopaczka
Created:
2016-09-03 16:43:23 UTC
Size:
3.25 KB
patch
obsolete
>From 28854b0451d9465ae07070f673507b0ac9e28a79 Mon Sep 17 00:00:00 2001 >From: Rafal Kopaczka <rkk0@poczta.onet.pl> >Date: Sat, 3 Sep 2016 18:06:47 +0200 >Subject: [PATCH] Bug 17245: Untranslatable abbreviated names of seasons. > >Because seasons strings are not available through DateTime module, >names of them where added in code, and templates. Bug 16289 adds new >abbreviated form to the code, but not to the templates. This patch >should fix the problem. > >To test: >1. Apply patch. >2. Run "misc/translator/translate update" for you language. >3. Check if names are in po/ file for language. >4. Check if generating next issue for serial and prediction patterns >works correct. >--- > .../intranet-tmpl/prog/en/modules/serials/serials-collection.tt | 8 ++++++++ > .../prog/en/modules/serials/showpredictionpattern.tt | 8 ++++++++ > 2 files changed, 16 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt >index 9a79eca..ea2564b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt >@@ -278,6 +278,14 @@ $(document).ready(function() { > [% matches.0 %]Fall[% matches.1 %] > [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %] > [% matches.0 %]Winter[% matches.1 %] >+ [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %] >+ [% matches.0 %]Spr[% matches.1 %] >+ [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %] >+ [% matches.0 %]Sum[% matches.1 %] >+ [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %] >+ [% matches.0 %]Fal[% matches.1 %] >+ [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %] >+ [% matches.0 %]Win[% matches.1 %] > [% ELSE %] > [% serial.serialseq %] > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/showpredictionpattern.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/showpredictionpattern.tt >index da04563..488e484 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/showpredictionpattern.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/showpredictionpattern.tt >@@ -65,6 +65,14 @@ > [% matches.0 %]Fall[% matches.1 %] > [% ELSIF ( matches = prediction.number.match('(.*)Winter(.*)') ) %] > [% matches.0 %]Winter[% matches.1 %] >+ [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %] >+ [% matches.0 %]Spr[% matches.1 %] >+ [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %] >+ [% matches.0 %]Sum[% matches.1 %] >+ [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %] >+ [% matches.0 %]Fal[% matches.1 %] >+ [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %] >+ [% matches.0 %]Win[% matches.1 %] > [% ELSE %] > [% prediction.number %] > [% END %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17245
:
55164
|
55700
|
55793