[Script] WME Junction Angle Info

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.

Moderators: Unholy, bextein

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Re: [Script] WME Junction Angle Info

Postby milkboy » Tue Nov 22, 2016 6:29 am

Ah, forgot to update here that the script is updated (both release and development versions). No guarantees, but "works for me" at least ;)
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 106
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 122 times

Re: [Script] WME Junction Angle Info

Postby milkboy » Sat Nov 19, 2016 12:05 pm

I'll make the fixes listed here, but probably on Monday, as I'm pretty busy the whole weekend.
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 106
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 122 times

Re: [Script] WME Junction Angle Info

Postby MajkiiTelini » Fri Nov 18, 2016 12:56 pm

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: 285
Joined: Tue Sep 23, 2014 5:45 pm
Has thanked: 27 times
Been thanked: 57 times

Re: [Script] WME Junction Angle Info

Postby MajkiiTelini » Tue Nov 15, 2016 12:28 pm

Thanks, I don't understand JavaScript too far :)
MajkiiTelini
Area Manager
Area Manager
 
Posts: 285
Joined: Tue Sep 23, 2014 5:45 pm
Has thanked: 27 times
Been thanked: 57 times

Re: [Script] WME Junction Angle Info

Postby Sebiseba » Tue Nov 15, 2016 12:09 pm

MajkiiTelini wrote:...

More simple, just change line 2087 like this, no more :
Code: Select all
return I18n.translations[I18n.locale].ja = def;


The problem is that now I18n contains only the active language of WME. Before there was also english by default.
Sebiseba
Waze Mentor
Waze Mentor
 
Posts: 3572
Joined: Tue Jan 17, 2012 8:31 am
Location: Mentoring Yvelines, Loiret, France
Has thanked: 399 times
Been thanked: 1155 times

Re: [Script] WME Junction Angle Info

Postby JohnDoe75 » Mon Nov 14, 2016 7:52 am

JohnDoe75
Local Champ Mentor
Local Champ Mentor
 
Posts: 3014
Joined: Sun Dec 25, 2011 10:06 am
Location: Paris, France
Has thanked: 127 times
Been thanked: 480 times

Re: [Script] WME Junction Angle Info

Postby MajkiiTelini » Sun Nov 13, 2016 1:21 pm

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
Last edited by MajkiiTelini on Mon Nov 14, 2016 8:53 pm, edited 1 time in total.
MajkiiTelini
Area Manager
Area Manager
 
Posts: 285
Joined: Tue Sep 23, 2014 5:45 pm
Has thanked: 27 times
Been thanked: 57 times

Re: [Script] WME Junction Angle Info

Postby biuick84 » Sat Nov 12, 2016 5:55 pm

1.13 also not working with other INTL localizations, like Portuguese, Portuguese-Brazil, Spanish, and Latam-Spanish...

Looking at console, error is in line 2055:

Code: Select all
return I18n.translations[loc].ja = def;


Uncaught TypeError: Cannot set property 'ja' of undefined
biuick84
Beta tester
Beta tester
 
Posts: 246
Joined: Sat May 03, 2014 1:04 am
Location: São Paulo e Santos/SP
Has thanked: 186 times
Been thanked: 250 times

Re: [Script] WME Junction Angle Info

Postby Yombie » Sat Nov 12, 2016 12:15 pm

Script works only in EN localization (language). When I swich language to Slovenčina - Slovak (SK) or Čeština - Czech (CZ), script doesn't work.
Yombie
 
Posts: 203
Joined: Tue Dec 08, 2015 5:34 pm
Location: Prievidza / Trenčín / Brno
Has thanked: 20 times
Been thanked: 29 times

Re: [Script] WME Junction Angle Info

Postby herrchin » Fri Nov 11, 2016 5:22 pm

herrchin
State Manager
State Manager
 
Posts: 234
Joined: Mon Jun 22, 2015 6:05 pm
Location: Lincoln, NE, USA
Has thanked: 166 times
Been thanked: 109 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: Bing [Bot], herrchin, tom-cat-67