Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.
Post by MajkiiTelini
Way to get JAI functional in WME with other languages than EN:

Copy lines 2092 - 2125

Code: Select all

//Default language (English)
set_trans(window.I18n.defaultLocale,
...
...
}));
after the line 2264.

In the new position change the lines 2266+2267

Code: Select all

set_trans(window.I18n.defaultLocale,
set_trans('en', {
to

Code: Select all

//set_trans(window.I18n.defaultLocale,
set_trans(I18n.locale, {
and line 2298

Code: Select all

}));
to

Code: Select all

});
At the end comment "old" lines 2092 - 2125.


Complete code @ http://pastebin.com/pWc7nRpS
MajkiiTelini
Area Manager
Area Manager
Posts: 853
Has thanked: 101 times
Been thanked: 249 times
Send a message
Last edited by MajkiiTelini on Mon Nov 14, 2016 8:53 pm, edited 1 time in total.


Post by MajkiiTelini
milkboy, could you please add to the next version the czech translation? Thanks!

Code: Select all

            //Czech (čeština)
                case 'cs':
                    set_trans('cs', {
                    name: "Junction Angle Info",
                    settingsTitle: "Nastavení JAI",
                    resetToDefault: "Výchozí nastavení",
                    defaultOn: "Vždy aktivní",
                    aAbsolute: "Absolutní",
                    aDeparture: "Odjezdový",
                    angleMode: "Styl zobrazení úhlů",
                    angleDisplay: "Styl výpisu úhlů",
                    angleDisplayArrows: "Směrové šipky",
                    displayFancy: "Zdobný",
                    displaySimple: "Jednoduchý",
                    guess: "Odhadovat navigační hlášky",
                    noInstructionColor: "Bez hlášení",
                    keepInstructionColor: "\"Držte se/Zůstaňte\"",
                    exitInstructionColor: "\"Sjeďte\"",
                    turnInstructionColor: "\"Odbočte\"",
                    uTurnInstructionColor: "\"Otočte se\"",
                    noTurnColor: "Nepovolené směry",
                    problemColor: "Nejasné úhly",
                    roundaboutColor: "Rozbité kruháče",
                    roundaboutOverlayColor: "Kruháče",
                    roundaboutOverlayDisplay: "ukazovat kruháče",
                    rOverNever: "Ne-",
                    rOverSelected: "Při výběru",
                    rOverAlways: "Vždy",
                    decimals: "Počet des. míst",
                    pointSize: "Velikost písma",

                    roundaboutnav: "US WIKI: Kruhové objezdy",
                    ghissues: "Hlášení problémů JAI"
                });
                break;
MajkiiTelini
Area Manager
Area Manager
Posts: 853
Has thanked: 101 times
Been thanked: 249 times
Send a message


Post by MapOptimizer
Sorry, not working at my computer 1h later it is working !! Thanks....
 
MapOptimizer
Posts: 4
Has thanked: 1 time
Been thanked: 1 time
Send a message

Post by MGODLEW
I have a feature request for this script. Where the color of the number in the script will change to reflect the prompt given based upon angle & road types. So lets say the numbers will turn Purple anytime a prompt would be "Turn Right/Left" or the number would turn Green for "Exit to Right/Left" for Freeway to Ramp & Blue for "Stay/keep to Right/Left" for Freeway to Freeway
MGODLEW
EmeritusChamps
EmeritusChamps
Posts: 2004
Has thanked: 422 times
Been thanked: 534 times
Send a message
I am best reached via Discord, give me an “@“

Post by MGODLEW
n8nagel wrote: Don't know how easy it would be to implement, but it's a great idea.
I would assume it would be pretty easy to implement, I only have basic coding knowledge by I would imagine the code would be something like this: If road segment "A" = Freeway + If road segment "B" = Freeway & Middle Angle = 0 - 45 degrees then display angle # Blue = "Stay to/Keep to"
MGODLEW
EmeritusChamps
EmeritusChamps
Posts: 2004
Has thanked: 422 times
Been thanked: 534 times
Send a message
I am best reached via Discord, give me an “@“

Post by MGODLEW
milkboy wrote:I'll look into it when I have some spare time.
This might be something helpful for reference. viewtopic.php?f=276&t=89548
MGODLEW
EmeritusChamps
EmeritusChamps
Posts: 2004
Has thanked: 422 times
Been thanked: 534 times
Send a message
I am best reached via Discord, give me an “@“

Post by MGODLEW
MGODLEW wrote:I have a feature request for this script. Where the color of the number in the script will change to reflect the prompt given based upon angle & road types. So lets say the numbers will turn Purple anytime a prompt would be "Turn Right/Left" or the number would turn Green for "Exit to Right/Left" for Freeway to Ramp & Blue for "Stay/keep to Right/Left" for Freeway to Freeway
Any status on this?
MGODLEW
EmeritusChamps
EmeritusChamps
Posts: 2004
Has thanked: 422 times
Been thanked: 534 times
Send a message
I am best reached via Discord, give me an “@“

Post by MGODLEW
With Junction Box coming, would this even still be needed if we can manually specify TTS?
MGODLEW
EmeritusChamps
EmeritusChamps
Posts: 2004
Has thanked: 422 times
Been thanked: 534 times
Send a message
I am best reached via Discord, give me an “@“