Edgewall Software
Modify

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

messages.po-pl_PL.diff (109.9 KB) - added by wmichalski@… 4 years ago.
diff file of translated file messages.po (pl_PL)
function_calls.txt (5.7 KB) - added by wmichalski@… 4 years ago.
function calls
system_info.txt (317 bytes) - added by wmichalski@… 4 years ago.
system information

Download all attachments as: .zip

Change History

Changed 4 years ago by wmichalski@…

diff file of translated file messages.po (pl_PL)

Changed 4 years ago by wmichalski@…

function calls

Changed 4 years ago by wmichalski@…

system information

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

Committed in r7424.

Please see #5480 for the pl_PL tracking ticket.

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
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jruigrok. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.