Bug 7281 - Language Selector in first run wizard - Hebrew can not be selected
: Language Selector in first run wizard - Hebrew can not be selected
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Documentation
: unspecified
: Macintosh MacOS X 10.5
: P1 normal (vote)
: ---
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-22 07:56 UTC by James Richardson
Modified: 2009-09-08 09:25 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 James Richardson 2008-02-22 07:56:58 UTC
When going through the Setup Wizard for SC7 for the first time on OS X 10.x, I noticed a language selector drop down.

When browsing the Welcome Screen (http://localhose:9000/settings/server/wizard.html)I selected the various language options.

For Hebrew, the text showed as English (left justified)

For the VERY NEXT language selected, the text showed as Right Justified NOTE: This will happen only after selecting Hebrew first, then another language
Comment 1 James Richardson 2008-02-22 10:17:53 UTC
Update, Windows XP first run wizard has the same issue
Comment 2 Andy Grundman 2008-02-23 06:36:00 UTC
The reason that page doesn't display in Hebrew is because we don't have Hebrew translations for the wizard text.  Maybe we should simply remove Hebrew from the list of choices in the wizard?

Here is a patch to fix the issue where Hebrew isn't RTL and the language selected after Hebrew is RTL, although this is meaningless without a Hebrew translation.  Dean: How come we no longer have things translated into Hebrew anyway?

--- Slim/Web/Settings/Server/Wizard.pm	(revision 29818)
+++ Slim/Web/Settings/Server/Wizard.pm	(local)
@@ -68,9 +68,6 @@
 sub handler {
 	my ($class, $client, $paramRef, $pageSetup, $httpClient, $response) = @_;
 
-	# set right-to-left orientation for Hebrew users
-	$paramRef->{rtl} = 1 if ($serverPrefs->get('language') eq 'HE');
-
 	$paramRef->{languageoptions} = Slim::Utils::Strings::languageOptions();
 
 	# The hostname for SqueezeNetwork
@@ -112,10 +109,14 @@
 	
 	# handle language separately, as it is in its own form
 	if ($paramRef->{saveLanguage}) {
+		$log->debug( 'setting language to ' . $paramRef->{language} );
 		$serverPrefs->set('language', $paramRef->{language});		
 	}
 
 	$paramRef->{prefs}->{language} = Slim::Utils::Strings::getLanguage();
+	
+	# set right-to-left orientation for Hebrew users
+	$paramRef->{rtl} = 1 if ($paramRef->{prefs}->{language} eq 'HE');
 
 	foreach my $namespace (keys %prefs) {
 		foreach my $pref (@{$prefs{$namespace}}) {
Comment 3 Blackketter Dean 2008-02-23 07:13:02 UTC
Arg, I didn't realize that we weren't continuing Hebrew translations in 7.0.

Ok, please remove hebrew from the wizard screen but leave it in the server settings with the other non-primary translations.

Comment 4 Andy Grundman 2008-02-23 07:26:59 UTC
OK, fixed in change 17696.
Comment 5 James Richardson 2008-02-26 09:36:25 UTC
Verified fixed