0.5 beta 4 Release Notes
0.5 beta 4 Release Notes
Contents |
[edit] Added localization support
The xajax javascript component can be localized in any language so that status messages, debug output and error messages are displayed in the language specified. Translated text is stored in separate files from the xajax_core.js so that it can be loaded as needed. Typically, xajax will automatically include a script reference in the head of the document when a language has been selected (other than 'en')
The xajax php component can also be localized in any language so that error messages are displayed in the selected language. Language data for PHP is found in xajaxLanguageManager.inc.php
The configure xajax for a specific language, first, ensure that the language is supported (see list below) and then add the language code to the xajax constructor or use the configure command.
// Allow xajax to attempt to detect the current URI
$sRequestURI = null;
// Instruct xajax to load the German language
$sLanguage = 'de';
$xajax = new xajax($sRequestURI, $sLanguage);
// This is not necessary, but shown here for completeness
$xajax->configure('language', $sLanguage);
It is strongly recommended that the language is specified in the constructor as some errors could occur during the construction of the xajax object and the language needs to be known at that point.
[edit] Supported languages
English (default) German
[edit] Submit a translation in your language
Please contact the xajax development team for information on creating language files... We need translations! :)
[edit] Memory leaks resolved in the xajax javascript
It has been found that both Internet Explorer and Firefox exhibit a memory leak condition when items are simply dereferenced. It was once thought that the browser's garbage collection mechanism would release memory associated with object which were no longer referenced in the javascript component. However, instead, we have to explicitly delete the objects for their memory to be released. The javascript component has been updated to reflect this.