Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-8353 now.

Edit language (fix completed in vcs)

When trying to edit a complex language like Spanish, Arabic, Turkish, got some errors :
[phpBB Debug] PHP Notice: in file /includes/acp/acp_language.php on line 1272: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument

I fix it doing this :
Code: Select all
#
#---- [ OPEN ] ----
#
root//includes/acp/acp_language.php
#
#--- [ FIND ] ----
#
function add_input_field()
#
#--- [ FIND ] ----
#
$value         = array_shift($keys);
#
#---- [ REPLACE WITH ] ----
#
$value         = utf8_normalize_nfc( array_shift($keys) );

After this I'm able to edit the language, and found some invalid charactes ;)

And some times, ( this should be a translator problem by duplicated variables ) :
[phpBB Debug] PHP Notice: in file /language/tr/common.php on line 47: Constant TR_LANG_VERSION already defined

No clue how to fix it

Tested on 3.0.5 RC1, fresh install, no mods

Comments / History

Assigned ticket to user "leviatan21"

Action performed by Acyd Burn (Server Manager) on Jun 19th 2009, 17:18

Posted by leviatan21 on Jun 19th 2009, 17:29

Should we warm Turkish translator to delete 'TR_LANG_VERSION' variable from the common.php ?

Posted by Acyd Burn (Server Manager) on Jun 19th 2009, 18:17

Do you have access to the Translators forum here? You could then post a topic about it, for convenience.

Posted by leviatan21 on Jun 19th 2009, 19:17

Oops,
I think is not an official translation, the one in here is from http://www.phpbbturkey.com
the one I have is from http://www.phpbbturkiye.net
but is more important than the previous site

Changed ticket status from "New" to "Fix in progress"

Action performed by leviatan21 on Jun 20th 2009, 19:15

Linked ticket with changeset: r9637

Action performed by leviatan21 on Jun 20th 2009, 19:23

Changed ticket status from "Fix in progress" to "Fix completed in SVN"

Action performed by leviatan21 on Jun 20th 2009, 19:23

Posted by angelside on Jun 22nd 2009, 20:44

This is not phpbb a bug, my language not official, but is very excellent then official package.

I use this variable on version controlling on ACP.

Code: Select all
define('TR_LANG_VERSION', '0.0.73.a');


Never see any error.
But if the slightest error is at fault in my next version I will remove.

Ticket details

Related SVN changesets