phpbb Countdown

Does not support the Chinese? - phpbb Countdown

Does not support the Chinese?

by wang5555 » Wed Apr 22, 2015 1:02 pm

Great job. :D

But COUNTDOWN_TEXT and COUNTDOWN_COMPLETE can not use the Chinese, it will displayed "????????".
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to my forum!!
http://wang5555.hopto.org/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar
wang5555
Translator
Posts: 592
Joined: Wed Oct 27, 2004 2:57 pm
Location: Taiwan

Re: Does not support the Chinese?

by Raul [ThE KuKa] » Fri Apr 24, 2015 6:53 pm

Test please...

Open acp/countdown_module.php file.

FIND:

Code: Select all

         $config->set('countdown_text', $request->variable('countdown_text', ''));
         $config->set('countdown_complete', $request->variable('countdown_complete', ''));

REPLACE WITH:

Code: Select all

         $config->set('countdown_text', utf8_normalize_nfc($request->variable('countdown_text', '', true)));
         $config->set('countdown_complete', utf8_normalize_nfc($request->variable('countdown_complete', '', true)));


Tested with Andares (Administrator phpBB Spain).
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6754
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: Does not support the Chinese?

by wang5555 » Sat Apr 25, 2015 8:09 am

Raul [ThE KuKa] wrote:Test please...

Open acp/countdown_module.php file.

FIND:

Code: Select all

         $config->set('countdown_text', $request->variable('countdown_text', ''));
         $config->set('countdown_complete', $request->variable('countdown_complete', ''));

REPLACE WITH:

Code: Select all

         $config->set('countdown_text', utf8_normalize_nfc($request->variable('countdown_text', '', true)));
         $config->set('countdown_complete', utf8_normalize_nfc($request->variable('countdown_complete', '', true)));


Tested with Andares (Administrator phpBB Spain).

Very nice, thanks. :D
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to my forum!!
http://wang5555.hopto.org/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar
wang5555
Translator
Posts: 592
Joined: Wed Oct 27, 2004 2:57 pm
Location: Taiwan

Re: Does not support the Chinese?

by Miri4ever » Sun May 31, 2015 12:17 pm

This modification is also needed for German Umlauts like: üöä

Should be maybe updated inside the release
Homepage: Terra Oceanica
Miri4ever
Registered User
Posts: 414
Joined: Sat Mar 07, 2015 11:18 am

Re: Does not support the Chinese?

by yasser33311 » Wed Jun 03, 2015 8:18 pm

same with arabic : ا ب ج د
PhpBB Services - install, update, upgrade, customize: PM
User avatar
yasser33311
Registered User
Posts: 266
Joined: Sat Jul 27, 2013 1:27 pm
Location: algeria
Name: yasser ghe
Contact:

Re: Does not support the Chinese?

by VSE » Mon Feb 15, 2016 4:57 pm

Raul [ThE KuKa] wrote:Test please...

Open acp/countdown_module.php file.

FIND:

Code: Select all

         $config->set('countdown_text', $request->variable('countdown_text', ''));
         $config->set('countdown_complete', $request->variable('countdown_complete', ''));

REPLACE WITH:

Code: Select all

         $config->set('countdown_text', utf8_normalize_nfc($request->variable('countdown_text', '', true)));
         $config->set('countdown_complete', utf8_normalize_nfc($request->variable('countdown_complete', '', true)));


Tested with Andares (Administrator phpBB Spain).


That code should not use utf8_normalize_nfc, it's already done by adding true to request->variable.
Dictated but not read.
Official phpBB Extensions My Extensions & MODs
Please do not PM me for support.
User avatar
VSE
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 4991
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: Does not support the Chinese?

by Raul [ThE KuKa] » Tue Feb 16, 2016 1:41 pm

Only by adding true to request->variable and ready?
I did not know it, thanks VSE. :wink:
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6754
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact: