http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8573 Priority: P5 - low Change sponsored?: --- Bug ID: 8573 CC: frederic@tamil.fr Assignee: koha-bugs@lists.koha-community.org Summary: Translation difficult in picture-upload.tt due to nested sentence in if/foreach/if/elsif - construction Severity: normal Classification: Unclassified OS: All Reporter: veron@veron.ch Hardware: All Status: NEW Version: master Component: translate.koha-community.org Product: Koha The following code in koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt leads in Pootle to a situation where a correct ranslation is simply not possible: ------------ [% 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 [% 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 %] [% END %] [% ELSE %] imported successfully.</li> [% END %] [% END %] ---------------------- Pootle separates this poorly: "imported because %s %sthe database returned an error. Please refer to the error log for more details." "imported because" then is missing for all following if/elsif branches, leading to mutilated sentences. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.