forked from len0rd/rockbox
Remove ugly RTL writing direction hack.
Instead of hard coding the languages to be rendered as RTL make it dependent on a translation string. Translate the string LTR to RTL to switch to RTL layout. This is equivalent to the handling done in the i18n example for Qt Jambi and while not the best solution at least cleaner than hardcoded languages. Update hebrew translation for this which is currently the only RTL translation. lupdate all other translations. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26865 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fcea117d21
commit
d258c58937
17 changed files with 6027 additions and 3520 deletions
|
|
@ -65,7 +65,10 @@ int main( int argc, char ** argv ) {
|
|||
delete user;
|
||||
app.installTranslator(&translator);
|
||||
app.installTranslator(&qttrans);
|
||||
if(applang.startsWith("he"))
|
||||
//: This string is used to indicate the writing direction. Translate it
|
||||
//: to "RTL" (without quotes) for RTL languages. Anything else will get
|
||||
//: treated as LTR language.
|
||||
if(QObject::tr("LTR") == "RTL")
|
||||
app.setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
RbUtilQt window(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue