[freeciv-i18n] Script to generate automatic Translation Status Pages
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hello!
As I promissed earlier (although a bit later than I hopped), here goes a 1st
draft of the script to generate the HTML page with translation status.
Please check it out and tell what you think. It is a VERY simple shell
script that requires just eval and bc to be installed, besides the regular
stuff to ./autogen.sh and make xx.pox on the Freeciv CVS tree.
The script is simple so it can easily be maintained/modified by anyone and
because I'm not good at shell script :)
It works like this... You have to place it on a directory, alongside with
the 3 gif files (should be converted to PNG). Copy your CVS structure to
this directory too. Edit the script and modify the WORK_DIR and CVS_DIR to
point to current directory and to the CVS copy you made. Then run it and
open the generated statusBody.html page on your browser.
The script enters the CVS dir and runs ./autogen.sh. It then goes into the
po dir and make xx.pox for every po.
It then gathers statistics for each pox and builds the output based on it.
The lang codes are converted to language names based on a case on a
function. If more languages are added, they must also be added to the case,
otherwise they will be listed as "UNKNOWN (xx)" where xx is the language
code.
The script does not clean up after running as it is supposed to completly
delete the CVS_DIR. This cleanup function is missing as also is one that
specifies where to get and to create the CVS_DIR, so that this can be
automated.
I would like to get some ideias on how to get this finished up so that it
can be placed on the Freeciv server. Also on how to make it look better.
Thank you for your time, testing courage and CPU cycles! Be Happy!
Duarte "HappyGuy" Loreto
"Don't worry, be happy!"
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
-- Binary/unsupported file stripped by Ecartis --
-- Type: application/octet-stream
-- File: statusSCRIPT.tgz
- [freeciv-i18n] Script to generate automatic Translation Status Pages,
Duarte Loreto <=
|
|