Skip to content

Commit

Permalink
Merge pull request #60 from WazeDev/beta
Browse files Browse the repository at this point in the history
2021.07.14.01
  • Loading branch information
dBsooner authored Jul 14, 2021
2 parents 7fd735e + 65213b1 commit 95171a1
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions WME-URComments-Enhanced.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name WME URComments-Enhanced
// @namespace https://greasyfork.org/users/166843
// @version 2020.09.09.01
// @version 2021.07.14.01
// eslint-disable-next-line max-len
// @description URComments-Enhanced (URC-E) allows Waze editors to handle WME update requests more quickly and efficiently. Also adds many UR filtering options, ability to change the markers, plus much, much, more!
// @grant none
Expand Down Expand Up @@ -38,19 +38,7 @@ const SCRIPT_NAME = `URC-E${((GM_info.script.name.search(/beta/) > -1) ? ' β' :
SETTINGS_STORE_NAME = 'WME_URC-E',
ALERT_UPDATE = true,
SCRIPT_VERSION = GM_info.script.version,
SCRIPT_VERSION_CHANGES = ['<b>NEW:</b> Setting to auto zoom out after closing UR panel.',
'<b>NEW:</b> Shortcut to insert permalink to UR.',
'<b>NEW:</b> Spreadsheet shortcut of "$PERMALINK$" to insert permalink to UR.',
'<b>CHANGE:</b> Faster load time.',
'<b>CHANGE:</b> Far less script execution awaits, letting script run more synchronously.',
'<b>CHANGE:</b> Style compatibility with WME v2.62-35-g266443036.',
'<b>BUGFIX:</b> Permalink shortcut icon not working correctly. (2020.09.09.01)',
'<b>BUGFIX:</b> Side panel alignments in certain situations. (2020.09.09.01)',
'<b>BUGFIX:</b> Script style setting not correctly showing in settings.',
'<b>BUGFIX:</b> Better error handling.',
'<b>BUGFIX:</b> WazeWrap stored settings not applied in some cases.',
'<b>BUGFIX:</b> Multiple event listeners in certain situations.',
'<b>BUGFIX:</b> Width of UR panel not wide enough for text (native WME issue).'],
SCRIPT_VERSION_CHANGES = ['<b>BUGFIX:</b> Fix for WME changes - missing day names.'],
DOUBLE_CLICK_ICON = 'data:image/png;base64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pLId0I8WIoDl9FbjDKwXXIXjGKLA52vYpSB7ZIHaAJbHDRN28HTaZGiMvha5B55NDs7S7EEcNmcwygHKESEfyeBOOXSMDg46OKVc5uiciAVxaxxUx6gvDFAhJOn0wiBv1FVDirJxn3Ns3s35Y0Hz+wWZmOUozXHe0D8xfrJgEvwPdf23WAwmO7p6fEazW3C4fgNPVAixOZacokAAAAASUVORK5CYII=',
DEBUG = false,
LOAD_BEGIN_TIME = performance.now(),
Expand Down Expand Up @@ -4785,6 +4773,15 @@ function loadTranslations() {
return new Promise((resolve, reject) => {
logDebug('Loading translations.');
let errorText;
/* FIX FOR WME MISSING DAY NAMES 2021.07.13 - snhroc */
if (!I18n.translations[I18n.locale].date.day_names) {
I18n.translations[I18n.locale].date.day_names = [];
Object.entries(I18n.translations[I18n.locale].date).forEach(([k, v]) => {
if (k.indexOf('day_names_') === 0)
I18n.translations[I18n.locale].date.day_names.push(v);
});
}
/* END FIX */
$.getJSON(`https://sheets.googleapis.com/v4/spreadsheets/${URCE_SPREADSHEET_ID}/values/Script_Translations!A3:AA?key=${URCE_API_KEY}`, data => {
const translationLocales = [];
let translations = {};
Expand Down

0 comments on commit 95171a1

Please sign in to comment.