6.0.0-git
2019-03-23

[#5525] Ukrainian translation breaks Horde's sidebar
Summary Ukrainian translation breaks Horde's sidebar
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester anri (at) polynet (dot) lviv (dot) ua
Created 2007-07-04 (4280 days ago)
Due
Updated 2007-09-10 (4212 days ago)
Assigned 2007-07-10 (4274 days ago)
Resolved 2007-09-10 (4212 days ago)
Milestone
Patch No

History
2007-09-10 15:43:31 Jan Schneider Comment #11
Assigned to Jan Schneider
Taken from Horde DevelopersHorde Developers
State ⇒ Resolved
Reply to this comment
Fixed in CVS.
2007-08-28 16:34:32 Jan Schneider Comment #10 Reply to this comment
As you might see, the "children" property of the Virtual Folders node 
contains ["imp"], not ["imp**search_hij5m470p7so0o40w4og"] or 
whatever. For some reason, everything from the asterisks on is cut off.
2007-08-28 16:28:05 Jan Schneider Comment #9 Reply to this comment
This is an example array that breaks the js code. The data code itself 
is valid:



var n_horde_menu = 
{"horde":{"label":"Horde","expanded":false,"url":"\/headhorde\/login.php?Horde=824bc4892d377db997f360c043d931e4","icon":"\/headhorde\/themes\/graphics\/horde.png","icondir":"","indent":0},"imp":{"label":"<strong>Webmail<\/strong> (29)","expanded":false,"url":"\/headhorde\/imp\/?Horde=824bc4892d377db997f360c043d931e4","icon":"newmail.png","icondir":"\/headhorde\/imp\/themes\/graphics","children":["impcompose","impsearch","impINBOX","impSPAM","imp\u041f\u0441\u0435\u0432\u0434\u043e-\u043f\u0430\u043f\u043a\u0438%"],"indent":0},"impcompose":{"label":"\u041d\u043e\u0432\u0438\u0439 \u043b\u0438\u0441\u0442","expanded":false,"icon":"compose.png","icondir":"\/headhorde\/imp\/themes\/graphics","url":"javascript:popup_imp('\/headhorde\/imp\/compose.php?Horde=824bc4892d377db997f360c043d931e4',700,650,'');","target":"horde_menu","indent":1},"impsearch":{"label":"\u041f\u043e\u0448\u0443\u043a","expanded":false,"icon":"search.png","icondir":"\/headhorde\/themes\/graphics","url":"\/headhorde\/imp\/search.php?Horde=824bc4892d377db997f360c043d931e4","indent":1},"impINBOX":{"label":"<span dir=\"ltr\"><strong>Inbox<\/strong> (29\/36)<\/span>","expanded":false,"icon":"folders\/inbox.png","icondir":"\/headhorde\/imp\/themes\/graphics","url":"\/headhorde\/imp\/mailbox.php?Horde=824bc4892d377db997f360c043d931e4&amp;no_newmail_popup=1&amp;mailbox=INBOX","indent":1},"impSPAM":{"label":"SPAM","expanded":false,"icon":"folders\/folder.png","icondir":"\/headhorde\/imp\/themes\/graphics","url":"\/headhorde\/imp\/mailbox.php?Horde=824bc4892d377db997f360c043d931e4&amp;no_newmail_popup=1&amp;mailbox=SPAM","indent":1},"imp\u041f\u0441\u0435\u0432\u0434\u043e-\u043f\u0430\u043f\u043a\u0438%":{"label":"\u041f\u0441\u0435\u0432\u0434\u043e-\u043f\u0430\u043f\u043a\u0438","expanded":false,"icon":"folders\/folder.png","icondir":"\/headhorde\/imp\/themes\/graphics","iconopen":"folders\/folder_open.png","children":["imp"],"indent":1},"imp":{"label":"","expanded":false,"icon":"folders\/folder.png","icondir":"\/headhorde\/imp\/themes\/graphics","url":"\/headhorde\/imp\/mailbox.php?Horde=824bc4892d377db997f360c043d931e4&amp;no_newmail_popup=1&amp;mailbox=%BF%D0%B0%D0%BF%D0%BA%D0%B8%25.%2A%2Asearch_hij5m470p7so0o40w4og","indent":2},"beatnik":{"label":"Beatnik","expanded":false,"url":"\/headhorde\/incubator\/beatnik\/?Horde=824bc4892d377db997f360c043d931e4","icon":"\/headhorde\/incubator\/beatnik\/themes\/graphics\/beatnik.png","icondir":""},"administration":{"children":["beatnik","pigeon"]},"pigeon":{"label":"LDAP Browser","expanded":false,"url":"\/headhorde\/incubator\/pigeon\/?Horde=824bc4892d377db997f360c043d931e4","icon":"\/headhorde\/incubator\/pigeon\/themes\/graphics\/pigeon.png","icondir":""},"options":{"label":"\u041e\u043f\u0446\u0456\u0457","expanded":false,"icon":"\/headhorde\/themes\/graphics\/prefs.png","icondir":"","children":["options_horde","options_beatnik","options_pigeon","options_imp"],"indent":0},"options_horde":{"label":"\u0417\u0430\u0433\u0430\u043b\u044c\u043d\u0456 \u043e\u043f\u0446\u0456\u0457","expanded":false,"url":"\/headhorde\/services\/prefs.php?app=horde&amp;Horde=824bc4892d377db997f360c043d931e4","icon":"\/headhorde\/themes\/graphics\/horde.png","icondir":"","indent":1},"options_beatnik":{"label":"Beatnik","expanded":false,"url":"\/headhorde\/services\/prefs.php?app=beatnik&amp;Horde=824bc4892d377db997f360c043d931e4","icon":"\/headhorde\/incubator\/beatnik\/themes\/graphics\/beatnik.png","icondir":"","indent":1},"options_pigeon":{"label":"LDAP 
Browser","expanded":false,"url":"\/headhorde\/services\/prefs.php?app=pigeon&amp;Horde=824bc4892d377db997f360c043d931e4","icon":"\/headhorde\/incubator\/pigeon\/themes\/graphics\/pigeon.png","icondir":"","indent":1},"options_imp":{"label":"Webmail","expanded":false,"url":"\/headhorde\/services\/prefs.php?app=imp&amp;Horde=824bc4892d377db997f360c043d931e4","icon":"\/headhorde\/imp\/themes\/graphics\/imp.png","icondir":"","indent":1},"logout":{"label":"\u0412\u0438\u0439\u0442\u0438","expanded":false,"url":"\/headhorde\/login.php?logout_reason=logout&amp;Horde=824bc4892d377db997f360c043d931e4","target":"_parent","icon":"\/headhorde\/themes\/graphics\/logout.png","icondir":"","indent":0}};


2007-08-08 16:14:35 Michael Slusarz Comment #8 Reply to this comment
Is this a duplicate of Bug 5119?
Doesn't look like it, given that Jan could reproduce it a few months
after 5119 was closed.
Yes - but it is also possible that there are a bunch of other places 
where we need to quote the nodeID that wasn't addressed with the 
previous fix.  Don't know if single quotes are the problem or not, but 
thought I would mention to aid in determining the issue.
2007-08-08 15:01:48 Chuck Hagenbuch Comment #7 Reply to this comment
Is this a duplicate of Bug 5119?
Doesn't look like it, given that Jan could reproduce it a few months 
after 5119 was closed.
2007-08-07 23:33:08 Michael Slusarz Comment #6 Reply to this comment
Is this a duplicate of Bug 5119?
2007-08-07 14:10:26 hiromi (at) tac (dot) tsukuba (dot) ac (dot) jp Comment #5 Reply to this comment
Same here, but japanese translation.
No errors found in log files.
Firebug shows the javascript error as folowing;

---------

this.node_pos[nodeId] has no properties

   _setNodeToggle("imp")        javascript.php (line 385)

   buildLine("imp")                javascript.php (line 251)

   buildTree("imp")                javascript.php (line 140)

   _renderTree()                        javascript.php (line 75)

renderTree(["horde", "imp", "organizing", 3 more...], 
false)        javascript.php (line 65)

[Break on this error] if (this.node_pos[nodeId]['pos'] < 
this.node_pos[nodeId]['count']) {


2007-08-07 12:36:18 hiromi (at) tac (dot) tsukuba (dot) ac (dot) jp Comment #4 Reply to this comment
imp-HEAD (uk_UA.po, line 4861)
#: lib/IMAP/Tree.php:90 templates/search/search.html:184
msgid "Virtual Folders"
msgstr ""

When this item has translation, sidebar appears as empty, browser
complains about javascript error. Leaving this entry untranslated fix
the problem.
Same here, but japanese translation.

No errors found in log files.
2007-07-10 07:08:35 Jan Schneider Comment #3
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Reply to this comment
IIRC it was some missing array index. But the problem is reproducable 
anyway, n_horde_menu seems to be pretty messed up. I don't know if 
this happens in IMP_Tree already, or during json serialization.
2007-07-09 20:10:53 Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Please include the actual javascript error. Telling us that there is 
one isn't very helpful.
2007-07-04 11:16:33 anri (at) polynet (dot) lviv (dot) ua Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ Ukrainian translation breaks Horde's sidebar
Queue ⇒ IMP
Reply to this comment
imp-HEAD (uk_UA.po, line 4861)

#: lib/IMAP/Tree.php:90 templates/search/search.html:184

msgid "Virtual Folders"

msgstr ""



When this item has translation, sidebar appears as empty, browser 
complains about javascript error. Leaving this entry untranslated fix 
the problem.

Saved Queries