bugGNU Octave - Bugs: bug #46204, Right to left alignment

 
 

bug #46204: Right to left alignment

Submitter:  None
Submitted:  Tue 13 Oct 2015 10:01:55 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Ran Sopher Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 02 Nov 2015 05:21:01 PM UTC, comment #7: 

@Avinoam: sorry I don't handle merges, only Rik and jwe generally do.

Pantxo Diribarne <pantxo>
Group Member
Sat 31 Oct 2015 11:47:06 AM UTC, comment #6: 


@Pantxo:

Thanks for the fix. Could you (or other dev) please merge stable branch to the default?


Avinoam Kalma <avinoam>
Group Member
Sat 31 Oct 2015 10:08:03 AM UTC, comment #5: 

I pushed a changeset that makes the whole GUI layout (at application level) default to "left-to-right". That way all children widgets will also default to that layout direction:

http://hg.savannah.gnu.org/hgweb/octave/rev/d29614aed16f

You can see attached how default warning dialogs (for which Qt provides partial translation) will appear (next bug fix release) now with Hebrew locale.

Now if ever someone provides a translation file for a language that should be written right-to-left, we can force this layout direction on a per widget basis (e.g. for menus and dialog only).

Closing report.


Pantxo Diribarne <pantxo>
Group Member
Fri 16 Oct 2015 09:49:31 PM UTC, comment #4: 


Octave default should be left-to-right for Arabic and Hebrew, see
the prompt appearance in the attached screen shot, and the
appearance of commands and directories in other windows.




Avinoam Kalma <avinoam>
Group Member
Fri 16 Oct 2015 02:51:57 PM UTC, comment #3: 

@Ran: the default in Qt library (the GUI library we use in Octave) is right-to-left alignment for Arabic and Hebrew locale (see [1]). You said that you had never seen such alignment in other softwares.
Do you think we should force left-to-right layout even when we have Hebrew translation files? What about softwares that do have translation files in Hebrew (which is not the case in Octave). Could you provide a screen-shot of such software? 

[1] http://doc.qt.io/qt-4.8/qt.html#LayoutDirection-enum

Pantxo Diribarne <pantxo>
Group Member
Wed 14 Oct 2015 07:39:47 PM UTC, comment #2: 

It's working, thnaks a lot!

Anonymous
Wed 14 Oct 2015 01:06:52 PM UTC, comment #1: 

What happens if you set "Language" to English (en_US) in File | Preferences, General tab ?

Philip Nienhuis <philipnienhuis>
Group Member
Tue 13 Oct 2015 10:01:55 PM UTC, original submission:  

Dear Madam/Sir,

I am now trying using Octave for the very first time after years of using Matlab. I started using the GUI, but unfortunately the top menu/toolbar, as well as the command line, are in right to left alignment, which is very confusing (kindly see the image attached). It might be because my Windows 7 is Hebrew/Arabic compatible, but I have never encountered this with any other pieces of software I use. I would be thankful if you could please advice on how to solve th issue.

Kindest regards,
Ran

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #35341:  Hebrew-Warning.png added by pantxo (17KiB - image/png)
file #35215:  octave-l2r.jpg added by avinoam (133KiB - image/jpeg)
file #35192:  octave bug.PNG added by None (88KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by avinoam (Updated the item)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-10-31 pantxo Attached File- Added Hebrew-Warning.png, #35341
        StatusNone Fixed
        Open/ClosedOpen Closed
    2015-10-16 avinoam Attached File- Added octave-l2r.jpg, #35215
    2015-10-13 None Attached File- Added octave bug.PNG, #35192

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code