Bienvenue, Invité
Nom d'utilisateur : Mot de passe :


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

SUJET : Traditional Chinese language support

Traditional Chinese language support il y a 1 mois 4 jours #1

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 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
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 1 mois 4 jours #2

  • fisharebest
  • Portrait de fisharebest
  • en ligne
  • Administrator
  • Messages : 11556
> 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 - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 1 mois 4 jours #3

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 12
fisharebest écrit:
> 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.
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 1 mois 4 jours #4

  • fisharebest
  • Portrait de fisharebest
  • en ligne
  • Administrator
  • Messages : 11556
> 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 - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 1 mois 4 jours #5

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 12
fisharebest écrit:
> 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.
Dernière édition: il y a 1 mois 4 jours par ylee3274. Raison: some correction
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 1 mois 4 jours #6

  • fisharebest
  • Portrait de fisharebest
  • en ligne
  • Administrator
  • Messages : 11556
> 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 - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 1 mois 3 jours #7

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 12
fisharebest écrit:
> 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.
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 1 jour #8

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 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
L'administrateur a désactivé l'accès en écriture pour le public.
Avez-vous besoin d'une solution d'hébergement web pour votre site webtrees ?
Si vous préférez un hébergeur spécialisé de webtrees, la page suivante en liste quelques-uns capables de vous offrir ce type de service :

Traditional Chinese language support il y a 4 semaines 1 jour #9

  • fisharebest
  • Portrait de fisharebest
  • en ligne
  • Administrator
  • Messages : 11556
> 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 - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 1 jour #10

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 12
fisharebest écrit:
> 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.
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 23 heures #11

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 12
ylee3274 écrit:
fisharebest écrit:
> 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?
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 23 heures #12

  • fisharebest
  • Portrait de fisharebest
  • en ligne
  • Administrator
  • Messages : 11556
> Will this cover the menu item question I asked before?

You can add the language to the menu.

Control panel -> Website -> Languages
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 22 heures #13

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 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?
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 14 heures #14

  • fisharebest
  • Portrait de fisharebest
  • en ligne
  • Administrator
  • Messages : 11556
> 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 - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 13 heures #15

  • fisharebest
  • Portrait de fisharebest
  • en ligne
  • Administrator
  • Messages : 11556
Try this:

Control panel -> Website -> Cleanup data folder

Delete "cache".
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 3 heures #16

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 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.
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 2 heures #17

  • fisharebest
  • Portrait de fisharebest
  • en ligne
  • Administrator
  • Messages : 11556
You did not copy the updated zh-Hant.mo file to your server.
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 2 heures #18

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 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.
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 2 heures #19

  • fisharebest
  • Portrait de fisharebest
  • en ligne
  • Administrator
  • Messages : 11556
> 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 - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

Traditional Chinese language support il y a 4 semaines 1 heure #20

  • ylee3274
  • Portrait de ylee3274
  • Hors Ligne
  • New
  • Messages : 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?
L'administrateur a désactivé l'accès en écriture pour le public.
  • Page :
  • 1
  • 2
Propulsé par Kunena