[Updated 26/10/2014]Gargoyle simplified Chinese LanguagePack

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

cappie
Posts: 6
Joined: Tue Oct 01, 2013 7:16 am

[Updated 26/10/2014]Gargoyle simplified Chinese LanguagePack

Post by cappie »

Hi, guys
I translated the Gargoyle into chinese.
plugin-gargoyle-i18n-Chinese-CN.zip
plugin-gargoyle-i18n-Chinese-CN
(143.4 KiB) Downloaded 21756 times
plugin-gargoyle-i18n-SimplifiedChinese-ZH-CN_1.0.4-20141026_all.zip
plugin-gargoyle-i18n-SimplifiedChinese-ZH-CN_1.0.4-20141026_all
(25.56 KiB) Downloaded 18549 times
Last edited by cappie on Sun Oct 26, 2014 3:25 am, edited 2 times in total.

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: Gargoyle simplified Chinese Language Pack

Post by BashfulBladder »

I use a text editing program & go 1 by 1. Its boring - so thank you for doing it.

Excel - I wouldn't have thought of that, but I used LibreOffice, exported it as csv & did some awk magic. Some things I noticed:

* quotas.NA - that's a long abbreviation & its a small amount of space
* restStr.Sample & quotasStr.Sample- the text that a user enters into the box 'Mon' matches up with the abbreviation in UI.Mon, so I changed them. It won't work otherwise, but you should really test out the Quotas & Reboot pages with a schedule in there if you can.
* AM/PM - I switched the translations to the prefix, so you get 下午 10:30 like you are supposed to. Sorry, there is going to be a space there - I think.
* the makefile needs 1 line translated. This will be visible by users in the plugins page & the languages selection area. I know this is wrong, so maybe you can improve it. Just leave the ZH-CN (so even Finnish people can know what language is there) & you can translate everything else:
中文(简体)ZH-CN language strings for Gargoyle web interface

Lastly, the menu names (for each page) aren't translated. There is menu.txt & each plugin-gargoyle-* has a multi-language file that you add on to. There is a small fix I had to make that supports a language code with a dash: [ZH-CN]=Something so even if you do add them, you need to also have that 1 line fix on your router.

So from now on, no more excel files. If you don't have a gitbub account, go here: https://github.com/BashfulBladder/gargoyle
and on the bottom right download the zip file. Extract & make the changes. Zip up just SimplifiedChinese and get it to me somehow.

Very exciting (look, I wrote the whole internationalization thing). Thanks a lot for Simplified Chinese!

Here is the package & some pictures:
RAccess.png
RAccess.png (184.65 KiB) Viewed 314956 times
lang.png
lang.png (57.55 KiB) Viewed 314956 times
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: Gargoyle simplified Chinese Language Pack

Post by BashfulBladder »

I got some of the menu text from your translations. I hope something didn't turn out to be "Wood shavings with goose intestine".

https://github.com/BashfulBladder/gargo ... af226586bc
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

cappie
Posts: 6
Joined: Tue Oct 01, 2013 7:16 am

Re: Gargoyle simplified Chinese Language Pack

Post by cappie »

I remember I translated the menus.txt
see the zip file again,I thank the menus.txt file is in chinese.
I updated Gargoyle source code to version 6338 and so glad to see the chinese language pack is in the source, I will improve it later. :)

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: Gargoyle simplified Chinese Language Pack

Post by BashfulBladder »

Uh - I totally missed that. You said Excel file - I worked with that. Never even noticed the folder next to it.

I fixed what I messed up. I also found a old Simplified Chinese fork of Gargoyle & used some of their translations. I changed some more things:

quotasStr.NA="不适用"; - The English "Not Applicable" can't fit in the space, but 3 Chinese glyphs work fine.
UI.sc="秒";
UI.hr="小时"; - same thing. The shorter Chinese whole word fits in fine - the fat English doesn't
UI.MB1="M 字节" - same. Not too sure about the format of this though
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

cappie
Posts: 6
Joined: Tue Oct 01, 2013 7:16 am

Re: Gargoyle simplified Chinese Language Pack

Post by cappie »

:)
hi, I’ve improve the Chinese Language Pack, adjusted some words to make the meaning more accurately.
please help to test, thanks.
plugin-gargoyle-i18n-SimplifiedChinese-ZH-CN.zip
plugin-gargoyle-i18n-SimplifiedChinese-ZH-CN source
(174.7 KiB) Downloaded 15075 times
plugin-gargoyle-i18n-SimplifiedChinese-ZH-CN_1.0.1-1_all.zip
plugin-gargoyle-i18n-SimplifiedChinese-ZH-CN_1.0.1-1_all ipk file
(24.76 KiB) Downloaded 15016 times

y723157510
Posts: 9
Joined: Thu May 30, 2013 2:55 am

Re: Gargoyle simplified Chinese Language Pack

Post by y723157510 »

能提供一个tp link 4310 的i18n编译后的版本吗? 好像只更新了源码,i18n没有编译好的版本,谢谢

Tp link 4310 provides a compiled version of i18n do? Seem only to update the source code, i18n is not compiled version, thank you

y723157510
Posts: 9
Joined: Thu May 30, 2013 2:55 am

Re: Gargoyle simplified Chinese Language Pack

Post by y723157510 »

BashfulBladder wrote:Uh - I totally missed that. You said Excel file - I worked with that. Never even noticed the folder next to it.

I fixed what I messed up. I also found a old Simplified Chinese fork of Gargoyle & used some of their translations. I changed some more things:

quotasStr.NA="不适用"; - The English "Not Applicable" can't fit in the space, but 3 Chinese glyphs work fine.
UI.sc="秒";
UI.hr="小时"; - same thing. The shorter Chinese whole word fits in fine - the fat English doesn't
UI.MB1="M 字节" - same. Not too sure about the format of this though
Tp link 4310 provides a compiled version of i18n do? Seem only to update the source code, i18n is not compiled version, thank you

shayanjameel08
Posts: 10
Joined: Sat Oct 12, 2013 7:51 am

Re: Gargoyle simplified Chinese Language Pack

Post by shayanjameel08 »

I use an Excel file to translat it, is there any way to make the translation work easier
Last edited by shayanjameel08 on Mon Oct 21, 2013 5:16 am, edited 1 time in total.

cappie
Posts: 6
Joined: Tue Oct 01, 2013 7:16 am

Re: Gargoyle simplified Chinese Language Pack

Post by cappie »

Gargoyle simplified Chinese Language Pack updated
translated the all js file to Chinese. :)
plugin-gargoyle-i18n-SimplifiedChinese-ZH-CN_1.0.2-1_all.zip
plugin-gargoyle-i18n-SimplifiedChinese-ZH-CN_1.0.2-1_all.ipk
(23.79 KiB) Downloaded 15471 times
plugin-gargoyle-i18n-SimplifiedChinese-ZH-CN_1.0.2_src.zip
plugin-gargoyle-i18n-SimplifiedChinese-ZH-CN_1.0.2_src
(179.28 KiB) Downloaded 15401 times

Post Reply