Complete.Org: Mailing Lists: Archives: freeciv-dev: September 1999:
[Freeciv-Dev] Re: Inheritance of fields in rulesets
Home

[Freeciv-Dev] Re: Inheritance of fields in rulesets

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Artur Biesiadowski <abies@xxxxxxxxx>
Cc: Freeciv Dev <freeciv-dev@xxxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Inheritance of fields in rulesets
From: Jerzy Klek <qpkjeek@xxxxxxxxxxxxxxx>
Date: Sun, 19 Sep 1999 14:45:51 +0200 (MET DST)


> If somebody will do default entries for rulesets, there should be only
> small problem with extending it to something more powerful.
> 

[cut]

> 
> I think that it would be good to use "" only for strings that are
> displayed to player. This way all "" strings could be marked for i18l.
> Rest - tech id names (as opposed to displayed names), flags etc would be
> one word, without any quotes. They would be provided in [] at top of
> entry. It would also simplify scripting later - because for now
> units/terrains/techs etc do not have constant id string by which they
> could be reffered to from scripts.

I wonder if it's really needed to i18 mark rulesets. One can
easily create a separate rulesets in any language and instead of
using data/defalut you can use data/pl or any directory. It
seems to be a similar amount of work. In this case you can even
translate comments (that are not used by the game) which might
ease the ruleset modification for non-english speakers.

> 
> So for example techs would look like this:
> 
> [advance chivalry]
> name     = "Chivalry"
> req1     = feudalism
> req2     = horseback-riding
> 
> [advance horseback-riding]
> name     = "Horseback Riding"
> 
> Of course it require keeping one more name for every entity, but I think
> it is a lot clearer. 
> 
> Only fields that would stay quoted are names which have no effect on
> game - this means names for
> units,buildings,techs,terrains,terrain-resources, goverments + all these
> stuff for goverments (city names, leader names/titles etc).

[cut]

/Jerzy



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