Complete.Org: Mailing Lists: Archives: freeciv-i18n: January 2003:
[freeciv-i18n] Re: Manual translation and updates
Home

[freeciv-i18n] Re: Manual translation and updates

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv I18n <freeciv-i18n@xxxxxxxxxxx>
Cc: Brandon Craig Rhodes <brandon@xxxxxxxxxxxxxx>
Subject: [freeciv-i18n] Re: Manual translation and updates
From: Christian Knoke <chrisk@xxxxxxxx>
Date: Wed, 22 Jan 2003 20:41:48 +0100

On Fri, Jan 10, 2003 at 09:49:30PM +0100, Christian Knoke wrote:
> 
> On Fri, Jan 10, 2003 at 12:23:28PM -0800, Paul Zastoupil wrote:
> > 
> > It would be possible with php to store the dimentions on a .spec type
> > file and insert those on the fly.
> > 
> > Then we'd have the best of both worlds (i.e. one set of text with any of
> > the tilesets).
> 
> I think this is a good solution. I'd volunteer to do it.

Ok, attached script serves the *.html pages, corrects the links on-the-fly
and inserts the correct width and height attributes for the image tags.
It looks for any *.png files in the locale directory and prefers them
over the global ones.

It uses different pngsize.spec files for all locales and tilesets, to look
up the attributes, and creates them if they are missing or obsolete. If
it finds a corrupted spec file, it will be deleted and a error message given.
The user then has to reload the page. I preferred this over an automatic
correction of the spec file, which can leed to undetected errors.

Minimal modifications are introduced for the file structure. We have
to move the *.html files into html/ (to be created). The height and width
attributes need to be removed. The file game.html is renamed to
game-over.html and the links to it corrected. One absolut link is changed
to a relative one.

This is done by the manphp.sh script (attached).

The tileset directories must be given write permission for the webserver.
They need to be created for the locales, even if they are initially empty.

This is *not* done by the script.

Manual editors: You can update the manual as usual. Just put the html and
png files in a single directory, for your convinience, or put symlinks to the
html files in a tileset directory of your choice. Please don't use absolute
paths, and don't use any IMG attributes, in future.

Website translators: Attached is a simple wrapper script called
manual.phtml.locale. Put this in the manual/ directory and rename it to
manual.phtml. No modifications are necessary for this file. All maintainance
can be done to the master manual.phtml file. Also, it is absolutely possible
to translate single manual pages or png files.

Enjoy,

Christian
  
-- 
Christian Knoke     * * *      http://www.enter.de/~c.knoke/
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.


-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-httpd-php


-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-sh


-- Attached file included as plaintext by Ecartis --

<?php include($_SERVER["DOCUMENT_ROOT"] . "/mymanual/manual.phtml"); ?>




[Prev in Thread] Current Thread [Next in Thread]