[OSM-dev] Need advise for localization ofMapnik/Osmarender/Data search
Dodi
dodi at moonbase.sk
Thu Jul 10 18:23:15 BST 2008
Hi,
> Anyways, can you give me an example (code) how to accomplish the
> language tag and fallback for Mapnik and Osmarender?
>
here is a piece of code for osmarender which provide rendering of name:zh
with fallback to name:en and
finally if none of then defined a fallback to standard name if for city
names...
<rule e="node" k="place" v="city">
<rule k="name:zh" v="*">
<text k="name:zh" class='city-caption' />
</rule>
<else>
<rule k="name:en" v="*">
<text k="name:en" class='city-caption' />
</rule>
<else>
<text k="name" class='city-caption' />
</else>
</else>
</rule>
I can't help you with mapnik
Dodi
More information about the dev
mailing list