Bug 5905 - SetupLanguage help and title bars get mismatched after scrolling up and down
: SetupLanguage help and title bars get mismatched after scrolling up and down
Status: CLOSED FIXED
Product: SB Controller
Classification: Unclassified
Component: UI
: unspecified
: Macintosh Other
: P2 normal (vote)
: ---
Assigned To: Richard Titmuss
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-24 20:28 UTC by Ben Klaas
Modified: 2009-09-08 09:15 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Klaas 2007-10-24 20:28:32 UTC
oreillymj wrote:[color=blue]

>
> I then noticed that on the first page of the wizard, the Chosse
> Language header appeared in the wrong language for the item  
> selected in
> the list. It was offset by 1. Initially it says "Choose Language" and
> English is selected in the list, but move up and down the menu and
> English gets a header of "Scegliere la lingua"
>

I have successfully reproduced this bug.
Comment 1 Stuart Hickinbottom 2007-10-25 00:35:20 UTC
I see that too. It doesn't seem hard to reproduce - just factory reset the remote and I see it.
Comment 2 Ben Klaas 2007-10-26 10:05:49 UTC
from SetupLanguageApplet.lua:

function _showLang(self, choice)
        if not choice then
                choice = self:getSettings().locale
        end

        -- this uses private data/methods from Applet and locale, but it's needed for speed
        locale:parseStringsFile(choice, self._entry.stringsFilepath, self._stringsTable)
        Framework:styleChanged()
end

locale:parseStringsFile is getting all of the proper strings from the strings.txt file, but Framework:styleChanged() for some reason is always one step behind in updating the title bar. Thus, if you scroll up from English to Deutsch, everything but the title bar updates correctly. Then when you move from Deutsch to Espanol, title bar updates to Deutch translation.

Looks like styleChanged() is a C function?

punting this to Richard for comment
Comment 3 Richard Titmuss 2007-10-29 10:04:35 UTC
*** Bug 5785 has been marked as a duplicate of this bug. ***
Comment 4 Ben Klaas 2007-10-29 10:09:09 UTC
*** Bug 5785 has been marked as a duplicate of this bug. ***
Comment 5 Ben Klaas 2007-10-29 10:13:08 UTC
r754 should fix this
Comment 6 Ben Klaas 2007-10-29 10:17:00 UTC
fix verified on jive desktop with r754
Comment 7 James Richardson 2008-12-15 11:56:38 UTC
This bug has been fixed in the latest release of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.