GNOME Bugzilla – Bug 641849
Update gnome3-web hook for translations
Last modified: 2011-03-06 22:52:33 UTC
I added support for translations to the gnome3-web git module, the update hook on window.gnome.org should be updated to do a (cd po && ./build.sh). This will create additional language-suffixed html pages (index.html.fr for example), and then it will be a matter of updating the apache configuration to do language negociation (iirc adding Multiviews is enough, you could check the library.gnome.org vhost entry to be sure).
Enabled everything, but there is a problem updating the POs. $ cd /usr/local/www/gnomeweb/git-wd/gnome3-web/po $ ./build.sh Writing ../faq.html.es Writing ../index.html.es Writing ../tryit.html.es Writing ../faq.html.fa Writing ../index.html.fa Writing ../tryit.html.fa Writing ../faq.html.gl Writing ../index.html.gl Writing ../tryit.html.gl Writing ../faq.html.sv Writing ../index.html.sv Writing ../tryit.html.sv Writing ../faq.html.zh_CN <hangs> Could you login to window and fix above (gnomeweb user). Cannot figure out why it hangs. Waiting to sed to finish it seems.
I don't understand how sed could hand on this, and it exited correctly when run from the command line… Anyway I pushed a change so that sed is only run when necessary, and this runs correctly on window.gnome.org.
Killed the hanging hook script, seems to have generated the files.
It looks like the change has been reverted; at least it is not on webapps.gnome.org, where the hook is again a single rsync command.
Sorry. Seems I didn't copy the latest hook script when putting everything in Puppet. Further, the new host lacked some required packages. All set now.