openstreetmap-carto-de icon indicating copy to clipboard operation
openstreetmap-carto-de copied to clipboard

openstreetmap-carto-en

Open glivolsi opened this issue 6 years ago • 3 comments

I need to make it in english, can you publish a TODO to make it myself...!!

Tnx

glivolsi avatar May 23 '18 20:05 glivolsi

The "de" here is not about localization but about German road colors etc.

Localization is in a different project, where the target language can be selected: https://github.com/giggls/mapnik-german-l10n

So what do you want exactly? "OSM carto" with english localization or "OSM carto de" with english localization?

Both can be done quite easily. All you need to do is to call apply-views.sh with the desired language. For the second version there is a branch here called upstream+l10n.

In fact I have a tileserver running at my workplace with both variants and english localization: OSM carto: https://tile.iosb.fraunhofer.de/#map=12/49/8.41/3 OSM carto de: https://tile.iosb.fraunhofer.de/#map=12/49/8.41/5

giggls avatar May 23 '18 20:05 giggls

Tnx for the answer, first of all i need that the names on map are in english this because chinese or arabic names are cryptic for latin peoples, but i need (italy and not italien) so i've installed an my postgres the extensions from https://github.com/giggls/mapnik-german-l10n, but i like the German road colors too, etc...!! But i need it in english ..!!

Tnx again

glivolsi avatar May 24 '18 06:05 glivolsi

I updated INSTALL-de.md to reflect the way I use for other target languages.

Here is what happens in the background:

The database views contain four virtual columns which call osml10n functions. They are created like this: osml10n_get_placename_from_tags(tags,true,false,chr(10),'de',way) as localized_name_second

Now if your target language ist not German all you need to do is to replace de by en before applying the views. The provided script will do this for you as documented in INSTALL-de.md. It is of course also possible to use it as a target language.

giggls avatar May 24 '18 09:05 giggls