This Help forum is for issues relates to the latest release (1.7.10/11/12). For issues related to development versions please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."
  • Page:
  • 1
  • 2

TOPIC: Traditional Chinese language support

Traditional Chinese language support 1 week 6 days ago #1

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
Hi,

I have deployed webtrees 1.7.14 and everything works fine. But I need help or support for the following:

1. The "language menu" does not include the "Traditional Chinese" language, but I do see there exists the language message file for Traditional Chinese under webtrees/resources/lang/zh-Hant. Can you please add this language and enable the supported code?

2. The zh-Hant/messages.po file still contains some Simplified Chinese and needs some update.

3. I can do the update if you let me know which part of code or data I need to work with. I am very new to webtrees and PHP development.

Thanks.

Yu-Ten Lee
The administrator has disabled public write access.

Traditional Chinese language support 1 week 6 days ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11465
> 1. The "language menu" does not include the "Traditional Chinese" language

You can enable this on your own site:

Control panel -> Website -> Languages

> 2. The zh-Hant/messages.po file still contains some Simplified Chinese and needs some update.

The zh-Hant translation was updated recently (after the 1.7.14 release was created).

> 3. I can do the update if you let me know which part of code or data I need to work with

Which version of webtrees are you using?

You said "1.7.14".
You said "webtrees/resources/lang/zh-Hant"

But 1.7 uses language/zh-Hant.mo
and 2.0 uses resources/lang/zh-Hant/message.php

For 1.7, download the .MO file from weblate.iet.open.ac.uk/projects/webtrees/webtrees-17/zh_Hant
Save as language/zh-Hant.mo

For 2.0, download the .PO file from weblate.iet.open.ac.uk/projects/webtrees/webtrees/zh_Hant
Save as resources/lang/zh-Hant/message.po
Delete resources/lang/zh-Hant/message.php. It will be recreated automatically, if the server has write-permission.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Traditional Chinese language support 1 week 6 days ago #3

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
fisharebest wrote:
> 1. The "language menu" does not include the "Traditional Chinese" language

You can enable this on your own site:

Control panel -> Website -> Languages

