Roundup Tracker - Issues

Issue 1424576

classification
Title-names that use dispname are not translated
Type: Severity: normal
Components: None Versions:
process
Status: closed fixed
:
: richard : a1s, dlinke, richard, tobias-herp
Priority: normal : patch

Created on 2006-02-05 15:23 by dlinke, last changed 2006-08-29 10:13 by a1s.

Messages
msg2797 Author: [hidden] (dlinke) Date: 2006-02-05 15:23
Click for example on Issue: "Show All" -> The title of
the rendered page is not translated.

The i18n attributes for translation of dispname seem to
be missing in the issue.index.html template.

David
msg2798 Author: [hidden] (tobias-herp) Date: 2006-03-04 00:46
Logged In: YES 
user_id=805804

Here is an extraction from my page.html:

   <a tal:define="your_issues python:i18n.gettext('Your
Issues')"
      tal:attributes="href
string:issue?@sort=-activity&@group=priority&@filter=status,assignedto&@columns=${columns}&status=${status_notresolved}&assignedto=${request/user/id}&@dispname=${your_issues}"
  
      tal:content="your_issues">Your Issues</a><br>

(...)

    <a href="#" 
       tal:define="show_ua python:i18n.gettext('Show
Unassigned')"
       tal:attributes="href
string:issue?@sort=-activity&@group=priority&@filter=status,assignedto&@columns=${columns}&status=${status_notresolved}&assignedto=-1&@dispname=${show_ua}"
		   tal:content="show_ua">Show Unassigned</a><br>
    <a href="#"
       tal:define="show_all python:i18n.gettext('Show All')"
			 tal:attributes="href
string:issue?@sort=-activity&@group=priority&@filter=status&@columns=${columns_showall}&status=${status_notresolved}&@dispname=${show_all}"
       tal:content="show_all">Show All</a><br>
msg2799 Author: [hidden] (tobias-herp) Date: 2006-03-04 00:59
Logged In: YES 
user_id=805804

I forgot to mention, the following modification to <table
class="body"> is needed to make my solution work:

<table class="body" tal:define="columns
string:id,activity,title,creator,status;
columns_showall
string:title,creation,reporter_s,status,topic,deadline;
status_notresolved string:-1,1,2,3,4,5,6,7">

This allows to customise the fields of interest etc. in a
central place and reuse it for the several links.
msg2800 Author: [hidden] (a1s) Date: 2006-03-04 08:13
Logged In: YES 
user_id=8719

i don't think talgettext can extract strings marked with
python:i18n.gettext(''), can it?
msg2801 Author: [hidden] (richard) Date: 2006-08-11 00:46
Logged In: YES 
user_id=6405

Is there a solution for this?
msg2802 Author: [hidden] (a1s) Date: 2006-08-29 10:13
Logged In: YES 
user_id=8719

the trick is to use exactly same string for the anchor text
(which is extracted by talgettext) and for i18n.gettext()
argument (which is not extracted, but will use translation
made for the anchor label).
History
Date User Action Args
2006-02-05 15:23:53dlinkecreate