Translations from labels missing

This issue has been created since 2021-10-07.

At the moment, all labels are put in the field name:latin, in English. This poses a problem in countries where multiple languages are spoken and the street names (and other labels) need to be translatable "on the fly" to two or more languages.

I've seen other style sheets using the fields "name-xx" where xx is the language code (en, fr, de, etc...). As I understand this is not 100% standardized yet (see #285 (comment)). However, IMHO it's better to have a temporary solution using name-xx instead of having nothing at all, since only showing the English labels can be a no-go for many international developers.

kuwapa wrote this answer on 2021-10-07

I had the same issue, so I changed the process.lua file to encode all the languages I needed. I've mentioned the details in this thread - #305 and this comment - #335 (comment)

wimpie3 wrote this answer on 2021-10-07

Ok so the solution is to modify the lua script and add
obj:Attribute("name_fr", obj:Find("name:fr"))
in the SetNameAttributes module.

In your MapBox javascript, you can set the display language with:
map.setLayoutProperty('road_major_label', 'text-field', ['get','name_fr']);

systemed wrote this answer on 2021-10-07

I've reread through all the OMT issues, stylesheets etc. and the situation is basically a mess.

But I think #340 provides a good solution for now. It lets you configure what languages you want to use in the vector tiles by editing a couple of variables at the top of the Lua script. These will be written to the most commonly used attributes (name:latin, name_int) but you can configure that too.

wimpie3 wrote this answer on 2021-10-07

But I think #340 provides a good solution for now. It lets you configure what languages you want to use in the vector tiles by editing a couple of variables at the top of the Lua script. These will be written to the most commonly used attributes (name:latin, name_int) but you can configure that too.

Perfect!

More Details About Repo
Owner Name systemed
Repo Name tilemaker
Full Name systemed/tilemaker
Language C++
Created Date 2015-06-29
Updated Date 2022-09-23
Star Count 900
Watcher Count 39
Fork Count 164
Issue Count 85

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
[Godot4] Fix Windows CI 0 2022-07-26 2022-09-14
Monthly meeting agenda (August 2022) 2 2022-08-22 2022-09-16
README.md line './install_ydk.sh --core' missing '-v' option needed for building Python virtual environment 1 2022-06-23 2022-09-11
ExecutorService fails on non-ietf RPC with Libyang error 0 2022-06-23 2022-09-19
Users can merge categories to combine labels 0 2022-03-17 2022-09-27
Tracker for the last pass of the book 3 2021-11-17 2022-08-17
Support for Mediafire 8 2020-11-09 2022-09-07
Add flag for "shallow" scan 0 2021-01-16 2022-08-08
Support for Calibre 1 1 2019-02-10 2022-08-08
Support for Calibre 2 1 2019-02-10 2022-08-08
Security Vulnerability : eval() function 0 2022-04-26 2022-09-22
[Feature request] .info.json scanner 0 2021-10-20 2022-08-16
Hope to add the "search" function in the playlist as soon as possible 0 2022-06-27 2022-09-13
Add “Ǚ” (U+01D9) and “ǚ” (U+01DA) 0 2021-05-15 2022-09-20
Please update CoinJar's existing AU listing + add to the UK Exchange list (FCA registered) 1 2022-07-12 2022-08-15
wc_AesSetKey len parameter in aes-file-encrypt example 4 2022-03-16 2022-09-15
AttributeError: 'Select' object has no attribute 'scalar_subquery' 1 2021-09-13 2022-09-15
Stuck at same symbol... 9 2021-08-18 2022-09-08
Boosting brightness on fullscreen 1 2021-09-28 2022-09-19
Erlang files for taskvent, taskwork, tasksink do not use chumak 0 2021-08-07 2022-09-13
Ability to draw meshes in 2d with the new renderer 5 2021-12-14 2022-06-29
Add path traversal attack tests 1 2021-01-05 2022-09-19
Crash on response 'Link" header parsing 3 2021-02-16 2022-09-27
v.rectify (Processing: GRASS provider) consistently fails with "Required parameter <output> not set" 9 2021-09-20 2022-09-28
[bug] Rebuilding the APK error: Resource entry InThreadComposerTextArea already has bag item android:textColorHint. 1 2021-06-20 2022-09-29
12-hour time settings 1 2022-06-26 2022-09-27
ModuleNotFoundError: No module named 'packaging' with latest docker image 1 2022-08-19 2022-09-20
Test Docker to containerd migration 2 2021-08-30 2022-09-26
Installing packages fails every time 13 2015-06-26 2022-09-13
ERROR: MicrosoftAzureStorage - Error occurred while uploading to Azure 8 2020-11-04 2022-09-26
xlrd error getting methods 6 2021-06-26 2022-09-27
sdk-0.13.1 - arm-zephyr-eabi-gdb depends on libpython3.8 3 2021-10-15 2022-09-25
Rollout doesn't start 0 2022-02-11 2022-09-28
More flexible import for matrix market format 0 2021-12-01 2022-09-26
refactor/feat: Convert pieces of Ludwig schema to marshmallow-style schemas 0 2022-05-09 2022-09-28
Add this ResourceAuthority as part of the public API 0 2020-10-06 2022-09-27
[widget-caption][screen2words] Could you please provide the requirements for running? 0 2021-12-20 2022-09-26
Extension causes high cpu load 4 2022-08-09 2022-09-09
bq Aquaris M10 FHD - Anbox has not been enabled for this Device 2 2021-07-23 2022-09-27
Build error : Failed to retrieve package sources 5 2021-04-18 2022-09-26
Add Support for apps.manifest.* Endpoints 2 2021-09-20 2022-09-03
can not parse a proto file 2 2020-11-15 2022-09-22
New lint: warn againt matching on all-private struct 3 2022-01-22 2022-09-27
Discussion: Does Pinning Services API Spec have limitations that prevent scalability? 1 2022-06-23 2022-09-23
feature allow string vals with spaces deep nested 1 2022-09-19 2022-09-27
Issues in cute_net that I'm not sure if are bugs or not. 2 2022-04-24 2022-09-07
GsonBuilder.setLenient(false) 11 2015-03-19 2022-09-18
Moonlight fails (QNetworkReply::HostNotFoundError) when connecting via CLI 1 2021-04-25 2022-09-27
please provide complete configuration file for picodet_m 2 2022-01-18 2022-08-31
Markdown code blocks marked as csharp missing defined syntax highlighting 9 2022-09-21 2022-09-26