ylee: The above configuration change only applies to the admin page(http://localhost/webtrees/admin.php), but I am talking about the user's main page, which has "Theme, Language, Sign in" menus. There is no "Traditional Chinese"(as 繁體中文) in user's Language menu.

> 2. The zh-Hant/messages.po file still contains some Simplified Chinese and needs some update.

The zh-Hant translation was updated recently (after the 1.7.14 release was created).

ylee: I was talking about the messages.po file I got from github.com/fisharebest/webtrees/, which should be 2.0 based.
Here are some example lines:
Setup wizard for webtrees : webtrees 安装向导
ylee: last two characters are Simplified Chinese.
Site verification codes do not work when webtrees is installed in a subfolder. : webtrees 安装在子文件夹中时网站验证码不能工作。
* * * * *
ylee: there are 5 Simplified Chinese characters in the line above as marked with '*' underneath(# 9, 10, 12, 13, 14 characters).

> 3. I can do the update if you let me know which part of code or data I need to work with

Which version of webtrees are you using?

ylee: I deployed 1.7.14 for users. But I cannot find any po files in the 1.7.14 source zip. That's why I got 2.0 po files.

You said "1.7.14".
You said "webtrees/resources/lang/zh-Hant"

But 1.7 uses language/zh-Hant.mo
and 2.0 uses resources/lang/zh-Hant/message.php

For 1.7, download the .MO file from weblate.iet.open.ac.uk/projects/webtrees/webtrees-17/zh_Hant
Save as language/zh-Hant.mo

For 2.0, download the .PO file from weblate.iet.open.ac.uk/projects/webtrees/webtrees/zh_Hant
Save as resources/lang/zh-Hant/message.po
Delete resources/lang/zh-Hant/message.php. It will be recreated automatically, if the server has write-permission.
The administrator has disabled public write access.

Traditional Chinese language support 1 week 6 days ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11465
> ylee: The above configuration change only applies to the admin page(http://localhost/webtrees/admin.php), but I am talking about the user's main page, which has "Theme, Language, Sign in" menus. There is no "Traditional Chinese"(as 繁體中文) in user's Language menu.

I just tested this on my own site, and it works as expected.

> Setup wizard for webtrees : webtrees 安装向导
> ylee: last two characters are Simplified Chinese.

You can help with the translation!
Register an account on the translation server.
The translations get added to webtrees automatically.
weblate.iet.open.ac.uk/projects/webtrees/webtrees/zh_Hant

> But I cannot find any po files in the 1.7.14 source zip.

The webtrees.zip files contain only the .MO files.
You can obtain the latest .PO files from the translation server.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Traditional Chinese language support 1 week 6 days ago #5

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
fisharebest wrote:
> ylee: The above configuration change only applies to the admin page(http://localhost/webtrees/admin.php), but I am talking about the user's main page, which has "Theme, Language, Sign in" menus. There is no "Traditional Chinese"(as 繁體中文) in user's Language menu.

I just tested this on my own site, and it works as expected.

ylee: Sorry, that was my bad, I mixed up two different site. Yes the user side also works as expected. But I do find some related issues:

1. The main menu won't be changed to Traditional Chinese, while the Simplified Chinese does change them.
2. Some of the menu items in main menu are not translated either, similar to #1 above.
3. If I only set one language for Traditional Chinese, then the Language menu will disappear, but the menu still shows English. If I set two languages, Simplified and Traditional Chinese, the language will show(only two languages), but the manu still shows English. Is this a bug?
4. It would be great if we can choose user's default language for the main page. For instance, I can set Traditional Chinese as the default displaying languages because most people in Taiwan prefer reading their language. This could be a good enhancement feature.

Thank you for your help, fisharebest.
Last Edit: 1 week 6 days ago by ylee3274. Reason: some correction
The administrator has disabled public write access.

Traditional Chinese language support 1 week 5 days ago #6

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11465
> 1. The main menu won't be changed to Traditional Chinese, while the Simplified Chinese does change them.
> 2. Some of the menu items in main menu are not translated either, similar to #1 above.

The zh-Hant translation is incomplete.
This is why it is disabled by default.

> 4. It would be great if we can choose user's default language for the main page.

When a new user arrives on the site (no cookies), then we show the language that is configured in their web-browser.

So, if the browser is configured to use Spanish, then you will see the site in Spanish when you arrive.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Traditional Chinese language support 1 week 4 days ago #7

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
fisharebest wrote:
> 1. The main menu won't be changed to Traditional Chinese, while the Simplified Chinese does change them.
> 2. Some of the menu items in main menu are not translated either, similar to #1 above.

The zh-Hant translation is incomplete.
This is why it is disabled by default.

ylee: I will try to update the Traditional Chinese PO file and let you know. What other work needs to be done to complete the zh-Hant translation?


> 4. It would be great if we can choose user's default language for the main page.

When a new user arrives on the site (no cookies), then we show the language that is configured in their web-browser.

So, if the browser is configured to use Spanish, then you will see the site in Spanish when you arrive.

ylee: That works, thank you.
The administrator has disabled public write access.

Traditional Chinese language support 6 days 12 hours ago #8

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
Hi Greg,

I am ready to submit the .po file update, which includes only changes the simplified characters to traditional characters. Can you please let me know where/how do I submit my update?

Also you mentioned before the zh-Hant translation is incomplete, What other work needs to be done to make it complete, so the menu will show correctly for instance?

Thanks.

Yu-Ten
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Traditional Chinese language support 6 days 11 hours ago #9

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11465
> Can you please let me know where/how do I submit my update?

You can upload the .PO file to the translation server.

Visit weblate.iet.open.ac.uk/projects/webtrees/webtrees/zh_Hant/

Log in.

Choose: File -> Upload

NOTE. It is always better to make updates directly on the translation server.
If two users are working on the same language, then uploading a PO file (i.e. all translations) can overwrite changes made by the other user.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Traditional Chinese language support 6 days 11 hours ago #10

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
fisharebest wrote:
> Can you please let me know where/how do I submit my update?

You can upload the .PO file to the translation server.

Visit weblate.iet.open.ac.uk/projects/webtrees/webtrees/zh_Hant/

Log in.

Choose: File -> Upload

NOTE. It is always better to make updates directly on the translation server.
If two users are working on the same language, then uploading a PO file (i.e. all translations) can overwrite changes made by the other user.

ylee: Understood. But my change is quite a lot, it covers more than one thousand lines of text, which I have to do it through some automation. I don't think this can be done by directly working on the translation server. I will update my update in a few minutes.
The administrator has disabled public write access.

Traditional Chinese language support 6 days 10 hours ago #11

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
ylee3274 wrote:
fisharebest wrote:
> Can you please let me know where/how do I submit my update?

You can upload the .PO file to the translation server.

Visit weblate.iet.open.ac.uk/projects/webtrees/webtrees/zh_Hant/

Log in.

Choose: File -> Upload

NOTE. It is always better to make updates directly on the translation server.
If two users are working on the same language, then uploading a PO file (i.e. all translations) can overwrite changes made by the other user.

ylee: Understood. But my change is quite a lot, it covers more than one thousand lines of text, which I have to do it through some automation. I don't think this can be done by directly working on the translation server. I will update my update in a few minutes.

>>> ylee: I have uploaded the messages.po to the translation server. I also noticed there are 51 strings need translation and I will work on that in the coming days.
Will this cover the menu item question I asked before?
The administrator has disabled public write access.

Traditional Chinese language support 6 days 9 hours ago #12

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11465
> Will this cover the menu item question I asked before?

You can add the language to the menu.

Control panel -> Website -> Languages
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Traditional Chinese language support 6 days 8 hours ago #13

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
> You can add the language to the menu.

> Control panel -> Website -> Languages

I am talking about that all the menu still show English and most of the menu items are same, even I set the Language to Traditional Chinese.

How to correct this behavior?
The administrator has disabled public write access.

Traditional Chinese language support 6 days 51 minutes ago #14

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11465
> all the menu still show English and most of the menu items are same

You will have to give us more information. Perhaps the URL of your site?

It works fine for me.


Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Traditional Chinese language support 6 days 31 minutes ago #15

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11465
Try this:

Control panel -> Website -> Cleanup data folder

Delete "cache".
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Traditional Chinese language support 5 days 14 hours ago #16

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
Here is my site:
erlun.atwebpages.com/webtrees/index.php?ctype=gedcom&ged=tree1

I am running 1.7.14 now.

It behaves the same after I deleted cache.
The administrator has disabled public write access.

Traditional Chinese language support 5 days 13 hours ago #17

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11465
You did not copy the updated zh-Hant.mo file to your server.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Traditional Chinese language support 5 days 12 hours ago #18

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
I was using the 1.7.14 released package when I deployed my site. So it does not have the correct .mo file?

I just checked the Chinese .mo files, as following:

-rw-r--r--. 1 root wheel 311799 Apr 29 01:34 zh-Hans.mo
-rw-r--r--. 1 root wheel 30444 Apr 29 01:34 zh-Hant.mo

As you can see the Simplified Chinese file is about 10 times as big as the Traditional one.

I got the following file from the translation server:
-rw-rw-r--. 1 ylee ylee 312661 Oct 17 11:56 /home/ylee/Downloads/webtrees-webtrees-17-zh_Hant.mo

Can I replace the smaller file from the 1.7.14 with the larger one?

Thanks.
The administrator has disabled public write access.

Traditional Chinese language support 5 days 12 hours ago #19

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11465
> I was using the 1.7.14 released package when I deployed my site.

Yes, but you just updated the translations.
These will be included in the next (1.7.15) release.
If you want them early, you must install them manually.

You can download the .MO file from the translation server.

weblate.iet.open.ac.uk/projects/webtrees/webtrees-17/zh_Hant/
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Traditional Chinese language support 5 days 12 hours ago #20

  • ylee3274
  • ylee3274's Avatar
  • Offline
  • New
  • Posts: 12
> Yes, but you just updated the translations.
But I only did it with the 2.0 .po file, not the 1.7 one.

> If you want them early, you must install them manually.
I did download the 1.7 .mo file from the translation server and replaced my old 1.7.14 file. But I saw some filestat error(?) and the main page won't come up now. Can you help?
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Powered by Kunena Forum