allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.38k stars 1.11k forks source link

Add Chinese localization #1043

Closed SerenaAi closed 6 years ago

SerenaAi commented 6 years ago

It will be great if you could add a Chinese language pack in goaccess. Do you have plans for that? Please let me know.

allinurl commented 6 years ago

It would be great if we could add Chinese. Would you be able to translate the relevant labels? All the i18n plumbing has been done (gettext) and it'll be out in the next release. Here are the labels that need to be translated.

These are the steps:

  1. Add zh_CN to the po/LINGUAS
  2. Create a po/zh_CN.po file and add all your translations in there. See fr.po
  3. run intltool-update zh_CN inside the po folder
  4. run intltool-update --pot
  5. Please submit a PR so I can merge it here.

If your locale is set to zh_CN, goaccess' output will automatically display its content in Chinese.

Let me know if you have any questions. Thanks!

SerenaAi commented 6 years ago

No problem! I would love to translate the labels. I will do a PR after it's done.

allinurl commented 6 years ago

Thanks very much! This has been added. Here's a screenshot:

goaccess-chinese

Let me know if that looks/reads well.

StrongFu commented 2 years ago

Hello, cowaxess_x64 has been installed under Windows system, how to implement the output report.html file is in Chinese?thinks!

remark: Execute export lang=zh_ CN. UTF-8 is invalid

allinurl commented 2 years ago

@StrongFu please feel free to post this question under https://github.com/allinurl/goaccess/issues/1505