Donate Share December 2003: Project of the Month

PhpGedView

Tracker: Feature Requests

5 Chinese Translation Support for lightbox module - ID: 2167852
Last Update: Comment added ( mr_bobwang )

Currently Chinese translation is supported in the PhpGedView main
interface, however when it comes to the lightbox picture slideshow module,
attempts to add a language file for the module specifically have resulted
in erroneous outputs consisting of boxes and question marks.

Attached is a zip file containing my current simplified Chinese translation
for the PhpGedView main interface and the lightbox module.

Aside from this, to display Chinese names properly, the "Get display name
from GEDCOM" must be selected from "GEDCOM Configuration" and to display
Chinese gregorian dates properly one needs to set "Date format" as "Y年
m月 d日" from "Configuration of supported languages". The default setting
from the PhpGedView package produces erroneous date displays.


Bob Wang ( mr_bobwang ) - 2008-10-15 08:47

5

Closed

Fixed

Nobody/Anonymous

None

phpGedView

Public


Comments ( 4 )

Date: 2008-10-16 23:06
Sender: mr_bobwang

Dear fisharebest:

I have successfully removed the UTF-8 BOM by using a handy php code. The
code and BOM removed language files are attached in a zip.
File Added: removeBOM.zip


Date: 2008-10-16 21:07
Sender: fisharebestProject AdminAccepting Donations

Bob - thanks. These files look good to me. I've added them to SVN.

The error "cannot modify header information" is caused by the "BOM"
(byte-order-mark). This is special hidden character at the beginning of
the file that indicates that it contains UTF8. PHP program files need to
have this removed. I can do this easily.

Regards,

Greg


Date: 2008-10-16 19:44
Sender: mr_bobwang

Dear fisharebest:

The display problem is fixed after changing to UTF-8, attached is a zip
containing the updated lightbox module translation in simplified Chinese
(zh) and the Chinese date format text file.

Although all is functional, there is an error showing at top of the page
:

ERROR 2: Cannot modify header information - headers already sent by
(output started at
E:\xampplite\htdocs\phpgedview\modules\lightbox\languages\lang.zh.php:1)

Warning: Cannot modify header information - headers already sent by
(output started at
E:\xampplite\htdocs\phpgedview\modules\lightbox\languages\lang.zh.php:1) in
E:\xampplite\htdocs\phpgedview\includes\functions_print.php on line 539

I did the translation help.zh.php for lightbox then could not find where
it is actually used.
File Added: lightbox module chinese translation and date format in
chinese.zip


Date: 2008-10-16 10:43
Sender: fisharebestProject AdminAccepting Donations

Bob - thank-you for these files.

I have added the main phpGedView translations to the SVN repository - they
will be included in the next release (4.1.6).

There is a problem with the lightbox translation file. The contents are
not valid UTF8. Can you check that it is saved in the correct format, and
provide an updated file?

PS - In SVN/4.1.6, the option "get name from gedcom" has been removed.
Now, we *always* get the name from the gedcom.

PS - Can you supply the date format as an attached file (saved as UTF8).
It is difficult to copy/paste the characters from the sourceforge website.


Attached Files ( 3 )

Filename Description Download
Chinese for phpgedview.zip Chinese translations for PhpGedView main interface and the lightbox picture slideshow module Download
lightbox module chinese translation and date format in chinese.zip Chinese date format and Chinese lightbox module translations Download
removeBOM.zip php code for BOM removal and BOM removed lightbox chinese language files Download

Changes ( 6 )

Field Old Value Date By
File Added 297684: removeBOM.zip 2008-10-16 23:06 mr_bobwang
status_id Open 2008-10-16 21:07 fisharebest
resolution_id None 2008-10-16 21:07 fisharebest
close_date - 2008-10-16 21:07 fisharebest
File Added 297653: lightbox module chinese translation and date format in chinese.zip 2008-10-16 19:44 mr_bobwang
File Added 297431: Chinese for phpgedview.zip 2008-10-15 08:48 mr_bobwang