Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Bug Reports & Fixes:
HTMLArea should check for successful loading of a lang file



vigna
Novice

Feb 14, 2005, 7:31 AM


Views: 16535
HTMLArea should check for successful loading of a lang file

The content of the language file are essential for the correct working of HTMLArea, as it sets up I18N. However, the loading mechanism does not check at all that a language has been actually loaded, resulting in missing initialisation of I18N.

This may happen very easily if, for instance, the HTMLArea user sniffs the client language and tries to pass it to HTMLArea, hoping that it's supported. If this is not the case, essential parts will be missing.

I suggest that the actual loading of a lang file should be checked (e.g., by checking I18N) and then in case something went wrong lang/en.js is loaded.