After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 641849 - Update gnome3-web hook for translations
Update gnome3-web hook for translations
Status: RESOLVED FIXED
Product: sysadmin
Classification: Infrastructure
Component: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Sysadmins
GNOME Sysadmins
Depends on:
Blocks:
 
 
Reported: 2011-02-08 17:21 UTC by Frederic Peters
Modified: 2011-03-06 22:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frederic Peters 2011-02-08 17:21:27 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).
Comment 1 Olav Vitters 2011-02-10 08:53:30 UTC
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.
Comment 2 Frederic Peters 2011-02-10 09:30:56 UTC
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.
Comment 3 Olav Vitters 2011-02-10 09:38:18 UTC
Killed the hanging hook script, seems to have generated the files.
Comment 4 Frederic Peters 2011-03-06 21:47:00 UTC
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.
Comment 5 Olav Vitters 2011-03-06 22:52:33 UTC
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.