Jungle-Bus / transport_mapcss

A set of uncompromising validation rules about public transport in JOSM
GNU General Public License v3.0
6 stars 4 forks source link

There is no description :( #18

Closed nlehuby closed 6 years ago

nlehuby commented 6 years ago

The description field is set in the metadata, but the description does not show up, neither in JOSM, neither in the wiki: https://josm.openstreetmap.de/wiki/Rules

description: tr("Uncompromising validation of transit data");

Is the use of the tr function forbidden here ? Any ideas @Klumbumbus @stoecker ?

stoecker commented 6 years ago

No tr() in the meta. Meta uses the [lang=de] syntax. See e.G. https://josm.openstreetmap.de/wiki/Rules/GermanySpecific You can try. JOSM probably translates these texts if you provide them in lang-files. In this case server code needs to be adapted to do as well.

nlehuby commented 6 years ago

We have added the [lang=*] in the mapcss file. It is ok with JOSM (here in French) image

But the wiki still don't have any description.

stoecker commented 6 years ago

But the wiki still don't have any description.

What do you mean?

E.g. https://josm.openstreetmap.de/wiki/Nl%3ARules is correctly translated.

nlehuby commented 6 years ago

My bad, you are right. We forgot to manually add the [lang=en] description :disappointed:

stoecker commented 6 years ago

Hmm. There is no lang=en. But now I now what's missing. You need to drop the tr(). As said this is not suppoeted for meta entries.

frodrigo commented 6 years ago

We keep it to be cached by the translation process. We will try to do it in an other way.