PDA

View Full Version : Additional Improvements tot he Multi-Language System



djspark
09-12-06, 07:56 PM
I know with 2.5.7 there were great strides made to improve the multi-language system. I'm proposing some additional changes for the future.

1. Ability to setup a new client with a predefined language selection, and store it in their profile.
2. Ability for the user to store a desired language selection in profile.
3. Language selection in admin pages ( I understand this is less likely to happen soon )
4. Ability to define e-mail templates based upon each language option.
5. Ability to assign encoding per language.

I think with these language functions added, the system will be much better for the international market and will probably have a larger pool of clients it can work with.

Matt
09-12-06, 09:27 PM
I added a new option "No, there are more important new features" as you only had two yes options for people to vote for! :)

Matt

djspark
09-12-06, 10:37 PM
Haha, so you caught that one eh? hmm... I wonder who voted no...

Pass me your user class file and your profile edit file and I'll add features 1 & 2 for you

Patty
09-13-06, 12:14 AM
Definetelly important to have multilanguage admin.
The other features... well, not that important but interesting to have. :)

djspark
09-19-06, 05:49 PM
Yay, even with the covert addition the poll seems to be going in the right direction ;-)

r2w
09-21-06, 01:41 AM
Hi Matt,
Please add "charset" to admin panel.
Like $system_charset global variable.
And use code for pipe.php and other files to convert messages like this:

//$system_charset = 'UTF-8';

//For FreeBSD like...
if (!function_exists('iconv') && function_exists('libiconv')) {
function iconv($input_encoding, $output_encoding, $string) {
return libiconv($input_encoding, $output_encoding, $string);
}
}

$message_charset = '';

$header_data = imap_mime_header_decode($subject);
if (count($header_data) > 0) {
$message_charset = ($header_data[0]->charset == 'default') ? 'ASCII' : $header_data[0]->charset;
}

$subject = iconv($message_charset, $system_charset.'//TRANSLIT', $header_data[0]->text);
$message = iconv($message_charset, $system_charset.'//TRANSLIT', $message);

Without this support system not working in russian language.
(maybe in other languages too)
Or use "UTF-8" for admin panel and iconv functions for support messages...
Thanks.