Ticket #732 (new defect)

Opened 2 years ago

Last modified 7 months ago

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

Reported by: anonymous Assigned to: anonymous
Priority: high Milestone: __unclassified__
Component: Toolbox.admi18n Version: 1.0
Severity: minor Keywords:
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

09/02/06 19:49:56 changed 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.

09/02/06 19:50:18 changed by gintas

  • priority changed from high to normal.
  • version changed from 0.9a3 to 0.9a6.
  • severity changed from minor to major.

09/23/06 18:34:09 changed by jorge.vargas

  • priority changed from normal to high.
  • severity changed from major to minor.
  • milestone set to 1.0.

09/23/06 18:34:17 changed by jorge.vargas

  • component changed from Toolbox to Toolbox.admin18n.

01/12/07 06:27:54 changed by alberto

  • milestone changed from 1.0 to 1.1.

03/28/07 12:42:01 changed by alberto

  • milestone changed from 1.1 to __unclassified__.

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

05/09/07 18:19:41 changed 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.