View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0013814 | Scribus | NLS | public | 2016-03-15 10:58 | 2016-03-22 23:49 |
Reporter | Fahad | Assigned To | jghali | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.5.2.svn | ||||
Fixed in Version | 1.5.2.svn | ||||
Summary | 0013814: Main Window layout should be RTL when Arabic translation selected | ||||
Description | Right now when you select Arabic or any RTL user interface or your locale not LTR, the main window keep LTR layout. Please see the attached screenshot. It should be RTL too. I have attached patch fix this problem. | ||||
Steps To Reproduce | set LANG to LANG=ar_OM.UTF-8 or choose Arabic in language interface in preferences | ||||
Tags | HOST-Oman | ||||
Patch | Yes | ||||
|
|
|
layout_dir.diff (606 bytes)
diff --git a/scribus/scribus.cpp b/scribus/scribus.cpp --- a/scribus/scribus.cpp +++ b/scribus/scribus.cpp @@ -319,7 +319,7 @@ { qApp->setStyleSheet(QString(stylesheet)); } - + qApp->setLayoutDirection(QLocale(ScCore->getGuiLanguage()).textDirection()); previewDinUse = false; printDinUse = false; internalCopy = false; @@ -8413,6 +8413,7 @@ m_prefsManager->languageChange(); CommonStrings::languageChange(); LanguageManager::instance()->languageChange(); + qApp->setLayoutDirection(QLocale(ScCore->getGuiLanguage()).textDirection()); //Update actions if (actionManager!=NULL) { |
|
|
|
Cool! |
|
Patch applied, thanks! |
|
Uploaded a screenshot of how Preferences now look like in RTL mode |
|
|
|
|
|
also updated how New Document menu looks like Is there a way to ifdef RTL the UI ? |
|
Ok.. made a new ticket for formatting in RTL layouts in pref menus 0013839 jghali applied Fahad's patch in r21087 Thanks! |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-03-15 10:58 | Fahad | New Issue | |
2016-03-15 10:58 | Fahad | File Added: scribus-arabic.jpg | |
2016-03-15 10:59 | Fahad | File Added: layout_dir.diff | |
2016-03-15 11:00 | Fahad | Tag Attached: HOST-Oman | |
2016-03-15 11:03 | Fahad | File Added: scribus-arabic-after-patch.jpg | |
2016-03-15 22:28 | Kunda | Note Added: 0039205 | |
2016-03-15 22:41 | jghali | Note Added: 0039206 | |
2016-03-15 22:41 | jghali | Status | new => resolved |
2016-03-15 22:41 | jghali | Fixed in Version | => 1.5.2.svn |
2016-03-15 22:41 | jghali | Resolution | open => fixed |
2016-03-15 22:41 | jghali | Assigned To | => jghali |
2016-03-16 04:28 | Kunda | Note Added: 0039209 | |
2016-03-16 04:29 | Kunda | File Added: Screenshot 2016-03-15 23.27.53.png | |
2016-03-16 13:25 | Kunda | File Added: new-document.png | |
2016-03-16 18:29 | Kunda | Note Added: 0039215 | |
2016-03-22 15:42 | Kunda | Issue cloned: 0013839 | |
2016-03-22 15:42 | Kunda | Relationship added | related to 0013839 |
2016-03-22 15:46 | Kunda | Note Added: 0039339 | |
2016-03-22 15:46 | Kunda | Status | resolved => closed |
2016-03-22 15:48 | Kunda | Category | General => NLS |
2016-03-22 23:49 | Kunda | Relationship added | related to 0006017 |