[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: Arabic Messages in KDE3
From:       Lars Knoll <lars () trolltech ! com>
Date:       2001-12-27 9:48:53
[Download RAW message or body]

Hi,

On Wed, 26 Dec 2001, Meni Livne wrote:

> (CCing to kfm-devel...)
> 
> On Wed, 26 Dec 2001 21:34:21, Isam Bayazidi wrote:
> > Now, I saw that in konqueror of KDE3 the messages are mostly in
> > the html page rather than in popup messages, that is indeed more
> > much better. But now Arabic messages are appering from left to right
> > rather than right left..
> 
> This is indeed a problem, with Hebrew too.
> 
> > Should I add the HTML attributes needed to make the text Right to
> > Left?
> > such as :
> > <p dir="rtl">blah blah</p>
> 
> I don't think this is such a great solution. There are other changes
> that need to be done in the HTML file for this to work. Doing dir=rtl
> isn't enough. We still have to change everytime we have align=left
> somewhere to align=right and vice versa. We also need to do
> changes to the stylesheet definition for the background images to
> be aligned right, and this requires some images on the page to be
> mirrored.
> 
> What I think should be done is add custom HTML files for RTL like
> intro_rtl.html, specs_rtl.html, konq_rtl.css etc., and also mirror
> the images that would otherwise appear wrong. Then we replace
> the line in konq_aboutpage.cc:
> QString res = loadFile( locate( "data", "konqueror/about/intro.html" ));
> 
> with something like:
> QString res = loadFile( locate( "data", kapp->reverseLayout() ? \
> "konqueror/about/intro_rtl.html" : "konqueror/about/intro.html"));
> 
> I think it should work. I hope I was clear...
> Anyone has a better idea for solving this?

Is this needed? I thought it already loads the file from the i18n dir (to
get the arabic or hebrew version). In this case all that's needed is to
create an appropriate html file, and include some mirrored images instead
of the regular ones.

Cheers,
Lars


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic