Hi,
I could narrow done the issue a bit. Just forget about the changeLanguage
listener and
- change the language with the Language-menu
-> the headers change their language according to the translation
file
- use the columnVisibilityButton of the table and switch any column on or
off
-> the headers change back to the orginial language
NOTE: the exact behavior might depend on your machines standard locale
setting. Mine is English.
I believe this must be a bug pretty deep down in the
internationalization/locale code, as there is a similar behavior with
SelectBoxes.
Cheers,
Fritz
On Wed, 19 Aug 2009, Fritz Zaucker wrote:
> Hi,
>
> (with 0.8.2 and 0.8-trunk rev 19731)
>
> I have a table with several columns:
>
> col0 : english text
> col1 : german text
> col2 : language indenpendent data
>
> After setting up the tablemodel and table, I hide col1 (for english mode,
> show only col0 and col3).
>
> In a changeLocale event handler I reverse the visibility on col0 and col1
> depending on the new locale.
>
> This works, but has an undesired side effect. The column headers are defined
> with this.tr() to also change their language depending on the selected
> locale. This works fine, as long as I don't change the column visibility
> inside the changeLocale handler. If I do change the visibility, the column
> headers don't change their language.
>
> A bit complicated to explain. Therefore I have attached a complete working
> example including the de.po language file, that demonstrates the behavior.
> Just uncomment line 117 in Application.js to see the broken behavior.
>
> Is it a bug? Or am I doing something wrong?
>
> Thanks and best regards,
> Fritz
>
> P.S.: No, I don't really want to change the model data each time a switch
> languages. There is quite a lot of data involved.
>
>
--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker +41 62 775 9900 (switch board)
Aarweg 15 +41 79 675 0630 (mobile)
CH-4600 Olten fax: +41 62 775 9905
Schweiz web: www.oetiker.ch
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel