This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11180 - On windows layout does is not aligned to the right when language is set to Hebrew
Attached to Project:
Rockbox
Opened by Tomer Shalev (tomers) - Wednesday, 07 April 2010, 06:40 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 07 April 2010, 20:10 GMT+2
Opened by Tomer Shalev (tomers) - Wednesday, 07 April 2010, 06:40 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 07 April 2010, 20:10 GMT+2
|
DetailsIn main(), there's the following code which automagically sets GUI layout to be aligned from right to left when the language is Hebrew (and in the future, Arabic):
if(applang == "he") app.setLayoutDirection(Qt::RightToLeft); When the application loads for the first time, there's no configuration yet, and the application chooses the interface language according to the system settings. In Windows, it correctly detects that Hebrew is to be used, if that is the case, but it doesn't sets the layout direction accordingly. Only after the settings are saved (when the application is closed), it will set layout direction correctly upon application load. Tested on rbutil r25471, taken from http://tinyurl.com/rbutil-dev/. See attached screenshot. |
This task depends upon
Closed by Dominik Riebeling (bluebrother)
Wednesday, 07 April 2010, 20:10 GMT+2
Reason for closing: Fixed
Wednesday, 07 April 2010, 20:10 GMT+2
Reason for closing: Fixed
QString QLocale::name () const
Returns the language and country of this locale as a string of the form "language_country", where language is a lowercase, two-letter ISO 639 language code, and country is an uppercase, two-letter ISO 3166 country code.
Rockbox Utility, however, stores the language as the same string the translation file uses. In case of hebrew this is "he", so it does match after a restart. I never liked this special casing for hebrew.