[Adium-devl] Localizations for RTL languages
Ofri Wolfus
ofri.wolfus at gmail.com
Sun Aug 13 18:14:27 UTC 2006
That's because I canceled my first email :-P I've just repost it with
a URL to the image, but thanks :)
On 13/08/2006, at 21:03, Evan Schoenberg wrote:
> For some reason, the moderation request for Ofri's email,
> forwarded below, disappeared from the mailman interface... I've
> upped the max size on messages since patches and images are very
> appropriate for the list; it should go through fine now. Ofri,
> apologies for the strange redirect.
>
> Begin forwarded message:
>
>> From: Ofri Wolfus <ofri.wolfus at gmail.com>
>> Date: August 13, 2006 1:46:12 PM EDT
>> To: Adium Dev <adium-devl at adiumx.com>
>> Subject: Localizations for RTL languages
>>
>>
>> Hi all,
>>
>> I was emailed by Oded Shopen, asking me about Hebrew localization
>> and so I came up with a little class that'll make this possible.
>> Basically, GUI in any RTL language needs to be an exact mirror of
>> LTR GUI, so my class checks for the active localization of the app
>> and if needed, mirrors all views in any window that is drawn to
>> screen. It has some small bugs with views that are moved manually
>> and assume to be in a specific location, but these are not so
>> common and may be easily fixed. Screenshot attached.
>>
>> So my question is if we want this going into 1.0. The class is
>> fully self contained, and works as follows.
>> First, it checks for the value of the "DPDefaultDisplayDirection"
>> key in the Info.plist, which may be either "LTR" or "RTL". This
>> value (if found) represents the direction of the nibs set.
>> After that, the class checks the active localization of the app,
>> and its writing direction. If the writing direction differs from
>> the value defined for the default display direction, it'll
>> automatically mirror every view that's drawn in a window. Moving
>> views inside a window will act the same, but changing the
>> superview of a view will cause it to be mirrored again based on
>> its new location in its new superview.
>>
>> Attached is an experimental diff from rev 17251 that uses my
>> class. In order to test it, make a copy of some .lproj directory
>> and rename it to an RTL language. Then set your main language in
>> the International panel to that language, and restart Adium.
>>
>> Known bugs: 1. The To and From popups in the message window are
>> drawn in the wrong direction, and updates only when you move the
>> mouse. 2. Only some of the tooltips get mirrored.
>>
>> ToDo: Auto reordering of table columns?
>>
>> - Ofri
>>
>> - - - - - - - - - - - - - - - - - - -
>> http://www.dpompa.com
>> - - - - - - - - - - - - - - - - - - -
>>
> <Picture 1.jpg>
> <rtl_localization_support.diff>
>>
>>
>
> _______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20060813/35c96611/attachment-0001.html>
More information about the devel
mailing list