Hello,
I found problem to save Japanese translate page, and fixed it by modified language file directory.
Bug description:
Save Japanese Interface translation page, then browser displays 500 error, and nothing displayed.
I checked server error log file, but there is no error message about 500 error.
Procedure:
1.Open Interface Translation page, and click "Edit" of Japanese.
2. Click "Save" button.
Then error occurred.
Environment:
CentOS 5.3
Apache 2.2.3
PHP 5.2
Attachement:
I attached the file that including following three files.
language_ja.php.org -- Original file
language_ja.php_out_ng -- Saved file
language_ja.php_out_ok -- Modified language_ja.php_out_ng, phpMyFAQ works file with this file
Fixed point:
$PMF_LANG["dir"] : This line is connected with comment in one line. So program can not convert double quotation to single quotation
$PMF_LANG["ad_passwd_fail"] : Original Japanese string including single quotation, so the string including four single quotation after saved.
$PMF_LANG['msgAttachmentNotFound'] : Similar case as ad_passwd_fail. This message does not translated yet, so single quotation of "you're" caused problem.
Best regards,
Hiromi Suzuki
hiromi-suzuki@garage.co.jp
V 2.7 beta 3 Japanese translate page become 500 error
Moderator: Thorsten
-
- Posts: 5
- Joined: Mon Aug 22, 2011 1:07 pm
V 2.7 beta 3 Japanese translate page become 500 error
You do not have the required permissions to view the files attached to this post.
-
- Posts: 5
- Joined: Mon Aug 22, 2011 1:07 pm
Re: V 2.7 beta 3 Japanese translate page become 500 error
Hi,
I noticed that there is a problem with single/double quotation in strings.
For example, following line is added by phpMyFAQ. It seems single quote is converted to single quote + \ as below.
$LANG_CONF['main.enableLoginOnly'] = array(0 => \'checkbox\', 1 => \'Complete secured FAQ (default: deactivated)\')
Then phpMyFAQ failed to load the file, and browser display white page.
Double quote is used to HTML tags like as <font color="red">.
I changed it to <font color="red"> in language file, then phpMyFAQ works fine.
But I pressed save button on the page, then browser display white page.
I checked language file, the string was saved as <font color="red">.
So I think convert process needed while load/save the string with single/double quotation.
Regards,
Hiromi Suzuki
I noticed that there is a problem with single/double quotation in strings.
For example, following line is added by phpMyFAQ. It seems single quote is converted to single quote + \ as below.
$LANG_CONF['main.enableLoginOnly'] = array(0 => \'checkbox\', 1 => \'Complete secured FAQ (default: deactivated)\')
Then phpMyFAQ failed to load the file, and browser display white page.
Double quote is used to HTML tags like as <font color="red">.
I changed it to <font color="red"> in language file, then phpMyFAQ works fine.
But I pressed save button on the page, then browser display white page.
I checked language file, the string was saved as <font color="red">.
So I think convert process needed while load/save the string with single/double quotation.
Regards,
Hiromi Suzuki
Re: V 2.7 beta 3 Japanese translate page become 500 error
Hi,
it's fixed now. Thanks for the hint.
bye
Thorsten
it's fixed now. Thanks for the hint.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist