Bugzilla – Attachment 11517 Details for
Bug 8573
Translation difficult in picture-upload.tt due to nested sentence in if/foreach/if/elsif - construction
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8573 - Translation difficult in picture-upload.tt due to nested sentence in if/foreach/if/elsif - construction
Bug-8573---Translation-difficult-in-picture-upload.patch (text/plain), 4.30 KB, created by
Marc Véron
on 2012-08-10 03:57:26 UTC
(
hide
)
Description:
Bug 8573 - Translation difficult in picture-upload.tt due to nested sentence in if/foreach/if/elsif - construction
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2012-08-10 03:57:26 UTC
Size:
4.30 KB
patch
obsolete
>From 86e08d74d6c02a5e9727705ac9f6cbd4c956c6e2 Mon Sep 17 00:00:00 2001 >From: Marc Veron <veron@veron.ch> >Date: Mon, 6 Aug 2012 10:45:27 +0200 >Subject: [PATCH] Bug 8573 - Translation difficult in picture-upload.tt due to nested sentence in if/foreach/if/elsif - construction >Content-Type: text/plain; charset="utf-8" > >Text could not be correctly translated due to poor parsing of nested sentences in Pootle. > >*Sentences de-nested to have whole sentence in each if /elsif branch >*Cleaned up <li></li> handling: moved closing </li> outside the for each loop to prevent orphaned closing </li>s. >*Chanched indentation for better readibility >*Changed WARNING to ERROR because it is an *Error* during upload. >*Wording simplified (for translation). >*In one case added hint to refer to online help (size). > >This way text should be easier to be translated in Pootle. >--- > .../prog/en/modules/tools/picture-upload.tt | 18 +++++++++--------- > 1 files changed, 9 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt >index 3520048..2202b02 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt >@@ -48,16 +48,16 @@ > [% IF ( COUNT.TCOUNTS ) %]<li>[% COUNT.TCOUNTS %] image(s) moved into the database:</li>[% END %] > [% FOREACH filename IN COUNT.filenames %] > <li>[% filename.source %] - Cardnumber: [% filename.cardnumber %] >- [% IF ( filename.filerrors ) %]<br /> <b>WARNING:</b> This image <i>not</i> imported because >+ [% IF ( filename.filerrors ) %]<br /> > [% FOREACH filerror IN filename.filerrors %] >- [% IF ( filerror.DBERR ) %]the database returned an error. Please refer to the error log for more details.</li> >- [% ELSIF ( filerror.IMGEXISTS ) %]this patron does not exist in the database.</li> >- [% ELSIF ( filerror.MIMERR ) %]the image format is unrecognized.</li> >- [% ELSIF ( filerror.CORERR ) %]the image file is corrupted.</li> >- [% ELSIF ( filerror.OPNERR ) %]Koha was unable to open the image for reading.</li> >- [% ELSIF ( filerror.OVRSIZ ) %]the image file is too big.</li> >- [% ELSIF ( filerror.CRDFIL ) %]the [% filerror.CRDFIL %] is missing.</li> >- [% ELSE %]of an unknown error. Please refer to the error log for more details.</li>[% END %] >+ [% IF ( filerror.DBERR ) %]<b>ERROR:</b> Image not imported because the database returned an error. Please refer to the error log for more details.</li> >+ [% ELSIF ( filerror.IMGEXISTS ) %]<b>ERROR:</b> Image not imported because this patron does not exist in the database.</li> >+ [% ELSIF ( filerror.MIMERR ) %]<b>ERROR:</b> Image not imported because the image format is unrecognized.</li> >+ [% ELSIF ( filerror.CORERR ) %]<b>ERROR:</b> Image not imported because the image file is corrupted.</li> >+ [% ELSIF ( filerror.OPNERR ) %]<b><b>ERROR:</b> Image not imported because Koha was unable to open the image for reading.</li> >+ [% ELSIF ( filerror.OVRSIZ ) %]<b>ERROR:</b> Image not imported because the image file is too big (see online help for maximum size). </li> >+ [% ELSIF ( filerror.CRDFIL ) %]<b>ERROR:</b> Image not imported because the [% filerror.CRDFIL %] is missing.</li> >+ [% ELSE %]<b>WARNING:<b>ERROR:</b> Image not imported because of an unknown error. Please refer to the error log for more details.</li>[% END %] > [% END %] > [% ELSE %] imported successfully.</li> > [% END %] >-- >1.7.2.5
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 8573
:
11375
|
11517
|
11518
|
11523