Summary | Strings in "multiple message view" aren't being translated |
Queue | IMP |
Queue Version | 4.2 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | agerhard (at) usp (dot) br |
Created | 08/27/2008 (6134 days ago) |
Due | |
Updated | 08/28/2008 (6133 days ago) |
Assigned | |
Resolved | 08/28/2008 (6133 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Assigned to Jan Schneider
State ⇒ Resolved
I added the gettext option as a flag to the cache id of templates in
IMP, so that a new template is created if you set the option in
thread.php.
http://cvs.horde.org/diff.php/imp/templates/thread/thread.html?r1=1.14&r2=1.15&ty=u
http://cvs.horde.org/diff.php/imp/thread.php?r1=2.56&r2=2.57&ty=u
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Strings in "multiple message view" aren't being translated
Type ⇒ Bug
State ⇒ Unconfirmed
page displayed are not being translated as it should be. Single
messages are translated ok.
I tried to pinpoint the bug, but no way. For example, I thought
thread.php should have a line setting gettext:
$template->setOption('gettext', true);
I tried to put this line in various places of thread.php (as I have
seen in other files) but the translation didn“t work.
I also think there is a typo in thread.html (From instead of From:)
and missing <gettext>/</gettext> tags. The diff is below:
--- thread.html.orig 2008-08-27 14:46:48.000000000 -0300
+++ thread.html 2008-08-27 16:27:14.000000000 -0300
@@ -1,5 +1,5 @@
<h1 class="header">
- <if:thread><gettext>Thread Display:</gettext><else:thread>Multiple
Message View:</else:thread></if:thread> <tag:subject /> <tag:delete />
+ <if:thread><gettext>Thread
Display:</gettext><else:thread><gettext>Multiple Message
View:</gettext></else:thread></if:thread> <tag:subject /> <tag:delete />
</h1>
<br class="spacer" />
@@ -28,7 +28,7 @@
<td class="item0 rightAlign"><tag:messages.link /></td>
</tr>
<tr>
- <td class="item1 rightAlign" valign="top"
nowrap="nowrap"><strong><if:messages.addr_to><gettext>To:</gettext><else:messages.addr_to><gettext>From</gettext></else:messages.addr_to></if:messages.addr_to></strong> </td>
+ <td class="item1 rightAlign" valign="top"
nowrap="nowrap"><strong><if:messages.addr_to><gettext>To:</gettext><else:messages.addr_to><gettext>From:</gettext></else:messages.addr_to></if:messages.addr_to></strong> </td>
<td class="item1 leftAlign" width="100%"
colspan="2"><tag:messages.addr /></td>
</tr>
<if:messages.subject>
Andre Gerhard