Admins! Need your help with i18n info |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: Admins! Need your help with i18n info
- From: Aleksej Bobylev <al.bobylev@xxxxxxxxx>
- Date: Fri, 27 Jul 2012 11:46:41 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=LVy2dS0D1dGKtpOugUFF0cJyPLsUHiDcpT3AeK9L8fI=; b=RK5YeyNeV8yc0A5jeOAYHJsfD7yxTSIXG85FVmqj6hZb0qNNwRLe65ICXUee6xEdK/ E5gqbYmu8WWo0JsH4WYgCEwqtW417C98rEFpFOuKue37l8OXCnf4H8jqB+FElUZinl6I 0f1a6DnXf1m4dx1Rgk9kRzakSF46wvJXKkopKFfRgbSToQYYX9u1cvgxodui94xDW02r +nLe47s+lq7NWIoULc6sOhy2i+1Fm74xQ35QYvrl1XUbGvAb/3s0lrsui61g/wKMuRU0 wk3u6wUZ4rCopUrWby+BXVYVexkqy5dFWJ3faKl0lJdSHog9FuMLtukGJ8fxHuOkQQqt NLSw==
Hi,
How long have you looked at the page http://www.slitaz.org/i18n.php ?
There is a table showing current state of i18n in SliTaz. It looks not
bad, but ... slightly out of date. I do not wish to do frequent
commits at each translation addition. I'm lazy ;)
I want to automate it.
To do this, the script was written. It works on my system SliTaz 4.0.
It was also written wrapper in PHP to put the generated file on the
page. The script works, but what about PHP wrapper I'm not sure. I
have a little experience in PHP.
The time of the script work — about 5 minutes. This is not because it
does some complicated things. That's because it loads multiple pages
from Hg for each project, as well as all po files. I have a slow
Internet connection (gprs/edge).
I ask to help me out someone of the administrators who have access to
the SliTaz server (server containing website — Tank?). First, please
manually run the script "/lib/i18n-info.sh" (path related to the
website's root). Wait a while and check the file
"/var/cache/slitaz/website/i18n.html" (here absolute path). It should
be the size of 12-13 KB, and must contain the line "<p>Updated: ..."
at the end.
If all is well, please add this script to the Chron jobs. Let it runs
once or twice times a day.
Final step — to uncomment PHP line that invoke wrapper in the i18n.php
(above table) and delete entire table ibidem. This step I can handle
myself. The main thing that was generated file, which will be inserted
into the page, otherwise visitors will not see anything.
--
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/