Author: bklaas
Date: Fri Apr 15 15:09:28 2011
New Revision: 9425

URL: http://svn.slimdevices.com/jive?rev=9425&view=rev
Log:
Fixed Bug: 16748
Description: specialized homeMenuText for nodes in the home menu was screwing 
up the localization code
opt to punt and use the same text for when items are customized the home menu 
this is the lesser of two evils: text that's slightly out of context (e.g., 
"Artists" instead of "Browse Artists") rather than
text that is in the wrong language


Modified:
    7.6/trunk/squeezeplay/src/squeezeplay/share/jive/ui/HomeMenu.lua

Modified: 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/ui/HomeMenu.lua
URL: 
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay/share/jive/ui/HomeMenu.lua?rev=9425&r1=9424&r2=9425&view=diff
==============================================================================
--- 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/ui/HomeMenu.lua (original)
+++ 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/ui/HomeMenu.lua Fri Apr 15 
15:09:28 2011
@@ -493,6 +493,8 @@
                local menuIdx = self.nodeTable[node].menu:addItem(item)
                -- items in the home menu get special handling and a new table 
created for them
                if node == 'home' then
+                       --this breaks localization code, punt for now. items 
moved to the home menu will not display custom text
+                       --[[
                        local labelText = item.homeMenuText
                        if not labelText then
                                if item.text.str then
@@ -507,6 +509,10 @@
                        local myItem = _uses(item, { 
                                text = labelText,
                         })
+                       --]]
+
+                       local myItem = _uses(item)
+
                        -- rewrite the callback for CM to use myItem instead of 
item
                        myItem.cmCallback = function()
                                
appletManager:callService("homeMenuItemContextMenu", myItem)

_______________________________________________
Jive-checkins mailing list
Jive-checkins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to