Ticket #7440 (closed enhancement: duplicate)
Opened 4 years ago
Last modified 2 years ago
[PATCH] Polish translation file.
| Reported by: | wmichalski@… | Owned by: | jruigrok |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | i18n | Version: | 0.12dev |
| Severity: | normal | Keywords: | 0.12dev i18n |
| Cc: | wmichalski@… | ||
| Release Notes: | |||
| API Changes: | |||
Description
This is polish translation of messages.po (attached diff file). Please notice that for compound items from html templates (xml tag i18n:msg="") translation messages does not work correctly. I think that problem lies in Geisha/Filter? not in Trac project, but I am not sure. I also noticed that error.html and wiki_edit.html template cause Track to dump unformatted error message with error:
IndexError?: pop from empty list
After short investigation in template wiki_edit.html, found that code fragment causing error is:
<div id="help" i18n:msg="">
<b>Note:</b> See <a href="${href.wiki('WikiFormatting')}">WikiFormatting</a> and
<a href="${href.wiki('TracWiki')}">TracWiki</a> for help on editing wiki content.
</div>
changing to:
<div id="help" i18n:msg="">
<b>Note:</b> See
<a href="${href.wiki('TracWiki')}">TracWiki</a> for help on editing wiki content.
</div>
everything works ok, translation of course not ;). It is somehow connected with that only one statement ${...} can be inside tag marked as i18n:msg="".
Attachments
Change History
Changed 4 years ago by wmichalski@…
- Attachment messages.po-pl_PL.diff added
comment:1 Changed 4 years ago by cboos
File "/usr/lib/python2.5/site-packages/Genshi-0.6dev_r0-py2.5-linux-i686.egg/genshi/filters/i18n.py, line 375, in append
This rather looks like a Genshi bug. Try again with the very latest Genshi trunk, and if the problem persists, please open a ticket on the Genshi Trac.
comment:2 Changed 4 years ago by jruigrok
- Owner set to jruigrok
- Status changed from new to assigned
comment:3 Changed 4 years ago by cmlenz
- Milestone 0.12 deleted
- Resolution set to invalid
- Status changed from assigned to closed
Yeah, this is a bug introduced in the Genshi 0.5.1 release (and trunk). As a workaround, downgrade to Genshi 0.5.0 until this is fixed.
I created #G250 to track this on the Genshi side.
comment:4 Changed 4 years ago by cmlenz
- Milestone set to 0.12
- Resolution invalid deleted
- Status changed from closed to reopened
Oops, shouldn't have closed this as it's not limited to the Genshi bug.
comment:5 Changed 4 years ago by jruigrok
- Resolution set to fixed
- Status changed from reopened to closed
comment:6 Changed 2 years ago by cboos
- Resolution fixed deleted
- Status changed from closed to reopened
(fixing status)
comment:7 Changed 2 years ago by cboos
- Milestone 0.12 deleted
- Resolution set to duplicate
- Status changed from reopened to closed



diff file of translated file messages.po (pl_PL)