Gargoyle localization

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

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

Re: Gargoyle localization

Post by BashfulBladder »

I did the initial commit.

https://github.com/BashfulBladder/gargo ... /i18n-2013

I got rid of the speed penalty on page loads - it cost 18,000 bytes in code bloating to haserl, but at least its fast now.
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

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Gargoyle localization

Post by Eric »

(1) This work looks amazing!

(2) I commented on github, but I'll mention it again here: while BashfulBladder has implemented his solution #2 (mod haserl to do direct lookups), I'm partial to #3 (use javascript to hold variables & window.onload to fill in variables). This is because a lot of variables have to be javascript variables to begin with, so keeping everything in javascript may be the easiest way to go. Keep in mind that browsers tend to cache javascript so it won't have to be reloaded every time. Of course... I completely realize that you're doing most of the work on this project, so I can't be too picky ;-) I'm just very grateful that this is getting done (it's been something I've been meaning to do but putting off for a while).

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

Re: Gargoyle localization

Post by BashfulBladder »

A progress report for anybody interested:

• the basic framework has been hammered out & is working well
• 30 out of 45 (or so) standard pages are done.
• 1 plugin (usb_storage) is done

What isn't done:
• the other 15 (mostly easy) standard pages
• most plugins including the big&nasty OpenVPN
• SVG graphics will require some some code reworking I think
• firstboot.sh needs to be updated
• some backend script work (init.d, installing)
• compile-time build scripts to reintegrate text back into webpages to make for example an All-Spanish 4MB firmware image
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

wwenigma
Posts: 16
Joined: Wed May 01, 2013 4:51 am

Re: Gargoyle localization

Post by wwenigma »

:shock: Of course, thank you for your hard work!

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Gargoyle localization

Post by Eric »

For anyone interested, I have a separate branch in the main repo that is tracking BashfulBladder's work on internationalization.

As soon as this is ready for release, I will merge it into the master branch. This is ABSOLUTELY going to be merged and included in official releases when complete.

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

Re: Gargoyle localization

Post by BashfulBladder »

I have uploaded a developer preview here:

http://www.gargoyle-router.com/phpbb/vi ... =14&t=4447

for a small subset of routers.
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

wwenigma
Posts: 16
Joined: Wed May 01, 2013 4:51 am

Re: Gargoyle localization

Post by wwenigma »

I start translating gargoyle to hungarian language, but when i want to test it, how to make only this package? It always recompile everything. :D

wwenigma
Posts: 16
Joined: Wed May 01, 2013 4:51 am

Re: Gargoyle localization

Post by wwenigma »

wwenigma wrote:I start translating gargoyle to hungarian language, but when i want to test it, how to make only this package? It always recompile everything. :D
It seems to be a really hard question.

Post Reply