Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #732 (closed defect: fixed)

Opened 11 years ago

Last modified 8 years ago

admi18n does not pick up on ${_('xxx')}

Reported by: anonymous Owned by: Chris Arndt
Priority: normal Milestone: 1.1.1
Component: Toolbox.admi18n Version: 1.0
Severity: minor Keywords: needs patch
Cc:

Description

... Text inside tag properties still needs to be wrapped in a function:

<img src="${_('uk_flag.gif')}" /> ...

admi18n does not pick up on <input type="submit" value="${_('Save me')}"/>

Change History

comment:1 Changed 11 years ago by gintas

  • Priority changed from normal to high

More than that, I was unable to find a way to translate dynamic strings (strings with parameters) in Kid templates. I tried ${_('foo %s') % bar}, I tried <?python s = _('foo %s') % bar ?>, to no avail. This is a very serious i18n issue especially when compounded with ticket 1049.

comment:2 Changed 11 years ago by gintas

  • Priority changed from high to normal
  • Version changed from 0.9a3 to 0.9a6
  • Severity changed from minor to major

comment:3 Changed 11 years ago by jorge.vargas

  • Priority changed from normal to high
  • Severity changed from major to minor
  • Milestone set to 1.0

comment:4 Changed 11 years ago by jorge.vargas

  • Component changed from Toolbox to Toolbox.admin18n

comment:5 Changed 11 years ago by alberto

  • Milestone changed from 1.0 to 1.1

comment:6 Changed 10 years ago by alberto

  • Milestone changed from 1.1 to __unclassified__

Batch moved into unclassified from 1.1 to properly track progress on the later

comment:7 Changed 10 years ago by andrex

  • Version changed from 0.9a6 to 1.0

a quick hack I use to make the i18n pick up the string is i.e.

<span py:if='False'>Save me</span>
<input type="submit" value="${_('Save me')}"/>

that way the first span tag and it's contents don't show

it will be nice if attribute tags like value= where translated along with tags like span or p

I use the web toolbox for all i18n operations.

comment:8 Changed 9 years ago by jorge.vargas

  • Keywords workaround added
  • Milestone changed from __unclassified__ to 1.x

comment:9 Changed 8 years ago by Chris Arndt

  • Keywords needs patch added; workaround removed
  • Priority changed from high to normal
  • Owner changed from anonymous to Chris Arndt
  • Milestone changed from 1.x to 1.1.x bugfix

comment:10 Changed 8 years ago by Chris Arndt

  • Milestone changed from 1.1.x bugfix to 1.1.1

comment:11 Changed 8 years ago by chrisz

  • Status changed from new to closed
  • Resolution set to fixed

I investigated this today and found that the problem existed for both toolbox admi18n and tg-admin i18n. The reason was that the pygettext module parsed the Genshi templates as ordinary XML, not as Genshi templates. I fixed this in r6986.

Note: See TracTickets for help on using tickets.