WME Validator

This script validates a map area in Waze Map Editor, highlights issues and generates a very detailed report with wiki references and solutions

当前为 2022-04-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name WME Validator
  3. // @version 2022.4.16
  4. // @description This script validates a map area in Waze Map Editor, highlights issues and generates a very detailed report with wiki references and solutions
  5. // @match https://beta.waze.com/*editor*
  6. // @match https://www.waze.com/*editor*
  7. // @exclude https://www.waze.com/*user/*editor/*
  8. // @grant none
  9. // @icon https://raw.githubusercontent.com/WMEValidator/release/master/img/WV-icon96.png
  10. // @namespace a
  11. // @homepage https://www.waze.com/forum/viewtopic.php?f=819&t=76488
  12. // @author Andriy Berestovskyy <berestovskyy@gmail.com>
  13. // @copyright 2013-2018 Andriy Berestovskyy
  14. // @license GPLv3
  15. // @contributor justins83
  16. // @contributor davidakachaos
  17. // @contributor jangliss
  18. // @contributor Glodenox
  19. // ==/UserScript==
  20. /*
  21. * WME Validator uses Open Source GPLv3 license, i.e. you may copy,
  22. * distribute and modify the software as long as you track changes/dates
  23. * in source files. Any modifications to or software including
  24. * (via compiler) GPL-licensed code must also be made available under
  25. * the GPL along with build & install instructions.
  26. *
  27. * WME Validator source code is available on GitHub:
  28. * https://github.com/WMEValidator/
  29. *
  30. * For questions please use official forum:
  31. * https://www.waze.com/forum/viewtopic.php?f=819&t=76488
  32. *
  33. * Report bugs on GitHub Issues Tracker:
  34. * https://github.com/WMEValidator/validator/issues
  35. */
  36.  
  37. (function() {
  38. var WV_VERSION = '2022.4.16';
  39. var AS_PASSWORD = 'v1';
  40. var WV_WHATSNEW = `v2022.4.16:
  41. - Glodenox: Zoom-related fixes
  42.  
  43. v2021.9.7:
  44. - Glodenox: fixes for the latest WME version
  45.  
  46. v2021.3.5:
  47. - Glodenox: fixes for the latest WME version
  48.  
  49. v2020.11.1:
  50. - paulvdwyn: update Motorway naming for BE
  51.  
  52. v2020.10.25:
  53. - davidakachaos: updated Wiki links for BE/NL
  54.  
  55. v2020.04.12:
  56. - davidakachaos: fixes for the latest WME
  57.  
  58. v2019.09.24:
  59. - davidakachaos: Added new places checks!
  60. - davidakachaos: Added Dutch translations for places checks
  61. - other minor fixes
  62. Please report any issues/suggestions on the forum:
  63. https://www.waze.com/forum/viewtopic.php?t=76488
  64.  
  65. See the full Change Log:
  66. https://www.waze.com/forum/viewtopic.php?f=819&t=76488&p=787161#p787161`;
  67. var WV_LICENSE_VERSION = '1';
  68. var WV_LICENSE = `LICENSE:
  69. WME Validator uses Open Source GPLv3 license,
  70. i.e. you may copy, distribute and modify the software
  71. as long as you track changes/dates in source files.
  72. Any modifications to or software including (via compiler)
  73. GPL-licensed code must also be made available
  74. under the GPL along with build & install instructions.
  75.  
  76. WME Validator source code is available on GitHub:
  77. https://github.com/WMEValidator/
  78.  
  79. For questions please use official forum:
  80. https://www.waze.com/forum/viewtopic.php?f=819&t=76488
  81.  
  82. Report bugs on GitHub Issues Tracker:
  83. https://github.com/WMEValidator/validator/issues
  84.  
  85. Note: WME Validator uses local storage to remember
  86. your choices and preferences.`;
  87. var GA_FORLEVEL = 1;
  88. var GA_FORUSER = '!Dekis,*';
  89. var GA_FORCOUNTRY = '';
  90. var GA_FORCITY = '!Kraków,*';
  91. var LIMIT_TOTAL = 2E4;
  92. var MAX_CHECKS = 310;
  93. var PFX_WIKI = 'https://www.waze.com/wiki/';
  94. var PFX_PEDIA = 'https://wazeopedia.waze.com/wiki/';
  95. var PFX_FORUM = 'https://www.waze.com/forum/viewtopic.php?';
  96. var FORUM_HOME = 't=76488';
  97. var FORUM_FAQ = 't=76488&p=666476#p666476';
  98. var FORUM_LOCAL = 't=76488&p=661300#p661185';
  99. var FORUM_CUSTOM = 't=76488&p=749456#p749456';
  100. var
  101. _translations =
  102. {
  103. 'EN':
  104. {
  105. '.codeISO': 'EN',
  106. 'city.consider': 'consider this city name:',
  107. 'city.1': 'city name is too short',
  108. 'city.2': 'expand the abbreviation',
  109. 'city.3': 'complete short name',
  110. 'city.4': 'complete city name',
  111. 'city.5': 'correct letter case',
  112. 'city.6': 'check word order',
  113. 'city.7': 'check abbreviations',
  114. 'city.8a': 'add county name',
  115. 'city.8r': 'remove county name',
  116. 'city.9': 'check county name',
  117. 'city.10a': 'add a word',
  118. 'city.10r': 'remove a word',
  119. 'city.11': 'add county code',
  120. 'city.12': 'identical names, but different city IDs',
  121. 'city.13a': 'add a space',
  122. 'city.13r': 'remove a space',
  123. 'city.14': 'check the number',
  124. 'props.skipped.title': 'The segment is not checked',
  125. 'props.skipped.problem': 'The segment is modified after 2014-05-01 AND locked for you, so Validator did not check it',
  126. 'err.regexp': 'Error parsing option for check #${n}:',
  127. 'props.disabled': 'WME Validator is disabled',
  128. 'props.limit.title': 'Too many issues reported',
  129. 'props.limit.problem': 'There are too many issues reported, so some of them might not be shown',
  130. 'props.limit.solution': 'Deselect the segment and stop scanning process. Then click red \'✘\' (Clear report) button',
  131. 'props.reports': 'reports',
  132. 'props.noneditable': 'You cannot edit this segment',
  133. 'report.save': 'Save this report',
  134. 'report.list.andUp': 'and up',
  135. 'report.list.severity': 'Severity:',
  136. 'report.list.reportOnly': 'only in report',
  137. 'report.list.forEditors': 'For editors level:',
  138. 'report.list.forCountries': 'For countries:',
  139. 'report.list.forStates': 'For states:',
  140. 'report.list.forCities': 'For cities:',
  141. 'report.list.params': 'Params to configure in localization pack:',
  142. 'report.list.params.set': 'Current configuration for ${country}:',
  143. 'report.list.enabled': '${n} checks are enabled for',
  144. 'report.list.disabled': '${n} checks are disabled for',
  145. 'report.list.total': 'There are ${n} checks available',
  146. 'report.list.title': 'Complete List of Checks for',
  147. 'report.list.see': 'See',
  148. 'report.list.checks': 'Settings->About->Available checks',
  149. 'report.list.fallback': 'Localization Fallback Rules:',
  150. 'report.and': 'and',
  151. 'report.segments': 'Total number of segments checked:',
  152. 'report.customs': 'Custom checks matched (green/blue):',
  153. 'report.reported': 'Reported',
  154. 'report.errors': 'errors',
  155. 'report.warnings': 'warnings',
  156. 'report.notes': 'notes',
  157. 'report.link.wiki': 'wiki',
  158. 'report.link.forum': 'forum',
  159. 'report.link.other': 'link',
  160. 'report.contents': 'Contents:',
  161. 'report.summary': 'Summary',
  162. 'report.title': 'WME Validator Report',
  163. 'report.share': 'to Share',
  164. 'report.generated.by': 'generated by',
  165. 'report.generated.on': 'on',
  166. 'report.source': 'Report source:',
  167. 'report.filter.duplicate': 'duplicate segments',
  168. 'report.filter.places': 'Places',
  169. 'report.filter.streets': 'Streets and Service Roads',
  170. 'report.filter.other': 'Other drivable and Non-drivable',
  171. 'report.filter.noneditable': 'non-editable segments',
  172. 'report.filter.notes': 'notes',
  173. 'report.filter.title': 'Filter:',
  174. 'report.filter.excluded': 'are excluded from this report.',
  175. 'report.search.updated.by': 'updated by',
  176. 'report.search.updated.since': 'updated since',
  177. 'report.search.city': 'from',
  178. 'report.search.reported': 'reported as',
  179. 'report.search.title': 'Search:',
  180. 'report.search.only': 'only segments',
  181. 'report.search.included': 'are included into the report.',
  182. 'report.beta.warning': 'WME Beta Warning!',
  183. 'report.beta.text': 'This report is generated in beta WME with beta permalinks.',
  184. 'report.beta.share': 'Please do not share those permalinks!',
  185. 'report.size.warning': '<b>Warning!</b><br>The report is ${n}' +
  186. ' characters long' +
  187. ' so <b>it will not fit</b> into a single forum or private message.' +
  188. '\n<br>Please add <b>more filters</b> to reduce the size of the report.',
  189. 'report.note.limit': '* Note: there were too many issues reported, so some of them are not counted in the summary.',
  190. 'report.forum': 'To motivate further development please leave your comment on the',
  191. 'report.forum.link': 'Waze forum thread.',
  192. 'report.thanks': 'Thank you for using WME Validator!',
  193. 'msg.limit.segments': 'There are too many segments.\n\nClick \'Show report\' to review the report, then\n',
  194. 'msg.limit.segments.continue': 'click \'▶\' (Play) to continue.',
  195. 'msg.limit.segments.clear': 'click \'✘\' (Clear) to clear the report.',
  196. 'msg.pan.text': 'Pan around to validate the map',
  197. 'msg.zoomout.text': 'Zoom out to start WME Validator',
  198. 'msg.click.text': 'Click \'▶\' (Play) to validate visible map area',
  199. 'msg.autopaused': 'autopaused',
  200. 'msg.autopaused.text': 'Auto paused! Click \'▶\' (Play) to continue.',
  201. 'msg.autopaused.tip': 'WME Validator automatically paused on map drag or window size change',
  202. 'msg.finished.text': 'Click <b>\'Show report\'</b> to review map issues',
  203. 'msg.finished.tip': 'Click \'✉\' (Share) button to post report on a\nforum or in a private message',
  204. 'msg.noissues.text': 'Finished! No issues found!',
  205. 'msg.noissues.tip': 'Try to uncheck some filter options or start WME Validator over another map area!',
  206. 'msg.scanning.text': 'Scanning! Finishing in ~ ${n} min',
  207. 'msg.scanning.text.soon': 'Scanning! Finishing in a minute!',
  208. 'msg.scanning.tip': 'Click \'Pause\' button to pause or \'■\' (Stop) to stop',
  209. 'msg.starting.text': 'Starting! Layers are off to scan faster!',
  210. 'msg.starting.tip': 'Use \'Pause\' button to pause or \'■\' button to stop',
  211. 'msg.paused.text': 'On pause! Click \'▶\' (Play) button to continue.',
  212. 'msg.paused.tip': 'To view the report click \'Show report\' button (if available)',
  213. 'msg.continuing.text': 'Continuing!',
  214. 'msg.continuing.tip': 'WME Validator will continue from the location it was paused',
  215. 'msg.settings.text': 'Click <b>\'Back\'</b> to return to main view',
  216. 'msg.settings.tip': 'Click \'Reset defaults\' button to reset all settings in one click!',
  217. 'msg.reset.text': 'All filter options and settings have been reset to their defaults',
  218. 'msg.reset.tip': 'Click \'Back\' button to return to main view',
  219. 'msg.textarea.pack':
  220. 'This is a Greasemonkey/Tampermonkey script. You can copy and paste the text below into a <b>new .user.js file</b><br>or <b>paste it directly</b> into the Greasemonkey/Tampermonkey',
  221. 'msg.textarea': 'Please copy the text below and then paste it into your forum post or private message',
  222. 'noaccess.text': '<b>Sorry,</b><br>You cannot use WME Validator over here.<br>Please check <a target=\'_blank\' href=\'' + PFX_FORUM + FORUM_HOME +
  223. '\'>the forum thread</a><br>for more information.',
  224. 'noaccess.tip': 'Please check the forum thread for more information!',
  225. 'tab.switch.tip.on': 'Click to switch highlighting on (Alt+V)',
  226. 'tab.switch.tip.off': 'Click to switch highlighting off (Alt+V)',
  227. 'tab.filter.text': 'filter',
  228. 'tab.filter.tip': 'Options to filter the report and highlighted segments',
  229. 'tab.search.text': 'search',
  230. 'tab.search.tip': 'Advanced filter options to include only specific segments',
  231. 'tab.help.text': 'help',
  232. 'tab.help.tip': 'Need help?',
  233. 'filter.places.text': '<span style=\'color:#c00000\'><b>BETA:</b> Enable <b>Places</b> checks</span>',
  234. 'filter.places.tip': 'Do not run places checks',
  235. 'filter.noneditables.reverted':
  236. 'The \'Exclude non-editable objects\' filter option has been removed because the area you just scanned has no editable objects.\n\nNow just click \'Show report\' to view the report!',
  237. 'filter.noneditables.text': 'Exclude <b>non-editable</b> objects',
  238. 'filter.noneditables.tip': 'Do not report locked objects or\nobjects outside of your editable areas',
  239. 'filter.duplicates.text': 'Exclude <b>duplicate</b> objects',
  240. 'filter.duplicates.tip': 'Do not show the same object in different\nparts of report\n* Note: this option DOES NOT affect highlighting',
  241. 'filter.streets.text': 'Exclude <b>Streets and Service Roads</b>',
  242. 'filter.streets.tip': 'Do not report Streets and Service Roads',
  243. 'filter.other.text': 'Exclude <b>Other drivable and Non-drivable</b>',
  244. 'filter.other.tip': 'Do not report Dirt, Parking Lot, Private Roads\nand non-drivable segments',
  245. 'filter.notes.text': 'Exclude <b>notes</b>',
  246. 'filter.notes.tip': 'Report only warnings and errors',
  247. 'search.youredits.text': 'Include <b>only your edits</b>',
  248. 'search.youredits.tip': 'Include only segments edited by you',
  249. 'search.updatedby.text': '<b>Updated by*:</b>',
  250. 'search.updatedby.tip': 'Include only segments updated by the specified editor' +
  251. '\n* Note: this option is available for country managers only' +
  252. '\nThis field supports:' +
  253. '\n - lists: me, otherEditor' +
  254. '\n - wildcards: world*' +
  255. '\n - negation: !me, *' +
  256. '\n* Note: you may use \'me\' to match yourself',
  257. 'search.updatedby.example': 'Example: me',
  258. 'search.updatedsince.text': '<b>Updated since:</b>',
  259. 'search.updatedsince.tip': 'Include only segments edited since the date specified' +
  260. '\nFirefox date format: YYYY-MM-DD',
  261. 'search.updatedsince.example': 'YYYY-MM-DD',
  262. 'search.city.text': '<b>City name:</b>',
  263. 'search.city.tip': 'Include only segments with specified city name' +
  264. '\nThis field supports:' +
  265. '\n - lists: Paris, Meudon' +
  266. '\n - wildcards: Greater * Area' +
  267. '\n - negation: !Paris, *',
  268. 'search.city.example': 'Example: !Paris, *',
  269. 'search.checks.text': '<b>Reported as:</b>',
  270. 'search.checks.tip': 'Include only segments reported as specified' +
  271. '\nThis field matches:' +
  272. '\n - severities: error|warning|note|custom1|custom2' +
  273. '\n - check names: New road' +
  274. '\n - check IDs: 200' +
  275. '\nThis field supports:' +
  276. '\n - lists: 36, 37' +
  277. '\n - wildcards: *roundabout*' +
  278. '\n - negation: !unconfirmed*, *',
  279. 'search.checks.example': 'Example: reverse*',
  280. 'help.text': '<b>Help Topics:</b>' +
  281. '<br><a target="_blank" href="' + PFX_FORUM + FORUM_FAQ + '">F.A.Q.</a>' +
  282. '<br><a target="_blank" href="' + PFX_FORUM + FORUM_HOME + '">Ask your question on the forum</a>' +
  283. '<br><a target="_blank" href="' + PFX_FORUM + FORUM_LOCAL + '">How to adjust Validator for your country</a>' +
  284. '<br><a target="_blank" href="' + PFX_FORUM + 't=76488&p=663286#p663286">About the "Might be Incorrect City Name"</a>',
  285. 'help.tip': 'Open in a new browser tab',
  286. 'button.scan.tip': 'Start scanning current map area\n* Note: this might take few minutes',
  287. 'button.scan.tip.NA': 'Zoom out to start scanning current map area',
  288. 'button.pause.tip': 'Pause scanning',
  289. 'button.continue.tip': 'Continue scanning the map area',
  290. 'button.stop.tip': 'Stop scanning and return to the start position',
  291. 'button.clear.tip': 'Clear report and segment cache',
  292. 'button.clear.tip.red': 'There are too many reported segments:\n 1. Click \'Show report\' to generate the report.\n 2. Click this button to clear the report and start over.',
  293. 'button.report.text': 'Show report',
  294. 'button.report.tip': 'Apply the filter and generate HTML report in a new tab',
  295. 'button.BBreport.tip': 'Share the report on Waze forum or in a private message',
  296. 'button.settings.tip': 'Configure settings',
  297. 'tab.custom.text': 'custom',
  298. 'tab.custom.tip': 'User-defined custom checks settings',
  299. 'tab.settings.text': 'Settings',
  300. 'tab.scanner.text': 'scanner',
  301. 'tab.scanner.tip': 'Map scanner settings',
  302. 'tab.about.text': 'about</span>',
  303. 'tab.about.tip': 'About WME Validator',
  304. 'scanner.sounds.text': 'Enable sounds',
  305. 'scanner.sounds.tip': 'Bleeps and the bloops while scanning',
  306. 'scanner.sounds.NA': 'Your browser does not support AudioContext',
  307. 'scanner.highlight.text': 'Highlight issues on the map',
  308. 'scanner.highlight.tip': 'Highlight reported issues on the map',
  309. 'scanner.slow.text': 'Enable "slow" checks',
  310. 'scanner.slow.tip': 'Enables deep map analysis\n* Note: this option might slow down the scanning process',
  311. 'scanner.ext.text': 'Report external highlights',
  312. 'scanner.ext.tip': 'Report segments highlighted by WME Toolbox or WME Color Highlights',
  313. 'advanced.atbottom.text': 'At the bottom',
  314. 'advanced.atbottom.tip': 'Put WME Validator at the bottom of the page',
  315. 'custom.template.text': '<a target=\'_blank\' href=\'' + PFX_FORUM + FORUM_CUSTOM + '\'>Custom template</a>',
  316. 'custom.template.tip': 'User-defined custom check expandable template.' +
  317. '\n\nYou may use the following expandable variables:' +
  318. '\nAddress:' +
  319. '\n ${country}, ${state}, ${city}, ${street},' +
  320. '\n ${altCity[index or delimeter]}, ${altStreet[index or delimeter]}' +
  321. '\nSegment properties:' +
  322. '\n ${type}, ${typeRank}, ${toll}, ${direction}, ${elevation}, ${lock},' +
  323. '\n ${length}, ${ID}, ${speedLimit}, ${speedLimitAB}, ${speedLimitBA}' +
  324. '\nHelpers:' +
  325. '\n ${drivable}, ${roundabout}, ${hasHNs},' +
  326. '\n ${Uturn}, ${deadEnd}, ${softTurns},' +
  327. '\n ${deadEndA}, ${partialA},' +
  328. '\n ${deadEndB}, ${partialB},' +
  329. '\n ${checkSpeedLimit}' +
  330. '\nConnectivity:' +
  331. '\n ${segmentsA}, ${inA}, ${outA}, ${UturnA},' +
  332. '\n ${segmentsB}, ${inB}, ${outB}, ${UturnB}',
  333. 'custom.template.example': 'Example: ${street}',
  334. 'custom.regexp.text': 'Custom <a target=\'_blank\' href=\'' + PFX_FORUM + FORUM_CUSTOM + '\'>RegExp</a>',
  335. 'custom.regexp.tip': 'User-defined custom check regular expression to match the template.' +
  336. '\n\nCase-insensitive match: /regexp/i' +
  337. '\nNegation (do not match): !/regexp/' +
  338. '\nLog debug information on console: D/regexp/',
  339. 'custom.regexp.example': 'Example: !/.+/',
  340. 'about.tip': 'Open link in a new tab',
  341. 'button.reset.text': 'Reset defaults',
  342. 'button.reset.tip': 'Revert filter options and settings to their defaults',
  343. 'button.list.text': 'Available checks...',
  344. 'button.list.tip': 'Show a list of checks available in WME Validator',
  345. 'button.wizard.tip': 'Create localization package',
  346. 'button.back.text': 'Back',
  347. 'button.back.tip': 'Close settings and return to main view',
  348. '23.enabled': true,
  349. '23.title': 'Unconfirmed road',
  350. '23.problem': 'Each segment must minimally have the Country and State information',
  351. '23.problemLink': 'W:Map_Editing_Quick-start_Guide#Create_a_Road',
  352. '23.solution': 'Confirm the road by updating its details',
  353. '23.solutionLink': 'W:How_to_label_and_name_roads',
  354. '24.enabled': true,
  355. '24.severity': 'W',
  356. '24.reportOnly': true,
  357. '24.title': 'Might be incorrect city name (only available in the report)',
  358. '24.problem': 'The segment might have incorrect city name',
  359. '24.problemLink': 'W:Fixing_"smudged"_cities',
  360. '24.solution': 'Consider suggested city name and use this form to rename the city',
  361. '24.solutionLink': 'F:t=50314#p450378',
  362. '25.enabled': true,
  363. '25.severity': 'W',
  364. '25.title': 'Unknown direction of drivable road',
  365. '25.problem': '\'Unknown\' road direction will not prevent routing on the road',
  366. '25.problemLink': 'W:How_to_handle_road_closures#NOTES_for_all_durations',
  367. '25.solution': 'Set the road direction',
  368. '27.title': 'City name on Railroad',
  369. '27.problem': 'City name on the Railroad may cause a city smudge',
  370. '27.problemLink': 'W:Fixing_"smudged"_cities',
  371. '27.solution': 'In the address properties check the \'None\' box next to the city name and then click \'Apply\'',
  372. '27.solutionLink': 'W:Creating_and_Editing_street_segments#Address_Properties',
  373. '28.enabled': true,
  374. '28.severity': 'W',
  375. '28.title': 'Street name on two-way Ramp',
  376. '28.problem': 'If Ramp is unnamed, the name of a subsequent road will propagate backwards',
  377. '28.problemLink': 'W:Junction_Style_Guide#Ramp_to_Ramp_Splits',
  378. '28.solution': 'In the address properties check the \'None\' box next to the street name and then click \'Apply\'',
  379. '28.solutionLink': 'W:Creating_and_Editing_street_segments#Address_Properties',
  380. '29.enabled': true,
  381. '29.severity': 'W',
  382. '29.title': 'Street name on roundabout',
  383. '29.problem': 'In Waze, we do not name roundabout segments',
  384. '29.problemLink': 'W:Creating_and_Editing_a_roundabout#Creating_a_roundabout_from_an_intersection',
  385. '29.solution': 'In the address properties check the \'None\' box next to the street name, click \'Apply\' and then add \'Junction\' landmark to name the roundabout',
  386. '29.solutionLink': 'W:Creating_and_Editing_street_segments#Address_Properties',
  387. '34.enabled': true,
  388. '34.title': 'Empty alternate street',
  389. '34.problem': 'Alternate street name is empty',
  390. '34.solution': 'Remove empty alternate street name',
  391. '35.enabled': true,
  392. '35.severity': 'W',
  393. '35.title': 'Unterminated drivable road',
  394. '35.problem': 'Waze will not route from the unterminated segment',
  395. '35.solution': 'Move the segment a bit so the terminating node will be added automatically',
  396. '36.enabled': false,
  397. '36.title': 'Node A: Unneeded (slow)',
  398. '36.problem': 'Adjacent segments at node A are identical',
  399. '36.problemLink': 'W:Creating_and_Editing_street_segments#Removing_junctions_with_only_two_segments',
  400. '36.solution': 'Select node A and press Delete key to join the segments',
  401. '36.solutionLink': 'W:Map_Editing_Quick-start_Guide#Delete_a_Junction',
  402. '37.enabled': false,
  403. '37.title': 'Node B: Unneeded (slow)',
  404. '37.problem': 'Adjacent segments at node B are identical',
  405. '37.problemLink': 'W:Creating_and_Editing_street_segments#Removing_junctions_with_only_two_segments',
  406. '37.solution': 'Select node B and press Delete key to join the segments',
  407. '37.solutionLink': 'W:Map_Editing_Quick-start_Guide#Delete_a_Junction',
  408. '38.enabled': true,
  409. '38.title': 'Expired segment restriction (slow)',
  410. '38.problem': 'The segment has an expired restriction',
  411. '38.problemLink': 'W:Scheduled_Restrictions#Segments',
  412. '38.solution': 'Click \'Edit restrictions\' and delete the expired restriction',
  413. '39.enabled': true,
  414. '39.title': 'Expired turn restriction (slow)',
  415. '39.problem': 'The segment has a turn with an expired restriction',
  416. '39.problemLink': 'W:Scheduled_Restrictions#Turns',
  417. '39.solution': 'Click clock icon next to the yellow arrow and delete the expired restriction',
  418. '41.enabled': true,
  419. '41.title': 'Node A: Reverse connectivity of drivable road',
  420. '41.problem': 'There is a turn which goes against the directionality of the segment at node A',
  421. '41.problemLink': 'W:Glossary#Reverse_Connectivity',
  422. '41.solution': 'Make the segment \'Two-way\', restrict all the turns at node A and then make the segment \'One way (A→B)\' again',
  423. '42.enabled': true,
  424. '42.title': 'Node B: Reverse connectivity of drivable road',
  425. '42.problem': 'There is a turn which goes against the directionality of the segment at node B',
  426. '42.problemLink': 'W:Glossary#Reverse_Connectivity',
  427. '42.solution': 'Make the segment \'Two-way\', restrict all the turns at node B and then make the segment \'One way (B→A)\' again',
  428. '43.enabled': true,
  429. '43.severity': 'E',
  430. '43.title': 'Self connectivity',
  431. '43.problem': 'The segment is connected back to itself',
  432. '43.problemLink': 'W:Glossary#Self_Connectivity',
  433. '43.solution': 'Split the segment into THREE pieces',
  434. '43.solutionLink': 'W:Map_Editing_Quick-start_Guide#Splitting_a_segment',
  435. '44.enabled': false,
  436. '44.severity': 'E',
  437. '44.title': 'No outward connectivity',
  438. '44.problem': 'The drivable segment has no single outward turn enabled',
  439. '44.solution': 'Enable at least one outward turn from the segment',
  440. '44.solutionLink': 'W:Creating_and_Editing_street_segments#Set_allowed_turns_.28connections.29',
  441. '45.enabled': false,
  442. '45.severity': 'E',
  443. '45.title': 'No inward connectivity',
  444. '45.problem': 'The drivable non-private segment has no single inward turn enabled',
  445. '45.solution': 'Select an adjacent segment and enable at least one turn to the segment',
  446. '45.solutionLink': 'W:Creating_and_Editing_street_segments#Set_allowed_turns_.28connections.29',
  447. '46.enabled': true,
  448. '46.severity': 'W',
  449. '46.title': 'Node A: No inward connectivity of drivable road (slow)',
  450. '46.problem': 'The drivable non-private segment has no single inward turn enabled at node A',
  451. '46.solution': 'Select an adjacent segment and enable at least one turn to the segment at node A',
  452. '46.solutionLink': 'W:Creating_and_Editing_street_segments#Set_allowed_turns_.28connections.29',
  453. '47.enabled': true,
  454. '47.severity': 'W',
  455. '47.title': 'Node B: No inward connectivity of drivable road (slow)',
  456. '47.problem': 'The drivable non-private segment has no single inward turn enabled at node B',
  457. '47.solution': 'Select an adjacent segment and enable at least one turn to the segment at node B',
  458. '47.solutionLink': 'W:Creating_and_Editing_street_segments#Set_allowed_turns_.28connections.29',
  459. '48.enabled': true,
  460. '48.severity': 'E',
  461. '48.title': 'Two-way drivable roundabout segment',
  462. '48.problem': 'The drivable roundabout segment is bidirectional',
  463. '48.solution': 'Redo the roundabout',
  464. '48.solutionLink': 'W:Creating_and_Editing_a_roundabout#Improving_manually_drawn_roundabouts',
  465. '50.enabled': false,
  466. '50.severity': 'E',
  467. '50.title': 'No connectivity on roundabout (slow)',
  468. '50.problem': 'The drivable roundabout segment has no connectivity with adjacent roundabout segment',
  469. '50.solution': 'Enable a turn to the adjacent segment or redo the roundabout',
  470. '50.solutionLink': 'W:Creating_and_Editing_a_roundabout#Improving_manually_drawn_roundabouts',
  471. '52.title': 'Too long street name',
  472. '52.problem': 'The name of the drivable segment is more than ${n} letters long and it is not a Ramp',
  473. '52.solution': 'Consider an abbreviation for the street name',
  474. '52.params': {'n.title': '{number} maximum street name length', 'n': 30},
  475. '57.severity': 'W',
  476. '57.title': 'City name on named Ramp',
  477. '57.problem': 'City name on the named Ramp may affect search results',
  478. '57.problemLink': 'F:t=68015',
  479. '57.solution': 'In the address properties check the \'None\' box next to the city name and then click \'Apply\'',
  480. '57.solutionLink': 'W:Creating_and_Editing_street_segments#Address_Properties',
  481. '59.title': 'City name on Freeway',
  482. '59.problem': 'City name on the Freeway may cause a city smudge',
  483. '59.problemLink': 'W:Fixing_"smudged"_cities',
  484. '59.solution': 'In the address properties check the \'None\' box next to the city name and then click \'Apply\'',
  485. '59.solutionLink': 'W:Creating_and_Editing_street_segments#Address_Properties',
  486. '69.title': 'No city name on Freeway',
  487. '69.problem': 'The Freeway has no city name set',
  488. '69.solution': 'Set the city name',
  489. '73.title': 'Too short street name',
  490. '73.problem': 'The street name is less than ${n} letters long and it is not a highway',
  491. '73.solution': 'Correct the street name',
  492. '73.params': {'n.title': '{number} minimum street name length', 'n': 3},
  493. '74.enabled': false,
  494. '74.severity': 'W',
  495. '74.title': 'Node A: Multiple segments connected at roundabout',
  496. '74.problem': 'The drivable roundabout node A has more than one segment connected',
  497. '74.problemLink': 'W:Map_Legend#Types_of_segments_.28Roundabouts.29',
  498. '74.solution': 'Redo the roundabout',
  499. '74.solutionLink': 'W:Creating_and_Editing_a_roundabout#Improving_manually_drawn_roundabouts',
  500. '77.enabled': false,
  501. '77.severity': 'W',
  502. '77.title': 'Dead-end U-turn',
  503. '77.problem': 'The drivable dead-end road has a U-turn enabled',
  504. '77.problemLink': 'W:Map_Editing_Quick-start_Guide#U-Turns_at_the_end_of_dead-end-streets',
  505. '77.solution': 'Disable U-turn',
  506. '78.enabled': true,
  507. '78.severity': 'W',
  508. '78.title': 'Same endpoints drivable segments (slow)',
  509. '78.problem': 'Two drivable segments share the same two endpoints',
  510. '78.problemLink': 'W:Junction_Style_Guide#Two-segment_loops',
  511. '78.solution': 'Split the segment. You might also remove one of the segments if they are identical',
  512. '78.solutionLink': 'W:Map_Editing_Quick-start_Guide#Splitting_a_segment',
  513. '79.enabled': false,
  514. '79.severity': 'W',
  515. '79.title': 'Too short U-turn connector (slow)',
  516. '79.problem': 'The length of the segment is less than 15m long so U-turn is not possible here',
  517. '79.problemLink': 'W:Classification_of_crossings',
  518. '79.solution': 'Increase the length of the segment',
  519. '87.enabled': true,
  520. '87.severity': 'E',
  521. '87.title': 'Node A: Multiple outgoing segments at roundabout',
  522. '87.problem': 'The drivable roundabout node A has more than one outgoing segment connected',
  523. '87.problemLink': 'W:Map_Legend#Types_of_segments_.28Roundabouts.29',
  524. '87.solution': 'Redo the roundabout',
  525. '87.solutionLink': 'W:Creating_and_Editing_a_roundabout#Improving_manually_drawn_roundabouts',
  526. '90.severity': 'W',
  527. '90.title': 'Two-way Freeway segment',
  528. '90.problem': 'Most of the Freeways are split into two one-way roads, so this two-way segment might be a mistake',
  529. '90.solution': 'Check Freeway direction',
  530. '91.severity': 'W',
  531. '91.title': 'Two-way Ramp segment',
  532. '91.problem': 'Most of the Ramps are one-way roads, so this two-way segment might be a mistake',
  533. '91.solution': 'Check Ramp direction',
  534. '95.severity': 'W',
  535. '95.title': 'Street name with a dot',
  536. '95.problem': 'There is a dot in the street name (excluding Ramps)',
  537. '95.solution': 'Expand the abbreviation or remove the dot',
  538. '99.enabled': true,
  539. '99.severity': 'W',
  540. '99.title': 'U-turn at roundabout entrance (slow)',
  541. '99.problem': 'The roundabout entrance segment has a U-turn enabled',
  542. '99.problemLink': 'W:Map_Editing_Quick-start_Guide#U-Turns_at_the_end_of_dead-end-streets',
  543. '99.solution': 'Disable U-turn',
  544. '101.enabled': true,
  545. '101.severity': 'E',
  546. '101.reportOnly': true,
  547. '101.title': 'Closed road (only available in the report)',
  548. '101.problem': 'The segment is marked as closed',
  549. '101.problemLink': 'W:How_to_handle_road_closures',
  550. '101.solution': 'If the construction is done, restore the segment connectivity and remove the suffix',
  551. '101.solutionLink': 'W:Road_Naming_(USA)#Construction_zones_and_closed_roads',
  552. '101.params': {'regexp.title': '{string} regular expression to match closed road', 'regexp': '/(^|\\b)closed(\\b|$)/i'},
  553. '102.enabled': true,
  554. '102.severity': 'W',
  555. '102.title': 'Node A: No outward connectivity of drivable road (slow)',
  556. '102.problem': 'The drivable segment has no single outward turn enabled at node A',
  557. '102.solution': 'Enable at least one outward turn from the segment at node A',
  558. '102.solutionLink': 'W:Creating_and_Editing_street_segments#Set_allowed_turns_.28connections.29',
  559. '103.enabled': true,
  560. '103.severity': 'W',
  561. '103.title': 'Node B: No outward connectivity of drivable road (slow)',
  562. '103.problem': 'The drivable segment has no single outward turn enabled at node B',
  563. '103.solution': 'Enable at least one outward turn from the segment at node B',
  564. '103.solutionLink': 'W:Creating_and_Editing_street_segments#Set_allowed_turns_.28connections.29',
  565. '104.enabled': true,
  566. '104.title': 'Railroad used for comments',
  567. '104.problem': 'The Railroad segment is probably used as a map comment',
  568. '104.problemLink': 'F:t=61546',
  569. '104.solution': 'Remove the comment as Railroads will be added to the client display',
  570. '105.title': 'Walking Trail instead of a Railroad',
  571. '105.problem': 'The Walking Trail segment with elevation -5 is probably used instead of a Railroad',
  572. '105.problemLink': 'F:t=61546',
  573. '105.solution': 'Change road type to Railroad as Railroads will be added to the client display',
  574. '106.title': 'No state name selected',
  575. '106.problem': 'The segment has no state name selected',
  576. '106.solution': 'Select a state for the segment and apply the changes',
  577. '106.solutionLink': 'W:Creating_and_Editing_street_segments#Confirm_the_road_by_updating_details',
  578. '107.enabled': true,
  579. '107.severity': 'E',
  580. '107.title': 'Node A: No connection (slow)',
  581. '107.problem': 'The node A of the drivable segment is within 5m from another drivable segment but not connected by a junction',
  582. '107.solution': 'Drag the node A to the nearby segment so that it touches or move it a bit further away',
  583. '108.enabled': true,
  584. '108.severity': 'E',
  585. '108.title': 'Node B: No connection (slow)',
  586. '108.problem': 'The node B of the drivable segment is within 5m from another drivable segment but not connected by a junction',
  587. '108.solution': 'Drag the node B to the nearby segment so that it touches or move it a bit further away',
  588. '109.enabled': true,
  589. '109.severity': 'W',
  590. '109.title': 'Too short segment',
  591. '109.problem': 'The drivable non-terminal segment is less than ${n}m long so it is hard to see it on the map and it can cause routing problems',
  592. '109.problemLink': 'W:Segment_length',
  593. '109.solution': 'Increase the length, or remove the segment, or join it with one of the adjacent segments',
  594. '109.solutionLink': 'W:Map_Editing_Quick-start_Guide#Delete_a_Junction',
  595. '109.params': {'n.title': '{number} minimum segment length', 'n': 5},
  596. '110.title': 'Incorrect Freeway elevation',
  597. '110.problem': 'The elevation of the Freeway segment is not a ground',
  598. '110.problemLink': 'W:Die_beste_Vorgehensweise_beim_Bearbeiten_der_Karte#.C3.9Cber-_und_Unterf.C3.BChrungen',
  599. '110.solution': 'Set the Freeway elevation to ground',
  600. '112.enabled': true,
  601. '112.severity': 'W',
  602. '112.title': 'Too long Ramp name',
  603. '112.problem': 'The Ramp name is more than ${n} letters long',
  604. '112.solution': 'Shorten the Ramp name',
  605. '112.params': {'n.title': '{number} maximum Ramp name length', 'n': 55},
  606. '114.enabled': false,
  607. '114.severity': 'W',
  608. '114.title': 'Node A: Non-drivable connected to drivable (slow)',
  609. '114.problem': 'The non-drivable segment makes a junction with a drivable at node A',
  610. '114.problemLink': 'W:Road_Types_(USA)#Non-drivable_roads',
  611. '114.solution': 'Disconnect node A from all of the drivable segments',
  612. '115.enabled': false,
  613. '115.severity': 'W',
  614. '115.title': 'Node B: Non-drivable connected to drivable (slow)',
  615. '115.problem': 'The non-drivable segment makes a junction with a drivable at node B',
  616. '115.problemLink': 'W:Road_Types_(USA)#Non-drivable_roads',
  617. '115.solution': 'Disconnect node B from all of the drivable segments',
  618. '116.enabled': true,
  619. '116.severity': 'W',
  620. '116.title': 'Out of range elevation',
  621. '116.problem': 'The segment elevation is out of range',
  622. '116.solution': 'Correct the elevation',
  623. '117.enabled': true,
  624. '117.severity': 'W',
  625. '117.title': 'Obsolete CONST ZN marker',
  626. '117.problem': 'The segment is marked with obsolete CONST ZN suffix',
  627. '117.solution': 'Change CONST ZN to (closed)',
  628. '117.solutionLink': 'W:Road_Naming_(USA)#Construction_zones_and_closed_roads',
  629. '118.enabled': true,
  630. '118.severity': 'E',
  631. '118.title': 'Node A: Overlapping segments (slow)',
  632. '118.problem': 'The segment is overlapping with the adjacent segment at node A',
  633. '118.solution': 'Spread the segments at 2° or delete unneeded geometry point or delete the duplicate segment at node A',
  634. '119.enabled': true,
  635. '119.severity': 'E',
  636. '119.title': 'Node B: Overlapping segments (slow)',
  637. '119.problem': 'The segment is overlapping with the adjacent segment at node B',
  638. '119.solution': 'Spread the segments at 2° or delete unneeded geometry point or delete the duplicate segment at node B',
  639. '120.enabled': true,
  640. '120.severity': 'W',
  641. '120.title': 'Node A: Too sharp turn (slow)',
  642. '120.problem': 'The drivable segment has a very acute turn at node A',
  643. '120.solution': 'Disable the sharp turn at node A or spread the segments at 30°',
  644. '121.enabled': true,
  645. '121.severity': 'W',
  646. '121.title': 'Node B: Too sharp turn (slow)',
  647. '121.problem': 'The drivable segment has a very acute turn at node B',
  648. '121.solution': 'Disable the sharp turn at node B or spread the segments at 30°',
  649. '128.enabled': true,
  650. '128.severity': '1',
  651. '128.title': 'User-defined custom check (green)',
  652. '128.problem': 'Some of the segment properties matched against the user-defined regular expression (see Settings→Custom)',
  653. '128.problemLink': 'https://developer.mozilla.org/docs/Web/JavaScript/Guide/Regular_Expressions',
  654. '128.solution': 'Solve the issue',
  655. '128.params': {},
  656. '129.enabled': true,
  657. '129.severity': '2',
  658. '129.title': 'User-defined custom check (blue)',
  659. '129.problem': 'Some of the segment properties matched against the user-defined regular expression (see Settings→Custom)',
  660. '129.problemLink': 'https://developer.mozilla.org/docs/Web/JavaScript/Guide/Regular_Expressions',
  661. '129.solution': 'Solve the issue',
  662. '129.params': {},
  663. '169.severity': 'W',
  664. '169.title': 'Incorrectly named street',
  665. '169.problem': 'The street named incorrectly, illegal chars or words used',
  666. '169.solution': 'Rename the segment in accordance with the guidelines',
  667. '169.params': {'regexp.title': '{string} regular expression to match incorrect street name', 'regexp': '!/^[a-zA-Z0-9\\. :"\'(/)-]+$/'},
  668. '170.severity': 'W',
  669. '170.title': 'Lowercase street name',
  670. '170.problem': 'The street name starts with a lowercase word',
  671. '170.solution': 'Correct lettercase in the street name',
  672. '170.params': {'regexp.title': '{string} regular expression to match a lowercase name', 'regexp': '/^[a-zа-яёіїєґ]/'},
  673. '171.severity': 'W',
  674. '171.title': 'Incorrectly abbreviated street name',
  675. '171.problem': 'The street name has incorrect abbreviation',
  676. '171.solution': 'Check upper/lower case, a space before/after the abbreviation and the accordance with the abbreviation table',
  677. '171.params': {'regexp.title': '{string} regular expression to match incorrect abbreviations', 'regexp': '/\\.$/'},
  678. '172.enabled': true,
  679. '172.title': 'Unneeded spaces in street name',
  680. '172.problem': 'Leading/trailing/double space in the street name',
  681. '172.solution': 'Remove unneeded spaces from the street name',
  682. '172.params': {'regexp': '/^\\s|\\s$|\\s\\s/'},
  683. '173.enabled': true,
  684. '173.severity': 'W',
  685. '173.title': 'No space before/after street abbreviation',
  686. '173.problem': 'No space before (\'1943r.\') or after (\'st.Jan\') an abbreviation in the street name',
  687. '173.solution': 'Add a space before/after the abbreviation',
  688. '173.params': {'regexp': '/([^\\s]\\.[^\\s0-9-][^\\s0-9\\.])|([0-9][^\\s0-9]+\\.[^0-9-])/'},
  689. '174.severity': 'W',
  690. '174.title': 'Street name spelling mistake',
  691. '174.problem': 'The is a spelling mistake in the street name',
  692. '174.solution': 'Add/correct the mistake, check accented letters',
  693. '174.params': {
  694. 'regexp.title': '{string} regular expression to match spelling mistakes',
  695. 'regexp': '/(^|\\b)(accross|cemetary|fourty|foward|goverment|independant|liason|pavillion|portugese|posession|prefered|shcool|wat|wich)($|\\b)/i'
  696. },
  697. '175.enabled': true,
  698. '175.severity': 'W',
  699. '175.title': 'Empty street name',
  700. '175.problem': 'The street name has only space characters or a dot',
  701. '175.solution': 'In the address properties check the \'None\' box next to the street name, click \'Apply\' OR set a proper street name',
  702. '175.solutionLink': 'W:Creating_and_Editing_street_segments#Confirm_the_road_by_updating_details',
  703. '175.params': {'regexp': '/^[\\s\\.]*$/'},
  704. '190.severity': 'W',
  705. '190.enabled': true,
  706. '190.title': 'Lowercase city name',
  707. '190.problem': 'The city name starts with a lowercase letter',
  708. '190.solution': 'Use this form to rename the city',
  709. '190.solutionLink': 'F:t=50314#p450378',
  710. '190.params': {'regexp.title': '{string} regular expression to match a lowercase city name', 'regexp': '/^[a-zа-яёіїєґ]/'},
  711. '191.severity': 'W',
  712. '191.title': 'Incorrectly abbreviated city name',
  713. '191.problem': 'The city name has incorrect abbreviation',
  714. '191.solution': 'Use this form to rename the city',
  715. '191.solutionLink': 'F:t=50314#p450378',
  716. '191.params': {'regexp.title': '{string} regular expression to match incorrect abbreviations', 'regexp': '/\\./'},
  717. '192.enabled': true,
  718. '192.title': 'Unneeded spaces in city name',
  719. '192.problem': 'Leading/trailing/double space in the city name',
  720. '192.solution': 'Use this form to rename the city',
  721. '192.solutionLink': 'F:t=50314#p450378',
  722. '192.params': {'regexp': '/^\\s|\\s$|\\s\\s/'},
  723. '193.enabled': true,
  724. '193.title': 'No space before/after city abbreviation',
  725. '193.problem': 'No space before (\'1943r.\') or after (\'st.Jan\') an abbreviation in the city name',
  726. '193.solution': 'Use this form to rename the city',
  727. '193.solutionLink': 'F:t=50314#p450378',
  728. '193.params': {'regexp': '/([^\\s]\\.[^\\s0-9-][^\\s0-9\\.])|([0-9][^\\s0-9]+\\.[^0-9-])/'},
  729. '200.enabled': true,
  730. '200.title': 'Node A: Unconfirmed turn on minor road',
  731. '200.problem': 'The minor drivable segment has an unconfirmed (soft) turn at node A',
  732. '200.problemLink': 'W:Soft_and_hard_turns',
  733. '200.solution': 'Click the turn indicated with a purple question mark to confirm it. Note: you may need to make the segment \'Two-way\' in order to see those turns',
  734. '200.solutionLink': 'W:Soft_and_hard_turns#Best_practices',
  735. '300.enabled': true,
  736. '300.title': 'Node B: Unconfirmed turn on minor road',
  737. '300.problem': 'The minor drivable segment has an unconfirmed (soft) turn at node B',
  738. '300.problemLink': 'W:Soft_and_hard_turns',
  739. '300.solution': 'Click the turn indicated with a purple question mark to confirm it. Note: you may need to make the segment \'Two-way\' in order to see those turns',
  740. '300.solutionLink': 'W:Soft_and_hard_turns#Best_practices',
  741. '201.enabled': true,
  742. '201.severity': 'W',
  743. '201.title': 'Node A: Unconfirmed turn on primary road',
  744. '201.problem': 'The primary segment has an unconfirmed (soft) turn at node A',
  745. '201.problemLink': 'W:Soft_and_hard_turns',
  746. '201.solution': 'Click the turn indicated with a purple question mark to confirm it. Note: you may need to make the segment \'Two-way\' in order to see those turns',
  747. '201.solutionLink': 'W:Soft_and_hard_turns#Best_practices',
  748. '301.enabled': true,
  749. '301.severity': 'W',
  750. '301.title': 'Node B: Unconfirmed turn on primary road',
  751. '301.problem': 'The primary segment has an unconfirmed (soft) turn at node B',
  752. '301.problemLink': 'W:Soft_and_hard_turns',
  753. '301.solution': 'Click the turn indicated with a purple question mark to confirm it. Note: you may need to make the segment \'Two-way\' in order to see those turns',
  754. '301.solutionLink': 'W:Soft_and_hard_turns#Best_practices',
  755. '202.enabled': true,
  756. '202.severity': 'W',
  757. '202.title': 'BETA: No public connection for public segment (slow)',
  758. '202.problem': 'The public segment is not connected to any other public segment',
  759. '202.solution': 'Verify if the segment is meant to be a public accessible segment, or it should be changed to a private segment',
  760. '210.enabled': true,
  761. '210.title': 'Segment has unverified speed limits from A to B',
  762. '210.problem': 'Segment has speed limit set from A to B that is unverified',
  763. '210.solution': 'Verify the speed limit on the segment and confirm or correct it',
  764. '210.solutionLink': 'W:Global/Creating_and_editing_road_segments#Speed_limit',
  765. '211.enabled': true,
  766. '211.title': 'Segment has unverified speed limits from B to A',
  767. '211.problem': 'Segment has speed limit set from B to A that is unverified',
  768. '211.solution': 'Verify the speed limit on the segment and confirm or correct it',
  769. '211.solutionLink': 'W:Global/Creating_and_editing_road_segments#Speed_limit',
  770. '212.enabled': true,
  771. '212.title': 'Segment has no speed limit set from A to B',
  772. '212.problem': 'Segment has no speed limit set from A to B',
  773. '212.solution': 'Verify the speed limit on the segment and set it',
  774. '212.solutionLink': 'W:Global/Creating_and_editing_road_segments#Speed_limit',
  775. '213.enabled': true,
  776. '213.title': 'Segment has no speed limit set from B to A',
  777. '213.problem': 'Segment has no speed limit set from B to A',
  778. '213.solution': 'Verify the speed limit on the segment and set it',
  779. '213.solutionLink': 'W:Global/Creating_and_editing_road_segments#Speed_limit',
  780. '214.enabled': true,
  781. '214.title': 'Segment has possibly wrong speed limit from A to B',
  782. '214.problem': 'Segment has a speed limit that seems to be incorrect',
  783. '214.solution': 'Verify the speed limit on the segment and correct it if needed',
  784. '214.params': {'regexp.title': '{string} regular expression to match valid speed limits', 'regexp': '/^.+[05]$/'},
  785. '215.enabled': true,
  786. '215.title': 'Segment has possibly wrong speed limit from B to A',
  787. '215.problem': 'Segment has a speed limit that seems to be incorrect',
  788. '215.params': {'regexp.title': '{string} regular expression to match valid speed limits', 'regexp': '/^.+[05]$/'},
  789. '215.solution': 'Verify the speed limit on the segment and correct it if needed',
  790. '250.enabled': true,
  791. '250.title': 'BETA: No city name on Place',
  792. '250.problem': 'The Place has no city name set',
  793. '250.solution': 'Set the city name',
  794. '250.params': {
  795. 'regexp.title': '{string} regular expression for categories to exclude from this check',
  796. 'regexp': '/^(NATURAL_FEATURES|BRIDGE|ISLAND|FOREST_GROVE|SEA_LAKE_POOL|RIVER_STREAM|CANAL|DAM|TUNNEL|JUNCTION_INTERCHANGE)$/'
  797. },
  798. '251.enabled': true,
  799. '251.title': 'BETA: No street name on Place',
  800. '251.problem': 'The Place has no street name set',
  801. '251.solution': 'Set the street name',
  802. '251.params': {
  803. 'regexp.title': '{string} regular expression to match categories that should be excepted from this check',
  804. 'regexp': '/^(NATURAL_FEATURES|BRIDGE|ISLAND|FOREST_GROVE|SEA_LAKE_POOL|RIVER_STREAM|CANAL|DAM|TUNNEL|JUNCTION_INTERCHANGE)$/'
  805. },
  806. '252.enabled': true,
  807. '252.title': 'BETA: Automatically updated Place',
  808. '252.problem': 'The Place was updated automatically by Waze',
  809. '252.solution': 'Verify and update the Place details if needed',
  810. '252.params':
  811. {
  812. 'regexp.title': '{string} regular expression to match Waze bot names and ids',
  813. 'regexp': '/^waze-maint|^105774162$|^waze3rdparty$|^361008095$|^WazeParking1$|^338475699$|^admin$|^-1$|^avsus$|^107668852$/i'
  814. },
  815. '253.enabled': true,
  816. '253.title': 'BETA: Category \'OTHER\' should not be used',
  817. '253.problem': 'Users can search on category, and category \'OTHER\' doesn\'t give enough information',
  818. '253.solution': 'Set the correct category',
  819. '254.enabled': true,
  820. '254.title': 'BETA: No entry/exit points on Place',
  821. '254.problem': 'The Place entry/exit points are not set',
  822. '254.solution': 'Set the entry/exit points',
  823. '255.enabled': true,
  824. '255.title': 'BETA: Invalid phone number',
  825. '255.problem': 'The Place has an invalid phone number',
  826. '255.solution': 'Set the correct phone number',
  827. '255.params': {'regexp.title': '{string} regular expression to match a correct phone number', 'regexp': '/.+/'},
  828. '256.enabled': true,
  829. '256.title': 'BETA: Invalid website',
  830. '256.problem': 'The Place has an invalid website URL',
  831. '256.solution': 'Set the correct website URL',
  832. '256.params': {'regexp.title': '{string} regular expression to match a correct website URL', 'regexp': '/^(https?://)?[^\\s/$.?#].[^\\s]*$/i'},
  833. '256.solutionLink': 'P:Global/Places#When_to_use_Area_or_Point',
  834. '257.enabled': true,
  835. '257.title': 'BETA: Place should be an area place',
  836. '257.problem': 'The Place is set as a point place, but should be an area',
  837. '257.solution': 'Convert the Place to an area place',
  838. '257.params':
  839. {
  840. 'regexp.title': '{string} regular expression to match categories that should be a area',
  841. 'regexp':
  842. '/^(GAS_STATION|PARKING_LOT|AIRPORT|BRIDGE|JUNCTION_INTERCHANGE|SEAPORT_MARINA_HARBOR|TUNNEL|CEMETERY|COLLEGE_UNIVERSITY|CONVENTIONS_EVENT_CENTER|EMBASSY_CONSULATE|FIRE_DEPARTMENT|HOSPITAL_URGENT_CARE|MILITARY|POLICE_STATION|PRISON_CORRECTIONAL_FACILITY|SCHOOL|SHOPPING_CENTER|CASINO|RACING_TRACK|STADIUM_ARENA|THEME_PARK|ZOO_AQUARIUM|CONSTRUCTION_SITE|BEACH|GOLF_COURSE|PARK|SKI_AREA|FOREST_GROVE|ISLAND|SEA_LAKE_POOL|RIVER_STREAM|CANAL|SWAMP_MARSH|DAM)$/'
  843. },
  844. '257.solutionLink': 'P:Global/Places#When_to_use_Area_or_Point',
  845. '258.enabled': true,
  846. '258.title': 'BETA: Place should be a point place',
  847. '258.problem': 'The Place is set as an area place, but should be a point',
  848. '258.solution': 'Convert the Place to a point place',
  849. '258.params':
  850. {
  851. 'regexp.title': '{string} regular expression to match categories that should be a point',
  852. 'regexp':
  853. '/^(GARAGE_AUTOMOTIVE_SHOP|CAR_WASH|CHARGING_STATION|BUS_STATION|FERRY_PIER|SUBWAY_STATION|TRAIN_STATION|TAXI_STATION|REST_AREAS|GOVERNMENT|LIBRARY|CITY_HALL|ORGANIZATION_OR_ASSOCIATION|COURTHOUSE|DOCTOR_CLINIC|OFFICES|POST_OFFICE|RELIGIOUS_CENTER|KINDERGARDEN|FACTORY_INDUSTRIAL|INFORMATION_POINT|EMERGENCY_SHELTER|TRASH_AND_RECYCLING_FACILITIES|ARTS_AND_CRAFTS|BANK_FINANCIAL|SPORTING_GOODS|BOOKSTORE|PHOTOGRAPHY|CAR_DEALERSHIP|FASHION_AND_CLOTHING|CONVENIENCE_STORE|PERSONAL_CARE|DEPARTMENT_STORE|PHARMACY|ELECTRONICS|FLOWERS|FURNITURE_HOME_STORE|GIFTS|GYM_FITNESS|SWIMMING_POOL|HARDWARE_STORE|MARKET|SUPERMARKET_GROCERY|JEWELRY|LAUNDRY_DRY_CLEAN|MUSIC_STORE|PET_STORE_VETERINARIAN_SERVICES|TOY_STORE|TRAVEL_AGENCY|ATM|CURRENCY_EXCHANGE|CAR_RENTAL|TELECOM|RESTAURANT|BAKERY|DESSERT|CAFE|FAST_FOOD|FOOD_COURT|BAR|ICE_CREAM|ART_GALLERY|CLUB|TOURIST_ATTRACTION_HISTORIC_SITE|MOVIE_THEATER|MUSEUM|MUSIC_VENUE|PERFORMING_ARTS_VENUE|GAME_CLUB|THEATER|HOTEL|HOSTEL|COTTAGE_CABIN|BED_AND_BREAKFAST|PLAYGROUND|SPORTS_COURT|PLAZA|PROMENADE|POOL|SCENIC_LOOKOUT_VIEWPOINT)$/'
  854. },
  855. '259.enabled': true,
  856. '259.title': 'BETA: No lock on Place',
  857. '259.problem': 'According to the category, the Place should be locked at least to Lvl ${n}',
  858. '259.solution': 'Lock the Place',
  859. '259.params':
  860. {
  861. 'n.title': '{number} minimum lock level',
  862. 'n': 2,
  863. 'regexp.title': '{string} regular expression to match categories that should be locked to {number}',
  864. 'regexp': '/^(PARKING_LOT|CHARGING_STATION)$/'
  865. },
  866. '260.enabled': true,
  867. '260.title': 'BETA: No lock on Place',
  868. '260.problem': 'According to the category, the Place should be locked at least to Lvl ${n}',
  869. '260.solution': 'Lock the Place',
  870. '260.params':
  871. {
  872. 'n.title': '{number} minimum lock level',
  873. 'n': 3,
  874. 'regexp.title': '{string} regular expression to match categories that should be locked to {number}',
  875. 'regexp': '/(GAS_STATION|AIRPORT)/'
  876. },
  877. '270.enabled': true,
  878. '270.title': 'BETA: No type on Parking Lot',
  879. '270.problem': 'The primary Parking Lot type is not set',
  880. '270.solution': 'Set the primary lot type',
  881. '271.enabled': true,
  882. '271.title': 'BETA: No cost on Parking Lot',
  883. '271.problem': 'The Parking Lot cost is not set',
  884. '271.solution': 'Set the Parking Lot cost',
  885. '272.enabled': true,
  886. '272.title': 'BETA: No payment types on Parking Lot',
  887. '272.problem': 'The Parking Lot payment types are not set',
  888. '272.solution': 'Set the payment types',
  889. '273.enabled': true,
  890. '273.title': 'BETA: No elevation on Parking Lot',
  891. '273.problem': 'The Parking Lot elevation is not set',
  892. '273.solution': 'Set the elevation',
  893. '274.enabled': true,
  894. '274.title': 'BETA: No Parking Lot entry/exit points',
  895. '274.problem': 'The Parking Lot entry/exit points are not set',
  896. '274.solution': 'Set the entry/exit points',
  897. '275.enabled': true,
  898. '275.title': 'BETA: No brand on Gas Station',
  899. '275.problem': 'The Gas Station brand is not in its name',
  900. '275.solution': 'Add or update brand in the Gas Station name'
  901. },
  902. 'US':
  903. {
  904. '.codeISO': 'US',
  905. '.country': 'United States',
  906. '27.enabled': true,
  907. '90.enabled': true,
  908. '106.enabled': true,
  909. '112.enabled': false,
  910. '150.enabled': true,
  911. '150.params': {'n': 2},
  912. '170.enabled': true,
  913. '170.params': {'regexp': '/^(?!(to) [^a-z])((S|N|W|E) )?[a-z]/'},
  914. '171.enabled': true,
  915. '171.solutionLink': 'W:Abbreviations_and_acronyms/USA#Standard_suffix_abbreviations',
  916. '171.params':
  917. {
  918. 'regexp':
  919. '/((?!(\\bPhila|\\bPenna|.(\\bWash|\\bCmdr|\\bProf|\\bPres)|..(\\bAdm|\\bSte|\\bCpl|\\bMaj|\\bSgt|\\bRe[vc]|\\bR\\.R|\\bGov|\\bGen|\\bHon|\\bCpl)|...(\\bSt|\\b[JSD]r|\\bLt|\\bFt)|...(#| )[NEWSR])).{5}\\.|((?!(hila|enna|(\\bWash|\\bCmdr|\\bProf|\\bPres)|.(\\bAdm|\\bSte|\\bCpl|\\bMaj|\\bSgt|\\bRe[vc]|\\bR\\.R|\\bGov|\\bGen|\\bHon|\\bCpl)|..(\\bSt|\\b[JSD]r|\\bLt|\\bFt)|..(#| )[NEWSR])).{4}|(\\bhila|\\benna))\\.|((?!(ila|nna|(ash|mdr|rof|res)|(\\bAdm|\\bSte|\\bCpl|\\bMaj|\\bSgt|\\bRe[vc]|\\bR\\.R|\\bGov|\\bGen|\\bHon|\\bCpl)|.(\\bSt|\\b[JSD]r|\\bLt|\\bFt)|.(#| )[NEWSR])).{3}|\\b(ila|nna|ash|mdr|rof|res))\\.|((?!(la|na|(sh|dr|of|es)|(dm|te|pl|aj|gt|e[vc]|\\.R|ov|en|on|pl)|(\\bSt|\\b[JSD]r|\\bLt|\\bFt)|(#| )[NEWSR])).{2}|\\b(la|na|sh|dr|of|es|dm|te|pl|aj|gt|e[vc]|\\.R|ov|en|on|pl))\\.|(#|^)[^NEWSR]?\\.)|(((?!\\b(D|O|L)).|#|^)\'(?![sl]\\b)|(#|^)\'s|(?!\\b(In|Na)t).{3}\'l|(#|^).{0,2}\'l)|(Dr|St)\\.(#|$)|,|;|\\\\|((?!\\.( |#|$|R))\\..|(?!\\.( .|#.|$|R\\.))\\..{2}|\\.R(#|$|\\.R))|[Ee]x(p|w)y\\b|\\b[Ee]x[dn]\\b|Tunl\\b|Long Is\\b|Brg\\b/',
  920. 'problemEN': 'The street name has incorrect abbreviation, or character',
  921. 'solutionEN':
  922. 'Check upper/lower case, a space before/after the abbreviation and the accordance with the abbreviation table. Remove any comma (,), backslash (\\), or semicolon (;)'
  923. }
  924. },
  925. 'UK': {'.codeISO': 'UK', '.country': 'United Kingdom', '1.enabled': false, '200.enabled': false},
  926. 'SK':
  927. {
  928. '.codeISO': 'SK',
  929. '.country': 'Slovakia',
  930. '27.enabled': true,
  931. '52.enabled': true,
  932. '73.enabled': true,
  933. '90.enabled': true,
  934. '150.enabled': true,
  935. '150.problemLink': 'F:t=64980&p=572847#p572847',
  936. '150.params': {'n': 2},
  937. '151.enabled': true,
  938. '151.problemLink': 'F:t=64980&p=572847#p572847',
  939. '151.params': {'n': 2},
  940. '152.enabled': true,
  941. '152.problemLink': 'F:t=64980&p=572847#p572847',
  942. '152.params': {'n': 2},
  943. '170.enabled': true,
  944. '170.params': {'regexp': '/^(?!(exit) [^a-z])[a-z]/'}
  945. },
  946. 'SG':
  947. {
  948. '.codeISO': 'SG',
  949. '.country': 'Singapore',
  950. '69.enabled': true,
  951. '73.enabled': true,
  952. '150.enabled': true,
  953. '150.params': {'n': 2},
  954. '151.enabled': true,
  955. '151.params': {'n': 2},
  956. '152.enabled': true,
  957. '152.params': {'n': 2}
  958. },
  959. 'RU': {'.codeISO': 'RU', '.country': 'Russia', '77.enabled': false, '190.enabled': false},
  960. 'PL':
  961. {
  962. '.codeISO': 'PL',
  963. '.country': 'Poland',
  964. '.author': 'Zniwek',
  965. '.updated': '2014-10-01',
  966. '.lng': 'PL',
  967. 'city.consider': 'rozważ tę nazwę miasta:',
  968. 'city.1': 'nazwa miasta jest za krótka',
  969. 'city.2': 'rozwiń skrót',
  970. 'city.3': 'uzupełnij skróconą nazwę',
  971. 'city.4': 'uzupełnij nazwę miasta',
  972. 'city.5': 'popraw wielkość liter',
  973. 'city.6': 'sprawdź kolejność słów',
  974. 'city.7': 'sprawdź skróty',
  975. 'city.8a': 'dodaj nazwę państwa',
  976. 'city.8r': 'usuń nazwę państwa',
  977. 'city.9': 'sprawdź nazwę państwa',
  978. 'city.10a': 'dodaj słowo',
  979. 'city.10r': 'usuń słowo',
  980. 'city.11': 'dodaj kod państwa',
  981. 'city.12': 'identyczne nazwy, ale inne ID miasta',
  982. 'city.13a': 'dodaj spację',
  983. 'city.13r': 'usuń spację',
  984. 'city.14': 'sprawdź numer',
  985. 'props.skipped.title': 'Segment nie jest sprawdzony',
  986. 'props.skipped.problem': 'Segment jest zmodyfikowany po 2014-05-01 I zablokowany dla Ciebie, więc Validator go nie sprawdził',
  987. 'err.regexp': 'Błąd podczas parsowania opcji dla sprawdzenia #${n}:',
  988. 'props.disabled': 'WME Validator jest wyłączony',
  989. 'props.limit.title': 'Zgłoszono zbyt wiele problemów',
  990. 'props.limit.problem': 'Zgłoszono zbyt wiele problemów, więc niektóre z nich mogą nie być pokazane',
  991. 'props.limit.solution': 'Odznacz segment i zatrzymaj skanowanie. Następnie kliknij czerwony \'✘\', przycisk (Wyczyść raport)',
  992. 'props.reports': 'raporty',
  993. 'props.noneditable': 'Nie możesz edytować tego segmentu',
  994. 'report.save': 'Zapisz ten raport',
  995. 'report.list.andUp': 'i wyższe',
  996. 'report.list.severity': 'Ważność:',
  997. 'report.list.reportOnly': 'tylko w raporcie',
  998. 'report.list.forEditors': 'Dla edytorów poziomu:',
  999. 'report.list.forCountries': 'Dla państw:',
  1000. 'report.list.forStates': 'Dla stanów:',
  1001. 'report.list.forCities': 'Dla miast:',
  1002. 'report.list.params': 'Parametry do skonfigurowania w paczce językowej:',
  1003. 'report.list.params.set': 'Aktualna konfiguracja dla ${country}:',
  1004. 'report.list.enabled': '${n} sprawdzenia włączone dla',
  1005. 'report.list.disabled': '${n} sprawdzenia wyłączone dla',
  1006. 'report.list.total': 'There are ${n} sprawdzenia dostępne',
  1007. 'report.list.title': 'Pełna lista Sprawdzeń dla',
  1008. 'report.list.see': 'Zobacz',
  1009. 'report.list.checks': 'Ustawienia->O->Dostępne sprawdzenia',
  1010. 'report.list.fallback': 'Zasady Cofnięcia Lokalizacji:',
  1011. 'report.and': 'i',
  1012. 'report.segments': 'Liczba sprawdzonych segmentów:',
  1013. 'report.customs': 'Własne zaznaczone sprawdzenia (zielone/niebieskie):',
  1014. 'report.reported': 'Zaraportowane',
  1015. 'report.errors': 'błędy',
  1016. 'report.warnings': 'ostrzeżenia',
  1017. 'report.notes': 'notki',
  1018. 'report.contents': 'Zawartość:',
  1019. 'report.summary': 'Podsumowanie',
  1020. 'report.title': 'WME Validator - Raport',
  1021. 'report.share': 'by się Podzielić',
  1022. 'report.generated.by': 'wygenerowane przez',
  1023. 'report.generated.on': 'na',
  1024. 'report.source': 'Źródło raportu:',
  1025. 'report.filter.duplicate': 'duplikowane segmenty',
  1026. 'report.filter.streets': 'Ulice i Drogi Serwisowe',
  1027. 'report.filter.other': 'Pozostałe przejezdne/nieprzejezdne',
  1028. 'report.filter.noneditable': 'segmenty bez możliwości edycji',
  1029. 'report.filter.notes': 'notki',
  1030. 'report.filter.title': 'Filtruj:',
  1031. 'report.filter.excluded': 'są wyłączone z tego raportu.',
  1032. 'report.search.updated.by': 'zaktualizowane przez',
  1033. 'report.search.updated.since': 'zaktualizowane od',
  1034. 'report.search.city': 'z',
  1035. 'report.search.reported': 'zaraportowane jako',
  1036. 'report.search.title': 'Szukaj:',
  1037. 'report.search.only': 'tylko segmenty',
  1038. 'report.search.included': 'są zawarte w tym raporcie.',
  1039. 'report.beta.warning': 'Ostrzeżenie WME Beta!',
  1040. 'report.beta.text': 'Ten raport jest wygenerowany w wersji beta WME z permalinkami beta.',
  1041. 'report.beta.share': 'Proszę, nie dziel się raportem z tymi permalinkami!',
  1042. 'report.size.warning':
  1043. '<b>Uwaga!</b><br>Ten raport ma ${n} znaków, więc <b>nie zmieści się</b> w jeden post na forum lub wiadomość prywatną.\n<br>Proszę dodaj <b>więcej filtrów</b>, żeby zmniejszyć długość raportu.',
  1044. 'report.note.limit': '* Info: było zbyt wiele zgłoszonych problemów, więc niektóre z nich nie są policzone w podsumowaniu.',
  1045. 'report.forum': 'Żeby zmotywować mnie do pracy nad skrpytem, zostaw komentarz w',
  1046. 'report.thanks': 'Dziękuję za używanie WME Validator!',
  1047. 'msg.limit.segments': 'Zbyt wiele segmentów.\n\nKliknij \'Pokaż raport\' żeby go przejrzeć, a potem\n',
  1048. 'msg.limit.segments.continue': 'kliknij \'▶\' (Start) by kontynuować.',
  1049. 'msg.limit.segments.clear': 'kliknij \'✘\' (Wyczyść) by wyczyścić raport.',
  1050. 'msg.pan.text': 'Przesuwaj mapę, by ją sprawdzić',
  1051. 'msg.zoomout.text': 'Oddal widok, by uruchomić WME Validator',
  1052. 'msg.click.text': 'Kliknij \'▶\' (Start), by sprawdzić widoczny obszar mapy',
  1053. 'msg.autopaused': 'autopauza',
  1054. 'msg.autopaused.text': 'Spauzowano automatycznie! Kliknij \'▶\' (Start) by kontynuować.',
  1055. 'msg.autopaused.tip': 'WME Validator wstrzymany automatycznie przy przesunięciu mapy lub skalowaniu okna',
  1056. 'msg.finished.text': 'Kliknij <b>\'Pokaż raport\'</b> by przejrzeć błędy',
  1057. 'msg.finished.tip': 'Kliknij przycisk \'✉\' (Podziel się), żeby umieścić raport na\nforum lub w prywatnej wiadomości',
  1058. 'msg.noissues.text': 'Ukończono! Nie znaleziono błędów!',
  1059. 'msg.noissues.tip': 'Spróbuj odznaczyć niektóre opcje filtrowania lub odpal WME Validator na innym obszarze!',
  1060. 'msg.scanning.text': 'Skanowanie! Koniec za ~ ${n} min',
  1061. 'msg.scanning.text.soon': 'Skanowanie! Koniec w ciągu minuty!',
  1062. 'msg.scanning.tip': 'Kliknij przycisk \'Pauza\' by wstrzymać lub \'■\' (Stop) by zatrzymać',
  1063. 'msg.starting.text': 'Start! Warstwy są wyłączone, by skanować szybciej!',
  1064. 'msg.starting.tip': 'Użyj przycisku \'Pauza\' by wstrzymać lub przycisku \'■\' by zatrzymać',
  1065. 'msg.paused.text': 'Wstrzymane! Kliknij przycisk \'▶\' (Start) by kontynuować.',
  1066. 'msg.paused.tip': 'Żeby zobaczyć raport, kliknij przycisk \'Pokaż raport\' (jeżeli dostępne)',
  1067. 'msg.continuing.text': 'Kontynuowanie!',
  1068. 'msg.continuing.tip': 'WME Validator zacznie ponownie z miejsca, gdzie włączono pauzę',
  1069. 'msg.settings.text': 'Kliknij <b>\'Wstecz\'</b>, by powrócić do głównego widoku',
  1070. 'msg.settings.tip': 'Kliknij przycisk \'Resetuj domyślne\' aby zresetować wszystkie ustawienia za jednym zamachem!',
  1071. 'msg.reset.text': 'Wszystkie opcje filtrowania i ustawienia zostały zresetowane do domyślnych',
  1072. 'msg.reset.tip': 'Kliknij przycisk \'Wstecz\', by powrócić do głównego widoku',
  1073. 'msg.textarea.pack':
  1074. 'To jest skrypt Greasemonkey/Tampermonkey. Tekst poniżej możesz skopiować i wkleić do <b>nowego pliku .user.js</b><br>lub <b>wkleić bezpośrednio</b> do Greasemonkey/Tampermonkey',
  1075. 'msg.textarea': 'Skopiuj proszę tekst poniżej, a następnie wklej do posta lub wiadomości prywatnej',
  1076. 'noaccess.text':
  1077. '<b>Sorki,</b><br>Nie możesz tutaj użyć WME Validatora.<br>Sprawdź proszę <a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488\'>wątek na forum</a><br> po więcej informacji.',
  1078. 'noaccess.tip': 'Sprawdź proszę wątek na forum po więcej informacji!',
  1079. 'tab.switch.tip.on': 'Kliknij by włączyć podświetlanie (Alt+V)',
  1080. 'tab.switch.tip.off': 'Kliknij by wyłączyć podświetlanie (Alt+V)',
  1081. 'tab.filter.text': 'filtruj',
  1082. 'tab.filter.tip': 'Opcje filtrowania raportu i podświetlonych segmentów',
  1083. 'tab.search.text': 'szukaj',
  1084. 'tab.search.tip': 'Zaawansowane opcje filtrowania, żeby załączyć tylko specyficzne segmenty',
  1085. 'tab.help.text': 'pomoc',
  1086. 'tab.help.tip': 'Potrzebujesz pomocy?',
  1087. 'filter.noneditables.text': 'Wyklucz <b>nieedytowalne</b> segmenty',
  1088. 'filter.noneditables.tip': 'Nie raportuj zablokowanych segmentów lub\nsegmentów poza Twoim obszarem edycji',
  1089. 'filter.duplicates.text': 'Wyklucz <b>duplikowane</b> segmenty',
  1090. 'filter.duplicates.tip': 'Nie pokazuj tego samego segmentu w różnych\nczęściach raportu\n* Info: ta opcja NIE WPŁYWA na podświetlanie',
  1091. 'filter.streets.text': 'Wyklucz <b>Ulice i Drogi Serwisowe</b>',
  1092. 'filter.streets.tip': 'Nie raportuj Ulic i Dróg Serwisowych',
  1093. 'filter.other.text': 'Wyklucz <b>Pozostałe przejezdne i nieprzejezdne</b>',
  1094. 'filter.other.tip': 'Nie raportuj Gruntowych, Wewnętrznych, Prywatnych Dróg\ni nieprzejezdnych segmentów',
  1095. 'filter.notes.text': 'Wyklucz <b>notki</b>',
  1096. 'filter.notes.tip': 'Raportuj tylko ostrzeżenia i błędy',
  1097. 'search.youredits.text': 'Załącz <b>tylko Twoje edycje</b>',
  1098. 'search.youredits.tip': 'Załącz tylko segmenty edytowane przez Ciebie',
  1099. 'search.updatedby.text': '<b>Zaktualizowane przez*:</b>',
  1100. 'search.updatedby.tip':
  1101. 'Załącz tylko segmenty edytowane przez ustalonego edytora\n* Info: ta opcja jest dostępna tylko dla CM\nTo pole wspiera:\n - lists: me, otherEditor\n - wildcards: world*\n - negation: !me, *\n* Info: możesz użyć \'me\' dla siebie samego',
  1102. 'search.updatedby.example': 'Przykład: me',
  1103. 'search.updatedsince.text': '<b>Zaktualizowane od:</b>',
  1104. 'search.updatedsince.tip': 'Załącz tylko segmenty edytowane od ustalonej daty\nformat daty Firefox: RRRR-MM-DD',
  1105. 'search.updatedsince.example': 'RRRR-MM-DD',
  1106. 'search.city.text': '<b>Nazwa miasta:</b>',
  1107. 'search.city.tip': 'Załącz tylko segmenty z ustaloną nazwą miasta\nTo pole wspiera:\n - lists: Paris, Meudon\n - wildcards: Greater * Area\n - negation: !Paris, *',
  1108. 'search.city.example': 'Przykład: !Paris, *',
  1109. 'search.checks.text': '<b>Zaraportowane jako:</b>',
  1110. 'search.checks.tip':
  1111. 'Załącz tylko segmenty zgłoszone jako ustalone\nTo pole zawiera:\n - severities: errors\n - check names: New road\n - check IDs: 200\nTo pole wspiera:\n - lists: 36, 37\n - wildcards: *roundabout*\n - negation: !unconfirmed*, *',
  1112. 'search.checks.example': 'Przykład: reverse*',
  1113. 'help.text':
  1114. '<b>Tematy Pomocy:</b><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=666476#p666476">F.A.Q.</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488">Zadaj swoje pytanie na forum</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=661300#p661185">Jak dopasować Validator pod swoje państwo</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=663286#p663286">Więcej o "Prawdopodobnie błędna nazwa miasta"</a>',
  1115. 'help.tip': 'Otwórz w nowej karcie przeglądarki',
  1116. 'button.scan.tip': 'Zacznij skanowanie aktualnego obszaru\n* Info: to może zająć kilka minut',
  1117. 'button.scan.tip.NA': 'Oddal widok by zacząć skanować aktualny obszar',
  1118. 'button.pause.tip': 'Wstrzymaj skanowanie',
  1119. 'button.continue.tip': 'Kontynuuj skanowanie obszaru mapy',
  1120. 'button.stop.tip': 'Zatrzymaj skanowanie i powróć do pozycji startowej',
  1121. 'button.clear.tip': 'Wyczyść raport i cache segmentu',
  1122. 'button.clear.tip.red': 'Zbyt wiele zgłoszonych segmentów:\n 1. Kliknij \'Pokaż raport\' by go wygenerować.\n 2. Kliknij ten przycisk by wyczyścić raport i zacząć od nowa.',
  1123. 'button.report.text': 'Pokaż raport',
  1124. 'button.report.tip': 'Zatwierdź filtr i wygeneruj raport HTML w nowej karcie',
  1125. 'button.BBreport.tip': 'Podziel się raportem na forum Waze lub w prywatnej wiadomości',
  1126. 'button.settings.tip': 'Konfiguruj ustawienia',
  1127. 'tab.custom.text': 'własne',
  1128. 'tab.custom.tip': 'Ustawienia sprawdzeń zdefiniowanych przez użytkownika',
  1129. 'tab.settings.text': 'Ustawienia',
  1130. 'tab.scanner.text': 'skaner',
  1131. 'tab.scanner.tip': 'Ustawienia skanera mapy',
  1132. 'tab.about.text': 'o</span>',
  1133. 'tab.about.tip': 'Info o WME Validator',
  1134. 'scanner.sounds.text': 'Włącz dźwięki',
  1135. 'scanner.sounds.tip': 'Pikanie podczas skanowania',
  1136. 'scanner.sounds.NA': 'Twoja przeglądarka nie wspiera AudioContext',
  1137. 'scanner.highlight.text': 'Podświetl błędy na mapie',
  1138. 'scanner.highlight.tip': 'Podświetl zaraportowane błędy na mapie',
  1139. 'scanner.slow.text': 'Włącz sprawdzenia "slow"',
  1140. 'scanner.slow.tip': 'Włącza głęboką analizę mapy\n* Info: ta opcja może spowolnić proces skanowania',
  1141. 'scanner.ext.text': 'Raportuj zewnętrzne podświetlenia',
  1142. 'scanner.ext.tip': 'Raportuj segmenty podświetlone przez WME Toolbox lub WME Color Highlights',
  1143. 'custom.template.text': '<a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488&p=749456#p749456\'>Własny szablon</a>',
  1144. 'custom.template.tip':
  1145. 'Rozszerzalny szablon zdefiniowanych sprawdzeń użytkownika.\n\nMożesz użyć następujących zmiennych:\nAdres:\n ${country}, ${state}, ${city}, ${street},\n ${altCity[index or delimeter]}, ${altStreet[index or delimeter]}\nWłasności segmentu:\n ${type}, ${typeRank}, ${toll}, ${direction}, ${elevation}, ${lock},\n ${length}, ${ID}\nPomocniki:\n ${drivable}, ${roundabout}, ${hasHNs},\n ${Uturn}, ${deadEnd}, ${softTurns},\n ${deadEndA}, ${partialA},\n ${deadEndB}, ${partialB}\nŁączność:\n ${segmentsA}, ${inA}, ${outA}, ${UturnA},\n ${segmentsB}, ${inB}, ${outB}, ${UturnB}',
  1146. 'custom.template.example': 'Przykład ${street}',
  1147. 'custom.regexp.text': 'Własne <a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488&p=749456#p749456\'>RegExp</a>',
  1148. 'custom.regexp.tip':
  1149. 'Wyrażenie regularne zdefiniowane przez użytkownika, by pasowało do szablonu.\n\nNiewrażliwe na wielkość liter: /regexp/i\nNegacja (nie pasujące): !/regexp/\nZapisz informacje debugowania w konsoli: D/regexp/',
  1150. 'custom.regexp.example': 'Przykład: !/.+/',
  1151. 'about.tip': 'Otwórz link w nowej karcie',
  1152. 'button.reset.text': 'Resetuj domyślne',
  1153. 'button.reset.tip': 'Przywróć opcje filtrowania i ustawienia na domyślne',
  1154. 'button.list.text': 'Dostępne sprawdzenia...',
  1155. 'button.list.tip': 'Wyświetl listę sprawdzeń dostępnych w WME Validatorze',
  1156. 'button.wizard.tip': 'Stwórz paczkę językową',
  1157. 'button.back.text': 'Powrót',
  1158. 'button.back.tip': 'Zamknij ustawienia i wróć do głównego widoku',
  1159. '1.title': 'WME Toolbox: Rondo może powodować problemy',
  1160. '1.problem': 'ID węzłów ronda nie są w kolejności',
  1161. '1.solution': 'Stwórz rondo na nowo',
  1162. '2.title': 'WME Toolbox: Pojedynczy segment',
  1163. '2.problem': 'Segment ma niepotrzebne węzły',
  1164. '2.solution': 'Uprość geometrię segmentu przez najechanie myszką i naciśnięcie przycisku "d"',
  1165. '3.title': 'WME Toolbox: Blokada na 2 poziom',
  1166. '3.problem': 'Segment jest podświetlony przez WME Toolbox. To nie jest problem',
  1167. '4.title': 'WME Toolbox: Blokada na 3 poziom',
  1168. '4.problem': 'Segment jest podświetlony przez WME Toolbox. To nie jest problem',
  1169. '5.title': 'WME Toolbox: Blokada na 4 poziom',
  1170. '5.problem': 'Segment jest podświetlony przez WME Toolbox. To nie jest problem',
  1171. '6.title': 'WME Toolbox: Blokada na 5 poziom',
  1172. '6.problem': 'Segment jest podświetlony przez WME Toolbox. To nie jest problem',
  1173. '7.title': 'WME Toolbox: Blokada na 6 poziom',
  1174. '7.problem': 'Segment jest podświetlony przez WME Toolbox. To nie jest problem',
  1175. '8.title': 'WME Toolbox: Numery domów',
  1176. '8.problem': 'Segment jest podświetlony przez WME Toolbox. To nie jest problem',
  1177. '9.title': 'WME Toolbox: Segment z ograniczeniami czasowymi',
  1178. '9.problem': 'Segment jest podświetlony przez WME Toolbox. To nie jest problem',
  1179. '13.title': 'WME Color Highlights: Blokada edytora',
  1180. '13.problem': 'Segment jest podświetlony przez WME Color Highlights. To nie jest problem',
  1181. '14.title': 'WME Color Highlights: Płatna / Jednokierunkowa',
  1182. '14.problem': 'Segment jest podświetlony przez WME Color Highlights. To nie jest problem',
  1183. '15.title': 'WME Color Highlights: Ostatnio edytowane',
  1184. '15.problem': 'Segment jest podświetlony przez WME Color Highlights. To nie jest problem',
  1185. '16.title': 'WME Color Highlights: Ranga drogi',
  1186. '16.problem': 'Segment jest podświetlony przez WME Color Highlights. To nie jest problem',
  1187. '17.title': 'WME Color Highlights: Brak miasta',
  1188. '17.problem': 'Segment jest podświetlony przez WME Color Highlights. To nie jest problem',
  1189. '18.title': 'WME Color Highlights: Ograniczenie czasowe / Podświetlony typ drogi',
  1190. '18.problem': 'Segment jest podświetlony przez WME Color Highlights. To nie jest problem',
  1191. '19.title': 'WME Color Highlights: Brak nazwy',
  1192. '19.problem': 'Segment jest podświetlony przez WME Color Highlights. To nie jest problem',
  1193. '20.title': 'WME Color Highlights: Filtruj po mieście',
  1194. '20.problem': 'Segment jest podświetlony przez WME Color Highlights. To nie jest problem',
  1195. '21.title': 'WME Color Highlights: Filtruj po mieście (alt. miasto)',
  1196. '21.problem': 'Segment jest podświetlony przez WME Color Highlights. To nie jest problem',
  1197. '22.title': 'WME Color Highlights: Filtruj po edytorzer',
  1198. '22.problem': 'Segment jest podświetlony przez WME Color Highlights. To nie jest problem',
  1199. '23.solutionLink': 'W:Drogi',
  1200. '23.title': 'Niepotwierdzona droga',
  1201. '23.problem': 'Każdy segment musi mieć przynajmniej Państwo i Stan',
  1202. '23.solution': 'Potwierdź drogę, aktualizując jej szczegóły',
  1203. '24.title': 'Prawdopodobnie błędna nazwa miasta (tylko w raporcie)',
  1204. '24.problem': 'Segment może zawierać błędną nazwę miasta',
  1205. '24.solution': 'Rozważ zaproponowaną nazwę i użyj tego formularza do zmiany nazwy miasta',
  1206. '25.title': 'Nieznana kierunkowość przejezdnej drogi',
  1207. '25.problem': '\'Nieznana\' kierunkowość drogi, nie zapobiegnie wyznaczaniu tędy trasy',
  1208. '25.solution': 'Ustaw kierunkowość drogi',
  1209. '27.enabled': true,
  1210. '27.problemLink': 'W:Drogi#Tory.2C_szyny',
  1211. '27.title': 'Nazwa miasta na Torach',
  1212. '27.problem': 'Nazwa miasta na Torach, szynach',
  1213. '27.solution': 'Zaznacz pole \'brak\' przy nazwie miasta',
  1214. '28.problemLink': 'W:Drogi#Wjazd.2Fzjazd_bezkolizyjny',
  1215. '28.title': 'Nazwa ulicy na dwukierunkowym zjeździe',
  1216. '28.problem': 'Jeśli zjazd jest nienazwany, wyświetli się nazwa docelowej drogi',
  1217. '28.solution': 'Zmień nazwę ulicy na \'brak\'',
  1218. '29.problemLink': 'W:Drogi#Rondo',
  1219. '29.title': 'Nazwa ulicy na rondzie',
  1220. '29.problem': 'W Waze nie nazywamy segmentów ronda',
  1221. '29.solution': 'Zmień nazwę ulicy na \'brak\', a następnie dodaj punkt orientacyjny \'Węzeł drogowy\', żeby nazwać rondo',
  1222. '34.title': 'Pusta nazwa alternatywna',
  1223. '34.problem': 'Alternatywna nazwa ulicy jest pusta',
  1224. '34.solution': 'Usuń pustą nazwę alternatywną ulicy',
  1225. '35.title': 'Niezakończona droga',
  1226. '35.problem': 'Waze nie poprowadzi z niezakończonego segmentu',
  1227. '35.solution': 'Przesuń trochę segment, żeby pojawił się kończący węzeł',
  1228. '36.title': 'Węzeł A: Niepotrzebny (slow)',
  1229. '36.problem': 'Segmenty spotykające się w węźle A są identyczne',
  1230. '36.solution': 'Wybierz węzeł A i naciśnij przycisk Delete, by połączyć segmenty',
  1231. '37.title': 'Węzeł B: Niepotrzebny (slow)',
  1232. '37.problem': 'Segmenty spotykające się w węźle B są identyczne',
  1233. '37.solution': 'Wybierz węzeł B i naciśnij przycisk Delete, by połączyć segmenty',
  1234. '38.title': 'Upłynął czas ograniczenia segmentu (slow)',
  1235. '38.problem': 'Segment zawiera wygasłe ograniczenie',
  1236. '38.solution': 'Kliknij \'Edytuj ograniczenia\' i usuń wygasłe ograniczenie',
  1237. '39.title': 'Wygasłe ograniczenie skrętu (slow)',
  1238. '39.problem': 'Segment ma skręt z wygasłym ograniczeniem',
  1239. '39.solution': 'Kliknij ikonę zegara obok żółtej strzałki i usuń wygasłe ograniczenie',
  1240. '41.title': 'Węzeł A: Odwrócona łączność przejezdnej drogi',
  1241. '41.problem': 'Jeden ze skrętów prowadzi naprzeciw kierunkowi segmentu, w węźle A',
  1242. '41.solution': 'Ustaw segment \'Dwukierunkowy\', zablokuj wszystkie skręty w węźle A i ponownie ustaw \'Jednokierunkowa (A→B)\'',
  1243. '42.title': 'Węzeł B: Odwrócona łączność przejezdnej drogi',
  1244. '42.problem': 'Jeden ze skrętów prowadzi naprzeciw kierunkowi segmentu, w węźle B',
  1245. '42.solution': 'Ustaw segment \'Dwukierunkowy\', zablokuj wszystkie skręty w węźle A i ponownie ustaw \'Jednokierunkowa (B→A)\'',
  1246. '43.title': 'Połączenie ze sobą',
  1247. '43.problem': 'Segment łączy się sam ze sobą',
  1248. '43.solution': 'Podziel segment na TRZY części',
  1249. '46.title': 'SLOW: Brak wjazdu na węźle A',
  1250. '46.problem': 'Przejezdny segment nie ma wjazdu na węźle A',
  1251. '46.solution': 'Rozważ możliwość wjazdu na węźle A',
  1252. '47.title': 'SLOW: Brak wjazdu na węźle B',
  1253. '47.problem': 'Przejezdny segment nie ma wjazdu na węźle A',
  1254. '47.solution': 'Rozważ możliwość wjazdu na węźle A',
  1255. '48.solutionLink': 'W:Ronda#Poprawianie_rond_naniesionych_r.C4.99cznie',
  1256. '48.title': 'Dwukierunkowy segment ronda',
  1257. '48.problem': 'Segment ronda jest dwukierunkowy',
  1258. '48.solution': 'Stwórz rondo od nowa',
  1259. '50.solutionLink': 'W:Ronda#Poprawianie_rond_naniesionych_r.C4.99cznie',
  1260. '52.enabled': true,
  1261. '52.solutionLink': 'W:Tabela_skrótów',
  1262. '52.title': 'Za długa nazwa ulicy',
  1263. '52.problem': 'Nazwa przejezdnego segmentu jest dłuższa niż ${n} liter i nie jest Rampą',
  1264. '52.solution': 'Consider an abbreviation for the street name according to this table',
  1265. '52.params': {'n': 35},
  1266. '57.enabled': true,
  1267. '57.problemLink': 'W:Drogi#Wjazd.2Fzjazd_bezkolizyjny',
  1268. '57.title': 'Nazwa miasta na nazwanym zjeździe',
  1269. '57.problem': 'Nazwa miasta na nazwanym zjeździe może wpłynąć na wyniki wyszukiwania',
  1270. '57.solution': 'Zmień nazwę miasta na \'brak\'',
  1271. '59.enabled': true,
  1272. '59.problemLink': 'W:Drogi#Autostrada_.2F_Droga_ekspresowa',
  1273. '59.title': 'Nazwa miasta na Autostradzie',
  1274. '59.problem': 'Nazwa miasta na Autostradzie, może spowodować że obszar miasta się rozciągnie',
  1275. '59.solution': 'W danych adresowych ustaw \'Brak\' obok nazwy miasta i kliknij \'Zatwierdź\'',
  1276. '73.enabled': true,
  1277. '73.title': 'Za krótka nazwa ulicy',
  1278. '73.problem': 'Nazwa ulicy jest krótsza niż ${n} liter i nie jest autostradą',
  1279. '73.solution': 'Popraw nazwę ulicy',
  1280. '74.solutionLink': 'W:Ronda#Poprawianie_rond_naniesionych_r.C4.99cznie',
  1281. '78.title': 'SLOW: Takie same punkty końcowe segmentów',
  1282. '78.problem': 'Dwa przejezdne segmenty mają takie same punkty końcowe',
  1283. '78.solution': 'Podziel segment. Możesz także usunąć segment, jeśli są identyczne',
  1284. '79.problemLink': 'W:Skrzyżowania#Najlepsze_praktyki_dla_r.C3.B3.C5.BCnych_typ.C3.B3w_skrzy.C5.BCowa.C5.84',
  1285. '87.problemLink': 'W:Drogi#Rondo',
  1286. '87.solutionLink': 'W:Ronda#Poprawianie_rond_naniesionych_r.C4.99cznie',
  1287. '87.title': 'Więcej niż jeden segment wychodzący z węzła A na rondzie',
  1288. '87.problem': 'Węzeł A na rondzie ma podłączony więcej niż jeden segment wychodzący',
  1289. '87.solution': 'Utwórz rondo ponownie',
  1290. '99.title': 'Nawrót na wjeździe na rondo (slow)',
  1291. '99.problem': 'Segment wjazdu na rondo ma włączoną możliwość zawracania',
  1292. '99.solution': 'Wyłącz nawrót',
  1293. '101.params': {'regexp': '/(^|\\b)remont(\\b|$)/i'},
  1294. '101.title': 'Droga zamknięta (dostępne tylko w raporcie)',
  1295. '101.problem': 'Segment jest oznaczony jako zamknięty',
  1296. '101.solution': 'Gdy remont się skończy, przywróć połączenia segmentu i usuń przyrostek',
  1297. '102.title': 'SLOW: Brak wyjazdu na węźle A',
  1298. '102.problem': 'Przejezdny segment nie ma wyjazdu na węźle A',
  1299. '102.solution': 'Rozważ możliwość wyjazdu na węźle A',
  1300. '103.title': 'SLOW: Brak wyjazdu na węźle B',
  1301. '103.problem': 'Przejezdny segment nie ma wyjazdu na węźle B',
  1302. '103.solution': 'Rozważ możliwość wyjazdu na węźle B',
  1303. '104.title': 'Tory użyte dla komentarzy',
  1304. '104.problem': 'Tory są prawdopodobnie użyte do komentarzy na mapie',
  1305. '104.solution': 'Usuń komentarze, ponieważ Tory będą wyświetlane w aplikacji',
  1306. '105.enabled': true,
  1307. '105.title': 'Ścieżka zamiast Torów',
  1308. '105.problem': 'Ścieżka o wysokości -5 jest zapewne użyta zamiast Torów',
  1309. '105.solution': 'Zmień typ drogi na Tory, by wyświetliły się w aplikacji',
  1310. '107.title': 'SLOW: Brak połączenia w węźle A',
  1311. '107.problem': 'Węzeł A segmentu jest w odległości od innego, również przejezdnego segmentu, ale nie są połączone skrzyżowaniem',
  1312. '107.solution': 'Przeciągnij węzeł A na najbliższy segment, by się dotykały, lub odsuń go dalej',
  1313. '108.title': 'SLOW: Brak połączenia w węźle B',
  1314. '108.problem': 'Węzeł B segmentu jest w odległości od innego, również przejezdnego segmentu, ale nie są połączone skrzyżowaniem',
  1315. '108.solution': 'Przeciągnij węzeł B na najbliższy segment, by się dotykały, lub odsuń go dalej',
  1316. '109.title': 'Za krótki segment',
  1317. '109.problem': 'Przejezdny, niekońcowy segment jest krótszy niż ${n}m, więc ciężko zobaczyć go na mapie i może powodować problemy z routingiem',
  1318. '109.solution': 'Zwiększ długość, usuń segment lub połącz go z jednym z przyległych segmentów',
  1319. '112.title': 'Za długa nazwa Rampy',
  1320. '112.problem': 'Nazwa Rampy jest dłuższa niż ${n} liter',
  1321. '112.solution': 'Skróć nazwę Rampy',
  1322. '114.title': 'Węzeł A: Nieprzejezdna połączona z przejezdną (slow)',
  1323. '114.problem': 'Nieprzejezdny segment tworzy skrzyżowanie z przejezdnym na węźle A',
  1324. '114.solution': 'Odłącz węzeł A od wszystkich przejezdnych segmentów',
  1325. '115.title': 'Węzeł B: Nieprzejezdna połączona z przejezdną (slow)',
  1326. '115.problem': 'Nieprzejezdny segment tworzy skrzyżowanie z przejezdnym na węźle B',
  1327. '115.solution': 'Odłącz węzeł B od wszystkich przejezdnych segmentów',
  1328. '116.title': 'Poza skalą poziomu/wysokości',
  1329. '116.problem': 'Poziom/wysokość segmentu są poza skalą',
  1330. '116.solution': 'Popraw poziom/wysokość',
  1331. '117.title': 'Przestarzały znacznik CONST ZN',
  1332. '117.problem': 'Segmeny jest oznaczony przestarzałym przyrostkiem CONST ZN',
  1333. '117.solution': 'Zmień CONST ZN na (zamknięte)',
  1334. '118.title': 'Węzeł A: Nakładające się segmenty (slow)',
  1335. '118.problem': 'Segment pokrywa się z sąsiadującym, w węźle A',
  1336. '118.solution': 'Rozszerz segmenty do 2°, usuń niepotrzebny punkt geometrii lub cały podwójny segment w węźle A',
  1337. '119.title': 'Węzeł B: Nakładające się segmenty (slow)',
  1338. '119.problem': 'Segment pokrywa się z sąsiadującym, w węźle B',
  1339. '119.solution': 'Rozszerz segmenty do 2°, usuń niepotrzebny punkt geometrii lub cały podwójny segment w węźle B',
  1340. '120.title': 'Węzeł A: Za ostry skręt (slow)',
  1341. '120.problem': 'Przejezdny segment ma bardzo ostry skręt na węźle A',
  1342. '120.solution': 'Wyłącz ostry skręt na węźle A lub rozszerz segmenty do 30°',
  1343. '121.title': 'Węzeł B: Za ostry skręt (slow)',
  1344. '121.problem': 'Przejezdny segment ma bardzo ostry skręt na węźle B',
  1345. '121.solution': 'Wyłącz ostry skręt na węźle B lub rozszerz segmenty do 30°',
  1346. '128.title': 'Własne sprawdzenie (zielone)',
  1347. '128.problem': 'Niektóre właściwości segmentu są przeciwko ustawionemu przez użytkownika wyrażeniu regularnemu (Ustawienia→Własne)',
  1348. '128.solution': 'Rozwiąż ten problem',
  1349. '129.title': 'Własne sprawdzenie (niebieskie)',
  1350. '129.problem': 'Niektóre właściwości segmentu są przeciwko ustawionemu przez użytkownika wyrażeniu regularnemu (Ustawienia→Własne)',
  1351. '129.solution': 'Rozwiąż ten problem',
  1352. '161.enabled': true,
  1353. '161.params':
  1354. {'titleEN': 'DKnum in street name', 'problemEN': 'The street name contains DKnum', 'solutionEN': 'Remove the DK prefix from the street name', 'regexp': '/DK\\-?[0-9]+/i'},
  1355. '161.problemLink': 'W:Drogi#Droga_krajowa',
  1356. '161.title': 'Numer DK w nazwie ulicy',
  1357. '161.problem': 'Nazwa ulicy zawiera numer DK',
  1358. '161.solution': 'Usuń przedrostek z nazwy ulicy',
  1359. '162.enabled': true,
  1360. '162.params':
  1361. {'titleEN': 'DWnum in street name', 'problemEN': 'The street name contains DWnum', 'solutionEN': 'Remove the DW prefix from the street name', 'regexp': '/DW\\-?[0-9]+/i'},
  1362. '162.problemLink': 'W:Drogi#Droga_wojew.C3.B3dzka',
  1363. '162.title': 'Numer DW w nazwie ulicy',
  1364. '162.problem': 'Nazwa ulicy zawiera numer DW',
  1365. '162.solution': 'Usuń przedrostek z nazwy ulicy',
  1366. '163.enabled': true,
  1367. '163.params': {
  1368. 'titleEN': '\'Węzel\' in Ramp name',
  1369. 'problemEN': 'The Ramp name contains word \'węzel\'',
  1370. 'solutionEN': 'Rename the Ramp in accordance with the guidelines',
  1371. 'regexp': '/węze[lł]/i'
  1372. },
  1373. '163.solutionLink': 'W:Drogi#Wjazd.2Fzjazd_bezkolizyjny',
  1374. '163.title': '\'Węzel\' w nazwie zjazdu',
  1375. '163.problem': 'Zjazd zawiera w nazwie słowo \'węzel\'',
  1376. '163.solution': 'Zmień nazwę zjazdu zgodnie z wytycznymi',
  1377. '167.enabled': true,
  1378. '167.params': {
  1379. 'titleEN': 'Incorrect Railroad name',
  1380. 'problemEN': 'The Railroad name is not \'PKP\', \'SKM\' or \'MPK\'',
  1381. 'solutionEN': 'In the address properties set the street name to \'PKP\', \'SKM\' or \'MPK\', check the \'None\' box next to the city name and then click \'Apply\'',
  1382. 'regexp': '!/^(PKP|MPK|SKM|Tramwaje Śląskie)$/'
  1383. },
  1384. '167.solutionLink': 'W:Drogi#Tory.2C_szyny',
  1385. '167.title': 'Nieprawidłowa nazwa Torów',
  1386. '167.problem': 'Segment Torów ma nieprawidłową nazwę',
  1387. '167.solution': 'Zmień nazwę segmentu zgodnie z wytycznymi',
  1388. '169.enabled': true,
  1389. '169.params': {
  1390. 'titleEN': '\'Rondo\' or \'ulica\' in street name',
  1391. 'problemEN': 'The street name contains word \'rondo\' or \'ulica\'',
  1392. 'solutionEN':
  1393. 'In the address properties check the \'None\' box next to the street name, click \'Apply\' and then add \'Junction\' landmark to name the roundabout or remove word \'ulica\'',
  1394. 'regexp': '/rondo |ulica/i'
  1395. },
  1396. '169.solutionLink': 'W:Drogi#Rondo',
  1397. '169.title': '\'Rondo\' lub \'ulica\' w nazwie ulicy',
  1398. '169.problem': 'Nazwa ulicy zawiera słowo \'rondo\' lub \'ulica\'',
  1399. '169.solution': 'Zmień nazwę ulicy na \'Brak\', a następnie dodaj punkt orientacyjny \'Węzeł drogowy\', żeby nazwać rondo lub usuń słowo \'ulica\' z nazwy ulicy',
  1400. '171.enabled': true,
  1401. '171.params': {
  1402. 'regexp':
  1403. '/(^| )(?!(adm|abp|al|bp|bł|błj|dr|gen|bryg|pil|dyw|hetm|hr|im|inf|inż|kan|kard|ks|kmdr|kadm|kpt|mjr|marsz|o|os|pil|pl|plut|ppor|ppłk|prał|prym|por|pn|pd|prof|płk|r|rtm|św|śwj|śś|wsch|zach)\\. |r\\.)[^ ]+\\./'
  1404. },
  1405. '171.solutionLink': 'W:Tabela_skrótów',
  1406. '171.title': 'Nieprawidłowy skrót w nazwie ulicy',
  1407. '171.problem': 'Nazwa ulicy zawiera nieprawidłowy skrót',
  1408. '171.solution': 'Sprawdź wielkie/małe litery, przerwę przed/po skrócie i zgodność z tą tabelą',
  1409. '172.title': 'Niepotrzebne spacje w nazwie ulicy',
  1410. '172.problem': 'Spacja na początku, końcu lub podwójna w nazwie ulicy',
  1411. '172.solution': 'Usuń niepotrzebne spacje z nazwy ulicy',
  1412. '173.title': 'Nazwa ulicy bez spacji przed lub po skrócie',
  1413. '173.problem': 'Brak spacji przed (\'1943r.\') lub po (\'st.Jan\') skrócie w nazwie ulicy',
  1414. '173.solution': 'Dodaj spację przed/po skrócie',
  1415. '175.title': 'Nazwa ulicy złożona z samych spacji',
  1416. '175.problem': 'Nazwa ulicy zawiera tylko spacje',
  1417. '175.solution': 'Zmień nazwę ulicy na \'Brak\' lub nazwij odpowiednio ulicę',
  1418. '190.title': 'Nazwa miasta małą literą',
  1419. '190.problem': 'Nazwa miasta zaczyna się od małej litery',
  1420. '190.solution': 'Użyj tego formularza, by zmienić nazwę miasta',
  1421. '192.title': 'Niepotrzebne spacje w nazwie miasta',
  1422. '192.problem': 'Spacja na początku, końcu lub podwójna w nazwie miasta',
  1423. '192.solution': 'Użyj tego formularza, by zmienić nazwę miasta',
  1424. '193.title': 'Brak spacji przed/po skrócie miasta',
  1425. '193.problem': 'Brak spacji przed (\'1943r.\') lub po (\'st.Jan\') skrócie w nazwie miasta',
  1426. '193.solution': 'Użyj tej formy, by zmienić nazwę miasta',
  1427. '200.problemLink': 'W:Skrzyżowania#Ograniczenia_skr.C4.99t.C3.B3w',
  1428. '200.title': 'Węzeł A: Wstępnie dopuszczony lub zakazany skręt na przejezdnej drodze',
  1429. '200.problem': 'Segment ma niepotwierdzony skręt na węźle A',
  1430. '200.solution': 'Kliknij na strzałkę z purpurowym znakiem zapytania, by potwierdzić skręt. Zauważ: być może będziesz musiał zmienić segment na dwukierunkowy by dostrzec te',
  1431. '201.title': 'Węzeł A: Niepotwierdzony skręt na głównej drodze',
  1432. '201.problem': 'Segment drogi głównej ma niepotwierdzony skręt na węźle A',
  1433. '201.solution': 'Kliknij skręt z fioletowym znakiem zapytania by go zatwierdzić. Info: możliwe, że będziesz musiał ustawić \'Dwukierunkowy\' żeby zobaczyć te skręty'
  1434. },
  1435. 'NZ': {'.codeISO': 'NZ', '.country': 'New Zealand'},
  1436. 'NL':
  1437. {
  1438. '.codeISO': 'NL',
  1439. '.country': 'Netherlands',
  1440. '.author': 'davidakachaos',
  1441. '.updated': '2018-08-01',
  1442. '.fallbackCode': 'BE',
  1443. '.lng': 'NL',
  1444. 'city.consider.en': 'consider this city name:',
  1445. 'city.consider': 'overweeg deze plaatsnaam:',
  1446. 'city.1.en': 'city name is too short',
  1447. 'city.1': 'plaatsnaam te kort',
  1448. 'city.2.en': 'expand the abbreviation',
  1449. 'city.2': 'De afkorting uitbreiden',
  1450. 'city.3.en': 'complete short name',
  1451. 'city.3': 'maak de korte naam compleet',
  1452. 'city.4.en': 'complete city name',
  1453. 'city.4': 'plaatsnaam aanvullen',
  1454. 'city.5.en': 'correct letter case',
  1455. 'city.5': 'juist hoofdlettergebruik',
  1456. 'city.6.en': 'check word order',
  1457. 'city.6': 'controleer woord volgorde',
  1458. 'city.7.en': 'check abbreviations',
  1459. 'city.7': 'controleer afkortingen',
  1460. 'city.8a.en': 'add county name',
  1461. 'city.8a': 'land naam toevoegen',
  1462. 'city.8r.en': 'remove county name',
  1463. 'city.8r': 'land naam verwijderen',
  1464. 'city.9.en': 'check county name',
  1465. 'city.9': 'controleer land naam',
  1466. 'city.10a.en': 'add a word',
  1467. 'city.10a': 'woord toevoegen',
  1468. 'city.10r.en': 'remove a word',
  1469. 'city.10r': 'woord verwijderen',
  1470. 'city.11.en': 'add county code',
  1471. 'city.11': 'landcode toevoegen',
  1472. 'city.12.en': 'identical names, but different city IDs',
  1473. 'city.12': 'identieke namen, maar verschillende plaats IDs',
  1474. 'city.13a.en': 'add a space',
  1475. 'city.13a': 'spatie invoegen',
  1476. 'city.13r.en': 'remove a space',
  1477. 'city.13r': 'spatie verwijderen',
  1478. 'city.14.en': 'check the number',
  1479. 'city.14': 'controleer het nummer',
  1480. 'props.skipped.title.en': 'The segment is not checked',
  1481. 'props.skipped.title': 'Dit segment is niet gecontroleerd',
  1482. 'props.skipped.problem.en': 'The segment is modified after 2014-05-01 AND locked for you, so Validator did not check it',
  1483. 'props.skipped.problem': 'Dit segment is na 2014-05-01 aangepast EN voor jou gelockt, Validator heeft dit niet gecontroleerd',
  1484. 'err.regexp.en': 'Error parsing option for check #${n}:',
  1485. 'err.regexp': 'Fout bij het verwerken van de opties voor de controle #${n}:',
  1486. 'props.disabled.en': 'WME Validator is disabled',
  1487. 'props.disabled': 'WME Validator is uitgeschakeld',
  1488. 'props.limit.title.en': 'Too many issues reported',
  1489. 'props.limit.title': 'Te veel problemen gevonden',
  1490. 'props.limit.problem.en': 'There are too many issues reported, so some of them might not be shown',
  1491. 'props.limit.problem': 'Er zijn te veel problemen gemeld, daarom wordt een aantal van hen niet getoond',
  1492. 'props.limit.solution.en': 'Deselect the segment and stop scanning process. Then click red \'✘\' (Clear report) button',
  1493. 'props.limit.solution': 'Deselecteer het segment en stop het scanproces. Klik dan op de rode \'✘\' (Clear report) knop',
  1494. 'props.reports.en': 'reports',
  1495. 'props.reports': 'meldingen',
  1496. 'props.noneditable.en': 'You cannot edit this segment',
  1497. 'props.noneditable': 'Je kunt dit segment niet bewerken',
  1498. 'report.save.en': 'Save this report',
  1499. 'report.save': 'Sla dit rapport op',
  1500. 'report.list.andUp.en': 'and up',
  1501. 'report.list.andUp': 'en meer',
  1502. 'report.list.severity.en': 'Severity:',
  1503. 'report.list.severity': 'Hevigheid:',
  1504. 'report.list.reportOnly.en': 'only in report',
  1505. 'report.list.reportOnly': 'alleen in rapportage',
  1506. 'report.list.forEditors.en': 'For editors level:',
  1507. 'report.list.forEditors': 'Voor bewerkers niveau:',
  1508. 'report.list.forCountries.en': 'For countries:',
  1509. 'report.list.forCountries': 'Voor landen:',
  1510. 'report.list.forStates.en': 'For states:',
  1511. 'report.list.forStates': 'Voor provincies:',
  1512. 'report.list.forCities.en': 'For cities:',
  1513. 'report.list.forCities': 'Voor steden:',
  1514. 'report.list.params.en': 'Params to configure in localization pack:',
  1515. 'report.list.params': 'Parameters om te configureren in lokalisatie:',
  1516. 'report.list.params.set.en': 'Current configuration for ${country}:',
  1517. 'report.list.params.set': 'Huidige configuratie voor ${country}:',
  1518. 'report.list.enabled.en': '${n} checks are enabled for',
  1519. 'report.list.enabled': '${n} controles zijn actief voor',
  1520. 'report.list.disabled.en': '${n} checks are disabled for',
  1521. 'report.list.disabled': '${n} controles zijn uitgeschakeld voor',
  1522. 'report.list.total.en': 'There are ${n} checks available',
  1523. 'report.list.total': 'Er zijn ${n} controles beschikbaar',
  1524. 'report.list.title.en': 'Complete List of Checks for',
  1525. 'report.list.title': 'Complete lijst met controles voor',
  1526. 'report.list.see.en': 'See',
  1527. 'report.list.see': 'Zie',
  1528. 'report.list.checks.en': 'Settings->About->Available checks',
  1529. 'report.list.checks': 'Instellingen->Over->Beschikbare controles',
  1530. 'report.list.fallback.en': 'Localization Fallback Rules:',
  1531. 'report.list.fallback': 'Lokalisatie terugval regels:',
  1532. 'report.and.en': 'and',
  1533. 'report.and': 'en',
  1534. 'report.segments.en': 'Total number of segments checked:',
  1535. 'report.segments': 'Totaal aantal gecontroleerde segmenten:',
  1536. 'report.customs.en': 'Custom checks matched (green/blue):',
  1537. 'report.customs': 'Er is een match aangepaste controles (groen/blauw):',
  1538. 'report.reported.en': 'Reported',
  1539. 'report.reported': 'Gerapporteerd',
  1540. 'report.errors.en': 'errors',
  1541. 'report.errors': 'fouten',
  1542. 'report.warnings.en': 'warnings',
  1543. 'report.warnings': 'waarschuwingen',
  1544. 'report.notes.en': 'notes',
  1545. 'report.notes': 'notities',
  1546. 'report.link.wiki.en': 'wiki',
  1547. 'report.link.wiki': 'wiki',
  1548. 'report.link.forum.en': 'forum',
  1549. 'report.link.forum': 'forum',
  1550. 'report.link.other.en': 'link',
  1551. 'report.link.other': 'link',
  1552. 'report.contents.en': 'Contents:',
  1553. 'report.contents': 'Inhoud:',
  1554. 'report.summary.en': 'Summary',
  1555. 'report.summary': 'Samenvatting',
  1556. 'report.title.en': 'WME Validator Report',
  1557. 'report.title': 'WME Validator Rapport',
  1558. 'report.share.en': 'to Share',
  1559. 'report.share': 'om te delen',
  1560. 'report.generated.by.en': 'generated by',
  1561. 'report.generated.by': 'gegenereerd door',
  1562. 'report.generated.on.en': 'on',
  1563. 'report.generated.on': 'op',
  1564. 'report.source.en': 'Report source:',
  1565. 'report.source': 'Rapportbron:',
  1566. 'report.filter.duplicate.en': 'duplicate segments',
  1567. 'report.filter.duplicate': 'dubbele segmenten',
  1568. 'report.filter.streets.en': 'Streets and Service Roads',
  1569. 'report.filter.streets': 'Straten en dienstwegen',
  1570. 'report.filter.other.en': 'Other drivable and Non-drivable',
  1571. 'report.filter.other': 'Andere berijdbare en niet berijdbare',
  1572. 'report.filter.noneditable.en': 'non-editable segments',
  1573. 'report.filter.noneditable': 'niet-bewerkbare segmenten',
  1574. 'report.filter.notes.en': 'notes',
  1575. 'report.filter.notes': 'notities',
  1576. 'report.filter.title.en': 'Filter:',
  1577. 'report.filter.title': 'Filter:',
  1578. 'report.filter.excluded.en': 'are excluded from this report.',
  1579. 'report.filter.excluded': 'zijn uitgezonderd van dit rapport.',
  1580. 'report.search.updated.by.en': 'updated by',
  1581. 'report.search.updated.by': 'bijgewerkt door',
  1582. 'report.search.updated.since.en': 'updated since',
  1583. 'report.search.updated.since': 'bijgewerkt sinds',
  1584. 'report.search.city.en': 'from',
  1585. 'report.search.city': 'van',
  1586. 'report.search.reported.en': 'reported as',
  1587. 'report.search.reported': 'gemeld',
  1588. 'report.search.title.en': 'Search:',
  1589. 'report.search.title': 'Zoeken:',
  1590. 'report.search.only.en': 'only segments',
  1591. 'report.search.only': 'alleen segmenten',
  1592. 'report.search.included.en': 'are included into the report.',
  1593. 'report.search.included': 'zijn opgenomen in het rapport.',
  1594. 'report.beta.warning.en': 'WME Beta Warning!',
  1595. 'report.beta.warning': 'WME Beta Waarschuwing!',
  1596. 'report.beta.text.en': 'This report is generated in beta WME with beta permalinks.',
  1597. 'report.beta.text': 'Dit rapport is gegenereerd in beta WME met bèta permalinks.',
  1598. 'report.beta.share.en': 'Please do not share those permalinks!',
  1599. 'report.beta.share': 'Gelieve deze permalinks niet te delen!',
  1600. 'report.size.warning.en':
  1601. '<b>Warning!</b><br>The report is ${n} characters long so <b>it will not fit</b> into a single forum or private message.\n<br>Please add <b>more filters</b> to reduce the size of the report.',
  1602. 'report.size.warning':
  1603. '<b>Waarschuwing!</b><br>Het rapport is ${n} tekens lang dus <b>het zal niet passen</b> in één forum of privé bericht.\n<br>Voeg aub <b>meer filters</b> toe om de grootte van het rapport te beperken.',
  1604. 'report.note.limit.en': '* Note: there were too many issues reported, so some of them are not counted in the summary.',
  1605. 'report.note.limit': '* Let op: er waren te veel problemen gemeld, zodat een aantal van hen worden niet meegeteld in de samenvatting.',
  1606. 'report.forum.en': 'To motivate further development please leave your comment on the',
  1607. 'report.forum': 'Om verdere ontwikkeling te motiveren laat dan je commentaar achter op de',
  1608. 'report.forum.link.en': 'Waze forum thread.',
  1609. 'report.forum.link': 'Waze forum thread.',
  1610. 'report.thanks.en': 'Thank you for using WME Validator!',
  1611. 'report.thanks': 'Dank u voor het gebruik van de WME Validator!',
  1612. 'msg.limit.segments.en': 'There are too many segments.\n\nClick \'Show report\' to review the report, then\n',
  1613. 'msg.limit.segments': 'Er zijn te veel segmenten.\n\nKlik op \'Toon rapport\' om het rapport door te nemen, vervolgens\n',
  1614. 'msg.limit.segments.continue.en': 'click \'▶\' (Play) to continue.',
  1615. 'msg.limit.segments.continue': 'klik \'▶\' (Play) om verder te gaan.',
  1616. 'msg.limit.segments.clear.en': 'click \'✘\' (Clear) to clear the report.',
  1617. 'msg.limit.segments.clear': 'klik \'✘\' (Löschen) om het rapport te verwijderen.',
  1618. 'msg.pan.text.en': 'Pan around to validate the map',
  1619. 'msg.pan.text': 'Schuif de kaart rond om de kaart te valideren',
  1620. 'msg.zoomout.text.en': 'Zoom out to start WME Validator',
  1621. 'msg.zoomout.text': 'Uitzoomen om WME Validator te beginnen',
  1622. 'msg.click.text.en': 'Click \'▶\' (Play) to validate visible map area',
  1623. 'msg.click.text': 'Klik \'▶\' (Play), om het zichtbare gebied op de kaart te valideren',
  1624. 'msg.autopaused.en': 'autopaused',
  1625. 'msg.autopaused': 'automatisch gepauzeerd',
  1626. 'msg.autopaused.text.en': 'Auto paused! Click \'▶\' (Play) to continue.',
  1627. 'msg.autopaused.text': 'Automatisch gepauzeerd! Om door te gaan klik op \'▶\' (Play).',
  1628. 'msg.autopaused.tip.en': 'WME Validator automatically paused on map drag or window size change',
  1629. 'msg.autopaused.tip': 'WME Validator is automatisch onderbroken wegen het verschuiven van de kaart of door een aanpassing van de venstergrootte',
  1630. 'msg.finished.text.en': 'Click <b>\'Show report\'</b> to review map issues',
  1631. 'msg.finished.text': 'Klik <b>\'Toon rapport\'</b> om kaart problemen te beoordelen',
  1632. 'msg.finished.tip.en': 'Click \'✉\' (Share) button to post report on a\nforum or in a private message',
  1633. 'msg.finished.tip': 'Klik op \'✉\' (Delen) om het rapport op een\nforum of privebericht te plaatsen',
  1634. 'msg.noissues.text.en': 'Finished! No issues found!',
  1635. 'msg.noissues.text': 'Klaar! Geen problemen gevonden!',
  1636. 'msg.noissues.tip.en': 'Try to uncheck some filter options or start WME Validator over another map area!',
  1637. 'msg.noissues.tip': 'Probeer een aantal filteropties uit te vinken of start WME Validator over een ander gebied op de kaart!',
  1638. 'msg.scanning.text.en': 'Scanning! Finishing in ~ ${n} min',
  1639. 'msg.scanning.text': 'Scannen! Klaar over ~ ${n} min',
  1640. 'msg.scanning.text.soon.en': 'Scanning! Finishing in a minute!',
  1641. 'msg.scanning.text.soon': 'Scannen! Klaar binnen een minuut!',
  1642. 'msg.scanning.tip.en': 'Click \'Pause\' button to pause or \'■\' (Stop) to stop',
  1643. 'msg.scanning.tip': 'Klik op \'pauze\' knop om te pauzeren of \'■\' (Stop) om te stoppen',
  1644. 'msg.starting.text.en': 'Starting! Layers are off to scan faster!',
  1645. 'msg.starting.text': 'Begonnen! Layers zijn uitgeschakeld om sneller te scannen!',
  1646. 'msg.starting.tip.en': 'Use \'Pause\' button to pause or \'■\' button to stop',
  1647. 'msg.starting.tip': 'Gebruik de \'Pause\' knop om te pauzeren of \'■\' knop om te stoppen',
  1648. 'msg.paused.text.en': 'On pause! Click \'▶\' (Play) button to continue.',
  1649. 'msg.paused.text': 'Gepauzeerd! Klik op \'▶\' (Play) knop om door te gaan.',
  1650. 'msg.paused.tip.en': 'To view the report click \'Show report\' button (if available)',
  1651. 'msg.paused.tip': 'Om het rapport te bekijken klik je op de \'Toon rapport\' knop (indien beschikbaar)',
  1652. 'msg.continuing.text.en': 'Continuing!',
  1653. 'msg.continuing.text': 'Doorgaan!',
  1654. 'msg.continuing.tip.en': 'WME Validator will continue from the location it was paused',
  1655. 'msg.continuing.tip': 'WME Validator zal doorgaan van de locatie waar het werd onderbroken',
  1656. 'msg.settings.text.en': 'Click <b>\'Back\'</b> to return to main view',
  1657. 'msg.settings.text': 'Klik <b>\'Terug\'</b> om terug te keren naar hoofdweergave',
  1658. 'msg.settings.tip.en': 'Click \'Reset defaults\' button to reset all settings in one click!',
  1659. 'msg.settings.tip': 'Klik op \'Herstel standaardinstellingen\' knop om alle instellingen in één klik resetten!',
  1660. 'msg.reset.text.en': 'All filter options and settings have been reset to their defaults',
  1661. 'msg.reset.text': 'Alle filter opties en instellingen zijn terug gezet naar de standaardwaarden',
  1662. 'msg.reset.tip.en': 'Click \'Back\' button to return to main view',
  1663. 'msg.reset.tip': 'Klik <b>\'Terug\'</b> om terug te keren naar de hoofdweergave',
  1664. 'msg.textarea.pack.en':
  1665. 'This is a Greasemonkey/Tampermonkey script. You can copy and paste the text below into a <b>new .user.js file</b><br>or <b>paste it directly</b> into the Greasemonkey/Tampermonkey',
  1666. 'msg.textarea.pack':
  1667. 'Dit is een Greasemonkey/Tampermonkey script. Je kunt onderstaande tekst kopieren en plakken in een <b>nieuw .user.js</b>of <b>plak het direct</b> in Greasemonkey/Tampermonkey',
  1668. 'msg.textarea.en': 'Please copy the text below and then paste it into your forum post or private message',
  1669. 'msg.textarea': 'Kopieer de onderstaande tekst en plak deze in je forum post of privebericht',
  1670. 'noaccess.text.en':
  1671. '<b>Sorry,</b><br>You cannot use WME Validator over here.<br>Please check <a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488\'>the forum thread</a><br>for more information.',
  1672. 'noaccess.text':
  1673. '<b>Sorry,</b><br>Hier kan je de WME Validator niet gebruiken.<brMeer informatie vind je <a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488">deze forum thread</a><br>.',
  1674. 'noaccess.tip.en': 'Please check the forum thread for more information!',
  1675. 'noaccess.tip': 'Controleer de forum thread voor meer informatie!',
  1676. 'tab.switch.tip.on.en': 'Click to switch highlighting on (Alt+V)',
  1677. 'tab.switch.tip.on': 'Klik om het markeren aan te schakelen (Alt + V)',
  1678. 'tab.switch.tip.off.en': 'Click to switch highlighting off (Alt+V)',
  1679. 'tab.switch.tip.off': 'Klik om het markeren uit te schakelen (Alt+V)',
  1680. 'tab.filter.text.en': 'filter',
  1681. 'tab.filter.text': 'filter',
  1682. 'tab.filter.tip.en': 'Options to filter the report and highlighted segments',
  1683. 'tab.filter.tip': 'Opties om het rapport te filteren en gemarkeerd segmenten',
  1684. 'tab.search.text.en': 'search',
  1685. 'tab.search.text': 'zoeken',
  1686. 'tab.search.tip.en': 'Advanced filter options to include only specific segments',
  1687. 'tab.search.tip': 'Geavanceerde filteropties om alleen specifieke segmenten op te nemen',
  1688. 'tab.help.text.en': 'help',
  1689. 'tab.help.text': 'help',
  1690. 'tab.help.tip.en': 'Need help?',
  1691. 'tab.help.tip': 'Hulp nodig?',
  1692. 'filter.noneditables.text.en': 'Exclude <b>non-editable</b> segments',
  1693. 'filter.noneditables.text': 'Negeer <b>niet-bewerkbare</b> segmenten',
  1694. 'filter.noneditables.tip.en': 'Do not report locked segments or\nsegments outside of your editable areas',
  1695. 'filter.noneditables.tip': 'Rapporteer geen beveiligde segmenten of\nsegmenten buiten het gebied waar je mag bewerken',
  1696. 'filter.duplicates.text.en': 'Exclude <b>duplicate</b> segments',
  1697. 'filter.duplicates.text': '<b>Dubbele</b> segmenten uitsluiten',
  1698. 'filter.duplicates.tip.en': 'Do not show the same segment in different\nparts of report\n* Note: this option DOES NOT affect highlighting',
  1699. 'filter.duplicates.tip': 'Toon hetzelfde segment niet in verschillende\ndelen van het rapport\n* Opmerking: deze optie HEEFT GEEN invloed op het markeren',
  1700. 'filter.streets.text.en': 'Exclude <b>Streets and Service Roads</b>',
  1701. 'filter.streets.text': 'Negeer <b>wegen en dienstwegen</b>',
  1702. 'filter.streets.tip.en': 'Do not report Streets and Service Roads',
  1703. 'filter.streets.tip': 'Neem wegen en dienstwegen niet op in het rapport',
  1704. 'filter.other.text.en': 'Exclude <b>Other drivable and Non-drivable</b>',
  1705. 'filter.other.text': 'Negeer <b>Andere berijdbare en niet-berijdbare</b> segmenten',
  1706. 'filter.other.tip.en': 'Do not report Dirt, Parking Lot, Private Roads\nand non-drivable segments',
  1707. 'filter.other.tip': 'Niet melden van onverharde, parkeerplaats, privéwegen\n en niet-berijdbare segmenten',
  1708. 'filter.notes.text.en': 'Exclude <b>notes</b>',
  1709. 'filter.notes.text': 'Negeer <b>opmerkingen</b>',
  1710. 'filter.notes.tip.en': 'Report only warnings and errors',
  1711. 'filter.notes.tip': 'Rapporteer alleen waarschuwingen en fouten',
  1712. 'search.youredits.text.en': 'Include <b>only your edits</b>',
  1713. 'search.youredits.text': 'Toon <b>enkel eigen aanpassingen</b>',
  1714. 'search.youredits.tip.en': 'Include only segments edited by you',
  1715. 'search.youredits.tip': 'Omvat slechts segmenten bewerkt door u',
  1716. 'search.updatedby.text.en': '<b>Updated by*:</b>',
  1717. 'search.updatedby.text': '<b>Aangepast door*:</b>',
  1718. 'search.updatedby.tip.en':
  1719. 'Include only segments updated by the specified editor\n* Note: this option is available for country managers only\nThis field supports:\n - lists: me, otherEditor\n - wildcards: world*\n - negation: !me, *\n* Note: you may use \'me\' to match yourself',
  1720. 'search.updatedby.tip':
  1721. 'Omvat slechts segmenten bijgewerkt door de opgegeven editor\n * Opmerking: deze optie is alleen beschikbaar voor country managers\n Dit veld ondersteunt:\n - lijsten: me, otherEditor\n - wildcards: wereld *\n - negatie:! Me, *\n * Opmerking: je kunt gebruik maken van \'me\' om jezelf te vinden',
  1722. 'search.updatedby.example.en': 'Example: me',
  1723. 'search.updatedby.example': 'Voorbeeld: me',
  1724. 'search.updatedsince.text.en': '<b>Updated since:</b>',
  1725. 'search.updatedsince.text': '<b>Aangepast sinds:</b>',
  1726. 'search.updatedsince.tip.en': 'Include only segments edited since the date specified\nFirefox date format: YYYY-MM-DD',
  1727. 'search.updatedsince.tip': 'Toon enkel de segmenten die zijn gewijzigd sinds de opgegeven datum\nFirefox datum formaat: YYYY-MM-DD',
  1728. 'search.updatedsince.example.en': 'YYYY-MM-DD',
  1729. 'search.updatedsince.example': 'YYYY-MM-DD',
  1730. 'search.city.text.en': '<b>City name:</b>',
  1731. 'search.city.text': '<b>plaatsnaam:</b>',
  1732. 'search.city.tip.en': 'Include only segments with specified city name\nThis field supports:\n - lists: Paris, Meudon\n - wildcards: Greater * Area\n - negation: !Paris, *',
  1733. 'search.city.tip': 'Neem alleen segmenten op met opgegeven plaatsnaam\nDit veld ondersteunt:\n - lijsten: Amsterdam, Potsdam\n - wildcards: Den * \n - Negation: !Amsterdam, *',
  1734. 'search.city.example.en': 'Example: !Paris, *',
  1735. 'search.city.example': 'Voorbeeld: !Amsterdam, *',
  1736. 'search.checks.text.en': '<b>Reported as:</b>',
  1737. 'search.checks.text': '<b>Rapporteer als:</b>',
  1738. 'search.checks.tip.en':
  1739. 'Include only segments reported as specified\nThis field matches:\n - severities: errors\n - check names: New road\n - check IDs: 200\nThis field supports:\n - lists: 36, 37\n - wildcards: *roundabout*\n - negation: !unconfirmed*, *',
  1740. 'search.checks.tip':
  1741. 'Inclusief enkel de segmenten gerapporteerd als\nDit veld kom overeen met:\n - Foutmelding-rubriek: Fout\n - naam controle: Nieuwe straat\n - ID-Check: 200\nDit veld ondersteunt:\n - lijsten: 36, 37\n - wildcards: *rotonde*\n - negatie: !Soft-Turn*, *',
  1742. 'search.checks.example.en': 'Example: reverse*',
  1743. 'search.checks.example': 'Voorbeeld: autoweg*',
  1744. 'help.text.en':
  1745. '<b>Help Topics:</b><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=666476#p666476">F.A.Q.</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488">Ask your question on the forum</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=661300#p661185">How to adjust Validator for your country</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=663286#p663286">About the "Might be Incorrect City Name"</a>',
  1746. 'help.text':
  1747. '<b>Hulp onderwerpen:</b><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=666476#p666476">F.A.Q.</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488">Stel je vraag op het forum</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=661300#p661185">Hoe Validator aan te passen voor uw land</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=663286#p663286">Over de "Eventuele verkeerde plaatsnaam"</a>',
  1748. 'help.tip.en': 'Open in a new browser tab',
  1749. 'help.tip': 'Open in een nieuw tabblad',
  1750. 'button.scan.tip.en': 'Start scanning current map area\n* Note: this might take few minutes',
  1751. 'button.scan.tip': 'Start het scannen van het huidige gebied op de kaart\n* Opmerking: dit kan een aantal minuten duren',
  1752. 'button.scan.tip.NA.en': 'Zoom out to start scanning current map area',
  1753. 'button.scan.tip.NA': 'Zoom uit om te beginnen met het scannen van het huidige gebied op de kaart',
  1754. 'button.pause.tip.en': 'Pause scanning',
  1755. 'button.pause.tip': 'Scannen pauzeren',
  1756. 'button.continue.tip.en': 'Continue scanning the map area',
  1757. 'button.continue.tip': 'Doorgaan met scannen van het gebied op de kaart',
  1758. 'button.stop.tip.en': 'Stop scanning and return to the start position',
  1759. 'button.stop.tip': 'Stop het scannen en keer terug naar de beginpositie',
  1760. 'button.clear.tip.en': 'Clear report and segment cache',
  1761. 'button.clear.tip': 'Wissen rapport en segment cache',
  1762. 'button.clear.tip.red.en': 'There are too many reported segments:\n 1. Click \'Show report\' to generate the report.\n 2. Click this button to clear the report and start over.',
  1763. 'button.clear.tip.red':
  1764. 'Er zijn te veel gerapporteerde segmenten:\n 1. Klik op \'Toon rapport\' om het rapport te genereren.\n 2. Klik op deze knop om het rapport te wissen en opnieuw te beginnen.',
  1765. 'button.report.text.en': 'Show report',
  1766. 'button.report.text': 'Toon rapport',
  1767. 'button.report.tip.en': 'Apply the filter and generate HTML report in a new tab',
  1768. 'button.report.tip': 'Pas het filter toe en genereer het HTML-rapport in een nieuw tabblad',
  1769. 'button.BBreport.tip.en': 'Share the report on Waze forum or in a private message',
  1770. 'button.BBreport.tip': 'Deel het rapport op het Waze forum of in een privé-bericht',
  1771. 'button.settings.tip.en': 'Configure settings',
  1772. 'button.settings.tip': 'Instellingen aanpassen',
  1773. 'tab.custom.text.en': 'custom',
  1774. 'tab.custom.text': 'eigen instelling',
  1775. 'tab.custom.tip.en': 'User-defined custom checks settings',
  1776. 'tab.custom.tip': 'Door gebruiker aangepaste controle instellingen',
  1777. 'tab.settings.text.en': 'Settings',
  1778. 'tab.settings.text': 'Instellingen',
  1779. 'tab.scanner.text.en': 'scanner',
  1780. 'tab.scanner.text': 'scanner',
  1781. 'tab.scanner.tip.en': 'Map scanner settings',
  1782. 'tab.scanner.tip': 'Instellingen Kaartscanner',
  1783. 'tab.about.text.en': 'about</span>',
  1784. 'tab.about.text': 'over</span>',
  1785. 'tab.about.tip.en': 'About WME Validator',
  1786. 'tab.about.tip': 'Over WME Validator',
  1787. 'scanner.sounds.text.en': 'Enable sounds',
  1788. 'scanner.sounds.text': 'Gebruik geluiden',
  1789. 'scanner.sounds.tip.en': 'Bleeps and the bloops while scanning',
  1790. 'scanner.sounds.tip': 'Activeer de geluiden tijden het scannen',
  1791. 'scanner.sounds.NA.en': 'Your browser does not support AudioContext',
  1792. 'scanner.sounds.NA': 'Je browser ondersteunt geen AudioContext',
  1793. 'scanner.highlight.text.en': 'Highlight issues on the map',
  1794. 'scanner.highlight.text': 'Markeer problemen op de kaart',
  1795. 'scanner.highlight.tip.en': 'Highlight reported issues on the map',
  1796. 'scanner.highlight.tip': 'Markeer gevonden problemen op de kaart',
  1797. 'scanner.slow.text.en': 'Enable "slow" checks',
  1798. 'scanner.slow.text': '"Langzame" controles activeren',
  1799. 'scanner.slow.tip.en': 'Enables deep map analysis\n* Note: this option might slow down the scanning process',
  1800. 'scanner.slow.tip': 'Activeert diepe kaartanalyse\n* Opmerking: deze optie zou het scanproces kunnen vertragen',
  1801. 'scanner.ext.text.en': 'Report external highlights',
  1802. 'scanner.ext.text': 'Meld externe markeringen',
  1803. 'scanner.ext.tip.en': 'Report segments highlighted by WME Toolbox or WME Color Highlights',
  1804. 'scanner.ext.tip': 'Rapporteer segmenten gemarkeerd door WME Toolbox of WME Color Highlights',
  1805. 'advanced.twoway.text.en': 'WME: Two-way segments by default',
  1806. 'advanced.twoway.text': 'WME: Nieuwe segmenten tweerichtingsverkeer standaard',
  1807. 'advanced.twoway.tip.en': 'Newly created streets in WME are bidirectional by default',
  1808. 'advanced.twoway.tip': 'Nieuwe segmenten zijn standaard tweerichtingsverkeer',
  1809. 'custom.template.text.en': '<a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488&p=749456#p749456\'>Custom template</a>',
  1810. 'custom.template.text': '<a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488&p=749456#p749456\'>Aangepast sjabloon</a>',
  1811. 'custom.template.tip.en':
  1812. 'User-defined custom check expandable template.\n\nYou may use the following expandable variables:\nAddress:\n ${country}, ${state}, ${city}, ${street},\n ${altCity[index or delimeter]}, ${altStreet[index or delimeter]}\nSegment properties:\n ${type}, ${typeRank}, ${toll}, ${direction}, ${elevation}, ${lock},\n ${length}, ${ID}\nHelpers:\n ${drivable}, ${roundabout}, ${hasHNs},\n ${Uturn}, ${deadEnd}, ${softTurns},\n ${deadEndA}, ${partialA},\n ${deadEndB}, ${partialB}\nConnectivity:\n ${segmentsA}, ${inA}, ${outA}, ${UturnA},\n ${segmentsB}, ${inB}, ${outB}, ${UturnB}',
  1813. 'custom.template.tip':
  1814. 'Door de gebruiker gedefinieerde aangepaste controle uitbreidbaar sjabloon.\n\nDe volgende variabelen zijn te gebruiken:\n${country}, ${state}, ${city}, ${street},\n${altCity[Index of onderscheidingsteken]}, ${altStreet[Index of onderscheidingsteken]}\nSegment-Eigenschaften:\n${type}, ${typeRank}, ${toll}, ${direction}, ${elevation}, ${lock},\n ${length}, ${ID}\nHelpers:\n ${drivable}, ${roundabout}, ${hasHNs},\n ${Uturn}, ${deadEnd}, ${softTurns}\n ${deadEndA}, ${partialA},\n ${deadEndB}, ${partialB}\nVerbindungen:\n ${segmentsA}, ${inA}, ${outB}, ${UturnA},\n ${segmentsB}, ${inB}, ${outB}, ${UturnB}',
  1815. 'custom.template.example.en': 'Example: ${street}',
  1816. 'custom.template.example': 'Voorbeeld: ${street}',
  1817. 'custom.regexp.text.en': 'Custom <a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488&p=749456#p749456\'>RegExp</a>',
  1818. 'custom.regexp.text': '<a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488&p=749456#p749456\'>Eigen RegExp</a>',
  1819. 'custom.regexp.tip.en':
  1820. 'User-defined custom check regular expression to match the template.\n\nCase-insensitive match: /regexp/i\nNegation (do not match): !/regexp/\nLog debug information on console: D/regexp/',
  1821. 'custom.regexp.tip':
  1822. 'Door de gebruiker gedefinieerde RegExp die overeenkomen met het template.\n\nNiet hoofdlettergevoelig match: /regexp/i\nNegatie van een uitdrukking: !/regexp/\nLog debug informatie op de console: D/regexp/',
  1823. 'custom.regexp.example.en': 'Example: !/.+/',
  1824. 'custom.regexp.example': 'Voorbeeld: !/.+/',
  1825. 'about.tip.en': 'Open link in a new tab',
  1826. 'about.tip': 'Link in nieuw tabblad openen',
  1827. 'button.reset.text.en': 'Reset defaults',
  1828. 'button.reset.text': 'Herstel standaardinstellingen',
  1829. 'button.reset.tip.en': 'Revert filter options and settings to their defaults',
  1830. 'button.reset.tip': 'Filter opties en instellingen herstellen naar de standaardwaarden',
  1831. 'button.list.text.en': 'Available checks...',
  1832. 'button.list.text': 'Beschikbare controles...',
  1833. 'button.list.tip.en': 'Show a list of checks available in WME Validator',
  1834. 'button.list.tip': 'Toon een lijst met beschikbare controles in WME Validator',
  1835. 'button.wizard.tip.en': 'Create localization package',
  1836. 'button.wizard.tip': 'Maak lokalisatie pakket aan',
  1837. 'button.back.text.en': 'Back',
  1838. 'button.back.text': 'Terug',
  1839. 'button.back.tip.en': 'Close settings and return to main view',
  1840. 'button.back.tip': 'Sluit de instellingen en keer terug naar de hoofdweergave',
  1841. '1.title.en': 'WME Toolbox: Roundabout which may cause issues',
  1842. '1.title': 'WME Toolbox: Rotonde die problemen kan veroorzaken (rotonde verkeer problematisch)',
  1843. '1.problem.en': 'Junction IDs of the roundabout segments are not consecutive',
  1844. '1.problem': 'Knooppunt-ID\'s van de rotonde segmenten zijn niet opeenvolgend',
  1845. '1.solution.en': 'Redo the roundabout',
  1846. '1.solution': 'Rotonde opnieuw doen',
  1847. '2.title.en': 'WME Toolbox: Simple segment',
  1848. '2.title': 'WME Toolbox: Moeilijk segment (Te veel geometrie knooppunten)',
  1849. '2.problem.en': 'The segment has unneeded geometry nodes',
  1850. '2.problem': 'Het segment heeft onnodige geometrie knooppunten',
  1851. '2.solution.en': 'Simplify segment geometry by hovering mouse pointer and pressing "d" key',
  1852. '2.solution': 'Vereenvoudig segment geometrie door de muisaanwijzing boven het punt te brengen en de "d" toets in te drukken',
  1853. '3.title.en': 'WME Toolbox: Lvl 2 lock',
  1854. '3.title': 'WME Toolbox: Lvl 2 Lock',
  1855. '3.problem.en': 'The segment is highlighted by WME Toolbox. It is not a problem',
  1856. '3.problem': 'Het segment wordt gemarkeerd door WME Toolbox. Het is geen probleem',
  1857. '4.title.en': 'WME Toolbox: Lvl 3 lock',
  1858. '4.title': 'WME Toolbox: Lvl 3 Lock',
  1859. '4.problem.en': 'The segment is highlighted by WME Toolbox. It is not a problem',
  1860. '4.problem': 'Het segment wordt gemarkeerd door WME Toolbox. Het is geen probleem.',
  1861. '5.title.en': 'WME Toolbox: Lvl 4 lock',
  1862. '5.title': 'WME Toolbox: Lvl 4 Lock',
  1863. '5.problem.en': 'The segment is highlighted by WME Toolbox. It is not a problem',
  1864. '5.problem': 'Het segment wordt gemarkeerd door WME Toolbox. Het is geen probleem',
  1865. '6.title.en': 'WME Toolbox: Lvl 5 lock',
  1866. '6.title': 'WME Toolbox: Lvl 5 Lock',
  1867. '6.problem.en': 'The segment is highlighted by WME Toolbox. It is not a problem',
  1868. '6.problem': 'Het segment wordt gemarkeerd door WME Toolbox. Het is geen probleem',
  1869. '7.title.en': 'WME Toolbox: Lvl 6 lock',
  1870. '7.title': 'WME Toolbox: Lvl 6 Lock',
  1871. '7.problem.en': 'The segment is highlighted by WME Toolbox. It is not a problem',
  1872. '7.problem': 'Het segment wordt gemarkeerd door WME Toolbox. Het is geen probleem',
  1873. '8.title.en': 'WME Toolbox: House numbers',
  1874. '8.title': 'WME Toolbox: Huisnummers',
  1875. '8.problem.en': 'The segment is highlighted by WME Toolbox. It is not a problem',
  1876. '8.problem': 'Het segment wordt gemarkeerd door WME Toolbox. Het is geen probleem',
  1877. '9.title.en': 'WME Toolbox: Segment with time restrictions',
  1878. '9.title': 'WME Toolbox: Segment met tijdsrestricties',
  1879. '9.problem.en': 'The segment is highlighted by WME Toolbox. It is not a problem',
  1880. '9.problem': 'Het segment wordt gemarkeerd door WME Toolbox. Het is geen probleem',
  1881. '13.title.en': 'WME Color Highlights: Editor lock',
  1882. '13.title': 'WME Color Highlights: Editor lock',
  1883. '13.problem.en': 'The segment is highlighted by WME Color Highlights. It is not a problem',
  1884. '13.problem': 'Het segment wordt gemarkeerd door WME Color Highlights. Het is geen probleem',
  1885. '14.title.en': 'WME Color Highlights: Toll road / One way road',
  1886. '14.title': 'WME Color Highlights: Toll road / One way road (Tol- / Eenrichtings-straat)',
  1887. '14.problem.en': 'The segment is highlighted by WME Color Highlights. It is not a problem',
  1888. '14.problem': 'Het segment wordt gemarkeerd door WME Color Highlights. Het is geen probleem',
  1889. '15.title.en': 'WME Color Highlights: Recently edited',
  1890. '15.title': 'WME Color Highlights: Recently edited (Kürzlich editiert)',
  1891. '15.problem.en': 'The segment is highlighted by WME Color Highlights. It is not a problem',
  1892. '15.problem': 'Het segment wordt gemarkeerd door WME Color Highlights. Het is geen probleem',
  1893. '16.title.en': 'WME Color Highlights: Road rank',
  1894. '16.title': 'WME Color Highlights: Road type',
  1895. '16.problem.en': 'The segment is highlighted by WME Color Highlights. It is not a problem',
  1896. '16.problem': 'Het segment wordt gemarkeerd door WME Color Highlights. Het is geen probleem',
  1897. '17.title.en': 'WME Color Highlights: No city',
  1898. '17.title': 'WME Color Highlights: No city (Keine Stadt)',
  1899. '17.problem.en': 'The segment is highlighted by WME Color Highlights. It is not a problem',
  1900. '17.problem': 'Het segment wordt gemarkeerd door WME Color Highlights. Het is geen probleem',
  1901. '18.title.en': 'WME Color Highlights: Time restriction / Highlighted road type',
  1902. '18.title': 'WME Color Highlights: Time restriction / Highlighted road type',
  1903. '18.problem.en': 'The segment is highlighted by WME Color Highlights. It is not a problem',
  1904. '18.problem': 'Het segment wordt gemarkeerd door WME Color Highlights. Het is geen probleem',
  1905. '19.title.en': 'WME Color Highlights: No name',
  1906. '19.title': 'WME Color Highlights: No name (Kein Straßenname)',
  1907. '19.problem.en': 'The segment is highlighted by WME Color Highlights. It is not a problem',
  1908. '19.problem': 'Het segment wordt gemarkeerd door WME Color Highlights. Het is geen probleem',
  1909. '20.title.en': 'WME Color Highlights: Filter by city',
  1910. '20.title': 'WME Color Highlights: Filter by city (Stadt-Filter)',
  1911. '20.problem.en': 'The segment is highlighted by WME Color Highlights. It is not a problem',
  1912. '20.problem': 'Het segment wordt gemarkeerd door WME Color Highlights. Het is geen probleem',
  1913. '21.title.en': 'WME Color Highlights: Filter by city (alt. city)',
  1914. '21.title': 'WME Color Highlights: Filter by city (alt. city)',
  1915. '21.problem.en': 'The segment is highlighted by WME Color Highlights. It is not a problem',
  1916. '21.problem': 'Het segment wordt gemarkeerd door WME Color Highlights. Het is geen probleem',
  1917. '22.title.en': 'WME Color Highlights: Filter by editor',
  1918. '22.title': 'WME Color Highlights: Filter by editor (Editor-Filter)',
  1919. '22.problem.en': 'The segment is highlighted by WME Color Highlights. It is not a problem',
  1920. '22.problem': 'Het segment wordt gemarkeerd door WME Color Highlights. Het is geen probleem',
  1921. '23.title.en': 'Unconfirmed road',
  1922. '23.title': 'Onbevestigde straat',
  1923. '23.problem.en': 'Each segment must minimally have the Country and State information',
  1924. '23.problem': 'Elk segment moet minimaal informatie hebben over het land en plaats',
  1925. '23.solution.en': 'Confirm the road by updating its details',
  1926. '23.solution': 'Bevestig de straat door ofwel de plaats danwel de straatnaam in te voeren.',
  1927. '24.title.en': 'Might be incorrect city name (only available in the report)',
  1928. '24.title': 'Eventueel verkeerde plaatsnaam (alleen beschikbaar in het rapport)',
  1929. '24.problem.en': 'The segment might have incorrect city name',
  1930. '24.problem': 'Het segment heeft misschien een verkeerde plaatsnaam',
  1931. '24.solution.en': 'Consider suggested city name and use this form to rename the city',
  1932. '24.solution': 'Overweeg de voorgestelde plaatsnaam en gebruik dit formulier om de naam te wijzigen',
  1933. '25.title.en': 'Unknown direction of drivable road',
  1934. '25.title': 'Onbekende rijrichting van berijdbare weg',
  1935. '25.problem.en': '\'Unknown\' road direction will not prevent routing on the road',
  1936. '25.problem': '\'Onbekende\' rijrichting zal niet voorkomen dat er genavigeerd wordt over de weg',
  1937. '25.solution.en': 'Set the road direction',
  1938. '25.solution': 'Stel de rijrichting in',
  1939. '28.title.en': 'Street name on two-way Ramp',
  1940. '28.title': 'Straatnaam op tweebaans voegstrook',
  1941. '28.problem.en': 'If Ramp is unnamed, the name of a subsequent road will propagate backwards',
  1942. '28.problem': 'Als de op/afrit geen naam heeft, zal de naam van de volgende straat worden overgenomen',
  1943. '28.solution.en': 'In the address properties check the \'None\' box next to the street name and then click \'Apply\'',
  1944. '28.solution': 'In de adreseigenschappen vink \'Geen\' aan naast de straatnaam en klik op \'Toepassen\'',
  1945. '29.title.en': 'Street name on roundabout',
  1946. '29.title': 'Straatnaam op rotonde',
  1947. '29.problem.en': 'In Waze, we do not name roundabout segments',
  1948. '29.problem': 'In Waze geven we rotondes geen straatnamen',
  1949. '29.solution.en': 'In the address properties check the \'None\' box next to the street name, click \'Apply\' and then add \'Junction\' landmark to name the roundabout',
  1950. '29.solution': 'In de adreseigenschappen vink \'Geen\' aan naast de straatnaam en klik op \'Toepassen\' en voeg eventueel een \'Kruispunt/Knooppunt\' toe met de naam van de rotonde',
  1951. '33.enabled': false,
  1952. '34.title.en': 'Empty alternate street',
  1953. '34.title': 'Lege alternatieve straatnaam',
  1954. '34.problem.en': 'Alternate street name is empty',
  1955. '34.problem': 'De alternatieve straatnaam is leeg',
  1956. '34.solution.en': 'Remove empty alternate street name',
  1957. '34.solution': 'Verwijder de lege alternatieve straatnaam',
  1958. '35.title.en': 'Unterminated drivable road',
  1959. '35.title': 'Geen eindnode op berijdbare weg',
  1960. '35.problem.en': 'Waze will not route from the unterminated segment',
  1961. '35.problem': 'Waze zal niet routeren vanaf segmenten zonder eindnode',
  1962. '35.solution.en': 'Move the segment a bit so the terminating node will be added automatically',
  1963. '35.solution': 'Verplaats het segment een beetje zodat de eindnode automatisch zal worden toegevoegd',
  1964. '36.enabled': true,
  1965. '36.title.en': 'Node A: Unneeded (slow)',
  1966. '36.title': 'Node A: Onnodig (langzaam)',
  1967. '36.problem.en': 'Adjacent segments at node A are identical',
  1968. '36.problem': 'De segmenten naast node A zijn identiek',
  1969. '36.solution.en': 'Select node A and press Delete key to join the segments',
  1970. '36.solution': 'Selecteer node A en druk op Delete om de segmenten samen te voegen',
  1971. '37.enabled': true,
  1972. '37.title.en': 'Node B: Unneeded (slow)',
  1973. '37.title': 'Node B: Onnodig (langzaam)',
  1974. '37.problem.en': 'Adjacent segments at node B are identical',
  1975. '37.problem': 'De segmenten naast node B zijn identiek',
  1976. '37.solution.en': 'Select node B and press Delete key to join the segments',
  1977. '37.solution': 'Selecteer node B en druk op Delete om de segmenten samen te voegen',
  1978. '38.title.en': 'Expired segment restriction (slow)',
  1979. '38.title': 'Verlopen segment beperking (langzaam)',
  1980. '38.problem.en': 'The segment has an expired restriction',
  1981. '38.problem': 'Het segment heeft een verlopen beperking',
  1982. '38.solution.en': 'Click \'Edit restrictions\' and delete the expired restriction',
  1983. '38.solution': 'Klik op \'Bewerken restricties\' en verwijder de verstreken beperking',
  1984. '39.title.en': 'Expired turn restriction (slow)',
  1985. '39.title': 'Verlopen beperking op afslag (langzaam)',
  1986. '39.problem.en': 'The segment has a turn with an expired restriction',
  1987. '39.problem': 'Het segment heeft een afslag met een verlopen beperking',
  1988. '39.solution.en': 'Click clock icon next to the yellow arrow and delete the expired restriction',
  1989. '39.solution': 'Klik klok pictogram naast de gele pijl en verwijder de verlopen beperking',
  1990. '41.title.en': 'Node A: Reverse connectivity of drivable road',
  1991. '41.title': 'Node A: Omgekeerde connectiviteit van berijdbare weg',
  1992. '41.problem.en': 'There is a turn which goes against the directionality of the segment at node A',
  1993. '41.problem': 'Er is een afslag die indruist tegen de rijrichting van het segment op knooppunt A',
  1994. '41.solution.en': 'Make the segment \'Two-way\', restrict all the turns at node A and then make the segment \'One way (A→B)\' again',
  1995. '41.solution': 'Verander het segment in twee-richting, verbied de afslag bij node A en verander het segment weer in \'1-richting\', of verander het segment weer in \'One way (A→B)\'',
  1996. '42.title.en': 'Node B: Reverse connectivity of drivable road',
  1997. '42.title': 'Node B: Omgekeerde connectiviteit van berijdbare weg',
  1998. '42.problem.en': 'There is a turn which goes against the directionality of the segment at node B',
  1999. '42.problem': 'Er is een afslag die indruist tegen de rijrichting van het segment op knooppunt B',
  2000. '42.solution.en': 'Make the segment \'Two-way\', restrict all the turns at node B and then make the segment \'One way (B→A)\' again',
  2001. '42.solution': 'Verander het segment in twee-richting, verbied de afslag bij node B en verander het segment weer in \'1-richting\', Of verander het segment weer in \'One way (B→A)\'',
  2002. '43.title.en': 'Self connectivity',
  2003. '43.title': 'Zelf verbinding',
  2004. '43.problem.en': 'The segment is connected back to itself',
  2005. '43.problem': 'Het segment is met zichzelf verbonden',
  2006. '43.solution.en': 'Split the segment into THREE pieces',
  2007. '43.solution': 'Verdeel het segment in DRIE stukken',
  2008. '44.title.en': 'No outward connectivity',
  2009. '44.title': 'Geen verbinding naar buiten',
  2010. '44.problem.en': 'The drivable segment has no single outward turn enabled',
  2011. '44.problem': 'Het berijdbare segment heeft geen enkele verbinding naar buiten',
  2012. '44.solution.en': 'Enable at least one outward turn from the segment',
  2013. '44.solution': 'Verbind het segment minstens eenmaal met het verkeersnet',
  2014. '45.title.en': 'No inward connectivity',
  2015. '45.title': 'Geen verbinding naar binnen',
  2016. '45.problem.en': 'The drivable non-private segment has no single inward turn enabled',
  2017. '45.problem': 'Het berijdbare niet-privé segment heeft geen enkele verbinding naar het segment toe',
  2018. '45.solution.en': 'Select an adjacent segment and enable at least one turn to the segment',
  2019. '45.solution': 'Selecteer het segment en sta minstens één inwaartse verbinding toe',
  2020. '46.title.en': 'Node A: No inward connectivity of drivable road (slow)',
  2021. '46.title': 'Node A: Geen naar binnen connectiviteit van berijdbare weg (langzaam)',
  2022. '46.problem.en': 'The drivable non-private segment has no single inward turn enabled at node A',
  2023. '46.problem': 'De berijdbare niet-particuliere segment heeft geen enkele naar binnen wijzende verbinding ingeschakeld op knooppunt A',
  2024. '46.solution.en': 'Select an adjacent segment and enable at least one turn to the segment at node A',
  2025. '46.solution': 'Selecteer een aangrenzend segment en stel tenminste één verbinding naar segment bij knooppunt A in',
  2026. '47.title.en': 'Node B: No inward connectivity of drivable road (slow)',
  2027. '47.title': 'Node B: Het berijdbare segment heeft geen enkele verbinding naar het segment toe (langzaam)',
  2028. '47.problem.en': 'The drivable non-private segment has no single inward turn enabled at node B',
  2029. '47.problem': 'Het berijdbare (niet prive) segment heeft geen enkele verbinding naar het segment toe bij node B',
  2030. '47.solution.en': 'Select an adjacent segment and enable at least one turn to the segment at node B',
  2031. '47.solution': 'Selecteer een aangrenzend segment en stel tenminste één verbinding naar segment bij node B',
  2032. '48.title.en': 'Two-way drivable roundabout segment',
  2033. '48.title': 'Berijdbare rotonde segment is niet eenrichtingsverkeer',
  2034. '48.problem.en': 'The drivable roundabout segment is bidirectional',
  2035. '48.problem': 'Berijdbare rotonde segment is niet eenrichtingsverkeer',
  2036. '48.solution.en': 'Redo the roundabout',
  2037. '48.solution': 'Maak de rotonde opnieuw',
  2038. '59.title.en': 'City name on Freeway',
  2039. '59.title': 'Plaatsnaam op snelweg',
  2040. '59.problem.en': 'City name on the Freeway may cause a city smudge',
  2041. '59.problem': 'Plaatsnaam op de snelweg kan het uitsmeren van een stad veroorzaken',
  2042. '59.problemLink': 'W:Netherlands/Freeway',
  2043. '59.solution.en': 'In the address properties check the \'None\' box next to the city name and then click \'Apply\'',
  2044. '59.solution': 'In de adreseigenschappen stel de plaatsnaam in op \'Geen\' en klik op \'toepassen\'',
  2045. '59.solutionLink': 'W:Creating_and_Editing_street_segments#Address_Properties',
  2046. '71.enabled': true,
  2047. '71.problemLink': 'W:Netherlands/Major_Highway',
  2048. '71.title.en': 'Must be a Major Highway',
  2049. '71.title': 'Moet een Major Highway zijn',
  2050. '71.problem.en': 'This segment must be a Major Highway',
  2051. '71.problem': 'Dit segment moet een Major Highway zijn',
  2052. '71.solution.en': 'Set the road type to Major Highway or change the road name',
  2053. '71.solution': 'Stel het wegtype in op Major Highway of verander de straatnaam',
  2054. '72.enabled': true,
  2055. '72.problemLink': 'W:Netherlands/Minor_Highway',
  2056. '72.title.en': 'Must be a Minor Highway',
  2057. '72.title': 'Dit moet een Minor Highway zijn',
  2058. '72.problem.en': 'This segment must be a Minor Highway',
  2059. '72.problem': 'Dit segment moet een Minor Highway zijn',
  2060. '72.solution.en': 'Set the road type to Minor Highway or change the road name',
  2061. '72.solution': 'Stel het wegtype in op Minor Highway of verander de straatnaam',
  2062. '78.title.en': 'Same endpoints drivable segments (slow)',
  2063. '78.title': 'Dezelfde eindpunten voor berijdbare segmenten (langzaam)',
  2064. '78.problem.en': 'Two drivable segments share the same two endpoints',
  2065. '78.problem': 'Twee berijdbare segmenten delen dezelfde twee eindpunten',
  2066. '78.solution.en': 'Split the segment. You might also remove one of the segments if they are identical',
  2067. '78.solution': 'Splits het segment. Je zou ook een segment kunnen verwijderen als ze identiek zijn',
  2068. '87.title.en': 'Node A: Multiple outgoing segments at roundabout',
  2069. '87.title': 'Node A: Meerdere uitgaande segmenten voor rotonde',
  2070. '87.problem.en': 'The drivable roundabout node A has more than one outgoing segment connected',
  2071. '87.problem': 'De berijdbare rotonde knooppunt A heeft meerdere uitgaande segmenten verbonden',
  2072. '87.solution.en': 'Redo the roundabout',
  2073. '87.solution': 'Maak de rotonde opnieuw',
  2074. '99.title.en': 'U-turn at roundabout entrance (slow)',
  2075. '99.title': 'U-bocht op rotonde (langzaam)',
  2076. '99.problem.en': 'The roundabout entrance segment has a U-turn enabled',
  2077. '99.problem': 'De berijdbare rotondenode heeft een U-bocht toegestaan',
  2078. '99.solution.en': 'Disable U-turn',
  2079. '99.solution': 'Zet de U-bocht uit',
  2080. '101.title.en': 'Closed road (only available in the report)',
  2081. '101.title': 'Afgesloten weg (enkel beschikbaar in het rapport)',
  2082. '101.problem.en': 'The segment is marked as closed',
  2083. '101.problem': 'Het segment is gemarkeerd als afgesloten',
  2084. '101.solution.en': 'If the construction is done, restore the segment connectivity and remove the suffix',
  2085. '101.solution': 'Als de wegwerkzaamheden klaar zijn, herstel dan de verbinding van het segment en verwijder de aanvulling',
  2086. '101.params': {'regexp': '/(^|\\b)afgesloten(\\b|$)/i'},
  2087. '102.title.en': 'Node A: No outward connectivity of drivable road (slow)',
  2088. '102.title': 'Node A: Geen uitgaande verbinding van berijdbare weg (langzaam)',
  2089. '102.problem.en': 'The drivable segment has no single outward turn enabled at node A',
  2090. '102.problem': 'Het berijdbare segment heeft geen enkele uitgaande verbinding aan staan bij node A',
  2091. '102.solution.en': 'Enable at least one outward turn from the segment at node A',
  2092. '102.solution': 'Zet minstens 1 uitgaande verbinding aan bij node A',
  2093. '103.title.en': 'Node B: No outward connectivity of drivable road (slow)',
  2094. '103.title': 'Node B: Geen uitgaande verbinding van berijdbare weg (langzaam)',
  2095. '103.problem.en': 'The drivable segment has no single outward turn enabled at node B',
  2096. '103.problem': 'Het berijdbare segment heeft geen enkele uitgaande verbinding aan staan bij node B',
  2097. '103.solution.en': 'Enable at least one outward turn from the segment at node B',
  2098. '103.solution': 'Zet minstens 1 uitgaande verbinding aan bij node B',
  2099. '104.title.en': 'Railroad used for comments',
  2100. '104.title': 'Spoorweg gebruikt als commentaar',
  2101. '104.problem.en': 'The Railroad segment is probably used as a map comment',
  2102. '104.problem': 'Het spoorweg segment wordt waarschijnelijk gebruikt als kaartopmerking',
  2103. '104.solution.en': 'Remove the comment as Railroads will be added to the client display',
  2104. '104.solution': 'Verwijder het commentaar, spoorwegen worden weergegeven in de client',
  2105. '107.title.en': 'Node A: No connection (slow)',
  2106. '107.title': 'Node A: Geen verbinding (langzaam)',
  2107. '107.problem.en': 'The node A of the drivable segment is within 5m from another drivable segment but not connected by a junction',
  2108. '107.problem': 'De node A van een berijdbaar segment is binnen 5 meter van een ander berijdbaar segment, maar is niet verbonden via een kruising',
  2109. '107.solution.en': 'Drag the node A to the nearby segment so that it touches or move it a bit further away',
  2110. '107.solution': 'Sleep de node A naar het dichtbij gelegen segment zodat deze verbonden worden, of sleep de node iets verder weg van het andere segment',
  2111. '108.title.en': 'Node B: No connection (slow)',
  2112. '108.title': 'Node B: Geen verbinding (langzaam)',
  2113. '108.problem.en': 'The node B of the drivable segment is within 5m from another drivable segment but not connected by a junction',
  2114. '108.problem': 'De node B van een berijdbaar segment is binnen 5 meter van een ander berijdbaar segment, maar is niet verbonden via een kruising',
  2115. '108.solution.en': 'Drag the node B to the nearby segment so that it touches or move it a bit further away',
  2116. '108.solution': 'Sleep de node B naar het dichtbij gelegen segment zodat deze verbonden worden, of sleep de node iets verder weg van het andere segment',
  2117. '109.title.en': 'Too short segment',
  2118. '109.title': 'Te kort segment',
  2119. '109.problem.en': 'The drivable non-terminal segment is less than ${n}m long so it is hard to see it on the map and it can cause routing problems',
  2120. '109.problem': 'Het berijdbaar, niet doodlopend, segment is korter dan ${n}m, dit is moeilijk te zien op de kaart en kan voor routerings problemen zorgen',
  2121. '109.solution.en': 'Increase the length, or remove the segment, or join it with one of the adjacent segments',
  2122. '109.solution': 'Verleng het segment, of verwijder het segment, of voeg het segment samen met een van de omliggende segmenten',
  2123. '112.title.en': 'Too long Ramp name',
  2124. '112.title': 'Op/afrit naam te lang',
  2125. '112.problem.en': 'The Ramp name is more than ${n} letters long',
  2126. '112.problem': 'Op/afrit naam is langer dan ${n} tekens lang',
  2127. '112.solution.en': 'Shorten the Ramp name',
  2128. '112.solution': 'Verkort de naam',
  2129. '114.enabled': false,
  2130. '114.title.en': 'Node A: Non-drivable connected to drivable (slow)',
  2131. '114.title': 'Node A: Niet-berijdbaar verbonden met berijdbaar (langzaam)',
  2132. '114.problem.en': 'The non-drivable segment makes a junction with a drivable at node A',
  2133. '114.problem': 'Het niet-berijdbare segment maakt verbinding met een berijdbaar segment bij node A',
  2134. '114.solution.en': 'Disconnect node A from all of the drivable segments',
  2135. '114.solution': 'Verbreek de vervinding van alle berijdbare segmenten bij node A',
  2136. '115.enabled': false,
  2137. '115.title.en': 'Node B: Non-drivable connected to drivable (slow)',
  2138. '115.title': 'Node B: Niet-berijdbaar verbonden met berijdbaar (langzaam)',
  2139. '115.problem.en': 'The non-drivable segment makes a junction with a drivable at node B',
  2140. '115.problem': 'Het niet-berijdbare segment maakt verbinding met een berijdbaar segment bij node B',
  2141. '115.solution.en': 'Disconnect node B from all of the drivable segments',
  2142. '115.solution': 'Verbreek de vervinding van alle berijdbare segmenten bij node B',
  2143. '116.title.en': 'Out of range elevation',
  2144. '116.title': 'Hoogte buiten bereik',
  2145. '116.problem.en': 'The segment elevation is out of range',
  2146. '116.problem': 'De elevatie van het segment is buiten bereik',
  2147. '116.solution.en': 'Correct the elevation',
  2148. '116.solution': 'Corrigeer de hoogte',
  2149. '117.title.en': 'Obsolete CONST ZN marker',
  2150. '117.title': 'CONST ZN markering verouderd',
  2151. '117.problem.en': 'The segment is marked with obsolete CONST ZN suffix',
  2152. '117.problem': 'Het segment is gemarkeerd met een verouderde CONST ZN toevoeging',
  2153. '117.solution.en': 'Change CONST ZN to (closed)',
  2154. '117.solution': 'Verander CONST ZN naar (afgesloten)',
  2155. '118.title.en': 'Node A: Overlapping segments (slow)',
  2156. '118.title': 'Node A: Overlappende segmenten (langzaam)',
  2157. '118.problem.en': 'The segment is overlapping with the adjacent segment at node A',
  2158. '118.problem': 'Het segment overlapt het aangrenzende segment bij node A',
  2159. '118.solution.en': 'Spread the segments at 2° or delete unneeded geometry point or delete the duplicate segment at node A',
  2160. '118.solution': 'Verdeel de segmenten bij 2° of verwijder overbodige geometriepunt of verwijder het duplicaat-segment bij node A',
  2161. '119.title.en': 'Node B: Overlapping segments (slow)',
  2162. '119.title': 'Node B: Overlappende segmenten (langzaam)',
  2163. '119.problem.en': 'The segment is overlapping with the adjacent segment at node B',
  2164. '119.problem': 'Het segment overlapt het aangrenzende segment bij node B',
  2165. '119.solution.en': 'Spread the segments at 2° or delete unneeded geometry point or delete the duplicate segment at node B',
  2166. '119.solution': 'Verdeel de segmenten bij 2° of verwijder overbodige geometriepunt of verwijder het duplicaat-segment bij node B',
  2167. '120.title.en': 'Node A: Too sharp turn (slow)',
  2168. '120.title': 'Node A: Te scherpe bocht (langzaam)',
  2169. '120.problem.en': 'The drivable segment has a very acute turn at node A',
  2170. '120.problem': 'Het berijdbare segment heeft een zeer scherpe bocht bij node A',
  2171. '120.solution.en': 'Disable the sharp turn at node A or spread the segments at 30°',
  2172. '120.solution': 'Sta de scherpe bocht bij node A niet toe of maak de hoek groter dan 30°',
  2173. '121.title.en': 'Node B: Too sharp turn (slow)',
  2174. '121.title': 'Node B: Te scherpe bocht (langzaam)',
  2175. '121.problem.en': 'The drivable segment has a very acute turn at node B',
  2176. '121.problem': 'Het berijdbare segment heeft een zeer scherpe bocht bij B',
  2177. '121.solution.en': 'Disable the sharp turn at node B or spread the segments at 30°',
  2178. '121.solution': 'Sta de scherpe bocht bij node B niet toe of maak de hoek groter dan 30°',
  2179. '128.title.en': 'User-defined custom check (green)',
  2180. '128.title': 'Door de gebruiker gedefinieerde aangepaste controle (groen)',
  2181. '128.problem.en': 'Some of the segment properties matched against the user-defined regular expression (see Settings→Custom)',
  2182. '128.problem': 'Sommige segmenteigenschappen komen overeen met door gebruiker gedefinieerde opgave (zie Instellingen→Aangepast)',
  2183. '128.solution.en': 'Solve the issue',
  2184. '128.solution': 'Los het probleem op',
  2185. '129.title.en': 'User-defined custom check (blue)',
  2186. '129.title': 'Door de gebruiker gedefinieerde aangepaste controle (blauw)',
  2187. '129.problem.en': 'Some of the segment properties matched against the user-defined regular expression (see Settings→Custom)',
  2188. '129.problem': 'Sommige segmenteigenschappen komen overeen met door gebruiker gedefinieerde opgave (zie Instellingen→Aangepast)',
  2189. '129.solution.en': 'Solve the issue',
  2190. '129.solution': 'Los het probleem op',
  2191. '150.enabled': true,
  2192. '150.problemLink': 'W:Netherlands/Freeway',
  2193. '150.title.en': 'No lock on Freeway',
  2194. '150.title': 'Geen lock op snelweg',
  2195. '150.problem.en': 'The Freeway segment should be locked at least to Lvl ${n}',
  2196. '150.problem': 'De snelweg moet op tenminste Lvl ${n} gelockt zijn',
  2197. '150.solution.en': 'Lock the segment',
  2198. '150.solution': 'Lock het segment',
  2199. '151.enabled': true,
  2200. '151.problemLink': 'W:Netherlands/Major_Highway',
  2201. '151.title.en': 'No lock on Major Highway',
  2202. '151.title': 'Geen lock op Major Highway',
  2203. '151.problem.en': 'The Major Highway segment should be locked at least to Lvl ${n}',
  2204. '151.problem': 'Het Major Highway segment moet gelockt zijn op Lvl ${n}',
  2205. '151.solution.en': 'Lock the segment',
  2206. '151.solution': 'Lock het segment',
  2207. '152.enabled': true,
  2208. '152.problemLink': 'W:Netherlands/Minor_Highway',
  2209. '152.title.en': 'No lock on Minor Highway',
  2210. '152.title': 'Geen lock op Minor Highway',
  2211. '152.problem.en': 'The Minor Highway segment should be locked at least to Lvl ${n}',
  2212. '152.problem': 'Het Minor Highway segment moet gelockt zijn op Lvl ${n}',
  2213. '152.solution.en': 'Lock the segment',
  2214. '152.solution': 'Lock het segment',
  2215. '153.enabled': true,
  2216. '153.problemLink': 'W:Netherlands/Ramp',
  2217. '153.title.en': 'No lock on Ramp',
  2218. '153.title': 'Geen lock op op/afrit',
  2219. '153.problem.en': 'The Ramp segment should be locked at least to Lvl ${n}',
  2220. '153.problem': 'De op/afrit zou minimaal gelockt moeten zijn op Lvl ${n}',
  2221. '153.params': {'n': 4},
  2222. '154.enabled': true,
  2223. '154.problemLink': 'W:Netherlands/Primary_Street',
  2224. '154.title.en': 'No lock on Primary Street',
  2225. '154.title': 'Geen lock op hoofdweg',
  2226. '154.problem.en': 'The Primary Street segment should be locked at least to Lvl ${n}',
  2227. '154.problem': 'De hoofdweg zou minimaal gelockt moeten zijn op Lvl ${n}',
  2228. '154.solution.en': 'Lock the segment',
  2229. '154.solution': 'Lock het segment',
  2230. '160.enabled': false,
  2231. '161.enabled': true,
  2232. '161.params': {
  2233. 'solutionEN': 'Rename the Major Highway to \'Nnum[ - Nnum]\' or \'Nnum - streetname\' or \'Nnum ri Dir1 / Dir2\'',
  2234. 'regexp': '!/^N([0-9]|[0-9][0-9]|[123][0-9][0-9])( - [NS][0-9]+)?(( ri [^\\/]+( \\/ [^\\/]+)*)|( - .+))?$/'
  2235. },
  2236. '161.problemLink': 'W:Netherlands/Major_Highway',
  2237. '161.title.en': 'Incorrect Major Highway name',
  2238. '161.title': 'Verkeerde Major Highway naam',
  2239. '161.problem.en': 'The Major Highway segment has incorrect street name',
  2240. '161.problem': 'Het Major Highway segment heeft een verkeerde straatnaam',
  2241. '161.solution.en': 'Rename the segment in accordance with the guidelines',
  2242. '161.solution': 'Hernoem het segment volgens de richtlijnen',
  2243. '162.enabled': true,
  2244. '162.params': {
  2245. 'solutionEN': 'Rename the Minor Highway to \'Nnum[ - Nnum]\' or \'Nnum - streetname\' or \'Nnum ri Dir1 / Dir2\'',
  2246. 'regexp': '!/^(N[4-9][0-9][0-9]|[SU][0-9]+)( - [NS][0-9]+)?(( ri [^\\/]+( \\/ [^\\/]+)*)|( - .+))?$/'
  2247. },
  2248. '162.problemLink': 'W:Netherlands/Minor_Highway',
  2249. '162.title.en': 'Incorrect Minor Highway name',
  2250. '162.title': 'Verkeerde Minor Highway naam',
  2251. '162.problem.en': 'The Minor Highway segment has incorrect street name',
  2252. '162.problem': 'Het Minor Highway segment heeft een verkeerde straatnaam',
  2253. '162.solution.en': 'Rename the segment in accordance with the guidelines',
  2254. '162.solution': 'Hernoem het segment volgens de richtlijnen. LET OP! Er zijn uitzonderingen voor bepaalde belangrijke regionale wegen. In geval van twijfel, eerst overleggen!',
  2255. '172.title.en': 'Unneeded spaces in street name',
  2256. '172.title': 'Onnodige spaties in de straatnaam',
  2257. '172.problem.en': 'Leading/trailing/double space in the street name',
  2258. '172.problem': 'Overbodige spaties voor/achter/in de straatnaam',
  2259. '172.solution.en': 'Remove unneeded spaces from the street name',
  2260. '172.solution': 'Verwijder de overbodige spaties in de straatnaam',
  2261. '173.title.en': 'No space before/after street abbreviation',
  2262. '173.title': 'Geen spatie voor/achter de straat afkorting',
  2263. '173.problem.en': 'No space before (\'1943r.\') or after (\'st.Jan\') an abbreviation in the street name',
  2264. '173.problem': 'Geen spatie voor (\'1943r.\') of achter (\'st.Jan\') een afkorting in de straatnaam',
  2265. '173.solution.en': 'Add a space before/after the abbreviation',
  2266. '173.solution': 'Voeg een spatie voor/achter de afkorting toe',
  2267. '175.title.en': 'Empty street name',
  2268. '175.title': 'Lege straatnaam',
  2269. '175.problem.en': 'The street name has only space characters or a dot',
  2270. '175.problem': 'De straatnaam heeft alleen spaties of punt(en)',
  2271. '175.solution.en': 'In the address properties check the \'None\' box next to the street name, click \'Apply\' OR set a proper street name',
  2272. '175.solution': 'In de adreseigenschappen vink de \'Geen\' optie aan naast de straatnaam, klik op \'Toepassen\' OF vul de juiste straatnaam in',
  2273. '190.title.en': 'Lowercase city name',
  2274. '190.title': 'Plaatsnaam in kleine letters',
  2275. '190.problem.en': 'The city name starts with a lowercase letter',
  2276. '190.problem': 'De plaatsnaam begint met een kleine letter',
  2277. '190.solution.en': 'Use this form to rename the city',
  2278. '190.solution': 'Gebruik dit formulier om de plaatsnaam te hernoemen',
  2279. '192.title.en': 'Unneeded spaces in city name',
  2280. '192.title': 'Onnodige spaties in de plaatsnaam',
  2281. '192.problem.en': 'Leading/trailing/double space in the city name',
  2282. '192.problem': 'Overbodige spaties voor/achter/in de plaatsnaam',
  2283. '192.solution.en': 'Use this form to rename the city',
  2284. '192.solution': 'Gebruik dit formulier om de plaatsnaam te hernoemen',
  2285. '193.title.en': 'No space before/after city abbreviation',
  2286. '193.title': 'Geen spatie voor/achter de afkorting in de plaatsnaam',
  2287. '193.problem.en': 'No space before (\'1943r.\') or after (\'st.Jan\') an abbreviation in the city name',
  2288. '193.problem': 'Geen spatie voor (\'1943r.\') of achter (\'st.Jan\') een afkorting in de plaatsnaam',
  2289. '193.solution.en': 'Use this form to rename the city',
  2290. '193.solution': 'Gebruik dit formulier om de plaatsnaam te hernoemen',
  2291. '200.title.en': 'Node A: Unconfirmed turn on minor road',
  2292. '200.title': 'Node A: Onbevestigde verbinding op weg',
  2293. '200.problem.en': 'The minor drivable segment has an unconfirmed (soft) turn at node A',
  2294. '200.problem': 'Het berijdbare segment heeft een onbevestigd (zachte) bocht op node A',
  2295. '200.solution.en': 'Click the turn indicated with a purple question mark to confirm it. Note: you may need to make the segment \'Two-way\' in order to see those turns',
  2296. '200.solution':
  2297. 'Klik op de aangegeven verbinding met een paarse vraagteken om het te bevestigen. Opmerking: het kan nodig zijn om het segment 2-richtingen te maken om die verbindingen te zien',
  2298. '201.title.en': 'Node A: Unconfirmed turn on primary road',
  2299. '201.title': 'Node A: Onbevestigde verbinding op hoofdweg',
  2300. '201.problem.en': 'The primary segment has an unconfirmed (soft) turn at node A',
  2301. '201.problem': 'Het hoofdweg segment heeft een onbevestigde (zachte) verbinding bij node A',
  2302. '201.solution.en': 'Click the turn indicated with a purple question mark to confirm it. Note: you may need to make the segment \'Two-way\' in order to see those turns',
  2303. '201.solution':
  2304. 'Klik op de aangegeven verbinding met een paarse vraagteken om het te bevestigen. Opmerking: het kan nodig zijn om het segment 2-richtingen te maken om die verbindingen te zien',
  2305. '202.title.en': 'BETA: No public connection for public segment (slow)',
  2306. '202.title': 'BETA: Routeerbaar segment lijkt geisoleerd (langzaam)',
  2307. '202.problem.en': 'The public segment is not connected to any other public segment',
  2308. '202.problem': 'Het segment lijkt een publiek toegankelijk segment in het midden van niet publieke segmenten te zijn',
  2309. '202.solution.en': 'Verify if the segment is meant to be a public accessible segment, or it should be changed to a private segment',
  2310. '202.solution': 'Controleer of dit segment wel publiek toegankelijk moet zijn, of van type moet wijzigen',
  2311. '214.title': 'Segment heeft waarschijnlijk verkeerde snelheidslimiet ingesteld van A naar B',
  2312. '214.problem': 'Segment heeft waarschijnlijk verkeerde snelheidslimiet ingesteld',
  2313. '214.solution': 'Controleer de snelheidslimiet van het segment en corrigeer als het nodig is',
  2314. '214.params': {'regexp': '/^5|15|25|.+0$/'},
  2315. '215.title': 'Segment heeft waarschijnlijk verkeerde snelheidslimiet ingesteld van B naar A',
  2316. '215.problem': 'Segment heeft waarschijnlijk verkeerde snelheidslimiet ingesteld',
  2317. '215.solution': 'Controleer de snelheidslimiet van het segment en corrigeer als het nodig is',
  2318. '215.params': {'regexp': '/^5|15|25|.+0$/'},
  2319. '250.title': 'Geen stad ingesteld bij plaats',
  2320. '250.problem': 'De plaats heeft geen stad ingesteld',
  2321. '250.solution': 'Stel de stad in voor de plaats',
  2322. '250.params': {
  2323. 'regexp.title': '{string} regular expression to match categories that should be excepted from this check',
  2324. 'regexp': '/^(TRANSPORTATION|NATURAL_FEATURES|BRIDGE|ISLAND|FOREST_GROVE|SEA_LAKE_POOL|RIVER_STREAM|CANAL|DAM|TUNNEL|JUNCTION_INTERCHANGE)$/'
  2325. },
  2326. '251.title': 'Geen straatnaam ingesteld bij plaats',
  2327. '251.problem': 'De plaats heeft geen straatnaam ingesteld',
  2328. '251.solution': 'Stel de straatnaam in voor de plaats',
  2329. '251.params': {
  2330. 'regexp.title': '{string} regular expression to match categories that should be excepted from this check',
  2331. 'regexp': '/^(TRANSPORTATION|NATURAL_FEATURES|BRIDGE|ISLAND|FOREST_GROVE|SEA_LAKE_POOL|RIVER_STREAM|CANAL|DAM|TUNNEL|JUNCTION_INTERCHANGE)$/'
  2332. },
  2333. '252.title': 'Automatisch aangepaste plaats',
  2334. '252.problem': 'De plaats was automatisch aangepast door Waze',
  2335. '252.solution': 'Controleer de plaats details en pas deze aan als het nodig is',
  2336. '252.params': {
  2337. 'regexp.title': '{string} regular expression to match bot names and ids',
  2338. 'regexp': '/^waze-maint|^105774162$|^waze3rdparty$|^361008095$|^WazeParking1$|^338475699$|^admin$|^-1$|^avsus$|^107668852$/i'
  2339. },
  2340. '253.title': 'Categorie \'OVERIGE\' kan beter niet gebruikt worden',
  2341. '253.problem': 'De categorie \'OVERIGE\' is niet nuttig. Gebruikers kunnen zoeken op een categorie en OVERIGE bied geen houvast',
  2342. '253.solution': 'Selecteer de juiste categorie voor de plaats',
  2343. '254.title': 'Geen in-/uitgang punt ingesteld voor plaats',
  2344. '254.problem': 'Er is geen in-/uitgang punt ingesteld voor de plaats',
  2345. '254.solution': 'Stel de juiste in-/uitgang punt in voor de plaats',
  2346. '255.title': 'Fout telefoon nummer',
  2347. '255.problem': 'De plaats heeft een fout telefoon nummer',
  2348. '255.solution':
  2349. 'In Nederland gebruiken we +31 AA BBBBBBBB, of +31 AAA BBBBBBB voor vaste lijnen en +31 6 CBBBBBBB voor mobiele nummers, of 0800 BBBBBB of 0900 BBBBBB voor 0800 en 0900 nummers. Corrigeer het telefoon nummer volgens die formaten',
  2350. '255.solutionLink': 'P:Netherlands/Places#More_Info_tab',
  2351. '255.params': {
  2352. 'regexp.title': '{string} regular expression to match a correct phone number',
  2353. 'regexp': '/^0(?:80|90)[0-9] (?:[0-9]{4}|[0-9]{7})$|^\\+31(?: 0?[0-9]{2} [0-9]{7,8}| 6 [0-9]{8})$/'
  2354. },
  2355. '256.title': 'Onjuiste URL',
  2356. '256.problem': 'De plaats heeft een onjuiste URL',
  2357. '256.solution': 'Controleer de URL. Binnen Nederland geven we de URL het format www.adress.extension en laten we de http(s):// vervallen',
  2358. '256.solutionLink': 'P:Netherlands/Places#More_Info_tab',
  2359. '256.params': {'regexp.title': '{string} regular expression to match a correct URL', 'regexp': '/^([da-z.-]+.[a-z.]{2,6}|[d.]+)([/:?=&#]{1}[da-z.-]+)*[/?]?$/i'},
  2360. '257.enabled': true,
  2361. '257.title': 'Plaats moet een gebied zijn',
  2362. '257.problem': 'Plaats is ingesteld als een punt, maar moet een gebied zijn',
  2363. '257.solution': 'Converteer de plaats naar een gebied',
  2364. '257.solutionLink': 'P:Benelux/Place_categories',
  2365. '257.params': {
  2366. 'regexp.title': '{string} regular expression to match categories that should be a area',
  2367. 'regexp':
  2368. '/^(GAS_STATION|PARKING_LOT|FERRY_PIER|BUS_STATION|AIRPORT|BRIDGE|JUNCTION_INTERCHANGE|TRAIN_STATION|CITY_HALL|SEAPORT_MARINA_HARBOR|TUNNEL|CEMETERY|COLLEGE_UNIVERSITY|COURTHOUSE|CONVENTIONS_EVENT_CENTER|FIRE_DEPARTMENT|FACTORY_INDUSTRIAL|HOSPITAL_URGENT_CARE|MILITARY|POLICE_STATION|PRISON_CORRECTIONAL_FACILITY|SCHOOL|SHOPPING_CENTER|CASINO|RACING_TRACK|STADIUM_ARENA|THEME_PARK|ZOO_AQUARIUM|SPORTS_COURT|CONSTRUCTION_SITE|BEACH|GOLF_COURSE|PARK|SKI_AREA|FOREST_GROVE|ISLAND|FURNITURE_HOME_STORE|SEA_LAKE_POOL|RIVER_STREAM|MARKET|CANAL|SWAMP_MARSH|DAM)$/'
  2369. },
  2370. '258.enabled': true,
  2371. '258.title': 'Plaats moet een punt zijn',
  2372. '258.problem': 'Plaats is ingesteld als een gebied, maar zou een punt moeten zijn',
  2373. '258.solution': 'Converteer de plaats naar een punt',
  2374. '258.solutionLink': 'P:Netherlands/Place_categories',
  2375. '258.params': {
  2376. 'regexp.title': '{string} regular expression to match categories that should be a point',
  2377. 'regexp':
  2378. '/^(GARAGE_AUTOMOTIVE_SHOP|CAR_WASH|CHARGING_STATION|SUBWAY_STATION|TAXI_STATION|REST_AREAS|GOVERNMENT|LIBRARY|ORGANIZATION_OR_ASSOCIATION|DOCTOR_CLINIC|OFFICES|POST_OFFICE|RELIGIOUS_CENTER|KINDERGARDEN|EMBASSY_CONSULATE|INFORMATION_POINT|EMERGENCY_SHELTER|TRASH_AND_RECYCLING_FACILITIES|ARTS_AND_CRAFTS|BANK_FINANCIAL|SPORTING_GOODS|BOOKSTORE|PHOTOGRAPHY|CAR_DEALERSHIP|FASHION_AND_CLOTHING|CONVENIENCE_STORE|PERSONAL_CARE|DEPARTMENT_STORE|PHARMACY|ELECTRONICS|FLOWERS|GIFTS|GYM_FITNESS|SWIMMING_POOL|HARDWARE_STORE|SUPERMARKET_GROCERY|JEWELRY|LAUNDRY_DRY_CLEAN|MUSIC_STORE|PET_STORE_VETERINARIAN_SERVICES|TOY_STORE|TRAVEL_AGENCY|ATM|CURRENCY_EXCHANGE|CAR_RENTAL|TELECOM|RESTAURANT|BAKERY|DESSERT|CAFE|FAST_FOOD|FOOD_COURT|BAR|ICE_CREAM|ART_GALLERY|CLUB|TOURIST_ATTRACTION_HISTORIC_SITE|MOVIE_THEATER|MUSEUM|MUSIC_VENUE|PERFORMING_ARTS_VENUE|GAME_CLUB|THEATER|HOTEL|HOSTEL|COTTAGE_CABIN|BED_AND_BREAKFAST|PLAYGROUND|PLAZA|PROMENADE|POOL|SCENIC_LOOKOUT_VIEWPOINT)$/'
  2379. },
  2380. '259.enabled': true,
  2381. '259.title': 'Geen lock op plaats',
  2382. '259.problem': 'Volgens de categorie zou de plaats minimaal gelockt moeten zijn op Lvl ${n}',
  2383. '259.solution': 'Lock de plaats',
  2384. '259.solutionLink': 'P:Netherlands/Place_categories',
  2385. '259.params': {
  2386. 'n.title': '{number} minimum lock level',
  2387. 'n': 2,
  2388. 'regexp.title': '{string} regular expression to match categories that should be locked to {number}',
  2389. 'regexp': '/^(PARKING_LOT|CHARGING_STATION)$/'
  2390. },
  2391. '260.enabled': true,
  2392. '260.title': 'Geen lock op plaats',
  2393. '260.problem': 'Volgens de categorie zou de plaats minimaal gelockt moeten zijn op Lvl ${n}',
  2394. '260.solution': 'Lock de plaats',
  2395. '260.solutionLink': 'P:Netherlands/Place_categories',
  2396. '260.params': {
  2397. 'n.title': '{number} minimum lock level',
  2398. 'n': 3,
  2399. 'regexp.title': '{string} regular expression to match categories that should be locked to {number}',
  2400. 'regexp': '/(GAS_STATION|AIRPORT)/'
  2401. },
  2402. '270.title': 'Geen type ingesteld voor parkeerplaats',
  2403. '270.problem': 'Het type is niet ingesteld voor de parkeerplaats',
  2404. '270.solution': 'Stel het type in op Openbaar, Beperkt of Privé',
  2405. '271.title': 'Geen kosten ingesteld voor parkeerplaats',
  2406. '271.problem': 'De kosten voor de parkeerplaats is niet ingesteld',
  2407. '271.solution': 'Stel de kosten in op Gratis, Laag, Gemiddeld of Hoog',
  2408. '272.title': 'Geen betaalmogelijkheden ingesteld voor parkeerplaats',
  2409. '272.problem': 'De betaalmogelijkheden zijn niet ingesteld voor de parkeerplaats',
  2410. '272.solution': 'Stel de juiste betaalmogelijkheden in',
  2411. '273.title': 'Geen niveau ingesteld voor parkeerplaats',
  2412. '273.problem': 'De hoogte is niet ingesteld voor de parkeerplaats',
  2413. '273.solution': 'Stel de juiste hoogte in voor de parkeerplaats',
  2414. '274.title': 'Geen in-/uitgang punt ingesteld voor parkeerplaats',
  2415. '274.problem': 'De parkeerplaats heeft geen in-/uitgang ingesteld',
  2416. '274.solution': 'Stel de juiste in-/uitgang in voor de parkeerplaats',
  2417. '275.title': 'Geen merk in naam van benzinepomp',
  2418. '275.problem': 'Het merk van de benzinepomp komt niet voor in de naam',
  2419. '275.solution': 'Voeg het merk toe in de naam van de benzinepomp',
  2420. '275.solutionLink': 'P:Netherlands/Gas_Station_Place'
  2421. },
  2422. 'MY': {
  2423. '.codeISO': 'MY',
  2424. '.country': 'Malaysia',
  2425. '69.enabled': true,
  2426. '73.enabled': true,
  2427. '150.enabled': true,
  2428. '150.params': {'n': 2},
  2429. '151.enabled': true,
  2430. '151.params': {'n': 2},
  2431. '152.enabled': true,
  2432. '152.params': {'n': 2}
  2433. },
  2434. 'MX': {
  2435. '.codeISO': 'MX',
  2436. '.country': 'Mexico',
  2437. '.updated': '2018-09-19',
  2438. '.author': 'carloslaso',
  2439. '.fallbackCode': 'ES',
  2440. '.lng': ['ES-419'],
  2441. 'city.consider': 'Considera el siguiente nombre de ciudad:',
  2442. 'city.1': 'El nombre de la ciudad es muy corto',
  2443. 'city.2': 'Poner la Abreviación con palabra completa',
  2444. 'city.3': 'Escribir el nombre corto',
  2445. 'city.4': 'Escribir el Nombre de Ciudad',
  2446. 'city.5': 'Corregir Mayúsculas / Minúsculas',
  2447. 'city.6': 'Checar el orden de las palabras',
  2448. 'city.7': 'Checar Abreviación',
  2449. 'city.8r': 'Quitar nombre de País',
  2450. 'city.9': 'Verificar nombre de País',
  2451. 'city.10r': 'Quitar palabra',
  2452. 'city.12': 'Existen nombres iguales con distinto número de Identificador de Ciudad',
  2453. 'city.13a': 'Añadir un espacio',
  2454. 'city.13r': 'Quitar un espacio',
  2455. 'city.14': 'Verificar el número',
  2456. 'props.skipped.problem': 'El segmento ha sido modificado después del 01-05-2014 y bloqueado por Ud., por lo que el Validator no lo verificó',
  2457. 'err.regexp': 'Error analizando la opción #${n}:',
  2458. 'props.disabled': 'WME Validator está desactivado',
  2459. 'props.limit.title': 'Demasiados problemas reportados',
  2460. 'props.limit.problem': 'Hay demasiados problemas reportados por lo que algunos de ellos pueden no mostrarse',
  2461. 'props.limit.solution': 'Deje de seleccionar el segmento y pare el proceso de análisis. Luego presione el botón con la \'✘\' de color rojo (Borrar Reporte)',
  2462. 'props.reports': 'Reportes',
  2463. 'report.save': 'Almacena el reporte',
  2464. 'report.list.andUp': 'y más',
  2465. 'report.list.reportOnly': 'Sólo en el reporte',
  2466. 'report.list.forCountries': 'Para Países:',
  2467. 'report.list.params': 'Parámetros pare configurar en el Paquete de localización:',
  2468. 'report.list.params.set': 'Configuración Actual para ${country}:',
  2469. 'report.list.enabled': 'Hay ${n} parámetros activados para',
  2470. 'report.list.disabled': 'Hay ${n} parámetros desactivados para',
  2471. 'report.list.total': 'Hay ${n} parámetros disponibles',
  2472. 'report.list.title': 'Complete la lista de parámetros para',
  2473. 'report.list.checks': 'Ajustes->Acerca de->Parámetros disponibles',
  2474. 'report.segments': 'Segmentos totales revisados:',
  2475. 'report.reported': 'Reportado(s)',
  2476. 'report.warnings': 'avisos',
  2477. 'report.link.forum': 'foro',
  2478. 'report.link.other': 'enlace',
  2479. 'report.title': 'Reporte del WME Validator',
  2480. 'report.source': 'Fuente del reporte:',
  2481. 'report.filter.streets': 'Calles y vías de Servicio',
  2482. 'report.filter.other': 'Otras vías transitables y no transitables',
  2483. 'report.filter.noneditable': 'segmentos no editables',
  2484. 'report.filter.excluded': 'están excluidas de este reporte',
  2485. 'report.search.updated.since': 'actualizado desde el',
  2486. 'report.search.title': 'Buscar:',
  2487. 'report.search.included': 'están incluidos en el reporte.',
  2488. 'report.beta.warning': 'Advertencia del WME Beta!',
  2489. 'report.beta.text': 'Este reporte está generado en el WME Beta con permalinks beta.',
  2490. 'report.beta.share': 'Por favor, no comparta estos permalinks!',
  2491. 'report.size.warning':
  2492. '<b>Advertencia!</b><br>Este reporte tiene ${n} caracteres por lo que <b>no cabrá</b> en un solo mensaje privado o del foro.\n<br>Por favor añada<b>más filtros</b> para reducir el tamaño del reporte.',
  2493. 'report.note.limit': '* Nota: Existieron muchas irregularidades en el reporte, por lo que algunas no están tomadas en cuenta en el resumen.',
  2494. 'report.forum': 'Para motivar mayor desarrollo, por favor deje su comentario en el',
  2495. 'report.forum.link': 'Hilo del foro de Waze.',
  2496. 'report.thanks': 'Gracias por usar el WME Validator!',
  2497. 'msg.limit.segments': 'Existen demasiados segmentos.\n\nPulse\'Show report\'para revisar el reporte, luego\n',
  2498. 'msg.limit.segments.continue': 'pulse \'▶\' (Play) para continuar.',
  2499. 'msg.limit.segments.clear': 'pulse \'✘\' (Clear) para borrar el reporte.',
  2500. 'msg.pan.text': 'Mueva el mapa para validarlo',
  2501. 'msg.zoomout.text': 'Aleje el zoom para comenzar el WME Validator',
  2502. 'msg.click.text': 'Pulse \'▶\' (Play) para validar el área visible del mapa',
  2503. 'msg.autopaused': 'paro automático',
  2504. 'msg.autopaused.text': '¡Paro automático! Pulse \'▶\' (Play) para continuar.',
  2505. 'msg.finished.text': 'Pulse <b>\'Show report\'</b> para revisar los problemas en el mapa',
  2506. 'msg.finished.tip': 'Pulse \'✉\' (Share) button para hacer un reporte en el\nforo o en un mensaje privado',
  2507. 'msg.noissues.tip': 'Trata de quitar algunas opciones de filtrado o inicia el WME Validator sobre otra área del mapa',
  2508. 'msg.scanning.text': '¡Analizando! Terminando en ~ ${n} min',
  2509. 'msg.scanning.text.soon': '¡Analizando! Terminando en un minuto!',
  2510. 'msg.scanning.tip': 'Pulse el botón de \'Pause\' para pausar o \'■\' (Stop) para detener el análisis',
  2511. 'msg.starting.text': '¡Comenzando! Las capas se han deshabilitado para analizar más rápido!',
  2512. 'msg.starting.tip': 'Utilice el botón\'Pause\' para pausar o el botón \'■\' para parar',
  2513. 'msg.paused.text': '¡En Pausa! pulse el botón de \'▶\' (Play) para continuar.',
  2514. 'msg.paused.tip': 'Para ver el reporte pulse el botón de \'Show report\' (si está disponible) ',
  2515. 'msg.continuing.tip': 'El WME Validator continuará desde la localización donde fue pausado',
  2516. 'msg.settings.text': 'Pulse <b>\'Back\'</b> para regresar a la vista principal',
  2517. 'msg.settings.tip': '¡Pulse el botón de \'Reset defaults\' para resetear todos los ajustes en un click!',
  2518. 'msg.reset.text': 'Todas las opciones y ajustes han sido devueltos a su estado original',
  2519. 'msg.reset.tip': 'Pulse el botón de \'Back\' para regresar a la vista principal',
  2520. 'msg.textarea.pack':
  2521. 'Este es un Script alojado enGreasemonkey/Tampermonkey. Puedes copiar y pegar el texto en un <b>nuevo archivo .user.js</b><br>o <b>pegarlo directamente</b> en Greasemonkey/Tampermonkey',
  2522. 'msg.textarea': 'Por favor copia el texto de abajo y pegalo en el foro o en un mensaje privado',
  2523. 'noaccess.text':
  2524. '<b>Lo sentimos,</b><br>No puedes usar el WME Validator aquí.<br>Por favor revisa <a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488\'>este hilo en el foro</a><br>para mayor información.',
  2525. 'noaccess.tip': '¡Por favor revisa el hilo del foro para mayor información',
  2526. 'tab.switch.tip.on': 'Para encender el resaltado pulsa (Alt+V)',
  2527. 'tab.switch.tip.off': 'Para apagar el resaltado pulsa (Alt+V)',
  2528. 'tab.filter.tip': 'Opciones para filtrar el reporte y los segmentos resaltados',
  2529. 'tab.search.text': 'búsqueda',
  2530. 'tab.search.tip': 'Opciones avanzadas de filtrado para inculír segmentos específicos solamente',
  2531. 'tab.help.tip': '¿Necesita ayuda?',
  2532. 'filter.noneditables.text': 'Excluir los segmentos <b>no editables</b>',
  2533. 'filter.noneditables.tip': 'No reportar los segmentos bloqueados o\nsegmentos fuera de mis áreas de edción',
  2534. 'filter.duplicates.text': 'No incluir segmentos <b>duplicados</b>',
  2535. 'filter.duplicates.tip': 'No mostrar el mismo segmento en distintas\npartes del reporte\n* Nota: Esta opción NO afecta el resaltado',
  2536. 'filter.streets.text': 'No incluir <b>Calles y Vías de Servicio</b>',
  2537. 'filter.other.text': 'No incluir <b>Otras vías conducibles y no conducibles</b>',
  2538. 'filter.other.tip': 'No reportar Vías de Tierra, Vías de estacionamiento, Vías privadas ni \nsegmentos no conducibles',
  2539. 'filter.notes.text': 'No incluir <b>notas</b>',
  2540. 'filter.notes.tip': 'Reportar solamente advertencias y errores',
  2541. 'search.youredits.text': 'Incluir <b>sólo mis ediciones</b>',
  2542. 'search.youredits.tip': 'Incluir sólo los segmentos editados por mí',
  2543. 'search.updatedby.text': '<b>Actualizados por*:</b>',
  2544. 'search.updatedby.tip':
  2545. 'Incluir solamente los segmentos actualizados por el editor especificado\n* Nota: Esta opción está disponible sólo para Country Managers\nEste campo soporta:\n - Lists: Mías, de otro editor\n - wildcards: pal*bra\n - negation: !me *\n* Nota: puedes usar \'me\' para encontrar coincidencias de ti mismo',
  2546. 'search.updatedsince.tip': 'Incluir segmentos editados desde el día epecificado\nFormato de fecha de Firefox: AAAA-MM-DD',
  2547. 'search.city.tip': 'Incluir sólo segmentos con el Nombre de ciudad especificado\nEste campo soporta:\n - lists: Paris, Meudon\n - wildcards: Greater * Area\n - negation: !Paris, *',
  2548. 'search.checks.tip':
  2549. 'Incluir sólo segmentos reportados como se especifica\nEste campo puede buscar:\n - severities: errores\n - check names: Nuevo Camino\n - check IDs: 200\nEste campo soporta:\n - listas: 36, 37\n - comodines: *rotonda*\n - negación: !unconfirmed*, *',
  2550. 'search.checks.example': 'Ejempo: revertir*',
  2551. 'help.text':
  2552. '<b>Tópicos de Ayuda:</b><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=666476#p666476">F.A.Q.</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488">Haz tu pregunta en el foro</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=661300#p661185">Cómo ajustar Validator para tu País</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=663286#p663286">Acerca de"Puede estar incorrecto el Nombre de Ciudad"</a>',
  2553. 'help.tip': 'Abrir en una nueva pestaña en el navegador',
  2554. 'button.scan.tip': 'Comenzar escaneando el área actual del mapa\n* Nota: Esto puede tomar algunos minutos',
  2555. 'button.scan.tip.NA': 'Aleje para comenzar a escanear el área actual del mapa',
  2556. 'button.stop.tip': 'Parar escaneo y regresar a la posición de inicio',
  2557. 'button.clear.tip': 'Borrar reporte y caché de segmento',
  2558. 'button.clear.tip.red':
  2559. 'Existen demasiados segmentos reportados:\n 1. Pulse \'Muestre reporte\' para generar el reporte.\n 2. Pulse este boton para borrar el reporte y comenzar de nuevo.',
  2560. 'button.report.text': 'Muestra reporte',
  2561. 'button.report.tip': 'Aplicar el filtro y generar un reporte en HTML en una nueva pestaña',
  2562. 'button.BBreport.tip': 'Compartir el reporte en el Foro de Waze o en un Mensaje Privado',
  2563. 'tab.custom.text': 'Ajustes predefinidos',
  2564. 'tab.custom.tip': 'Ajustes predefinidos por el usuario',
  2565. 'tab.scanner.tip': 'Ajustes de escaneado del mapa',
  2566. 'tab.about.tip': 'Acerca del WME Validator',
  2567. 'scanner.sounds.NA': 'Su navegador no soporta AudioContext',
  2568. 'scanner.highlight.text': 'Resaltar problemas en el mapa',
  2569. 'scanner.highlight.tip': 'Resaltar problemas reportados en el mapa',
  2570. 'scanner.slow.text': 'Habilitar"chequeos" lentos',
  2571. 'scanner.slow.tip': 'Habilita análisis profundo del mapa\n* Nota: esta opción puede hacer lento el proceso de escaneo',
  2572. 'scanner.ext.text': 'Reportar resaltados externos',
  2573. 'scanner.ext.tip': 'Reportar segmentos resaltados por WME Toolbox o WME Color Highlights',
  2574. 'advanced.atbottom.text': 'Hasta abajo',
  2575. 'advanced.atbottom.tip': 'Poner WME Validator en la parte de abajo de la página',
  2576. 'custom.template.text': '<a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488&p=749456#p749456\'>Planilla Propia</a>',
  2577. 'custom.template.tip':
  2578. 'Checar con planilla expandible definida por el usuario.\n\nPuedes usar las siguientes variables de expansión:\nDirección:\n${country}, ${state}, ${city}, ${street},\n${altCity[index or delimeter]}, ${altStreet[index or delimeter]}\nPropiedades de segmentos:\n${type}, ${typeRank}, ${toll}, ${direction}, ${elevation}, ${lock},\n${length}, ${ID}\nAyudantes:\n${drivable}, ${roundabout}, ${hasHNs},\n${Uturn}, ${deadEnd}, ${softTurns},\n${deadEndA}, ${partialA},\n${deadEndB}, ${partialB}\nConnectivity:\n${segmentsA}, ${inA}, ${outA}, ${UturnA},\n${segmentsB}, ${inB}, ${outB}, ${UturnB}',
  2579. 'about.tip': 'Abrir liga en una pestaña nueva',
  2580. 'button.reset.text': 'Regresar a los ajustes originales',
  2581. 'button.reset.tip': 'Revertir las opciones de filtrado y ajustes a los originales',
  2582. 'button.list.text': 'Revisiones disponibles...',
  2583. 'button.list.tip': 'Mostrar una lista de revisiones disponibles en WME Validator',
  2584. 'button.wizard.tip': 'Crear un paquete de localización',
  2585. 'button.back.text': 'Regresar',
  2586. 'button.back.tip': 'Cerrar ajustes y regresar a la vista principal',
  2587. '1.problem': 'Los números de salida de los segmentos de la rotonda no son consecutivos',
  2588. '2.problem': 'El segmento tiene nodos geométricos innecesarios',
  2589. '2.solution': 'Simplificar la geometría del segmento pasando el puntero encima del segmento y presionando la letra "d"',
  2590. '3.problem': 'El segmento está resaltado por el WME Toolbox. No representa un problema',
  2591. '4.problem': 'El segmento está resaltado por el WME Toolbox. No representa un problema',
  2592. '5.problem': 'El segmento está resaltado por el WME Toolbox. No representa un problema',
  2593. '6.problem': 'El segmento está resaltado por el WME Toolbox. No representa un problema',
  2594. '7.problem': 'El segmento está resaltado por el WME Toolbox. No representa un problema',
  2595. '8.title': 'WME Toolbox: Numeración de Casas',
  2596. '8.problem': 'El segmento está resaltado por el WME Toolbox. No representa un problema',
  2597. '9.problem': 'El segmento está resaltado por el WME Toolbox. No representa un problema',
  2598. '13.title': 'WME Color Highlights: Bloqueo de un editor',
  2599. '13.problem': 'El segmento está resaltado por el WME Color Highlights. No representa un problema',
  2600. '14.title': 'WME Color Highlights: Vía de peaje / Vía de un sólo sentido',
  2601. '14.problem': 'El segmento está resaltado por el WME Color Highlights. No representa un problema',
  2602. '15.title': 'WME Color Highlights: Recientemente editado',
  2603. '15.problem': 'El segmento está resaltado por elWME Color Highlights. No representa un problema',
  2604. '16.title': 'WME Color Highlights: Rango de v',
  2605. '16.problem': 'El segmento está resaltado por el WME Color Highlights. No representa un problema',
  2606. '17.title': 'WME Color Highlights: Sin Ciudad',
  2607. '17.problem': 'El segmento está resaltado por el WME Color Highlights. No representa un problema',
  2608. '18.title': 'WME Color Highlights: Restricción de tiempo / Tipo de camino resaltado',
  2609. '18.problem': 'El segmento está resaltado por el WME Color Highlights. No representa un problema',
  2610. '19.title': 'WME Color Highlights: Sin nombre',
  2611. '19.problem': 'El segmento está resaltado por el WME Color Highlights. No representa un problema',
  2612. '20.title': 'WME Color Highlights: Filtrar por Ciudad',
  2613. '20.problem': 'El segmento está resaltado por el WME Color Highlights. No representa un problema',
  2614. '21.title': 'WME Color Highlights: Filtrar por nombre alterno de Ciudad (alt. city)',
  2615. '21.problem': 'El segmento está resaltado por el WME Color Highlights. No representa un problema',
  2616. '22.title': 'WME Color Highlights: Filtrar por editor',
  2617. '22.problem': 'El segmento está resaltado por el WME Color Highlights. No representa un problema',
  2618. '23.title': 'Camino sin confirmar',
  2619. '23.problem': 'Cada segmento debe contener como mínimo Información de Estado y País',
  2620. '23.solution': 'Actualice el camino actualizando sus datos',
  2621. '24.enabled': false,
  2622. '24.title': 'Puede contener un nombre de ciudad incorrecto (sólo disponible en el reporte)',
  2623. '24.problem': 'El segmento puede contener el nombre de ciudad incorrecto',
  2624. '24.solution': 'Considere el nombre de ciudad Sugerido y use esta forma para renombrar la ciudad',
  2625. '25.title': 'Sentido desconocido en un camino conducible',
  2626. '25.problem': 'El sentido desconocido del segmento no prevendrá el ruteo por el mismo',
  2627. '25.solution': 'Coloque la dirección del segmento',
  2628. '28.title': 'Nombre de calle en una Rampa de doble sentido',
  2629. '28.problem': 'Si una rampa no tiene nombre, se aplicará el nombre del siguiente camino que lo tenga',
  2630. '28.solution': 'En las propiedades de dirección, active la casilla de \'Ninguno\' seguida del nombre de calle y entonces pulse \'Aplicar\'',
  2631. '29.problem': 'En Waze no se nombran los segmentos de las rotondas',
  2632. '29.solution':
  2633. 'En las propiedades de dirección, seleccione la opción \'Ninguno\' en seguida del nombre de calle, pulse \'Aplicar\' y entonces añada un \'lugar\' de tipo \'distribuidor vial\' y escriba el nombre de la glorieta',
  2634. '34.title': 'Vaciar el nombre alterno de calle',
  2635. '34.problem': 'El nombre alterno de calle está vacío',
  2636. '34.solution': 'Quitar los nombres alternos de calle vacíos',
  2637. '35.title': 'Camino conducible no terminado',
  2638. '35.problem': 'Waze no otorgará rutas por segmentos sin terminar',
  2639. '35.solution': 'Mueva un poco el segmento para que el nodo se añada de manera automática',
  2640. '38.title': 'Restricción de segmento vencida (no grave)',
  2641. '38.problem': 'El segmento tiene una restricción que ya venció',
  2642. '38.solution': 'Pulsar \'Editar restricciones\' y borrar las restricciones vencidas',
  2643. '39.title': 'Restricción de giro vencida (no grave)',
  2644. '39.problem': 'El segmento tiene un giro con restricció vencida',
  2645. '39.solution': 'Pulsar la figura del reloj en seguida de la flecha amarilla y borre las restricciones vencidas',
  2646. '41.enabled': false,
  2647. '41.title': 'Conectividad reversible en un segmento conducible',
  2648. '41.problem': 'Existe un giro que va contra la dirección del segmento en el nodo A',
  2649. '41.solution': 'Haga el segmento de \'doble sentido\', restrinja todos los giros en el nodo A y luego haga el segmento de \'Un sólo sentido (A-B) de nuevo',
  2650. '42.enabled': false,
  2651. '42.title': 'Nodo B: Conectividad reversible en segmento conducible',
  2652. '42.problem': 'Existe un giro que va en contra de la dirección del segmento en el nodo B',
  2653. '42.solution': 'Haga el segmento de \'doble sentido\', restrinja todos los giros en el nodo A y luego haga el segmento de \'Un sólo sentido (A-B) de nuevo',
  2654. '43.problem': 'El segmento está conectado en sí mismo',
  2655. '43.solution': 'Divida el segmento en tres',
  2656. '46.title': 'Nodo A: No existe conectividad hacia adentro del camino conducible',
  2657. '46.problem': 'El segmento conducible no privado no tiene ningún giro permitido en el nodo A',
  2658. '46.solution': 'Seleccione un segmento adyacente y active por lo menos un giro al segmento en el nodo A',
  2659. '47.title': 'Nodo B: No existe conectividad hacia adentro del camino conducible (no grave) ',
  2660. '47.problem': 'El segmento conducible no privado no tiene ningún giro permitido en el nodo B',
  2661. '47.solution': 'Seleccione un segmento adyacente y active por lo menos un giro al segmento en el nodo B',
  2662. '48.title': 'Segmento de glorieta de doble sentido',
  2663. '48.problem': 'El segmento de la glorieta es bidireccional',
  2664. '48.solution': 'Rehacer la glorieta',
  2665. '78.title': 'El segmento que creó comienza y termina en un mismo segmento',
  2666. '78.problem': 'Los dos segmentos comparten los mismos puntos finales',
  2667. '78.solution': 'Parta el segmento. Puede también remover uno de ellos si son idénticos',
  2668. '87.title': 'Múltiples segmentos de salida de la glorieta en el nodo A',
  2669. '87.problem': 'El nodo A en la glorieta tiene más de un segmento de salida conectado',
  2670. '87.solution': 'Re hacer la glorieta',
  2671. '99.title': 'Vuelta en U habilitada en segmento de entrada a la glorieta (no grave)',
  2672. '99.problem': 'El segmento de entrada a la glorieta tiene una vuelta en U habilitada',
  2673. '99.solution': 'Deshabilite la vuelta en U',
  2674. '101.title': 'Camino Cerrado (Sólo disponible en el reporte)',
  2675. '101.problem': 'El segmento está marcado como Cerrado',
  2676. '101.solution': 'Si la construcción ya terminó, reactive la conectividad del segmento y remueva el sufijo',
  2677. '102.title': 'No existe conectividad hacia afuera del segmento en el nodo A (no grave)',
  2678. '102.problem': 'El segmento no tiene habilitado ningún giro hacia afuera en el nodo A',
  2679. '102.solution': 'Permita por lo menos un giro hacia el segmento en el nodo A',
  2680. '103.title': 'No existe conectividad hacia afuera en el nodo B (no grave))',
  2681. '103.problem': 'El segmento no tiene habilitado ningún giro hacia afuera en el nodo B',
  2682. '103.solution': 'Permita por lo menos un giro desde el segmento en el nodo B',
  2683. '104.enabled': false,
  2684. '104.title': 'Segmento tipo ferrocarril usado para comentarios',
  2685. '104.problem': 'El segmentotipo ferrocarril etá siendo usado probablemente para comentarios del mapa',
  2686. '104.solution': 'Remover los comentarios ya que las vías férreas se verán en la aplicación',
  2687. '107.title': 'No hay conexion del Nodo A (no grave)',
  2688. '107.problem': 'El Nodo A del segmento está a dentro del rango de 5m de otro segmento pero no está conectado por una intersección',
  2689. '107.solution': 'Arrastre el nodo A al segmento más cercano de modo que se junten, o muévalo un poco más lejos.',
  2690. '108.title': 'No hay conexión en el nodo B (no grave)',
  2691. '108.problem': 'El nodo B del segmento está dentro del rango de 5m de otro segmento pero no está conectado por una intersección',
  2692. '108.solution': 'Arrastre el nodo B al segmento más cercano de modo que lo toque o muévalo un poco más lejos',
  2693. '109.problem': 'El segmento es de menos de ${n}m de largo, por lo que es difícil verlo en el mapa y puede causar problemas de ruteo',
  2694. '109.solution': 'Aumente el largo del segmento, remuévalo o llévelo al nodo del segmento adyacente',
  2695. '112.title': 'Nombre de rampa demasiado largo',
  2696. '112.problem': 'El nombre de la rampa tiene más de ${n} letras',
  2697. '112.solution': 'Acorte el nombre de la rampa',
  2698. '116.solution': 'Corrija la elevación',
  2699. '117.title': 'Marcador de Zona de Construcción obsoleto',
  2700. '117.problem': 'El segmento está marcado con un sufijo de Zona de Construcción obsoleto',
  2701. '117.solution': 'Cambie el CONST ZN a (cerrado)',
  2702. '118.title': 'En el Nodo A: Segmentos encimados (no grave)',
  2703. '118.problem': 'El segmento está encimado con el segmento adyacente en el nodo A',
  2704. '118.solution': 'Abra los segmentos a 2°, borre el punto geométrico o el segmento duplicado en el nodo A',
  2705. '119.title': 'Nodo B: Segmentos encimados',
  2706. '119.problem': 'El segmento está encimado con el segmento adyacente en el nodoB',
  2707. '119.solution': 'Abra los segmentos a 2°, borre el punto geométrico o el segmento duplicado en el nodo B',
  2708. '120.title': 'Nodo A: Giro demasiado cerrado (no grave)',
  2709. '120.problem': 'El segmento conducible tiene un ángulo de giro muy cerrado en el nodo A',
  2710. '120.solution': 'Prohíba la vuelta cerrada en el nodo A o abra los segmentos a 30°',
  2711. '121.title': 'Nodo B: Giro demasiado cerrado (no grave)',
  2712. '121.problem': 'El segmento conducible tiene un ángulo de giro muy cerrado en el nodo B',
  2713. '121.solution': 'Prohíba la vuelta cerrada en el nodo B o abra los segmentos a 30°',
  2714. '128.title': 'Revisión definida por el usuario (verde)',
  2715. '128.problem': 'Algunas propiedades del segmento van en contra de la expresión regular definida por el usuario (ver Settings→Custom)',
  2716. '128.solution': 'Resuelva el problema',
  2717. '129.title': 'Revisión definida por el usuario (azúl)',
  2718. '129.problem': 'Algunas propiedades del segmento van en contra de la expresión regular definida por el usuario (ver Settings→Custom)',
  2719. '129.solution': 'Resuelva el problema',
  2720. '150.enabled': false,
  2721. '151.enabled': false,
  2722. '152.enabled': false,
  2723. '172.title': 'Espacios innecesarios en el nombre de calle',
  2724. '172.solution': 'Eliminar espacios innecesarios del nombre de la calle',
  2725. '173.title': 'No hay espacio antes/después de la abreviatura en el nombre de calle',
  2726. '173.problem': 'No hay espacio antes de (\'1943r.\') o después (\'Sn.Juan\') de una abreviatura en el nombre de calle',
  2727. '173.solution': 'Añadir un espacio antes/después de la abreviatura',
  2728. '175.title': 'Nombre de calle vacío',
  2729. '175.problem': 'El nombre de la calle tiene solamente espacios o un punto',
  2730. '175.solution': 'En las propiedades de la dirección, elija la casilla \'Ninguno\' enseguida de \'nombre\' o escriba el nombre de la Calle. Presione \'Aplicar\'',
  2731. '190.enabled': false,
  2732. '190.title': 'Nombre de ciudad en minúsculas',
  2733. '190.solution': 'Use esta forma para renombrar la ciudad',
  2734. '192.enabled': false,
  2735. '192.title': 'Espacios innecesarios en el nombre de ciudad',
  2736. '192.solution': 'Use esta forma para renombrar la ciudad',
  2737. '193.title': 'No hay espacios antes/después de la abreviatura de la Ciudad',
  2738. '193.problem': 'No hay espacio antes (\'1943r.\') o después (\'Sn.Juan\') de una abreviatura en el nombre de ciudad',
  2739. '193.solution': 'Use esta forma para renombrar la ciudad',
  2740. '200.enabled': false,
  2741. '200.title': 'En el nodo A: Giro no confirmado en un camino menor',
  2742. '200.problem': 'El segmento del camino menor tiene un giro no confirmado (suave) en el nodo A',
  2743. '200.solution':
  2744. 'Pulse en la flecha de giro indicada con un signo de interrogación morado para confirmarla. Nota: Puede ser necesario hacer el segmento de doble sentido para poder ver dichos giros',
  2745. '201.enabled': false,
  2746. '201.title': 'En el nodo A: Giro no confirmado en una vía primaria',
  2747. '201.problem': 'El segmento de vía primaria tiene un giro no confirmado (suave) en el nodo A',
  2748. '201.solution':
  2749. 'Pulse en la flecha de giro indicada con un signo de interrogación morado para confirmarla. Nota: Puede ser necesario hacer el segmento de doble sentido para poder ver dichos giros',
  2750. '202.enabled': false
  2751. },
  2752. 'LU': {'.codeISO': 'LU', '.country': 'Luxembourg', '.fallbackCode': 'BE', '160.enabled': false},
  2753. 'IT': {
  2754. '.codeISO': 'IT',
  2755. '.country': 'Italy',
  2756. '57.enabled': true,
  2757. '59.enabled': true,
  2758. '90.enabled': true,
  2759. '95.enabled': true,
  2760. '150.enabled': true,
  2761. '151.enabled': true,
  2762. '151.params': {'n': 5},
  2763. '152.enabled': true,
  2764. '152.params': {'n': 4},
  2765. '163.enabled': true,
  2766. '163.params': {'titleEN': 'Ramp name starts with an \'A\'', 'problemEN': 'The Ramp name starts with an \'A\'', 'solutionEN': 'Replace \'A\' with \'Dir.\'', 'regexp': '/^A /i'},
  2767. '170.enabled': true
  2768. },
  2769. 'IL':
  2770. {
  2771. '.codeISO': 'IL',
  2772. '.country': 'Israel',
  2773. '.author': 'gad_m',
  2774. '.updated': '2014-06-30',
  2775. '.lng': 'HE',
  2776. '.dir': 'rtl',
  2777. 'city.consider': 'בדוק את שם העיר:',
  2778. 'city.1': 'שם העיר קצר מדי',
  2779. 'city.2': 'אל תשתמש בשם מקוצר',
  2780. 'city.3': 'השלם את השם הקצר',
  2781. 'city.4': 'השלם את שם העיר',
  2782. 'city.5': 'תקן אותיות רישיות',
  2783. 'city.6': 'בדוק סדר המילה',
  2784. 'city.7': 'בדוק סימני קיצור',
  2785. 'city.8a': 'הוסף מדינה',
  2786. 'city.8r': 'מחק מדינה',
  2787. 'city.9': 'בדוק מדינה',
  2788. 'city.10a': 'הוסף מילה',
  2789. 'city.10r': 'הורד מילה',
  2790. 'city.11': 'הוסף קוד מדינה',
  2791. 'city.12': 'שמות זהים, אבל קוד זיהוי עיר שונה',
  2792. 'city.13a': 'הוסף רווח',
  2793. 'city.13r': 'הורד רווח',
  2794. 'city.14': 'בדוק את המספר',
  2795. 'props.skipped.title': 'המקטע לא נבדק',
  2796. 'props.skipped.problem': 'הקטע נערך לאחר 2014/5/1 ונעול לעריכה עבורך, אז Validator לא יכול לבדוק אותו',
  2797. 'err.regexp': 'אירעה שגיאה עבור בדיקה #${n}:',
  2798. 'props.disabled': 'התוסף אינו מופעל',
  2799. 'props.limit.title': 'יותר מדי בעיות דווחו',
  2800. 'props.limit.problem': 'ישנם בעיות רבות מדי שדווחו, כך שחלק מהם אולי לא יראו',
  2801. 'props.limit.solution': 'בטל את הבחירה של המקטע והפסק את תהליך סריקה. לאחר מכן לחץ על הכפתור האדום \'✘\' (מחק הדו"ח)',
  2802. 'props.reports': 'בעיות שנמצאו ע"י ',
  2803. 'props.noneditable': 'אינך יכול לערוך מקטע זה',
  2804. 'report.save': 'שמור את הדו"ח',
  2805. 'report.list.andUp': 'ולמעלה',
  2806. 'report.list.severity': 'חומרה',
  2807. 'report.list.reportOnly': 'רק בדיווח',
  2808. 'report.list.forEditors': 'לרמת עורכים',
  2809. 'report.list.forCountries': 'לארצות',
  2810. 'report.list.forStates': 'למדינות',
  2811. 'report.list.forCities': 'לערים',
  2812. 'report.list.params': 'משתנים להגדרת חבילת לוקליזציה',
  2813. 'report.list.params.set': 'תצורה נוכחית עבור ${country}:',
  2814. 'report.list.enabled': '${n} בדיקות מאופשרות עבור',
  2815. 'report.list.disabled': '${n} בדיקות כבויות עבור',
  2816. 'report.list.total': 'יש ${n} בדיקות זמינות',
  2817. 'report.list.title': 'רשימה מלאה של בדיקות עבור',
  2818. 'report.list.see': 'ראה',
  2819. 'report.list.checks': 'הגדרות->אודות->בדיקות זמינות',
  2820. 'report.list.fallback': 'כללי עתודה של תמיכת הלוקליזציה:',
  2821. 'report.and': 'וגם',
  2822. 'report.segments': 'סה"כ מקטעים שנבדקו:',
  2823. 'report.customs': 'בדיקות מותאמות אישית תואמים (#1/#2):',
  2824. 'report.reported': 'דווחו',
  2825. 'report.errors': 'טעויות',
  2826. 'report.warnings': 'אזהרות',
  2827. 'report.notes': 'הערות',
  2828. 'report.contents': 'תוכן:',
  2829. 'report.summary': 'סיכום',
  2830. 'report.title': 'דו"ח WME Validator',
  2831. 'report.share': 'לשתף',
  2832. 'report.generated.by': 'נוצר ע"י',
  2833. 'report.generated.on': 'ב',
  2834. 'report.source': 'מקור הדו"ח:',
  2835. 'report.filter.duplicate': 'מקטעים כפולים',
  2836. 'report.filter.streets': 'רחובות וכבישי שרות',
  2837. 'report.filter.other': 'אחרים - מותרים ואסורים לנהיגה',
  2838. 'report.filter.noneditable': 'מקטעים שלא ניתנים לעריכה',
  2839. 'report.filter.notes': 'הערות',
  2840. 'report.filter.title': 'מסננים:',
  2841. 'report.filter.excluded': 'אינם נכללים בדו"ח זה.',
  2842. 'report.search.updated.by': 'עודכן ע"י',
  2843. 'report.search.updated.since': 'עודכן ב',
  2844. 'report.search.city': 'מ',
  2845. 'report.search.reported': 'דווח כ',
  2846. 'report.search.title': 'חפש:',
  2847. 'report.search.only': 'מקטעים בלבד',
  2848. 'report.search.included': 'נכללים בדו"ח זה.',
  2849. 'report.beta.warning': 'אזהרות עורך בטא:',
  2850. 'report.beta.text': 'דו"ח זה חולל ע"י עורך גירסת בטא וכולל קישורים קבועים לבטא.',
  2851. 'report.beta.share': 'אנא אל תשתף את הפרמלינקים האלה!',
  2852. 'report.size.warning': '<b>אזהרה!</b><br>אורך הדו"ח הוא ${n} תווים<b>הוא לא מתאים להכנס</b> להודעה פרטית אחת בפורום\n<br>אנא הוסף<b>מסננים נוספים</b> על מנת להקטין את גודל הדו"ח',
  2853. 'report.note.limit': '* הערה: היו בעיות רבות מדי שדווחו, כך שחלק מהם אינם נספר בסיכום.',
  2854. 'report.forum': 'לעידוד פיתוח נוסף, אנא השאר משוב ב',
  2855. 'report.thanks': 'תודה שהשתמשת ב WME Validator!',
  2856. 'msg.limit.segments': 'יש יותר מדי מקטעים.\n\nלחץ \'צפה בדו"ח\' בכדי לצפות בדו"ח, אח"כ לחץ \'▶\' כדי להמשיך.',
  2857. 'msg.limit.segments.continue': 'לחץ \'▶\' (בצע) כדי להמשיך',
  2858. 'msg.limit.segments.clear': 'לחץ \'✘\' (מחק) כדי למחוק את הדו"ח.',
  2859. 'msg.pan.text': 'הזז מעט את המפה כדי להתחיל בבדיקה',
  2860. 'msg.zoomout.text': 'הקטן את התצוגה כדי להתחיל את יצירת הדו"ח ע"י WME Validator',
  2861. 'msg.click.text': 'לניתוח שטח המפה הגלוי לחץ על \'▶\' ',
  2862. 'msg.autopaused': 'עצירה אוטומטית',
  2863. 'msg.autopaused.text': 'עצירה אוטומטית! לחץ על \'▶\' כדי להמשיך',
  2864. 'msg.autopaused.tip': 'כלי זה עוצר אוטומטית כשמזיזים את המפה או כשמשנים את גודל החלון',
  2865. 'msg.finished.text': 'לחץ <b>\'צפה בדו"ח\'</b> כדי לצפות בבעיות במפה',
  2866. 'msg.finished.tip': 'לחץ על \'✉\' (שתף) כדי לדווח בפורום\nאו כהודעה פרטית',
  2867. 'msg.noissues.text': 'הסריקה הסתיימה! לא נמצאו בעיות!',
  2868. 'msg.noissues.tip': 'נסה לכבות חלק מהמסננים או התחל מחדש את הסריקה',
  2869. 'msg.scanning.text': 'סורק! יסיים בעוד כ ${n} דקות לערך',
  2870. 'msg.scanning.text.soon': 'סורק! יסיים בעוד כדקה!',
  2871. 'msg.scanning.tip': 'לחץ על \'השהה\' כדי לעצור או על \'■\' כדי לעצור',
  2872. 'msg.starting.text': 'מכין את הדו"ח! השכבות מוסתרות כדי לסרוק מהר יותר',
  2873. 'msg.starting.tip': 'לחץ על \'השהה\' או על \'■\' כדי לעצור',
  2874. 'msg.paused.text': 'בהשהייה! לחץ \'▶\' כדי להמשיך',
  2875. 'msg.paused.tip': 'לצפיה בדו"ח לחץ על \'צפה בדו"ח\' (אם זמין)',
  2876. 'msg.continuing.text': 'ממשיך!',
  2877. 'msg.continuing.tip': 'WME Validator ימשיך מהמקום בו הפסיק',
  2878. 'msg.settings.text': 'לחץ <b>\'חזרה\'</b> לחזרה למסך הראשי',
  2879. 'msg.settings.tip': 'לחץ \'אפס לברירת מחדל\' כדי לאפס את כל ההגדרות',
  2880. 'msg.reset.text': 'כל אפשרויות הסינון וההגדרות אופסו לברירת המחדל שלהם',
  2881. 'msg.reset.tip': 'לחץ על \'חזרה\' כדי לחזור לתצוגה הראשית',
  2882. 'msg.textarea.pack': 'אנא העתק את הטקסט שלהלן ולאחר מכן הדבק אותו בקובץ <b>.user.js</b> חדש',
  2883. 'msg.textarea': 'אנא העתק את הטקסט שלהלן ולאחר מכן הדבק אותו בשרשור בפורום או כהודעה פרטית',
  2884. 'noaccess.text':
  2885. '<b>מצטער,</b><br>אינך יכול להשתמש ב WME Validator כאן.<br>אנא בדוק <a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488">את השרשור בפורום</a><br>למידע נוסף.',
  2886. 'noaccess.tip': 'אנא בדוק את השרשור בפורום למידע נוסף!',
  2887. 'tab.switch.tip.on': 'לחץ להפעלה (Alt+V)',
  2888. 'tab.switch.tip.off': 'לחץ לכיבוי (Alt+V)',
  2889. 'tab.filter.text': 'מסננים',
  2890. 'tab.filter.tip': 'אפשרויות סינון הדו"ח והדגשות בעורך המפה',
  2891. 'tab.search.text': 'חיפוש',
  2892. 'tab.search.tip': 'אפשרויות סינון מתקדמות כדי לכלול מקטעים ספציפיים בלבד',
  2893. 'tab.help.text': 'עזרה',
  2894. 'tab.help.tip': 'צריך עזרה?',
  2895. 'filter.noneditables.text': 'הסתר מקטעים <b>שאינם ניתנים לעריכה</b>',
  2896. 'filter.noneditables.tip': 'אל תדווח על מקטעים נעולים או\nמקטעים מחוץ לאיזור העריכה שלך',
  2897. 'filter.duplicates.text': 'הסתר <b>כפילויות</b> במקטעים',
  2898. 'filter.duplicates.tip': 'אל תראה את אותו המקטע בחלקים\nשונים של הדו"ח\n* שים לב: אפשרות זו אינה משפיעה על ההדגשות',
  2899. 'filter.streets.text': 'הסתר <b>רחוב</b> ו<b>כביש שרות</b>',
  2900. 'filter.streets.tip': 'אל תכלול בדו"ח מקטעים מסוג רחוב וכביש שרות',
  2901. 'filter.other.text': 'הסתר אחרים ש<b>מותרים לנהיגה</b> וכל ה<b>אסורים לנהיגה</b>',
  2902. 'filter.other.tip': 'אל תכלול בדו"ח מקטעים מסוג דרך עפר, מגרש חניה, כביש פרטי\nומקטעים שאסורים לנהיגה',
  2903. 'filter.notes.text': 'הסתר <b>הערות</b>',
  2904. 'filter.notes.tip': 'דווח רק על אזהרות ושגיאות',
  2905. 'search.youredits.text': 'כלול <b>רק עריכות שלך</b>',
  2906. 'search.youredits.tip': 'כלול רק מקטעים שערכת בעצמך',
  2907. 'search.updatedby.text': '<b>עודכן על ידי:</b>',
  2908. 'search.updatedby.tip':
  2909. 'כלול סיגמנטים שנערכו ע"י עורך מסויים\nשדה זה תומך ב:\n- רשימות: me, otherEditorName\n- תווים חופשיים: world*\n- שלילה: !me, *\nשים לב: ניתן להשתמש ב me כהתאמה לעצמך',
  2910. 'search.updatedby.example': 'דוגמה: אני',
  2911. 'search.updatedsince.text': '<b>עודכן ב:</b>',
  2912. 'search.updatedsince.tip': 'כלול מקטעים שנערכו מאז תאריך מסויים\nפורמט תאריך: YYYY-MM-DD',
  2913. 'search.updatedsince.example': 'YYYY-MM-DD',
  2914. 'search.city.text': '<b>שם העיר:</b>',
  2915. 'search.city.tip': 'כלול מקטעים בעלי שם עיר מסויימת\nשדה זה תומך ב:\nרשימות: ירושלים, אשקלון\nתווים כלליים: תל *\nשלילה: !ירושלים, *',
  2916. 'search.city.example': 'דוגמה: !ירושלים, *',
  2917. 'search.checks.text': '<b>דווח כ:</b>',
  2918. 'search.checks.tip':
  2919. 'כלול רק מקטעים שדווחו לגביהם:\nשדה זה תואם:\n- חומרת הבעיה: errors\n- שמות קבועים: New road\n- מספרים מזהים: 40\nשדה זה תומך ב:\n- רשימות: 36,37\n- תווים כלליים: *roundabout*\n- שלילה: !soft turns*, *\n',
  2920. 'search.checks.example': 'דוגמה: *הפוך*',
  2921. 'help.text':
  2922. '<b>נושאי עזרה:</b><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=666476#p666476">שאלות נפוצות</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488">שאל את שאלתך בפורום</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?t=76488&p=661300#p661185">כיצד להתאים את ה Validator למדינה שלך</a><br><a target="_blank" href="https://www.waze.com/forum/viewtopic.php?f=819&t=76488&p=663286#p663286">אודות "יתכן ששם העיר שגוי"</a>',
  2923. 'help.tip': 'פתח בכרטיסיית דפדפן חדשה',
  2924. 'button.scan.tip': 'התחל לסרוק את המפה הנוכחית\nשים לב: פעולה זו יכולה לקחת מספר דקות',
  2925. 'button.scan.tip.NA': 'הקטן את התצוגה כדי להתחיל את יצירת הדו"ח באיזור המפה הנוכחי',
  2926. 'button.pause.tip': 'עצור את הסריקה',
  2927. 'button.continue.tip': 'המשך לסרוק את המפה',
  2928. 'button.stop.tip': 'עצור את הסריקה וחזור להתחלה',
  2929. 'button.clear.tip': 'מחק הדו"ח ומקטעים מהזיכרון',
  2930. 'button.clear.tip.red': 'יותר מדי דיווחים על בעיות במקטעים:\n1. לחץ \'צפה בדו"ח להפיק את הדו"ח\'.\n2. לחץ על כפתור זה כדי למחוק את הדו"ח ולהתחיל מחדש.',
  2931. 'button.report.text': 'צפה בדו"ח',
  2932. 'button.report.tip': 'השתמש בהגדרות המסננים והפק דו"ח HTML שיפתח בכרטיסיית דפדפן חדשה',
  2933. 'button.BBreport.tip': 'שתף את הדו"ח בפורום של וייז או בהודעה פרטית',
  2934. 'button.settings.tip': 'הגדרות',
  2935. 'tab.custom.text': 'מותאם',
  2936. 'tab.custom.tip': 'הגדרת בדיקות מותאמות אישית לפי הגדרות המשתמש',
  2937. 'tab.settings.text': 'הגדרות',
  2938. 'tab.scanner.text': 'סורק',
  2939. 'tab.scanner.tip': 'הגדרות סריקה',
  2940. 'tab.about.text': 'אודות</span>',
  2941. 'tab.about.tip': 'אודות WME Validator',
  2942. 'scanner.sounds.text': 'אפשר צלילים',
  2943. 'scanner.sounds.tip': 'ציפצופים וביפים בזמן סריקה',
  2944. 'scanner.sounds.NA': 'הדפדפן שלך אינו תומך ב AudioContext',
  2945. 'scanner.highlight.text': 'הדגש בעיות על גבי המפה',
  2946. 'scanner.highlight.tip': 'הדגר בעיות מדווחות על גבי המפה',
  2947. 'scanner.slow.text': 'אפשר בדיקות המוגדרות כ"איטי"',
  2948. 'scanner.slow.tip': 'מאפשר ניתוח מעמיק של המפה\n* שים לב: אפשרות זו עלולה להאט את תהליך הסריקה',
  2949. 'scanner.ext.text': 'דווח על הדגשות ממקורות אחרים',
  2950. 'scanner.ext.tip': 'דווח על מקטעים שהודגשו ע"י WME Toolbox או WME Color Highlights',
  2951. 'custom.template.text': '<a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488&p=749456#p749456\'>תבנית מותאמת אישית</a>',
  2952. 'custom.template.tip': 'תבנית להרחבת בדיקות מותאמת אישית המוגדרת על ידי משתמש.\n\nניתן להשתמש במשתנים הבאים\n${country}, ${state}, ${city}, ${street},\n${type}, ${typeRank}, ${toll}, ${direction}, ${elevation}, ${lock},\n${length}, ${ID}, ${roundabout}, ${hasHNs},\n${drivable}, ${softTurns}, ${Uturn}, ${deadEnd},\n${segmentsA}, ${inA}, ${outB}, ${UturnA},\n${segmentsB}, ${inB}, ${outB}, ${UturnB}',
  2953. 'custom.template.example': 'דוגמה: ${city}',
  2954. 'custom.regexp.text': '<a target="_blank" href="https://developer.mozilla.org/docs/JavaScript/Guide/Regular_Expressions">ביטוי רגולרי</a> מותאם אישית',
  2955. 'custom.regexp.tip': 'ביטוי רגולרי מותאם אישית ע"י המשתמש התואם את התבנית\nהתאמה: /regexp/\nשלילה: !/regexp/\nכתוב מידע של התוכנית לקונסולה (debug)\n',
  2956. 'custom.regexp.example': 'דוגמה: /גבעת שמואל/',
  2957. 'about.tip': 'פתח קישור בכרטיסיית דפדפן חדשה',
  2958. 'button.reset.text': 'אפס לברירת מחדל',
  2959. 'button.reset.tip': 'אפס אפשרויות סינון והגדרות לברירת המחדל',
  2960. 'button.list.text': 'בדיקות זמינות...',
  2961. 'button.list.tip': 'הראה את רשימ הבדיקות הזמינות של WME Validator',
  2962. 'button.wizard.tip': 'צור קבצי לוקליזציה',
  2963. 'button.back.text': 'חזרה',
  2964. 'button.back.tip': 'סגור הגדרות וחזור לחלון ראשי',
  2965. '1.enabled': false,
  2966. '1.title': 'WME Toolbox: כיכר שעלול ליצור בעיות',
  2967. '1.problem': 'מספרים מזהים של צמתים של מקטעים בכיכר אינם רצופים',
  2968. '1.solution': 'בנה מחדש את הכיכר',
  2969. '2.title': 'WME Toolbox: מקטע פשוט',
  2970. '2.problem': 'למקטע יש מפרקים מיותרים',
  2971. '2.solution': 'פשט את מפרקי המקטע ע"י מעבר עם העכבר מעל המקטע ולחיצה על מקש "d"',
  2972. '3.title': 'WME Toolbox: נעילה ברמה 2',
  2973. '3.problem': 'המקטע מודגש ע"י WME Toolbox. זו אינה שגיאה',
  2974. '4.title': 'WME Toolbox: נעילה ברמה 3',
  2975. '4.problem': 'המקטע מודגש ע"י WME Toolbox. זו אינה שגיאה',
  2976. '5.title': 'WME Toolbox: נעילה ברמה 4',
  2977. '5.problem': 'המקטע מודגש ע"י WME Toolbox. זו אינה שגיאה',
  2978. '6.title': 'WME Toolbox: נעילה ברמה 5',
  2979. '6.problem': 'המקטע מודגש ע"י WME Toolbox. זו אינה שגיאה',
  2980. '7.title': 'WME Toolbox: נעילה ברמה 6',
  2981. '7.problem': 'המקטע מודגש ע"י WME Toolbox. זו אינה שגיאה',
  2982. '8.title': 'WME Toolbox: מספרי בתים',
  2983. '8.problem': 'המקטע מודגש ע"י WME Toolbox. זו אינה שגיאה',
  2984. '9.title': 'WME Toolbox: מקטע עם הגבלות לפי שעות',
  2985. '9.problem': 'המקטע מודגש ע"י WME Toolbox. זו אינה שגיאה',
  2986. '13.title': 'WME Color Highlights: נעילת עורך',
  2987. '13.problem': 'המקטע מודגש ע"י WME Color Highlights. זו אינה שגיאה',
  2988. '14.title': 'WME Color Highlights: כביש אגרה / כביש חד סיטרי',
  2989. '14.problem': 'המקטע מודגש ע"י WME Color Highlights. זו אינה שגיאה',
  2990. '15.title': 'WME Color Highlights: נערך לאחרונה',
  2991. '15.problem': 'המקטע מודגש ע"י WME Color Highlights. זו אינה שגיאה',
  2992. '16.title': 'WME Color Highlights: דרגה של כביש',
  2993. '16.problem': 'המקטע מודגש ע"י WME Color Highlights. זו אינה שגיאה',
  2994. '17.title': 'WME Color Highlights: ללא עיר',
  2995. '17.problem': 'המקטע מודגש ע"י WME Color Highlights. זו אינה שגיאה',
  2996. '18.title': 'WME Color Highlights: הגבלות לפי שעות / סוג כביש מודגש',
  2997. '18.problem': 'המקטע מודגש ע"י WME Color Highlights. זו אינה שגיאה',
  2998. '19.title': 'WME Color Highlights: ללא שם',
  2999. '19.problem': 'המקטע מודגש ע"י WME Color Highlights. זו אינה שגיאה',
  3000. '20.title': 'WME Color Highlights: מסנן לפי עיר',
  3001. '20.problem': 'המקטע מודגש ע"י WME Color Highlights. זו אינה שגיאה',
  3002. '21.title': 'WME Color Highlights: מסנן לפי עיר',
  3003. '21.problem': 'המקטע מודגש ע"י WME Color Highlights. זו אינה שגיאה',
  3004. '22.title': 'WME Color Highlights: מסנן לפי עורך',
  3005. '22.problem': 'המקטע מודגש ע"י WME Color Highlights. זו אינה שגיאה',
  3006. '23.title': 'מקטע ללא שם',
  3007. '23.problem': 'כל מקטע חייב לפחות הגדרת מדינה',
  3008. '23.solution': 'אשר את הכביש ע"י עריכת הפרטים שלו',
  3009. '24.title': 'יתכן ששם העיר שגוי (זמין רק בדו"ח)',
  3010. '24.problem': 'יתכן ששם העיר של המקטע שגוי (זמין רק בדו"ח)',
  3011. '24.solution': 'שקול להשתמש בשם העיר שמוצע והשתמש בטופס זה כדי לשנות שם עיר',
  3012. '25.title': 'כיוון לא ידוע של כביש מותר בנהיגה',
  3013. '25.problem': 'כיוון "לא ידוע" של כביש לא מונע ניווט דרכו',
  3014. '25.solution': 'קבע את כיוון הנסיעה של הכביש',
  3015. '27.enabled': true,
  3016. '27.title': 'שם עיר על מסילת רכבת',
  3017. '27.problem': 'שם עיר על מסילת רכבת עלול לטשטש את גבולות העיר',
  3018. '27.solution': 'בשדה \'עיר\' הדלק את האפשרות \'אין\' ואז \'החל\'',
  3019. '28.enabled': false,
  3020. '28.title': 'שם רחוב למחבר דו כיווני',
  3021. '28.problem': 'כשהמחבר ללא שם, הוא יקבל את שמו מהכביש אליו הוא מוביל',
  3022. '28.solution': 'בשדה \'רחוב\' הדלק את האפשרות \'אין\' ואז \'החל\'',
  3023. '29.title': 'לכיכר יש שם רחוב',
  3024. '29.problem': 'בווויז לא נותנים שמות למקטעים השייכים לכיכר',
  3025. '29.solution': 'בשדה \'רחוב\' הדלק את האפשרות \'אין\', לחץ \'החל\'. כדי לתת שם לכיכר הוסף \'מקום\' עם קטגורית \'צומת\' ותן לו את שם הכיכר',
  3026. '34.title': '\'שם חלופי\' ריק',
  3027. '34.problem': 'שדה \'שם חלופי\' של הרחוב ריק',
  3028. '34.solution': 'הסר את ה\'שם חלופי\' של הרחוב',
  3029. '35.title': 'כביש מותר לנהיגה קטוע',
  3030. '35.problem': 'וייז לא ינווט מכביש קטוע',
  3031. '35.solution': 'הזז מעט את המקטע כך שיתווסף אוטומטית צומת המסיים את המקטע',
  3032. '36.title': 'צומת A: מיותר (איטי)',
  3033. '36.problem': 'מקטעים סמוכים בצומת A זהים',
  3034. '36.solution': 'בחר את צומת A ולחץ על \'מחיקה\' כדי לאחד את המקטעים',
  3035. '37.title': 'צומת B: מיותר (איטי)',
  3036. '37.problem': 'מקטעים סמוכים בצומת B זהים',
  3037. '37.solution': 'בחר את צומת B ולחץ על \'מחיקה\' כדי לאחד את המקטעים',
  3038. '38.title': 'פג תוקף של מגבלה על מקטע (איטי)',
  3039. '38.problem': 'למקטע יש מגבלות שפג תוקפם',
  3040. '38.solution': 'לחץ על "הוסף הגבלות" ומחק מגבלות שפג תוקפם',
  3041. '39.title': 'פג תוקף של מגבלה על פניה (איטי)',
  3042. '39.problem': 'במקטע יש פניה עם מגבלה שפג תוקפה',
  3043. '39.solution': 'לחץ על סימון השעון שליד החץ הצהוב של הפניה ומחק הגבלות שפג תוקפן',
  3044. '41.enabled': false,
  3045. '41.title': 'צומת A: קישוריות הפוכה של כביש מותר לנהיגה',
  3046. '41.problem': 'יש פניה הפוכה לכיוון הנסיעה של המקטע בצומת A',
  3047. '41.solution': 'הפוך את המקטע לדו כיווני, אסור את כל הפניות בצומת A ואחר כך הפוך חזרה את המקטע ל"חד כיווני (A→B)"',
  3048. '42.enabled': false,
  3049. '42.title': 'צומת B: קישוריות הפוכה של כביש מותר לנהיגה',
  3050. '42.problem': 'יש פניה הפוכה לכיוון הנסיעה של המקטע בצומת B',
  3051. '42.solution': 'הפוך את המקטע לדו כיווני, אסור את כל הפניות בצומת B ואחר כך הפוך חזרה את המקטע ל"חד כיווני (B→A)"',
  3052. '43.title': 'קישור לעצמי',
  3053. '43.problem': 'המקטע יוצר צומת עם המקטע עצמו',
  3054. '43.solution': 'פצל את המקטע לשלושה מקטעים',
  3055. '44.title': 'אין חיבור ביציאה',
  3056. '44.problem': 'מקטע מותר בנהיגה ללא אף פניה מאופשרת ביציאה ממנו',
  3057. '44.solution': 'אפשר לפחות פניה אחת ביציאה מהמקטע',
  3058. '45.title': 'אין חיבור בכניסה',
  3059. '45.problem': 'אין אף פניה מאופשרת בכניסה למקטע המותר בנהיגה',
  3060. '45.solution': 'בחר מקטע סמוך ואפשר פניה למקטע זה',
  3061. '46.title': 'צומת A: אין מקטע מותר לנהיגה המוביל לצומת זו (איטי)',
  3062. '46.problem': 'לכביש מותר לנהיגה אין מקטע סמוך עם פניה מאופשרת המובילה אליו בצומת A',
  3063. '46.solution': 'בחר מקטע סמוך, אפשר פניה אל המקטע בצומת A',
  3064. '47.title': 'צומת B: אין מקטע מותר לנהיגה המוביל לצומת זו (איטי)',
  3065. '47.problem': 'לכביש מותר לנהיגה אין מקטע סמוך עם פניה מאופשרת המובילה אליו בצומת B',
  3066. '47.solution': 'בחר מקטע סמוך, אפשר פניה אל המקטע בצומת B',
  3067. '48.title': 'מקטע דו כיווני בכיכר',
  3068. '48.problem': 'מקטע מותר לנהיגה בכיכר הוא דו כיווני',
  3069. '48.solution': 'צור מחדש את הכיכר',
  3070. '50.title': 'אין חיבור לכיכר (איטי)',
  3071. '50.problem': 'למקטע מותר לנהיגה בכיכר אין חיבור למקטע סמוך בכיכר',
  3072. '50.solution': 'אפשר פניה במקטע סמוך או צור מחדש את הכיכר',
  3073. '57.enabled': true,
  3074. '57.title': 'שם עיר במחבר עם שם רחוב',
  3075. '57.problem': 'שם עיר במחבר עם שם רחוב עלול להשפיע על תוצאות החיפוש',
  3076. '57.solution': 'בשדה \'עיר\' הדלק את האפשרות \'אין\' ואז \'החל\'',
  3077. '59.enabled': true,
  3078. '59.title': 'שם עיר בכביש מהיר',
  3079. '59.problem': 'שם עיר בכביש מהיר עלול לטשטש את גבולות העיר',
  3080. '59.solution': 'בשדה \'עיר\' הדלק את האפשרות \'אין\' ואז \'החל\'',
  3081. '77.enabled': false,
  3082. '77.title': 'פניית פרסה ברחוב ללא מוצא',
  3083. '77.problem': 'מאופשרת פניית פרסה במקטע מותר לנהיגה ללא מוצא',
  3084. '77.solution': 'אל תאפשר פניית פרסה',
  3085. '78.title': 'שני מקטעים המותרים לנהיגה מסתיימים באותן נקודות (איטי)',
  3086. '78.problem': 'שני מקטעים המותרים לנהיגה בעלי אותן נקודות קצה',
  3087. '78.solution': 'פצל את המקטע לשני מקטעים. יתכן ויש צורך למחוק את אחד המקטעים אם הם זהים',
  3088. '87.title': 'מקטעים מרובים יוצאים מצומת A',
  3089. '87.problem': 'לצומת A בכיכר מחובר יותר ממקטע יציאה אחד',
  3090. '87.solution': 'צור מחדש את הכיכר',
  3091. '90.enabled': true,
  3092. '90.title': 'כביש מהיר דו סיטרי',
  3093. '90.problem': 'רוב הכבישים המהירים מפוצלים לשני מקטעים חד סיטריים כך שיתכן שיש טעות במקטע',
  3094. '90.solution': 'בדוק את כיוון הנסיעה של הכביש המהיר',
  3095. '91.title': 'מחבר דו כיווני',
  3096. '91.problem': 'רוב המחברים הם חד סיטריים, כך שיתכן שזו שגיאה שמחבר זה מוגדר כדו-סיטרי',
  3097. '91.solution': 'בדוק כיווני נסיעה במחבר',
  3098. '99.title': 'פניית פרסה מאופשרת בכניסה לכיכר (איטי)',
  3099. '99.problem': 'פניית פרסה מאופשרת במקטע הנכנס לכיכר',
  3100. '99.solution': 'אל תאפשר פניית פרסה',
  3101. '101.title': 'כביש סגור (זמין רק בדו"ח)',
  3102. '101.problem': 'המקטע מסומן כסגור',
  3103. '101.solution': 'אם הבנייה הסתיימה, שחזר את קישוריות המקטע והסר את הסיומת',
  3104. '102.title': 'צומת A: אין חיבור ביציאה של כביש מותר בנהיגה (איטי)',
  3105. '102.problem': 'מקטע מותר בנהיגה ללא אף יציאה מאופשרת בצומת A',
  3106. '102.solution': 'אפשר לפחות יציאה אחת מהמקטע בצומת A',
  3107. '103.title': 'צומת B: אין חיבור ביציאה של כביש מותר בנהיגה (איטי)',
  3108. '103.problem': 'מקטע מותר בנהיגה ללא אף יציאה מאופשרת בצומת B',
  3109. '103.solution': 'אפשר לפחות יציאה אחת מהמקטע בצומת B',
  3110. '104.title': 'מסילת רכבת משמשת כהערה',
  3111. '104.problem': 'נראה שמקטע מסוג מסילת רכבת משמש כהערה',
  3112. '104.solution': 'הסר את המקטע כיוון שמסילת רכבת תיראה במסך של משתמש הקצה',
  3113. '107.title': 'צומת A: אין חיבור (איטי)',
  3114. '107.problem': 'צומת A של מקטע מותר לנהיגה נמצאת במרחק של 5 מטרים ממקטע אחר מותר לנהיגה שאינו מחובר',
  3115. '107.solution': 'חבר את צומת A למקטע הקרוב ביותר או הרחק אותו מעט',
  3116. '108.title': 'צומת B: אין חיבור (איטי)',
  3117. '108.problem': 'צומת B של מקטע מותר לנהיגה נמצאת במרחק של 5 מטרים ממקטע אחר מותר לנהיגה שאינו מחובר',
  3118. '108.solution': 'חבר את צומת B למקטע הקרוב ביותר או הרחק אותו מעט',
  3119. '109.enabled': false,
  3120. '109.title': 'מקטע קצר מדי',
  3121. '109.problem': 'מקטע מותר לנהיגה ללא קצה הוא פחות מ 2 מטר. וקשה לראות זאת במפה',
  3122. '109.solution': 'הארך את המקטע, מחק אותו או חבר אותו למקטע סמוך',
  3123. '112.title': 'לשם המחבר יש יותר מ ${n} אותיות',
  3124. '112.problem': 'שם המחבר ארוך מדי',
  3125. '112.solution': 'קצר את שם המחבר',
  3126. '114.enabled': false,
  3127. '114.title': 'צומת A: מקטע אסור לנהיגה מחובר למקטע מותר לנהיגה (איטי)',
  3128. '114.problem': 'מקטע אסור לנהיגה יוצר צומת עם מקטע מותר לנהיגה בצומת A',
  3129. '114.solution': 'נתק את צומת A ממקטעים מותרים לנהיגה',
  3130. '115.enabled': false,
  3131. '115.title': 'צומת B: מקטע אסור לנהיגה מחובר למקטע מותר לנהיגה (איטי)',
  3132. '115.problem': 'מקטע אסור לנהיגה יוצר צומת עם מקטע מותר לנהיגה בצומת B',
  3133. '115.solution': 'נתק את צומת B ממקטעים מותרים לנהיגה',
  3134. '116.title': 'גובה לא בטווח המותר',
  3135. '116.problem': 'גובה המקטע לא בטווח המותר',
  3136. '116.solution': 'תקן את הגובה',
  3137. '117.title': 'סימון של קבוע ישן ZN',
  3138. '117.problem': 'המקטע מסומן בסימון של קבוע שלא בתוקף: ZN',
  3139. '117.solution': 'שנה את הקבוע ZN ל: (סגור)',
  3140. '118.title': 'צומת A: מקטעים חופפים (איטי)',
  3141. '118.problem': 'המקטע חופף למקטע סמוך בצומת A',
  3142. '118.solution': 'הזז את המקטע ב 2° או מחק מפרקים או מחק את המקטע הכפול בצומת A',
  3143. '119.title': 'צומת B: מקטעים חופפים (איטי)',
  3144. '119.problem': 'המקטע חופף למקטע סמוך בצומת B',
  3145. '119.solution': 'הזז את המקטע ב 2° או מחק מפרקים או מחק את המקטע הכפול בצומת B',
  3146. '120.title': 'צומת A: פנייה חדה מדי (איטי)',
  3147. '120.problem': 'במקטע מותר לנהיגה יש פנייה מאד חדה בצומת A',
  3148. '120.solution': 'אסור את הפנייה החדה בצומת A או שנה את זווית הפניה ל 30°',
  3149. '121.title': 'צומת B: פנייה חדה מדי (איטי)',
  3150. '121.problem': 'במקטע מותר לנהיגה יש פנייה מאד חדה בצומת B',
  3151. '121.solution': 'אסור את הפנייה החדה בצומת B או שנה את זווית הפניה ל 30°',
  3152. '128.title': 'בדיקה מותאמת אישית ע"י המשתמש (ירוק)',
  3153. '128.problem': 'חלק ממאפייני המקטע תואמים לביטוי רגולרי שהוגדר ע"י המשתמש (ראה הגדרות->תבנית מותאמת אישית)',
  3154. '128.solution': 'פתור את הבעיה (מי שהגדיר בדיקה מותאמת אישית אמור לדעת כיצד לפתור את הבעיה)',
  3155. '129.title': 'בדיקה מותאמת אישית ע"י המשתמש (כחול)',
  3156. '129.problem': 'חלק ממאפייני המקטע תואמים לביטוי רגולרי שהוגדר ע"י המשתמש (ראה הגדרות->תבנית מותאמת אישית)',
  3157. '129.solution': 'פתור את הבעיה (מי שהגדיר בדיקה מותאמת אישית אמור לדעת כיצד לפתור את הבעיה)',
  3158. '171.enabled': false,
  3159. '171.title': 'שם רחוב מקוצר באופן שגוי',
  3160. '171.problem': 'בשם הרחוב יש קיצור שגוי',
  3161. '171.solution': 'בדוק אותיות קטנות / גדולות, רווח לפני / אחרי הקיצור ובהתאם לטבלת הקיצורים',
  3162. '172.title': 'מרווחים מיותרים בשם של רחוב',
  3163. '172.problem': 'מרווח כפול/לפני/אחרי שם של רחוב',
  3164. '172.solution': 'מחק מרווחים מיותרים בשם של הרחוב',
  3165. '173.enabled': false,
  3166. '173.title': 'אין רווח לפני/אחרי שם קיצור של רחוב',
  3167. '173.problem': 'חסר מרווח לפני או אחרי שימוש בקיצור בשם של רחוב',
  3168. '173.solution': 'הוסף רווח לפני/אחרי הקיצור',
  3169. '175.title': 'שם רחוב ריק',
  3170. '175.problem': 'שם הרחוב מכיל רק מרווחים או נקודות',
  3171. '175.solution': 'במאפייני הכתובת, סמן את תיבת \'אין\' ליד שם הרחוב, לחץ \'החל\', או תן שם תקין לרחוב',
  3172. '190.enabled': false,
  3173. '190.title': 'שם העיר באותיות קטנות',
  3174. '190.problem': 'שם העיר מתחיל באות קטנה',
  3175. '190.solution': 'השתמש בטופס זה כדי לשנות שם עיר',
  3176. '192.title': 'מרווחים מיותרים בשם של עיר',
  3177. '192.problem': 'מרווח כפול/לפני/אחרי שם של עיר',
  3178. '192.solution': 'השתמש בטופס זה כדי לשנות שם עיר',
  3179. '193.enabled': false,
  3180. '193.title': 'מרווחים לפני/אחרי קיצור של שם עיר',
  3181. '193.problem': 'מרווחים אסורים לפני או אחרי שימוש בקיצור בשם של עיר',
  3182. '193.solution': 'השתמש בטופס זה כדי לשנות שם עיר',
  3183. '200.enabled': false,
  3184. '200.title': 'צומת A: פניה שלא אושרה ברחוב משני',
  3185. '200.problem': 'במקטע המשני יש פניה שלא אושרה בצומת A',
  3186. '200.solution': 'לחץ על הפניה שלידה סימן שאלה סגול כדי לאשר אותה. הערה: ייתכן שתצטרך להפוך את המקטע ל\'דו כיווני\' כדי לראות פניה זו',
  3187. '201.title': 'צומת A: פניה שלא אושרה ברחוב ראשי',
  3188. '201.problem': 'במקטע הראשי יש פניה שלא אושרה בצומת A',
  3189. '201.solution': 'לחץ על הפניה שלידה סימן שאלה סגול כדי לאשר אותה. הערה: ייתכן שתצטרך להפוך את המקטע ל\'דו כיווני\' כדי לראות פניה זו'
  3190. },
  3191. 'IE': {
  3192. '.codeISO': 'IE',
  3193. '.country': 'Ireland',
  3194. '70.enabled': true,
  3195. '70.problemLink': 'W:How_to_label_and_name_roads_(Ireland)#Road_Types',
  3196. '71.enabled': true,
  3197. '71.problemLink': 'W:How_to_label_and_name_roads_(Ireland)#Road_Types',
  3198. '72.enabled': true,
  3199. '72.problemLink': 'W:How_to_label_and_name_roads_(Ireland)#Road_Types',
  3200. '160.enabled': true,
  3201. '160.problemLink': 'W:How_to_label_and_name_roads_(Ireland)#Road_Types',
  3202. '160.params': {'solutionEN': 'Rename the street to \'Mxx\' or \'Mxx N/S/W/E\' or change the road type', 'regexp': '!/^M[0-9]+( [NSWE])?$/'},
  3203. '161.enabled': true,
  3204. '161.problemLink': 'W:How_to_label_and_name_roads_(Ireland)#Road_Types',
  3205. '161.params': {'solutionEN': 'Rename the street to \'Nxx\' or \'Nxx Local Name\' or change the road type', 'regexp': '!/^N[0-9]+( .*)?$/'},
  3206. '162.enabled': true,
  3207. '162.problemLink': 'W:How_to_label_and_name_roads_(Ireland)#Road_Types',
  3208. '162.params': {'solutionEN': 'Rename the street to \'Rxxx\' or \'Rxxx Local Name\' or change the road type', 'regexp': '!/^R[0-9]+( .*)?$/'}
  3209. },
  3210. 'FR': {
  3211. '.codeISO': 'FR',
  3212. '.country': ['France', 'French Guiana', 'New Caledonia', 'Reunion'],
  3213. '.author': 'arbaot and ClementH44',
  3214. '.updated': '2014-03-27',
  3215. '.lng': 'FR',
  3216. 'err.regexp': 'Erreur d\'interprétation pour la vérification #${n}:',
  3217. 'props.disabled': 'WME Validator est désactivé',
  3218. 'props.limit.title': 'Trop de problèmes signalés',
  3219. 'props.limit.problem': 'Il y a trop de problèmes signalés, de sorte que certains d\'entre eux pourraient ne pas être affichés',
  3220. 'props.limit.solution': 'Désélectionnez le segment et arrêtez le scan. Ensuite, cliquez sur le bouton rouge «✘» (Effacer le rapport)',
  3221. 'props.reports': 'Rapports',
  3222. 'props.noneditable': 'Vous ne pouvez éditer ce segment',
  3223. 'report.list.andUp': 'et jusqu\'à',
  3224. 'report.list.severity': 'Gravité :',
  3225. 'report.list.reportOnly': 'seulement dans le rapport',
  3226. 'report.list.forEditors': 'Pour le niveau d\'édition :',
  3227. 'report.list.forCountries': 'Pour les pays :',
  3228. 'report.list.forStates': 'Pour les états :',
  3229. 'report.list.forCities': 'Pour les villes :',
  3230. 'report.list.params': 'Paramètres à configurer dans le pack de localisation :',
  3231. 'report.list.enabled': '${n} vérifications sont activés pour',
  3232. 'report.list.disabled': '${n} vérifications sont désactivés pour',
  3233. 'report.list.total': 'Il y a ${n} points de contôles activés',
  3234. 'report.list.title': 'Liste complète des vérifications pour',
  3235. 'report.list.see': 'Voir',
  3236. 'report.list.checks': 'Paramètres->À propos->Les vérifications',
  3237. 'report.list.fallback': 'Règles de regroupement géographique :',
  3238. 'report.and': 'et',
  3239. 'report.segments': 'Nombre total de segments vérifiés :',
  3240. 'report.customs': 'Les vérifications personnalisés adaptés (vert/bleu):',
  3241. 'report.reported': 'Signalement',
  3242. 'report.errors': 'd\'erreurs',
  3243. 'report.warnings': 'd\'avertissements',
  3244. 'report.notes': 'de remarques',
  3245. 'report.contents': 'Contenus :',
  3246. 'report.summary': 'Récapitulatif',
  3247. 'report.title': 'Rapport de WME Validator',
  3248. 'report.share': 'à partager',
  3249. 'report.generated.by': 'généré par',
  3250. 'report.generated.on': 'le',
  3251. 'report.source': 'Source du rapport :',
  3252. 'report.filter.duplicate': 'les segments doublons',
  3253. 'report.filter.streets': 'Rue et Routes de service',
  3254. 'report.filter.other': 'Autres',
  3255. 'report.filter.noneditable': 'segments non modifiables',
  3256. 'report.filter.notes': 'notes',
  3257. 'report.filter.title': 'Filtre :',
  3258. 'report.filter.excluded': 'sont exclues de ce rapport.',
  3259. 'report.search.updated.by': 'mis à jour par',
  3260. 'report.search.updated.since': 'mis à jour depuis',
  3261. 'report.search.city': 'à partir de',
  3262. 'report.search.reported': 'signalé comme',
  3263. 'report.search.title': 'Rechercher:',
  3264. 'report.search.only': 'seulement les segments',
  3265. 'report.search.included': 'sont inclus dans le rapport.',
  3266. 'report.beta.warning': 'avertissement WME Beta !',
  3267. 'report.beta.text': 'Ce rapport est généré pour WME beta avec des permaliens en beta.',
  3268. 'report.beta.share': 'Ne pas partager ces permaliens !',
  3269. 'report.size.warning':
  3270. '<b>Avertissement !</b><br>Le rapport est trop long de ${n} charactères de sorte qu\'<b>il ne passe pas</b> dans un seul forum ou message privé.\n<br>Ajoutez <b>des filtres</b> pour réduire la taille du rapport.',
  3271. 'report.note.limit': '* Remarque: il y avait trop de problèmes signalés, de sorte que certains d\'entre eux ne sont pas pris en compte dans le récapitulatif.',
  3272. 'report.forum': 'Pour soutenir le développement, merci de laisser un commentaire sur',
  3273. 'report.thanks': 'Merci d\'utiliser WME Validator !',
  3274. 'msg.limit.segments': 'Il y a trop de segments.\n\nCliquez sur \'Le rapport\' pour examiner le rapport, ensuite\n',
  3275. 'msg.limit.segments.continue': 'cliquez sur \'▶\' pour continuer.',
  3276. 'msg.pan.text': 'Déplacez-vous sur pour valider la carte',
  3277. 'msg.zoomout.text': 'Effectuer un zoom arrière pour démarrer WME Validator',
  3278. 'msg.click.text': 'Cliquez sur \'▶\' pour valider la zone visible de la carte',
  3279. 'msg.autopaused': 'Pause automatique',
  3280. 'msg.autopaused.text': 'Pause automatique ! Cliquez sur \'▶\' pour continuer.',
  3281. 'msg.autopaused.tip': 'WME Validator est automatiquement suspendu si la carte est déplacée ou si la taille de la fenêtre change',
  3282. 'msg.finished.text': 'Cliquez sur <b>\'Le rapport\'</b> pour examiner les problèmes de carte',
  3283. 'msg.finished.tip': 'Cliquez sur \'✉\' (Partager) pour poster un rapport sur un\nforum ou par message privé',
  3284. 'msg.noissues.text': 'Terminé ! Aucun problème trouvé !',
  3285. 'msg.noissues.tip': 'Essayez de désactiver quelques filtres ou démarrez WME Validator sur une autre zone de la carte !',
  3286. 'msg.scanning.text': 'Scan en cours ! Terminé dans ~ ${n} min',
  3287. 'msg.scanning.text.soon': 'Scan en cours ! Terminé dans une minute !',
  3288. 'msg.scanning.tip': 'Cliquez sur \'Pause\' pour suspendre ou \'■\' pour stopper',
  3289. 'msg.starting.text': 'Lancement ! Les calques ne peuvent scanner plus vite !',
  3290. 'msg.starting.tip': 'Utilisez le bouton \'Pause\' pour suspendre ou le bouton \'■\' pour stopper',
  3291. 'msg.paused.text': 'En pause ! Cliquez sur \'▶\' pour continuer.',
  3292. 'msg.paused.tip': 'Pour voirla raport, cliquez sur \'Le rapport\' (si disponible)',
  3293. 'msg.continuing.text': 'En cours !',
  3294. 'msg.continuing.tip': 'WME Validator continuera à l\'endroit où il a été suspendu',
  3295. 'msg.settings.text': 'Cliquez sur <b>\'Retour\'</b> pour retourner sur la vue principale',
  3296. 'msg.settings.tip': 'Cliquez sur \'Par défaut\' pour réinitialiser tous les réglages en un clic !',
  3297. 'msg.reset.text': 'Toutes les options de filtrage et les paramètres ont été remis à leurs valeurs par défaut',
  3298. 'msg.reset.tip': 'Cliquez sur \'Retour\' pour retourner sur la vue principale',
  3299. 'msg.textarea.pack': 'Merci de copier le texte ci-dessous et de le coller dans un nouveau fichier <b>.user.js</b>',
  3300. 'msg.textarea': 'Merci de copier le texte ci-dessous et de le coller dans votre forum pour par message privé',
  3301. 'noaccess.text':
  3302. '<b>Désolé,</b><br>Vous ne pouvez utiliser WME Validator ici.<br>Merci de visiter (en anglais) <a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488\'>ce forum</a><br>pour plus d\'informations.',
  3303. 'noaccess.tip': 'Merci de visiter le forum du programme pour plus d\'informations !',
  3304. 'tab.switch.tip.on': 'Cliquez pour activer la surbrillance',
  3305. 'tab.switch.tip.off': 'Cliquez pour désactiver la surbrillance',
  3306. 'tab.filter.text': 'filtre',
  3307. 'tab.filter.tip': 'Options pour filtrer le rapport et les segments à mettre en évidence',
  3308. 'tab.search.text': 'cherche',
  3309. 'tab.search.tip': 'Options avancées de filtrage pour inclure uniquement des segments spécifiques',
  3310. 'tab.help.text': 'aide',
  3311. 'tab.help.tip': 'Besoins d\'aide ?',
  3312. 'filter.noneditables.text': 'Exclure les segments <b>non modifiables</b>',
  3313. 'filter.noneditables.tip': 'Ne pas éxaminer les segments verrouillés ou en dehors de vos zones modifiables',
  3314. 'filter.duplicates.text': 'Exclure les segments <b>doublons</b>',
  3315. 'filter.duplicates.tip': 'Ne pas éxaminer le même segment dans différentes\nparties du rapport\n* Remarque: cette option n\'affecte pas la surbrillance',
  3316. 'filter.streets.text': 'Exclure les <b>Rues et Routes de service</b>',
  3317. 'filter.streets.tip': 'Ne pas éxaminer les rues et routes/chemins de service',
  3318. 'filter.other.text': 'Exclure les <b>autres rues carrossables</b>',
  3319. 'filter.other.tip': 'Ne pas éxaminer les chemins de terres, les parkings, les routes privées\net les segments non carrossables',
  3320. 'filter.notes.text': 'Exclure les <b>remarques</b>',
  3321. 'filter.notes.tip': 'Rapporte uniquement les avertissements et les erreurs',
  3322. 'search.youredits.text': 'Inclure <b>uniquement vos modifications</b>',
  3323. 'search.youredits.tip': 'Inclure uniquement les segments modifiés par vous',
  3324. 'search.updatedby.text': '<b>Mis à jour par:</b>',
  3325. 'search.updatedby.tip':
  3326. 'Inclure uniquement les segments mis à jour par un éditeur déterminé\nCe champ prend en charge:\n - les listes: me, otherEditor\n - les métacaractères: world*\n - la négation: !me, *\n* Remarque: vous pouvez utiliser \'me\' pour vous désigner',
  3327. 'search.updatedby.example': 'Example: me',
  3328. 'search.updatedsince.text': '<b>Mis à jour depuis:</b>',
  3329. 'search.updatedsince.tip': 'Inclure uniquement les segments modifiés depuis la date spécifiée\nFormat de date Firefox: AAAA-MM-JJ',
  3330. 'search.updatedsince.example': 'AAAA-MM-JJ',
  3331. 'search.city.text': '<b>Nom de Ville:</b>',
  3332. 'search.city.tip':
  3333. 'Inclure uniquement les segments d\'une ville spécifiée\nCe champ prend en charge:\n - les listes: Paris, Meudon\n - les métacaractères (wildcards): Greater * Area\n - la négaction: !Paris, *',
  3334. 'search.city.example': 'Example: !Paris, *',
  3335. 'search.checks.text': '<b>Signalé comme:</b>',
  3336. 'search.checks.tip':
  3337. 'Inclure uniquement les segments \nCe champ correspond:\n - aux gravités: erreur\n - aux noms: Nouvelle route\n - aux identifiants (IDs): 40\nCe champ prend en charge:\n - les listes: 36, 37\n - les métacaractères (wildcards): *roundabout*\n - la négation: !unconfirmed*, *',
  3338. 'search.checks.example': 'Example: reverse*',
  3339. 'help.text':
  3340. '<b>Rubriques d\'aide (en anglais):</b><br><a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488&p=666476#p666476\'>F.A.Q.</a><br><a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488\'>Posez votre question sur le forum</a><br><a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488&p=661300#p661185\'>Comment ajuster Validator à votre pays</a><br><a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?f=819&t=76488&p=663286#p663286\'>À propos de \'Might be Incorrect City Name\'</a>',
  3341. 'help.tip': 'S\'ouvre dans un nouvel onglet du navigateur',
  3342. 'button.scan.tip': 'Commencer à scanner la zone actuelle de la carte\n* Remarque: cela peut prendre quelques minutes',
  3343. 'button.scan.tip.NA': 'Dézoomez pour commencer à scanner la zone actuelle de la carte',
  3344. 'button.pause.tip': 'Scan en pause',
  3345. 'button.continue.tip': 'Continuer à scanner la zone de la carte',
  3346. 'button.stop.tip': 'Arrêter le scan et retourner à la position de départ',
  3347. 'button.clear.tip': 'Effacer la mémoire cache des rapports et segments',
  3348. 'button.clear.tip.red': 'Il y a trop de segments signalés:\n 1. Cliquez sur \'Le rapport\' pour générer le rapport.\n 2. Cliquez sur ce bouton pour effacer le rapport et recommencer.',
  3349. 'button.report.text': 'Le rapport',
  3350. 'button.report.tip': 'Appliquer le filtre et générer un rapport HTML dans un nouvel onglet.',
  3351. 'button.BBreport.tip': 'Partagez le rapport sur le forum Waze ou dans un message privé.',
  3352. 'button.settings.tip': 'Configurer les paramètres',
  3353. 'tab.custom.text': 'perso',
  3354. 'tab.custom.tip': 'Paramètres de vérification personnalisés définis par l\'utilisateur',
  3355. 'tab.settings.text': 'Params',
  3356. 'tab.scanner.text': 'scan',
  3357. 'tab.scanner.tip': 'Paramètres du scan de la carte',
  3358. 'tab.about.text': 'à propos</span>',
  3359. 'tab.about.tip': 'À propos de WME Validator',
  3360. 'scanner.sounds.text': 'Activer les sons',
  3361. 'scanner.sounds.tip': 'Joue un \'bip\' pendant le scan',
  3362. 'scanner.sounds.NA': 'Votre navigateur ne supporte pas AudioContext',
  3363. 'scanner.highlight.text': 'Mettre en surbrillance sur la carte',
  3364. 'scanner.highlight.tip': 'Mettre en surbrillance les problèmes repérés sur la carte',
  3365. 'scanner.slow.text': 'Activer le mode \'lent\'',
  3366. 'scanner.slow.tip': 'Permet un scan plus poussé et précis de la carte\n* Remarque: cette option peut ralentir le processus de scan',
  3367. 'scanner.ext.text': 'Signaler des surbrillances externes',
  3368. 'scanner.ext.tip': 'Signaler des segments mis en évidence par WME Toolbox ou WME Color Highlights',
  3369. 'custom.template.text': 'Modèle perso',
  3370. 'custom.template.tip': 'Modèle de contrôle personnalisé définis par l\'utilisateur.\n\nVous pouvez utiliser les variables suivantes:\n${country}, ${state}, ${city}, ${street},' +
  3371. '\n${altCity[index or delimeter]} Example: ${altCity[0]},' +
  3372. '\n${altStreet[index or delimeter]} Example: ${altStreet[##]},' +
  3373. '\n${type}, ${typeRank}, ${toll}, ${direction}, ${elevation}, ${lock},\n${length}, ${ID}, ${roundabout}, ${hasHNs},\n${drivable}, ${softTurns}, ${Uturn}, ${deadEnd},\n${segmentsA}, ${inA}, ${outB}, ${UturnA},\n${segmentsB}, ${inB}, ${outB}, ${UturnB}',
  3374. 'custom.template.example': 'Example: ${street}',
  3375. 'custom.regexp.text': '<a target=\'_blank\' href=\'https://developer.mozilla.org/docs/JavaScript/Guide/Regular_Expressions\'>RegExp</a> perso',
  3376. 'custom.regexp.tip':
  3377. 'Modèle de contrôle personnalisé définis par l\'utilisateur (en utilisant le Regular Expressions).\n\nInsensible à la casse: /regexp/i\nNegation (ne fonctionne pas): !/regexp/\nInformation en mode debug des log sur la console: D/regexp/',
  3378. 'custom.regexp.example': 'Example: !/.+/',
  3379. 'about.tip': 'Ouvre le lien dans un nouvel onglet',
  3380. 'button.reset.text': 'Par défaut',
  3381. 'button.reset.tip': 'Rétablir les options de filtrage et les paramètres par défaut',
  3382. 'button.list.text': 'Les vérifications...',
  3383. 'button.list.tip': 'Montre une liste des vérifications possibles dans WME Validator',
  3384. 'button.wizard.tip': 'Créer un pack géographique',
  3385. 'button.back.text': 'Ret.',
  3386. 'button.back.tip': 'Fermer les paramètres et revenir à l\'ecran principal',
  3387. '1.solutionLink': 'W:Tout_sur_les_ronds-points',
  3388. '1.title': 'WME Toolbox: Rond-point pouvant causer des problèmes',
  3389. '1.problem': 'Les ID des segments du rond-point ne sont pas consécutif',
  3390. '1.solution': 'Refaire le rond-point',
  3391. '2.title': 'WME Toolbox: Simple segment (une voie)',
  3392. '2.problem': 'Ce segments a des nœuds de géométrie inutile',
  3393. '2.solution': 'Simplifier le tracé du segment sélectionné en survolant les nœuds en trop en appuyant sur le \'d\' du clavier',
  3394. '3.title': 'WME Toolbox: Verrouillage de niveau 2',
  3395. '3.problem': 'Segment surligné par WME Toolbox. Pas un problème',
  3396. '4.title': 'WME Toolbox: Verrouillage de niveau 3',
  3397. '4.problem': 'Segment surligné par WME Toolbox. Pas un problème',
  3398. '5.title': 'WME Toolbox: Verrouillage de niveau 4',
  3399. '5.problem': 'Segment surligné par WME Toolbox. Pas un problème',
  3400. '6.title': 'WME Toolbox: Verrouillage de niveau 5',
  3401. '6.problem': 'Segment surligné par WME Toolbox. Pas un problème',
  3402. '7.title': 'WME Toolbox: Verrouillage de niveau 6',
  3403. '7.problem': 'Segment surligné par WME Toolbox. Pas un problème',
  3404. '8.title': 'WME Toolbox: Numéros de maison',
  3405. '8.problem': 'Segment surligné par WME Toolbox. Pas un problème',
  3406. '9.title': 'WME Toolbox: Segment avec une restriction programmée',
  3407. '9.problem': 'Segment surligné par WME Toolbox. Pas un problème',
  3408. '13.title': 'WME Color Highlights: Verrouillage de l\'éditeur',
  3409. '13.problem': 'Segment surligné par WME Color Highlights. Pas un problème',
  3410. '14.title': 'WME Color Highlights: Péage / Route à sens unique',
  3411. '14.problem': 'Segment surligné par WME Color Highlights. Pas un problème',
  3412. '15.title': 'WME Color Highlights: Récemment modifié',
  3413. '15.problem': 'Segment surligné par WME Color Highlights. Pas un problème',
  3414. '16.title': 'WME Color Highlights: Rang de la route',
  3415. '16.problem': 'Segment surligné par WME Color Highlights. Pas un problème',
  3416. '17.title': 'WME Color Highlights: Pas de ville',
  3417. '17.problem': 'Segment surligné par WME Color Highlights. Pas un problème',
  3418. '18.title': 'WME Color Highlights: Restriction programmée / Type de route mis en évidence',
  3419. '18.problem': 'Segment surligné par WME Color Highlights. Pas un problème',
  3420. '19.title': 'WME Color Highlights: Pas de nom',
  3421. '19.problem': 'Segment surligné par WME Color Highlights. Pas un problème',
  3422. '20.title': 'WME Color Highlights: Filtrer par ville',
  3423. '20.problem': 'Segment surligné par WME Color Highlights. Pas un problème',
  3424. '21.title': 'WME Color Highlights: Filtrer par ville (ville alt.)',
  3425. '21.problem': 'Segment surligné par WME Color Highlights. Pas un problème',
  3426. '22.title': 'WME Color Highlights: Filtrer par éditeur',
  3427. '22.problem': 'Segment surligné par WME Color Highlights. Pas un problème',
  3428. '23.problemLink': 'W:Nommage_France#R.C3.A8gles_de_nommage',
  3429. '23.solutionLink': 'W:Nommage_France',
  3430. '23.title': 'Route non confirmée',
  3431. '23.problem': 'Création de segment incomplète ville et nom de rue non renseigné',
  3432. '23.solution': 'Terminer la création en complétant les propriétés',
  3433. '24.problemLink': 'W:Comment_nommer_les_routes_et_les_villes#Nommage_des_villes_et_villages',
  3434. '24.solutionLink': 'F:t=29403',
  3435. '24.title': 'Nom de ville peut-être erroné (uniquement disponible dans le rapport)',
  3436. '24.problem': 'Le nom de la ville est peut-être incorrecte',
  3437. '24.solution': 'Comparer le nom avec celui proposé et éventuellement signaler le problème sur le forum',
  3438. '25.title': 'Direction inconnue de la route carrossable',
  3439. '25.problem': 'Un sens de circulation \'Inconnu\' n\'empêchera Waze de faire emprunter le segment',
  3440. '25.solution': 'Régler le sens de circulation du segment',
  3441. '27.enabled': true,
  3442. '27.title': 'Nom de ville sur une voie ferrée',
  3443. '27.problem': 'Un nom de ville sur les segment voie ferré provoque des incohérence des polygones Ville',
  3444. '27.solution': 'Régler le nom de ville à \'Sans\' ou signaler le problème sur le Forum ',
  3445. '28.problemLink': 'W:Guide_des_intersections#Noms_3',
  3446. '28.title': 'Nom de rue sur une rampe',
  3447. '28.problem': 'Une rampe sans nom \'hérite\' du nom du segment suivant',
  3448. '28.solution': 'Régler le nom du segment à \'Sans\'',
  3449. '29.problemLink': 'W:Tout_sur_les_ronds-points#A_retenir',
  3450. '29.solutionLink': 'W:Tout_sur_les_ronds-points',
  3451. '29.title': 'Nom de rue sur rond-point',
  3452. '29.problem': 'Dans Waze pas de nom de rue sur les rond-point',
  3453. '29.solution': 'Régler le nom des segment du RP à \'Sans\' et créer un POI Jonction/ échangeur avec le nom du RP',
  3454. '34.title': 'Nom de rue alternatif vide',
  3455. '34.problem': 'Le nom de rue alternatif vide',
  3456. '34.solution': 'Supprimer le nom alternatif',
  3457. '35.title': 'Route carrossable non terminé',
  3458. '35.problem': 'Waze ne propose pas de guidage vers/dans les segment non terminés',
  3459. '35.solution': 'Déplacer légèrement l\'extrémité libre du segment pour afin que le nœuds de terminaison soit ajouté',
  3460. '36.title': 'Noeud A: inutil (mode lent)',
  3461. '36.problem': 'Les segments de part et d\'autres du nœud A ont les mêmes propriétés',
  3462. '36.solution': 'Sélectionner le nœud A et appuyer sur Suppr pour fusionner les 2 segments',
  3463. '37.title': 'Noeud B: inutil (mode lent)',
  3464. '37.problem': 'Les segments de part et d\'autres du nœud B ont les mêmes propriétés',
  3465. '37.solution': 'Sélectionner le nœud B et appuyer sur Suppr pour fusionner les 2 segments',
  3466. '38.problemLink': 'W:Les_fermetures_programmées#Segments',
  3467. '38.title': 'Fermetures programmées périmées (mode lent)',
  3468. '38.problem': 'Il y a des fermetures programmées périmées sur ce segment',
  3469. '38.solution': 'Cliquer \'Modifier les restrictions\' et supprimer les restrictions périmées',
  3470. '39.problemLink': 'W:Les_fermetures_programmées#Restriction_de_tourner',
  3471. '39.title': 'Restrictions de tourner périmés (mode lent)',
  3472. '39.problem': 'Il y a des restrictions de tourner périmées sur ce nœud de jonction',
  3473. '39.solution': 'Cliquer l\'icône horloge accolée à la flèche jaune et supprimer les restrictions périmées',
  3474. '41.title': 'Noeud A: Autorisation en sens interdit',
  3475. '41.problem': 'Au nœud A il y a une autorisation de tourner qui va à l\'encontre du sens unique',
  3476. '41.solution': 'Passer le segment à double sens, corriger la flèche au nœud A puis repasser en sens unique',
  3477. '42.title': 'Noeud B: Autorisation en sens interdit',
  3478. '42.problem': 'Au nœud B il y a une autorisation de tourner qui va à l\'encontre du sens unique',
  3479. '42.solution': 'Passer le segment à double sens, corriger la flèche au nœud B puis repasser en sens unique',
  3480. '43.title': 'Connecté à lui-même',
  3481. '43.problem': 'Le segment est connecté à lui même',
  3482. '43.solution': 'Couper le segment en deux',
  3483. '44.title': 'Pas ne connexion sortante',
  3484. '44.problem': 'Le segment carrossable n\'a pas de connexion sortante',
  3485. '44.solution': 'Activer au moins une connexion sortante = une flèche verte',
  3486. '45.title': 'Pas de connexion entrante',
  3487. '45.problem': 'Le segment carrossable (non privé) n\'a pas de connexion entrante',
  3488. '45.solution': 'Sélectionner un segment adjacent et autoriser au moins un accès (flèche rouge → verte)',
  3489. '46.title': 'Noeud A: Pas de connexion entrante pour le segment (mode lent)',
  3490. '46.problem': 'Le segment carrossable (non privé) n\'a pas de connexion entrante au nœud A',
  3491. '46.solution': 'Sélectionner un segment adjacent et autoriser au moins un accès (flèche rouge → verte) au nœud A',
  3492. '47.title': 'Noeud B: Pas de connexion entrante pour le segment (mode lent)',
  3493. '47.problem': 'Le segment carrossable (non privé) n\'a pas de connexion entrante au nœud B',
  3494. '47.solution': 'Sélectionner un segment adjacent et autoriser au moins un accès (flèche rouge → verte) au nœud B',
  3495. '48.solutionLink': 'W:Tout_sur_les_ronds-points#Remplacer_.2F_Editer_un_rond-point',
  3496. '48.title': 'Segment de rond-point à double sens',
  3497. '48.problem': 'Segment de rond-point à double sens de circulation',
  3498. '48.solution': 'Refaire le rond-point',
  3499. '50.solutionLink': 'W:Tout_sur_les_ronds-points#A_retenir',
  3500. '50.title': 'Pas de connectivité sur le rond-point (mode lent)',
  3501. '50.problem': 'Le segment du rond-point n\'a pas de connectivité avec le segment adjacent',
  3502. '50.solution': 'Autoriser un virage vers le segment adjacent = Corriger la flèche rouge',
  3503. '57.enabled': true,
  3504. '57.title': 'Nom de ville sur une rampe',
  3505. '57.problem': 'Un Nom de ville sur une rampe peu affecter la recherche dans Waze',
  3506. '57.solution': 'Cocher la case \'Sans\' pour ville',
  3507. '59.enabled': true,
  3508. '59.title': 'Nom de ville sur Freeway',
  3509. '59.problem': 'Un nom de ville sur les segment Freeway provoque des incohérence des polygones Ville',
  3510. '59.solution': 'Régler le nom de ville à \'Sans\' ou signaler le problème sur le Forum',
  3511. '74.problemLink': 'W:Tout_sur_les_ronds-points#A_retenir',
  3512. '74.solutionLink': 'W:Tout_sur_les_ronds-points#Remplacer_.2F_Editer_un_rond-point',
  3513. '74.title': 'Noeud A: Plusieurs segments connectés',
  3514. '74.problem': 'La jonction A du rond-point est connectée à plusieurs segments',
  3515. '74.solution': 'Refaire le rond-point',
  3516. '77.title': 'Demi-tour autorisé',
  3517. '77.problem': 'L\'impasse carrossable à un demi-tour autorisé à son extrémité',
  3518. '77.solution': 'Éventuellement Interdire le demi-tour',
  3519. '78.title': 'Mêmes extrémités des segments carrossables (mode lent)',
  3520. '78.problem': 'Deux segments carrossables partagent les deux mêmes extrémités',
  3521. '78.solution': 'Diviser le segment. Vous pouvez également supprimer l\'un des segments si ils sont identiques',
  3522. '79.title': 'Demi-tour trop court (mode lent)',
  3523. '79.problem': 'Le segment fait moins de 15m si nécessaire Waze ne proposera pas de demi-tour',
  3524. '79.solution': 'Agrandisseur le segment à 15m mini (si le demi-tour est autorisé)',
  3525. '87.problemLink': 'W:Tout_sur_les_ronds-points#A_retenir',
  3526. '87.solutionLink': 'W:Tout_sur_les_ronds-points#Remplacer_.2F_Editer_un_rond-point',
  3527. '87.title': 'Noeud A: Plusieurs sorties au rond-point',
  3528. '87.problem': 'La jonction A du rond-point est connectée à plusieurs segments sortant',
  3529. '87.solution': 'Refaire le rond-point',
  3530. '99.title': 'Demi-tour à l\'entrée du rond-point (mode lent)',
  3531. '99.problem': 'Le segment d\'entrée du rond-point à un demi-tour autorisé',
  3532. '99.solution': 'Désactiver le demi-tour',
  3533. '101.title': 'Route fermée (seulement disponible dans le rapport)',
  3534. '101.problem': 'Le segment est marqué comme étant fermé',
  3535. '101.solution': 'Si la construction est terminée, restaurez la connectivité du segment et supprimez le suffixe',
  3536. '101.params': {'regexp': '/(^|\\b)travaux(\\b|$)/i'},
  3537. '102.title': 'Noeud A: Pas de connexion sortante (mode lent)',
  3538. '102.problem': 'Le segment carrossable n\'a pas de connexion sortante au nœud A',
  3539. '102.solution': 'Activer au moins une connexion sortante = une flèche verte au nœud A',
  3540. '103.title': 'Noeud B: Pas de connexion sortante (mode lent)',
  3541. '103.problem': 'Le segment carrossable n\'a pas de connexion sortante au nœud B',
  3542. '103.solution': 'Activer au moins une connexion sortante = une flèche verte au nœud B',
  3543. '104.title': 'Voie ferré utilisée pour des commentaires',
  3544. '104.problem': 'Le segment de voie ferré est probablement utilisé pour mettre un commentaire',
  3545. '104.solution': 'Supprimez le commentaire car les voies ferrée sont affichées pour le client',
  3546. '107.title': 'Noeud A: Pas de connexion (mode lent)',
  3547. '107.problem': 'Le noeud A du segment carrossable est à moins de 5m d\'un autre secteur carrossable mais n\'y est pas connecté',
  3548. '107.solution': 'Connectez le noeud A à un segment à proximité ou le déplacer un peu plus loin',
  3549. '108.title': 'Noeud B: pas de connexion (mode lent)',
  3550. '108.problem': 'Le noeud B du segment carrossable est à moins de 5m d\'un autre secteur carrossable mais n\'y est pas connecté',
  3551. '108.solution': 'Connectez le noeud B à un segment à proximité ou le déplacer un peu plus loin',
  3552. '109.title': 'Segment trop court',
  3553. '109.problem': 'Le segment carrossables non-terminal est de moins de 2m de long, il est difficile de le voir sur la carte',
  3554. '109.solution': 'Augmentez sa taille, supprimez le ou connectez le à un segment adjacent',
  3555. '112.title': 'Plus de ${n} lettres en trop pour le nom de la rampe',
  3556. '112.problem': 'Le nom de la rampe est trop long',
  3557. '112.solution': 'Renommez de façon plus courte le nom de la rampe',
  3558. '114.title': 'Noeud A: non carrossable connecté à un carrossable (mode lent)',
  3559. '114.problem': 'Le segment non carrossable a une jonction avec un segment carrossable au noeud A',
  3560. '114.solution': 'Déconnectez le noeud A de tous les segments carrossables',
  3561. '115.title': 'Noeud B: non carrossable connecté à un carrossable (mode lent)',
  3562. '115.problem': 'Le segment non carrossable a une jonction avec un segment carrossable au noeud B',
  3563. '115.solution': 'Déconnectez le noeud B de tous les segments carrossables',
  3564. '116.title': 'Élévation hors de portée',
  3565. '116.problem': 'L\'élévation est en dehors des limites habituelle',
  3566. '116.solution': 'Corrigez l\'élévation',
  3567. '117.title': 'Obsolete CONST ZN marker',
  3568. '117.problem': 'The segment is marked with obsolete CONST ZN suffix',
  3569. '117.solution': 'Change CONST ZN to (closed)',
  3570. '118.title': 'Noeud A: Chevauchement des segments (mode lent)',
  3571. '118.problem': 'Le segment se chevauche avec le segment adjacent au noeud A',
  3572. '118.solution': 'Divisez les segments à 2° ou supprimez le point de la géométrie inutile ou supprimez le segment double au noeud A',
  3573. '119.title': 'Noeud B: Chevauchement des segments (mode lent)',
  3574. '119.problem': 'Le segment se chevauche avec le segment adjacent au noeud B',
  3575. '119.solution': 'Divisez les segments à 2° ou supprimez le point de la géométrie inutile ou supprimez le segment double au noeud B',
  3576. '120.title': 'Noeud A: Virage trop fort (mode lent)',
  3577. '120.problem': 'Le segment carrossable a un virage très fort au noeud A',
  3578. '120.solution': 'Désactiver le virage au noeud A ou écarter les segments à 30°',
  3579. '121.title': 'Noeud B: Virage trop fort (mode lent)',
  3580. '121.problem': 'Le segment carrossable a un virage très fort au noeud B',
  3581. '121.solution': 'Désactiver le virage au noeud A ou écarter les segments à 30°',
  3582. '128.title': 'Vérification personnalisée définie par l\'utilisateur (vert)',
  3583. '128.problem': 'Certaines des propriétés du segment sont à l\'encontre de la Regular Expression définie par l\'utilisateur (voir Paramètres→Personnaliser)',
  3584. '128.solution': 'Résoudre le problème',
  3585. '129.title': 'Vérification personnalisée définie par l\'utilisateur (bleu)',
  3586. '129.problem': 'Certaines des propriétés du segment sont à l\'encontre de la Regular Expression définie par l\'utilisateur (voir Paramètres→Personnaliser)',
  3587. '129.solution': 'Résoudre le problème',
  3588. '163.enabled': true,
  3589. '163.title': '\'Vers\' dans le nom de la rue',
  3590. '163.problem': 'Nom de rue contenant \'vers\'',
  3591. '163.solution': 'Renommer le segment selon les règles du wiki ou signaler sur le forum',
  3592. '163.solutionLink': 'W:Nommage_France#Nommage_des_entr.C3.A9es.2C_sorties_et_des_embranchements_d.27autoroutes',
  3593. '163.params': {
  3594. 'titleEN': '\'Vers\' in Ramp name',
  3595. 'problemEN': 'The Ramp name contains word \'vers\'',
  3596. 'solutionEN': 'Rename the Ramp in accordance with the guidelines',
  3597. 'regexp': '/(^|\\b)vers\\b/i'
  3598. },
  3599. '170.enabled': true,
  3600. '170.solutionLink': 'W:Nommage_France#R.C3.A8gles_de_nommage',
  3601. '170.title': 'Majuscule dans le nom de rue',
  3602. '170.problem': 'Le nom de la rue commence par une miniscule',
  3603. '170.solution': 'Passer la première lettre en majuscule',
  3604. '171.enabled': true,
  3605. '171.title': 'Abréviation dans le nom de rue',
  3606. '171.problem': 'Abréviation indésirable dans le nom de rue',
  3607. '171.solution': 'Écrire le mot abréger en toute lettre',
  3608. '171.params': {
  3609. 'regexp':
  3610. '/((^| )([Ss]t-|[Ss]te-))|((^| )([Ss]t|[Ss]te|[Mm]al(?! Assis)|[Gg]al|[Aa]v|[Bb]lvd|[Ii]mp|[Pp]l|[Ss]q|[Aa]ll|[Bb][Dd])($| ))|((^| )(?!(Z\\.I|Z\\.A|Z\\.A\\.C|C\\.C|S\\.N\\.C\\.F|R\\.E\\.R)\\.)[^ ]+\\.)/'
  3611. },
  3612. '172.title': 'Nom de rue avec des espaces inutiles',
  3613. '172.problem': 'Double espace dans le nom de rue',
  3614. '172.problemLink': 'W:Comment_nommer_les_routes_et_les_villes',
  3615. '172.solution': 'Supprimer les espaces inutiles',
  3616. '173.enabled': false,
  3617. '173.title': 'Nom de rue sans espace avant ou après une abrévation',
  3618. '173.problem': 'Pas d\'espace avant (\'1943r.\') ou après (\'st.Jan\') une abrévation dans le nom de rue',
  3619. '173.solution': 'Ajouter un espace avant/après l\'abrévation',
  3620. '174.enabled': true,
  3621. '174.title': 'Mauvais orthographe',
  3622. '174.problem': 'Mauvais orthographe qui provoque une mauvaise prononciation',
  3623. '174.solution': 'Corriger l\'orthographe (É = Alt-144 etc)',
  3624. '174.solutionLink': 'W:Nommage_France#R.C3.A8gles_de_nommage',
  3625. '174.params': {
  3626. 'regexp':
  3627. '/(^|\\b)(allee|acces|chateau|ecole|egalit[eé]|[eé]galite|eglise|etang|gen[eé]ral|g[eé]neral|hotel|hopital|marechal|president|republique|ocean|ev[eê]ch[eé]|[eé]vech[eé]|[eé]v[eê]che|periphérique|elodie|etienne|eric|emile|emilie|edouard|elisabeth)/i'
  3628. },
  3629. '175.title': 'Nom de rue avec uniquement des espaces',
  3630. '175.problem': 'Le nom de la rue n\'a que des espaces',
  3631. '175.solution': 'Dans les propriétés de l\'adresse, cocher \'Sans\' pour le nom de la rue et cliquer sur \'Appliquer\' OU entrer un nom de rue approprié',
  3632. '190.title': 'Minuscule dans le nom de ville',
  3633. '190.problem': 'Le nom de ville commence avec une lettre en majuscule',
  3634. '190.solution': 'Utilisé ce formulaire pour renommer la ville',
  3635. '192.problemLink': 'W:Comment_nommer_les_routes_et_les_villes#Nommage_des_villes_et_villages',
  3636. '192.solutionLink': 'F:t=29403',
  3637. '192.title': 'Nom de ville avec des espaces inutiles',
  3638. '192.problem': 'Double espace dans le nom de ville',
  3639. '192.solution': 'Utiliser le formulaire suivant pour faire une demande de modification',
  3640. '193.enabled': false,
  3641. '193.title': 'Nom de bille sans espace avant ou après une abrévation',
  3642. '193.problem': 'Pas d\'espace avant (\'1943r.\') ou après (\'st.Jana\') une abrévation dans le nom de rue',
  3643. '193.solution': 'Utiliser ce formulaire pour renommer la ville',
  3644. '200.problemLink': 'W:Soft_et_hard_turns',
  3645. '200.solutionLink': 'W:Soft_et_hard_turns#Bonnes_pratiques',
  3646. '200.title': 'Noeud A: Autorisation de tourner non confirmée',
  3647. '200.problem': 'Le segment carrossable à une autorisation de tourner non confirmée au noeud A',
  3648. '200.solution': 'Cliquer l\'autorisation de tourner avec un ? violet pour la confirmer. Il peut être nécessaire de passer les sens unique à double sens pour afficher des flèches cachées'
  3649. },
  3650. 'ES': {
  3651. '.codeISO': 'ES',
  3652. '.country': [
  3653. 'Spain', 'Andorra', 'Bolivia', 'Costa Rica', 'Colombia', 'Cuba', 'Dominican Republic', 'Ecuador', 'Equatorial Guinea', 'Guatemala', 'Honduras', 'Nicaragua', 'Panama', 'Peru', 'Paraguay',
  3654. 'El Salvador', 'Uruguay', 'Venezuela'
  3655. ],
  3656. '.author': 'robindlc and fernandoanguita',
  3657. '.updated': '2014-08-30',
  3658. '.lng': ['ES', 'ES-419', 'GL'],
  3659. 'city.consider': 'considerar este nombre de ciudad:',
  3660. 'city.1': 'nombre de ciudad demasiado corto',
  3661. 'city.2': 'expandir la abreviación',
  3662. 'city.3': 'completar nombre corto',
  3663. 'city.4': 'completar nombre de ciudad',
  3664. 'city.5': 'corregir mayúsculas',
  3665. 'city.6': 'comprobar orden de palabras',
  3666. 'city.7': 'comprobar abreviaciones',
  3667. 'city.8a': 'añadir nombre de país',
  3668. 'city.8r': 'eliminar nombre de país',
  3669. 'city.9': 'comprobar nombre de país',
  3670. 'city.10a': 'añadir palabra',
  3671. 'city.10r': 'eliminar palabra',
  3672. 'city.11': 'añadir código de país',
  3673. 'city.12': 'nombres idénticos, pero ciudades con diferentes IDs',
  3674. 'city.13a': 'añadir espacio',
  3675. 'city.13r': 'eliminar espacio',
  3676. 'city.14': 'revisar el número',
  3677. 'props.skipped.title': 'El segmento no está revisado',
  3678. 'props.skipped.problem': 'El segmento se modificó después del 01-05-2014 Y está bloqueado por ti, por lo que Validator no lo revisó',
  3679. 'err.regexp': 'Error al analizar la opción de revisión #${n}:',
  3680. 'props.disabled': 'WME Validator deshabilitado',
  3681. 'props.limit.title': 'Demasiados problemas notificados',
  3682. 'props.limit.problem': 'Hay demasiados problemas notificados, puede que no se muestren todos',
  3683. 'props.limit.solution': 'Deselecciona el segmento y detiene el proceso de escaneo. Luego pincha el botón con la \'✘\' roja (Limpiar Reporte)',
  3684. 'props.reports': 'informes',
  3685. 'props.noneditable': 'No puedes editar este segmento',
  3686. 'report.save': 'Guardar este informe',
  3687. 'report.list.andUp': 'y subiendo',
  3688. 'report.list.severity': 'Severidad:',
  3689. 'report.list.reportOnly': 'sólo en el informe',
  3690. 'report.list.forEditors': 'Para editores nivel:',
  3691. 'report.list.forCountries': 'Para paises:',
  3692. 'report.list.forStates': 'Para estados:',
  3693. 'report.list.forCities': 'Para ciudades:',
  3694. 'report.list.params': 'Parámetros para configurar en el paquete de localización:',
  3695. 'report.list.params.set': 'Parámetros ajustados en el paquete de localización:',
  3696. 'report.list.enabled': '${n} revisiones están habilitadas para',
  3697. 'report.list.disabled': '${n} revisiones están deshabilitadas para',
  3698. 'report.list.total': 'Hay ${n} revisiones disponibles',
  3699. 'report.list.title': 'Lista Completa de Revisiones para',
  3700. 'report.list.see': 'Ver',
  3701. 'report.list.checks': 'Configuración>Acerca>Revisiones disponibles',
  3702. 'report.list.fallback': 'Reglas de Localización de respaldo:',
  3703. 'report.and': 'y',
  3704. 'report.segments': 'Número total de segmentos revisados:',
  3705. 'report.customs': 'Revisiones personalizadas combinadas (verde/azul):',
  3706. 'report.reported': 'Reportados',
  3707. 'report.errors': 'errores',
  3708. 'report.warnings': 'advertencias',
  3709. 'report.notes': 'notas',
  3710. 'report.contents': 'Contenidos:',
  3711. 'report.summary': 'Resumen',
  3712. 'report.title': 'Informe de WME Validator',
  3713. 'report.share': 'para Compartir',
  3714. 'report.generated.by': 'generado por',
  3715. 'report.generated.on': 'activo',
  3716. 'report.source': 'Fuente del informe:',
  3717. 'report.filter.duplicate': 'segmentos duplicados',
  3718. 'report.filter.streets': 'Calles y Calles de Servicio',
  3719. 'report.filter.other': 'Otros conducibles y no conducibles',
  3720. 'report.filter.noneditable': 'segmentos no-editables',
  3721. 'report.filter.notes': 'notas',
  3722. 'report.filter.title': 'Filtro:',
  3723. 'report.filter.excluded': 'están excluidos de este informe.',
  3724. 'report.search.updated.by': 'actualizado por',
  3725. 'report.search.updated.since': 'actualizado desde',
  3726. 'report.search.city': 'desde',
  3727. 'report.search.reported': 'reportado como',
  3728. 'report.search.title': 'Búsqueda:',
  3729. 'report.search.only': 'sólo segmentos',
  3730. 'report.search.included': 'están incluídos en el informe.',
  3731. 'report.beta.warning': '¡Advertencia WME Beta!',
  3732. 'report.beta.text': 'Este informe se genera en WME Beta con permalinks beta.',
  3733. 'report.beta.share': 'Por favor no comparta estos permalinks!',
  3734. 'report.size.warning':
  3735. '<b>¡Advertencia!</b><br> El informe tiene ${n} caracteres, por lo que <b>no cabrá</b> en un mensaje de foro o privado.\n<br>Por favor agrega <b>más filtros</b> para reducir el tamaño del informe.',
  3736. 'report.note.limit': '* Nota: había demasiados problemas reportados, por lo que algunos de ellos no se incluyen en el resumen.',
  3737. 'report.forum': 'Para motivar futuros desarrollos, por favor deje su mensaje en el',
  3738. 'report.thanks': 'Gracias por usar WME Validator!',
  3739. 'msg.limit.segments': 'Hay demasiados segmentos.\n\nPincha \'Mostrar informe\' para revisar el informe, luego\n',
  3740. 'msg.limit.segments.continue': 'pincha \'▶\' para continuar.',
  3741. 'msg.limit.segments.clear': 'pulsa \'✘\' para borrar el informe.',
  3742. 'msg.pan.text': 'Desplaza el mapa para validarlo',
  3743. 'msg.zoomout.text': 'Aleja el zoom\tpara iniciar WME Validator',
  3744. 'msg.click.text': 'Pincha \'▶\' para validar el área visible del mapa',
  3745. 'msg.autopaused': 'autopausado',
  3746. 'msg.autopaused.text': '¡Autopausado! Pincha \'▶\' para continuar.',
  3747. 'msg.autopaused.tip': 'WME Validator automáticamente pausó al arrastrar el mapa o cambiar el tamaño de la ventana',
  3748. 'msg.finished.text': 'Pincha <b>\'Mostrar informe\'</b> para ver los problemas del mapa',
  3749. 'msg.finished.tip': 'Pincha el botón \'✉\' (Compartir) para publicar el informe en un \nforo o en un mensaje privado',
  3750. 'msg.noissues.text': '¡Terminado! ¡No se encontraron problemas!',
  3751. 'msg.noissues.tip': '¡Trata de deseleccionar algunas opciones de filtro o inicia WME Validator sobre otra zona del mapa!',
  3752. 'msg.scanning.text': '¡Escaneando! Finalizando en ~ ${n} minutos',
  3753. 'msg.scanning.text.soon': '¡Escaneando! ¡Finalizando en un minuto!',
  3754. 'msg.scanning.tip': 'Pincha el botón \'Pausa\' para pausar o \'■\' para detener',
  3755. 'msg.starting.text': '¡Comenzando! ¡Las capas están desactivadas para escanear más rápido!',
  3756. 'msg.starting.tip': 'Usa el botón \'Pausa\' para pausar o el botón \'■\' para detener',
  3757. 'msg.paused.text': '¡En pausa! Pincha el botón \'▶\' para continuar.',
  3758. 'msg.paused.tip': 'Para ver el informe pincha el botón \'Mostrar informe\' (si está disponible)',
  3759. 'msg.continuing.text': '¡Continuando!',
  3760. 'msg.continuing.tip': 'WME Validator continuará desde la ubicación en que fue pausado',
  3761. 'msg.settings.text': 'Pincha <b>\'Atrás\'</b> para retornar a la vista principal',
  3762. 'msg.settings.tip': 'Pincha el botón \'Restaurar valores predeterminados\' para resetear todos los parámetros en un clic!',
  3763. 'msg.reset.text': 'Todas las opciones de filtro y configuración han sido reseteadas a sus valores por defecto',
  3764. 'msg.reset.tip': 'Pincha el botón \'Atrás\' para retornar a la vista principal',
  3765. 'msg.textarea.pack': 'Por favor copia el texto abajo y luego pégalo en el nuevo archivo <b>.user.js</b>',
  3766. 'msg.textarea': 'Por favor copia el texto abajo y luego pégalo en tu publicación del foro o mensaje privado',
  3767. 'noaccess.text':
  3768. '<b>Lo sentimos,</b><br> No puedes usar WME Validator\taquí.<br>Por favor revisa <a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488\'>el hilo del foro</a><br>para más información.',
  3769. 'noaccess.tip': 'Por favor revisa el hilo del foro para más información!',
  3770. 'tab.switch.tip.on': 'Pincha para activar el resaltado',
  3771. 'tab.switch.tip.off': 'Pincha para desactivar el resaltado',
  3772. 'tab.filter.text': 'filtro',
  3773. 'tab.filter.tip': 'Opciones para filtrar el informe y los segmentos resaltados',
  3774. 'tab.search.text': 'buscar',
  3775. 'tab.search.tip': 'Opciones de filtro avanzadas para incluir sólo segmentos específicos',
  3776. 'tab.help.text': 'ayuda',
  3777. 'tab.help.tip': '¿Necesitas ayuda?',
  3778. 'filter.noneditables.text': 'Excluir segmentos <b>no-editables</b>',
  3779. 'filter.noneditables.tip': 'No reportar segmentos bloqueados o \nsegmentos fuera de su área de edición',
  3780. 'filter.duplicates.text': 'Excluir segmentos <b>duplicados</b>',
  3781. 'filter.duplicates.tip': 'No mostrar el mismo segmento en diferentes \npartes del reporte\n* Nota: esta opción NO AFECTA el resaltado',
  3782. 'filter.streets.text': 'Excluir <b>Calles y Vías de Servicio</b>',
  3783. 'filter.streets.tip': 'No reportar Calles y Vías de Servicio',
  3784. 'filter.other.text': 'Excluir <b>otros conducibles y no-conducibles</b>',
  3785. 'filter.other.tip': 'No reportar Caminos de Tierra, Vías de Estacionamiento y Caminos Privados\ny no-conducibles',
  3786. 'filter.notes.text': 'Excluir <b>notas</b>',
  3787. 'filter.notes.tip': 'Reportar sólo advertencias y errores',
  3788. 'search.youredits.text': 'Incluir <b>sólo tus ediciones</b>',
  3789. 'search.youredits.tip': 'Incluir sólo los segmentos editados por ti',
  3790. 'search.updatedby.text': '<b>Actualizado por:</b>',
  3791. 'search.updatedby.tip':
  3792. 'Incluir sólo segmentos actualizados por el editor especificado\nEste campo soporta:\n - listas: yo, OtrosEditores\n - comodines: palabra*\n - negación: !yo, *\n* Nota: puedes usar \'me\' para indicarte a ti mismo',
  3793. 'search.updatedby.example': 'Ejemplo: me',
  3794. 'search.updatedsince.text': '<b>Actualizado desde:</b>',
  3795. 'search.updatedsince.tip': 'Incluir sólo segmentos editados desde la fecha especificada formato de fecha\nFirefox: AAAA-MM-DD',
  3796. 'search.updatedsince.example': 'AAAA-MM-DD',
  3797. 'search.city.text': '<b>Nombre de ciudad:</b>',
  3798. 'search.city.tip': 'Incluir sólo segmentos con el nombre de ciudad especificado\nEste campo soporta:\n - listas: Paris, Meudon\n - comodines: Área * Mayor\n - negación: !Paris, *',
  3799. 'search.city.example': 'Ejemplo: !Paris, *',
  3800. 'search.checks.text': '<b>Reportado como:</b>',
  3801. 'search.checks.tip':
  3802. 'Incluir sólo segmentos reportados como específicos\nEste campo empareja:\n - severidades: errores\n - revisar nombres: Calle nueva\n - revisar IDs: 40\nEste campo soporta:\n - listas: 36, 37\n - comodines: *rotonda*\n - negación: !giros suaves*, *',
  3803. 'search.checks.example': 'Ejemplo: inverso*',
  3804. 'help.text':
  3805. ' <b>Hilos de Ayuda:</b><br><a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?f=819&t=76488&p=666476#p666476\'>F.A.Q.</a><br><a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?t=76488\'>Consulta tu duda en el foro</a><br><a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?f=819&t=76488&p=661300#p661185\'>Como ajustar Validator para tu país</a><br><a target=\'_blank\' href=\'https://www.waze.com/forum/viewtopic.php?f=819&t=76488&p=663286#p663286\'>Acerca de \'Puede ser un nombre de Ciudad incorrecto\'</a>',
  3806. 'help.tip': 'Abrir en una nueva pestaña del explorador',
  3807. 'button.scan.tip': 'Comenzar escaneo del área del mapa actual \n* Nota: esto puede tomar unos minutos',
  3808. 'button.scan.tip.NA': 'Aleja el zoom para comenzar a escanear el área del mapa actual',
  3809. 'button.pause.tip': 'Pausar escaneo',
  3810. 'button.continue.tip': 'Continuar escaneando el área del mapa',
  3811. 'button.stop.tip': 'Detener el escaneo y volver a la posición de inicio',
  3812. 'button.clear.tip': 'Borrar informe y caché de segmentos',
  3813. 'button.clear.tip.red': 'Hay demasiados segmentos reportados:\n 1. Pincha \'Mostrar informe\' para generar informe.\n 2. Pincha este botón para borrar el informe y comenzar de nuevo.',
  3814. 'button.report.text': 'Mostrar informe',
  3815. 'button.report.tip': 'Aplicar el filtro y generar informe HTML en una nueva pestaña',
  3816. 'button.BBreport.tip': 'Compartir el informe en el foro Waze o en un mensaje privado',
  3817. 'button.settings.tip': 'Configurar ajustes',
  3818. 'tab.custom.text': 'personalizado',
  3819. 'tab.custom.tip': 'Ajustes de revisión personalizados definidos por el usuario',
  3820. 'tab.settings.text': 'Ajustes',
  3821. 'tab.scanner.text': 'escanear',
  3822. 'tab.scanner.tip': 'Ajustes de escaneo de mapa',
  3823. 'tab.about.text': 'acerca de</span>',
  3824. 'tab.about.tip': 'Acerca de WME Validator',
  3825. 'scanner.sounds.text': 'Habilitar sonidos',
  3826. 'scanner.sounds.tip': 'Pitidos y sonidos mientras escanea',
  3827. 'scanner.sounds.NA': 'Su navegador no admite AudioContext',
  3828. 'scanner.highlight.text': 'Resalta problemas en el mapa',
  3829. 'scanner.highlight.tip': 'Resalta problemas reportados en el mapa',
  3830. 'scanner.slow.text': 'Activa \'slow\' verificaciones',
  3831. 'scanner.slow.tip': 'Activa análisis profundo del mapa\n* Nota: esta opción puede ralentizar el proceso de escaneo',
  3832. 'scanner.ext.text': 'Informa de resaltados externos',
  3833. 'scanner.ext.tip': 'Informa de segmentos resaltados por WME Toolbox o WME Color Highlights',
  3834. 'custom.template.text': 'Plantilla personalizada',
  3835. 'custom.template.tip':
  3836. 'Plantilla para comprobaciones definidas por el usuario.\n\nPuede usar las siguientes variables expandibles:\n${country}, ${state}, ${city}, ${street},\n${country}, ${state}, ${city}, ${street},\n${altCity[index or delimeter]} Example: ${altCity[0]},\n${altStreet[index or delimeter]} Example: ${altStreet[##]},\n${type}, ${typeRank}, ${toll}, ${direction}, ${elevation}, ${lock},\n${length}, ${ID}, ${roundabout}, ${hasHNs},\n${drivable}, ${softTurns}, ${Uturn}, ${deadEnd},\n${segmentsA}, ${inA}, ${outB}, ${UturnA},\n${segmentsB}, ${inB}, ${outB}, ${UturnB}',
  3837. 'custom.template.example': 'Ejemplo: ${street}',
  3838. 'custom.regexp.text': 'Personalizado <a target=\'_blank\' href=\'https://developer.mozilla.org/docs/JavaScript/Guide/Regular_Expressions\'>RegExp</a>',
  3839. 'custom.regexp.tip':
  3840. 'Expresión regular de comprobación personalizada definida por el usuario para que coincida con la plantilla.\n\nCase-insensitive match: /regexp/i\nNegation (do not match): !/regexp/\nLog debug information on console: D/regexp/',
  3841. 'custom.regexp.example': 'Ejemplo: !/.+/',
  3842. 'about.tip': 'Pincha \'actualizar\' para abrir el hilo del foro en una pestaña nueva',
  3843. 'button.reset.text': 'Restablecer predeterminados',
  3844. 'button.reset.tip': 'Revertir opciones de filtro y ajustes a sus valores predeterminados',
  3845. 'button.list.text': 'Comprobaciones disponibles...',
  3846. 'button.list.tip': 'Muestra una lista de las comprobaciones disponibles en WME Validator',
  3847. 'button.wizard.tip': 'Crear paquete de localización',
  3848. 'button.back.text': 'Atrás',
  3849. 'button.back.tip': 'Cerrar configuración y volver a la vista principal',
  3850. '1.solutionLink': 'W:Crear_y_editar_rotondas#Arreglar_rotondas_editadas_manualmente',
  3851. '1.title': 'WME Toolbox: Rotonda que puede causar problemas',
  3852. '1.problem': 'Los números de identificación de los puntos de unión de los segmentos de la rotonda no son consecutivos',
  3853. '1.solution': 'Rehacer la rotonda',
  3854. '2.title': 'WME Toolbox: Segmento Simple',
  3855. '2.problem': 'El segmento tiene nodos de geometría innecesarios',
  3856. '2.solution': 'Simplifica la geometría del segmento pasando el puntero del ratón por encima y pulsando la tecla \'d\'',
  3857. '3.title': 'WME Toolbox: Bloqueo nivel 2',
  3858. '3.problem': 'El segmento está resaltado por WME Toolbox. No es un problema',
  3859. '4.title': 'WME Toolbox: Bloqueo nivel 3',
  3860. '4.problem': 'El segmento está resaltado por WME Toolbox. No es un problema',
  3861. '5.title': 'WME Toolbox: Bloqueo nivel 4',
  3862. '5.problem': 'El segmento está resaltado por WME Toolbox. No es un problema',
  3863. '6.title': 'WME Toolbox: Bloqueo nivel 5',
  3864. '6.problem': 'El segmento está resaltado por WME Toolbox. No es un problema',
  3865. '7.title': 'WME Toolbox: Bloqueo nivel 6',
  3866. '7.problem': 'El segmento está resaltado por WME Toolbox. No es un problema',
  3867. '8.title': 'WME Toolbox: Numeros de casas',
  3868. '8.problem': 'El segmento está resaltado por WME Toolbox. No es un problema',
  3869. '9.title': 'WME Toolbox: Segmento con restricciones de tiempo',
  3870. '9.problem': 'El segmento está resaltado por WME Toolbox. No es un problema',
  3871. '13.title': 'WME Colour Highlights: Bloqueo de editor',
  3872. '13.problem': 'El segmento está resaltado por WME Colour Highlights. No es un problema',
  3873. '14.title': 'WME Colour Highlights: Peaje / Vía de sentido único',
  3874. '14.problem': 'El segmento está resaltado por WME Colour Highlights. No es un problema',
  3875. '15.title': 'WME Colour Highlights: Editado recientemente',
  3876. '15.problem': 'El segmento está resaltado por WME Colour Highlights. No es un problema',
  3877. '16.title': 'WME Colour Highlights: Rango de vías',
  3878. '16.problem': 'El segmento está resaltado por WME Colour Highlights. No es un problema',
  3879. '17.title': 'WME Colour Highlights: Sin ciudad',
  3880. '17.problem': 'El segmento está resaltado por WME Colour Highlights. No es un problema',
  3881. '18.title': 'WME Colour Highlights: Restricción horaria / Tipo de vía resaltado',
  3882. '18.problem': 'El segmento está resaltado por WME Colour Highlights. No es un problema',
  3883. '19.title': 'WME Colour Highlights: Sin nombre',
  3884. '19.problem': 'El segmento está resaltado por WME Colour Highlights. No es un problema',
  3885. '20.title': 'WME Colour Highlights: Filtro por ciudad',
  3886. '20.problem': 'El segmento está resaltado por WME Colour Highlights. No es un problema',
  3887. '21.title': 'WME Colour Highlights: Filtro por ciudad (alt. ciudad)',
  3888. '21.problem': 'El segmento está resaltado por WME Colour Highlights. No es un problema',
  3889. '22.title': 'WME Colour Highlights: Filtro por editor',
  3890. '22.problem': 'El segmento está resaltado por WME Colour Highlights. No es un problema',
  3891. '23.title': 'Segmento no confirmado',
  3892. '23.problem': 'Cada segmento debe tener al menos el nombre del país o estado',
  3893. '23.solution': 'Confirma la vía actualizando sus detalles',
  3894. '24.problemLink': 'W:Corrigiendo_ciudades_"manchadas"',
  3895. '24.title': 'Puede haber nombre incorrecto de ciudad (sólo disponible en el informe)',
  3896. '24.problem': 'El segmento puede tener un nombre de ciudad incorrecto',
  3897. '24.solution': 'Considera el nombre de ciudad sugerido y use este formulario para renombrar la ciudad',
  3898. '25.title': 'Dirección del segmento marcada como desconocida',
  3899. '25.problem': 'La dirección del segmento \'Desconocida\' no impedirá enrutar por la vía',
  3900. '25.solution': 'Fijar la dirección de la vía',
  3901. '27.enabled': true,
  3902. '27.problemLink': 'W:Corrigiendo_ciudades_"manchadas"',
  3903. '27.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Address_Properties',
  3904. '27.title': 'Nombre de ciudad en vía férrea',
  3905. '27.problem': 'Poner nombres de ciudad en la vía férrea puede generar ciudades manchadas',
  3906. '27.solution': 'En las propiedades de dirección seleccione la casilla \'Ninguno\' cerca del nombre de ciudad, haz clic en \'Aplicar\'',
  3907. '28.problemLink': 'W:Puntos_de_Unión._Guía_de_estilo#Bifurcaciones_de_rampas',
  3908. '28.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Address_Properties',
  3909. '28.title': 'Nombre de calle en una rampa bidireccional',
  3910. '28.problem': 'Si la rampa no tiene nombre, el nombre del segmento siguiente se propagará hacia atrás',
  3911. '28.solution': 'En la caja de propiedades de la dirección, marca la casilla \'Ninguno\' en el nombre de la calle y haz clic en \'Aplicar\'',
  3912. '29.problemLink': 'W:Crear_y_editar_rotondas#Creaci.C3.B3n_de_una_rotonda_a_partir_de_una_intersecci.C3.B3n',
  3913. '29.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Address_Properties',
  3914. '29.title': 'Nombre de calle en rotonda',
  3915. '29.problem': 'En Waze, no nombramos los segmentos de las rotondas',
  3916. '29.solution':
  3917. 'En la caja de propiedades de la dirección, marca la casilla \'Ninguno\' en el nombre de la calle y haz clic en \'Aplicar\' y después crea un punto de interés tipo \'intersección / intercambio\' para nombrar la rotonda',
  3918. '34.title': 'Nombre de calle alternativo vacío',
  3919. '34.problem': 'El nombre de calle alternativo está vacío',
  3920. '34.solution': 'Borrar el nombre alternativo de calle vacío',
  3921. '35.title': 'Segmento de vía sin terminar',
  3922. '35.problem': 'Waze no enrutará desde un segmento sin terminar',
  3923. '35.solution': 'Mover un poco el segmento para que el extremo sin terminar sea añadido automáticamente al punto de unión',
  3924. '36.title': 'Punto de unión A innecesario (slow)',
  3925. '36.problem': 'Los segmentos adyacentes al punto de unión A son idénticos',
  3926. '36.solution': 'Selecciona el punto de unión A y pulsa la tecla borrar para unir los dos segmentos',
  3927. '37.title': 'Punto de unión B innecesario (slow)',
  3928. '37.problem': 'Los segmentos adyacentes al punto de unión B son idénticos',
  3929. '37.solution': 'Selecciona el punto de unión B y pulsa la tecla borrar para unir los dos segmentos',
  3930. '38.problemLink': 'W:Restricciones_horarias#En_segmentos',
  3931. '38.title': 'Restricción de segmento caducada (slow)',
  3932. '38.problem': 'El segmento tiene una restricción caducada',
  3933. '38.solution': 'Hacer clic en \'Editar restricciones\' y borrar la restricción caducada',
  3934. '39.problemLink': 'W:Restricciones_horarias#En_giros',
  3935. '39.title': 'Restricción de giro caducada (slow)',
  3936. '39.problem': 'El segmento tiene un giro con una restricción caducada',
  3937. '39.solution': 'Hacer clic en el icono de reloj cerca de la flecha amarilla y borrar la restricción caducada',
  3938. '41.title': 'Conectividad inversa en punto de unión A del segmento',
  3939. '41.problem': 'Hay un giro que va contra la dirección del segmento en el punto de unión A del segmento',
  3940. '41.solution': 'Hacer el segmento \'bidireccional\', restringir todos los giros en el punto de unión A y luego hacer el segmento \'Unidireccional (A→B)\' nuevamente',
  3941. '42.title': 'Conectividad inversa en punto de unión B del segmento',
  3942. '42.problem': 'Hay un giro que va contra la dirección del segmento en el punto de unión B del segmento',
  3943. '42.solution': 'Hacer el segmento \'bidireccional\', restringir todos los giros en el punto de unión B y luego hacer el segmento \'Unidireccional (B→A)\' nuevamente',
  3944. '43.solutionLink': 'W:Guía_rápida_de_edición_de_mapas#Dividir_un_segmento',
  3945. '43.title': 'Auto conectividad',
  3946. '43.problem': 'El segmento está conectado a si mismo',
  3947. '43.solution': 'Divide el segmento en TRES partes',
  3948. '44.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Establecer_giros_permitidos_.28conexiones.29',
  3949. '44.title': 'Sin conexión de salida',
  3950. '44.problem': 'El segmento no tiene ningún giro de salida permitido',
  3951. '44.solution': 'Activa al menos un giro de salida desde el segmento',
  3952. '45.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Establecer_giros_permitidos_.28conexiones.29',
  3953. '45.title': 'Sin conexión de entrada',
  3954. '45.problem': 'El segmento no privado no tiene ningún giro de entrada permitido',
  3955. '45.solution': 'Selecciona un segmento adyacente y activa por lo menos un giro hacia el segmento',
  3956. '46.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Establecer_giros_permitidos_.28conexiones.29',
  3957. '46.title': 'Sin entrada en A (slow)',
  3958. '46.problem': 'El segmento no-privado no tiene ningún giro de entrada habilitado en el punto de unión A',
  3959. '46.solution': 'Selecciona un segmento adyacente y habilita al menos un giro hacia el segmento en el punto de unión A',
  3960. '47.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Establecer_giros_permitidos_.28conexiones.29',
  3961. '47.title': 'Sin entrada en B (slow)',
  3962. '47.problem': 'El segmento no-privado no tiene ningún giro de entrada habilitado en el punto de unión B',
  3963. '47.solution': 'Selecciona un segmento adyacente y habilita al menos un giro hacia el segmento en el punto de unión B',
  3964. '48.solutionLink': 'W:Crear_y_editar_rotondas#Arreglar_rotondas_editadas_manualmente',
  3965. '48.title': 'Segmento de rotonda bidireccional',
  3966. '48.problem': 'El segmento de rotonda es bidireccional',
  3967. '48.solution': 'Rehacer la rotonda',
  3968. '50.solutionLink': 'W:Crear_y_editar_rotondas#Arreglar_rotondas_editadas_manualmente',
  3969. '50.title': 'No hay conectividad en la rotonda (slow)',
  3970. '50.problem': 'El segmento de la rotonda no tiene conectividad con el segmento de rotonda siguiente',
  3971. '50.solution': 'Permitir un giro al segmento adyacente o rehacer la rotonda',
  3972. '57.enabled': true,
  3973. '57.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Address_Properties',
  3974. '57.title': 'Nombre de ciudad en rampa con nombre',
  3975. '57.problem': 'Poner el nombre de ciudad en las rampas puede afectar a los resultados de búsqueda',
  3976. '57.solution': 'En las propiedades de dirección seleccione la casilla \'Ninguno\' cerca del nombre de ciudad, haz clic en \'Aplicar\'',
  3977. '59.enabled': true,
  3978. '59.problemLink': 'W:Corrigiendo_ciudades_\'manchadas\'',
  3979. '59.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Address_Properties',
  3980. '59.title': 'Nombre de Ciudad en Autopista',
  3981. '59.problem': 'Poner nombres de ciudad en la Autopista puede generar ciudades manchadas',
  3982. '59.solution': 'En las propiedades de dirección seleccione la casilla \'Ninguno\' cerca del nombre de ciudad, haz clic en \'Aplicar\'',
  3983. '73.enabled': true,
  3984. '73.title': 'Menos de 3 caracteres de longitud en el nombre de la calle',
  3985. '73.problem': 'El nombre de la calle tiene una longitud de menos de 3 caracteres',
  3986. '73.solution': 'Corrige el nombre de la calle',
  3987. '74.problemLink': 'W:Crear_y_editar_rotondas',
  3988. '74.solutionLink': 'W:Crear_y_editar_rotondas#Arreglar_rotondas_editadas_manualmente',
  3989. '74.title': 'Varios segmentos en el punto de unión A de la rotonda',
  3990. '74.problem': 'La rotonda tiene en el punto de unión A más de un segmento conectado',
  3991. '74.solution': 'Rehacer la rotonda',
  3992. '77.title': 'Calle sin salida con giro en U',
  3993. '77.problem': 'La calle sin salida tiene un giro en U habilitado',
  3994. '77.solution': 'Deshabilitar el giro en U',
  3995. '78.solutionLink': 'W:Guía_rápida_de_edición_de_mapas#Dividir_un_segmento',
  3996. '78.title': 'Segmentos con los mismos puntos de inicio y final (slow)',
  3997. '78.problem': 'Dos segmentos comparten los puntos de inicio y final',
  3998. '78.solution': 'Divide el segmento. También puedes borrar uno de los segmentos si son idénticos',
  3999. '79.title': 'Conector para giros en U demasiado corto (slow)',
  4000. '79.problem': 'La longitud del segmento es menor de 15 metros por lo que el giro en U no es posible',
  4001. '79.solution': 'Aumente la longitud del segmento',
  4002. '87.problemLink': 'W:Crear_y_editar_rotondas',
  4003. '87.solutionLink': 'W:Crear_y_editar_rotondas#Arreglar_rotondas_editadas_manualmente',
  4004. '87.title': 'Más de un segmento de salida en el punto de unión A de la rotonda',
  4005. '87.problem': 'La rotonda tiene en el punto de unión A más de un segmento de salida conectado',
  4006. '87.solution': 'Rehacer la rotonda',
  4007. '90.enabled': true,
  4008. '90.title': 'Segmento de Autopista bidireccional',
  4009. '90.problem': 'La mayoría de las Autopistas están separadas en dos vías de un sentido, por lo que este segmento bidireccional puede ser un error',
  4010. '90.solution': 'Revisar dirección de Autopista',
  4011. '99.title': 'Giro en U en la entrada de rotonda (slow)',
  4012. '99.problem': 'El segmento de entrada a la rotonda tiene un giro en U habilitado',
  4013. '99.solution': 'Deshabilitar el giro en U',
  4014. '101.enabled': false,
  4015. '101.title': 'Zona en construcción (sólo disponible en el informe)',
  4016. '101.problem': 'El segmento está marcado como zona de construcción',
  4017. '101.solution': 'Si la construcción está terminada, volver a conectar el segmento y borrar el sufijo',
  4018. '102.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Establecer_giros_permitidos_.28conexiones.29',
  4019. '102.title': 'Sin salida en A (slow)',
  4020. '102.problem': 'El segmento no tiene ningún giro de salida habilitado en el punto de unión A',
  4021. '102.solution': 'Habilita al menos un giro de salida desde el segmento en el punto de unión A',
  4022. '103.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Establecer_giros_permitidos_.28conexiones.29',
  4023. '103.title': 'Sin salida en B (slow)',
  4024. '103.problem': 'El segmento no tiene ningún giro de salida habilitado en el punto de unión B',
  4025. '103.solution': 'Habilita al menos un giro de salida desde el segmento en el punto de unión B',
  4026. '104.title': 'Vía férrea usada para comentarios',
  4027. '104.problem': 'El segmento de vía férrea es probablemente usado como comentario de mapa',
  4028. '104.solution': 'Borrar el comentario ya que las vías férreas serán añadidas al mapa del cliente',
  4029. '107.title': 'Sin conexión en punto de unión A (slow)',
  4030. '107.problem': 'El punto de unión A del segmento está a menos de 5 metros de otro segmento pero no está conectado',
  4031. '107.solution': 'Conectar el punto de unión A a un segmento cercano o separarlos un poco más',
  4032. '108.title': 'Sin conexión en punto de unión B (slow)',
  4033. '108.problem': 'El punto de unión B del segmento está a menos de 5 metros de otro segmento pero no está conectado',
  4034. '108.solution': 'Conectar el punto de unión B a un segmento cercano o separarlos un poco más',
  4035. '109.solutionLink': 'W:Guía_rápida_de_edición_de_mapas#Eliminar_un_punto_de_uni.C3.B3n',
  4036. '109.title': 'Segmento muy corto',
  4037. '109.problem': 'El segmento tiene menos de 2 metros de longitud, así que es difícil de ver en el mapa',
  4038. '109.solution': 'Aumentar la longitud, borrar el segmento, o unirlo a un segmento adyacente',
  4039. '112.title': 'Más de 55 caracteres en el nombre de la Rampa',
  4040. '112.problem': 'El nombre de la Rampa tiene más de 55 caracteres',
  4041. '112.solution': 'Acorta el nombre de la Rampa',
  4042. '114.enabled': false,
  4043. '114.title': 'No transitable conectada a transitable en el punto de unión A (slow)',
  4044. '114.problem': 'El segmento no transitable tiene un punto de unión con un segmento transitable en el extremo A',
  4045. '114.solution': 'Desconecta el extremo A de todos los segmentos transitables',
  4046. '115.enabled': false,
  4047. '115.title': 'No transitable conectada a transitable en el punto de unión B (slow)',
  4048. '115.problem': 'El segmento no transitable tiene un punto de unión con un segmento transitable en el extremo B',
  4049. '115.solution': 'Desconecta el extremo B de todos los segmentos transitables',
  4050. '116.title': 'Elevación fuera de rango',
  4051. '116.problem': 'La elevación del segmento está fuera de rango',
  4052. '116.solution': 'Corrige la elevación',
  4053. '117.enabled': false,
  4054. '117.title': 'Marcado obsoleto: CONST ZN',
  4055. '117.problem': 'El segmento está marcado con el sufijo obsoleto CONST ZN',
  4056. '117.solution': 'Cambiar CONST ZN a (closed)',
  4057. '118.title': 'Segmentos superpuestos en A (slow)',
  4058. '118.problem': 'El segmento se solapa con el segmento adyacente en el punto de unión A',
  4059. '118.solution': 'Separa los dos segmentos al menos 2º o elimina el nodo de geometría innecesario o borra el segmento duplicado en el punto de unión A',
  4060. '119.title': 'Segmentos superpuestos en B (slow)',
  4061. '119.problem': 'El segmento se solapa con el segmento adyacente en el punto de unión B',
  4062. '119.solution': 'Separa los dos segmentos al menos 2º o elimina el nodo de geometría innecesario o borra el segmento duplicado en el punto de unión B',
  4063. '120.title': 'Giro demasiado cerrado en A (slow)',
  4064. '120.problem': 'El segmento tiene un giro demasiado cerrado en el punto de unión A',
  4065. '120.solution': 'Desactiva el giro cerrado en el punto de unión A o considera separar los segmentos hasta un ángulo de 30°',
  4066. '121.title': 'Giro demasiado cerrado en B (slow)',
  4067. '121.problem': 'El segmento tiene un giro demasiado cerrado en el punto de unión B',
  4068. '121.solution': 'Desactiva el giro cerrado en el punto de unión B o considera separar los segmentos hasta un ángulo de 30°',
  4069. '128.title': 'Comprobación personalizada por el usuario 1',
  4070. '128.problem': 'Alguna de las propiedades del segmento coinciden con la expresión regular definida por el usuario (ver Ajustes→Personalización)',
  4071. '128.solution': 'Resolver el problema',
  4072. '129.title': 'Comprobación personalizada por el usuario 2',
  4073. '129.problem': 'Alguna de las propiedades del segmento coinciden con la expresión regular definida por el usuario (ver Ajustes→Personalización)',
  4074. '129.solution': 'Resolver el problema',
  4075. '130.enabled': true,
  4076. '130.severity': 'N',
  4077. '130.title': 'Nivel de bloqueo de Autopista incorrecto',
  4078. '130.problem': 'El segmento de Autopista no está bloqueado a nivel 4',
  4079. '130.problemLink': 'W:Dudas_frecuentes_editando_mapas#.C2.BFDebo_.22bloquear.22_mis_ediciones.3F',
  4080. '130.solution': 'Bloquear el segmento de Autopista a nivel 4',
  4081. '130.params':
  4082. {'titleEN': 'No lock on Freeway', 'problemEN': 'The Freeway segment should be locked to Lvl 4', 'solutionEN': 'Lock the segment', 'template': '${type}:${lock}', 'regexp': '/^3:[^4]/'},
  4083. '131.enabled': true,
  4084. '131.severity': 'N',
  4085. '131.title': 'No lock on Major Highway',
  4086. '131.problem': 'The Major Highway segment should be locked to Lvl 3',
  4087. '131.problemLink': 'W:Dudas_frecuentes_editando_mapas#.C2.BFDebo_.22bloquear.22_mis_ediciones.3F',
  4088. '131.solution': 'Lock the segment',
  4089. '131.params': {
  4090. 'titleEN': 'No lock on Major Highway',
  4091. 'problemEN': 'The Major Highway segment should be locked to Lvl 3',
  4092. 'solutionEN': 'Lock the segment',
  4093. 'template': '${type}:${lock}:${street}',
  4094. 'regexp': '/^6:[^3]:N-/'
  4095. },
  4096. '133.enabled': true,
  4097. '133.severity': 'N',
  4098. '133.title': 'No lock on Ramp',
  4099. '133.problem': 'The Ramp segment should be locked to Lvl 3',
  4100. '133.problemLink': 'W:Dudas_frecuentes_editando_mapas#.C2.BFDebo_.22bloquear.22_mis_ediciones.3F',
  4101. '133.solution': 'Lock the segment',
  4102. '133.params':
  4103. {'titleEN': 'No lock on Ramp', 'problemEN': 'The Ramp segment should be locked to Lvl 3', 'solutionEN': 'Lock the segment', 'template': '${type}:${lock}', 'regexp': '/^4:[^3]/'},
  4104. '150.title': 'Nivel de bloqueo de Autopista incorrecto',
  4105. '150.problem': 'El segmento de Autopista no está bloqueado a nivel ${n}',
  4106. '150.solution': 'Bloquear el segmento de Autopista a nivel ${n}',
  4107. '169.title': 'Calle nombrada incorrectamente',
  4108. '169.problem': 'La calle tiene el nombre incorrecto, usando caracteres o palabras ilegales',
  4109. '169.solution': 'Renombre la calle de acuerdo a los criterios establecidos',
  4110. '170.enabled': true,
  4111. '170.title': 'Nombre de calle comienza con minúscula',
  4112. '170.problem': 'El nombre de la calle comienza con minúscula',
  4113. '170.solution': 'Escribir en mayúscula la primera letra del nombre',
  4114. '172.title': 'Nombre de calle con espacios innecesarios',
  4115. '172.problem': 'Espacio en blanco inicial/final o doble en el nombre de la calle',
  4116. '172.solution': 'Borrar los espacios innecesarios del nombre de Calle',
  4117. '173.enabled': false,
  4118. '173.title': 'Nombre de segmento sin espacio antes o después de una abreviación',
  4119. '173.problem': 'Sin espacio antes (\'1943r.\') o después (\'St.Jan\') de una abreviación en el nombre del segmento',
  4120. '173.solution': 'Agregar un espacio antes/después de la abreviación',
  4121. '175.solutionLink': 'W:Crear_y_editar_segmentos_de_vías#Address_Properties',
  4122. '175.title': 'Nombre del segmento sólo con espacios',
  4123. '175.problem': 'El nombre del segmento sólo tiene espacios en blanco en el nombre',
  4124. '175.solution': 'En la caja de propiedades de la dirección, marca la casilla \'Ninguno\' en el nombre de la calle y haz clic en \'Aplicar\' o escribe un nombre de calle correcto',
  4125. '190.title': 'Nombre de ciudad con minúscula',
  4126. '190.problem': 'El nombre de la ciudad comienza con minúscula',
  4127. '190.solution': 'Utiliza este formulario para renombrar la ciudad',
  4128. '192.title': 'Nombre de Ciudad con espacios innecesarios',
  4129. '192.problem': 'Espacio en blanco inicial/final o doble en el nombre de la ciudad',
  4130. '192.solution': 'Use este formulario para renombrar la Ciudad',
  4131. '193.enabled': false,
  4132. '193.title': 'Nombre de Ciudad sin espacio delante o atrás de una abreviación',
  4133. '193.problem': 'Sin espacio antes (\'1943r.\') o después (\'St.Jean\') de una abreviación en el nombre de la ciudad',
  4134. '193.solution': 'Use este formulario para renombrar la Ciudad',
  4135. '200.problemLink': 'W:Giros_implícitos_y_explícitos',
  4136. '200.solutionLink': 'W:Giros_implícitos_y_explícitos#Mejores_pr.C3.A1cticas',
  4137. '200.title': 'Unión A: Giro suave (implícito) en segmento',
  4138. '200.problem': 'El segmento tiene un giro no confirmado',
  4139. '200.solution':
  4140. 'Haz clic en el giro indicado con un signo de interrogación color púrpura para confirmarlo. Nota: es posible que debas hacer el segmento bidireccional para ver todos los giros',
  4141. '201.problemLink': 'W:Giros_implícitos_y_explícitos',
  4142. '201.solutionLink': 'W:Giros_implícitos_y_explícitos#Mejores_pr.C3.A1cticas',
  4143. '201.title': 'Unión A: Giro suave (implícito) en segmento principal',
  4144. '201.problem': 'El segmento principal tiene un giro no confirmado',
  4145. '201.solution':
  4146. 'Haz clic en el giro indicado con un signo de interrogación color púrpura para confirmarlo. Nota: es posible que debas hacer el segmento bidireccional para ver todos los giros'
  4147. },
  4148. 'DE': {
  4149. '.codeISO': 'DE',
  4150. '.country': 'Germany',
  4151. '59.enabled': true,
  4152. '59.problemLink': 'W:How_to_label_and_name_roads_(Austria)#Autobahnen_and_Schnellstra.C3.9Fen_.28A_.26_S.29',
  4153. '90.enabled': true,
  4154. '110.enabled': true,
  4155. '150.enabled': true,
  4156. '150.problemLink': 'W:Die_beste_Vorgehensweise_beim_Bearbeiten_der_Karte#Richtung_und_Sperren_von_Stra.C3.9Fen',
  4157. '214.params': {'regexp': '/^7|.+0$/'},
  4158. '215.params': {'regexp': '/^7|.+0$/'}
  4159. },
  4160. 'CZ': {
  4161. '.codeISO': 'CZ',
  4162. '.country': 'Czech Republic',
  4163. '27.enabled': true,
  4164. '52.enabled': true,
  4165. '73.enabled': true,
  4166. '90.enabled': true,
  4167. '105.enabled': true,
  4168. '150.enabled': true,
  4169. '150.problemLink': 'F:t=64980&p=572847#p572847',
  4170. '150.params': {'n': 4},
  4171. '151.enabled': true,
  4172. '151.problemLink': 'F:t=64980&p=572847#p572847',
  4173. '151.params': {'n': 4},
  4174. '152.enabled': true,
  4175. '152.problemLink': 'F:t=64980&p=572847#p572847',
  4176. '152.params': {'n': 4},
  4177. '153.enabled': true,
  4178. '153.problemLink': 'F:t=64980&p=572847#p572847',
  4179. '153.params': {'n': 4},
  4180. '154.enabled': true,
  4181. '154.problemLink': 'F:t=64980&p=572847#p572847',
  4182. '154.params': {'n': 3},
  4183. '170.enabled': true,
  4184. '170.params': {
  4185. 'regexp':
  4186. '/^(?!(alej|bratranců|bratří|bří|dr\\.|gen\\.|generála|kapitána|kpt\\.|krále|majora|mjr\\.|most|nábř\\.|nábřeží|nám\\.|náměstí|park|plk\\.|plukovníka|podplukovníka|por\\.|poručíka|pplk\\.|prap\\.|praporčíka|prof\\.|promenáda|sad|sady|sídl\\.|sídliště|tř\\.|třída|tunel|ul\\.|ulice|zahrada) [^a-z])[a-z]/'
  4187. }
  4188. },
  4189. 'CL': {'.codeISO': 'CL', '.country': 'Chile', '.fallbackCode': 'ES', '59.enabled': true, '150.enabled': true, '170.enabled': true, '200.enabled': false},
  4190. 'CH': {
  4191. '.codeISO': 'CH',
  4192. '.country': 'Switzerland',
  4193. '59.enabled': true,
  4194. '59.problemLink': 'W:How_to_label_and_name_roads_(Austria)#Autobahnen_and_Schnellstra.C3.9Fen_.28A_.26_S.29',
  4195. '90.enabled': true,
  4196. '110.enabled': true,
  4197. '150.enabled': true,
  4198. '150.problemLink': 'W:Die_beste_Vorgehensweise_beim_Bearbeiten_der_Karte#Richtung_und_Sperren_von_Stra.C3.9Fen'
  4199. },
  4200. 'BN': {
  4201. '.codeISO': 'BN',
  4202. '.country': 'Brunei',
  4203. '69.enabled': true,
  4204. '73.enabled': true,
  4205. '150.enabled': true,
  4206. '150.params': {'n': 2},
  4207. '151.enabled': true,
  4208. '151.params': {'n': 2},
  4209. '152.enabled': true,
  4210. '152.params': {'n': 2}
  4211. },
  4212. 'BG': {'.codeISO': 'BG', '.country': 'Bulgaria', '27.enabled': true},
  4213. 'BE': {
  4214. '.codeISO': 'BE',
  4215. '.country': 'Belgium',
  4216. '109.params': {'n': 6},
  4217. '150.enabled': true,
  4218. '150.problemLink': 'W:Belgium/Freeway',
  4219. '151.enabled': true,
  4220. '151.problemLink': 'W:Belgium/Major_Highway',
  4221. '152.enabled': true,
  4222. '152.problemLink': 'W:Belgium/Minor_Highway',
  4223. '154.enabled': true,
  4224. '154.problemLink': 'W:Belgium/Primary_Street',
  4225. '160.enabled': true,
  4226. '160.problemLink': 'W:Belgium/Freeway',
  4227. '160.params':
  4228. {'solutionEN': 'Rename the Freeway segment to a \'Anum\' or \'Anum - Enum\' or \'Anum > Dir1 / Dir2\'', 'regexp': '!/^(A|B|E)[0-9]+( - (A|E)[0-9]+)*( > [^\\/]+( \\/ [^\\/]+)*)?$/'},
  4229. '163.enabled': true,
  4230. '163.problemLink': 'W:Belgium/Roads#Highways',
  4231. '163.solutionLink': 'W:Belgium/Ramp',
  4232. '163.params': {
  4233. 'titleEN': 'Ramp name starts with a number',
  4234. 'problemEN': 'The Ramp name starts with a number',
  4235. 'solutionEN': 'Rename the Ramp in accordance with the guidelines',
  4236. 'regexp': '/^([0-9]+)/'
  4237. },
  4238. '171.enabled': true,
  4239. '171.problemLink': 'W:Belgium/Ramp#Text_To_Speech_.28TTS.29_-_ri_-_di',
  4240. '171.params': {'problemEN': 'The street name contains incorrect \'ri.\' abbreviation', 'solutionEN': 'Change the \'ri.\' abbreviation to \'ri\' (no dot)', 'regexp': '/(^|\\b)ri\\./i'}
  4241. },
  4242. 'AU': {
  4243. '.codeISO': 'AU',
  4244. '.country': 'Australia',
  4245. '27.enabled': true,
  4246. '59.enabled': true,
  4247. '59.problemLink': 'W:How_to_label_and_name_roads_(Australia)#Freeway',
  4248. '112.enabled': false,
  4249. '150.enabled': true,
  4250. '150.problemLink': 'W:How_to_label_and_name_roads_(Australia)#Freeway',
  4251. '151.enabled': true,
  4252. '151.problemLink': 'W:How_to_label_and_name_roads_(Australia)#Major_Highway',
  4253. '151.params': {'n': 3},
  4254. '152.enabled': true,
  4255. '152.problemLink': 'W:How_to_label_and_name_roads_(Australia)#Minor_Highway'
  4256. },
  4257. 'AT': {
  4258. '.codeISO': 'AT',
  4259. '.country': 'Austria',
  4260. '59.enabled': true,
  4261. '59.problemLink': 'W:How_to_label_and_name_roads_(Austria)#Autobahnen_and_Schnellstra.C3.9Fen_.28A_.26_S.29',
  4262. '90.enabled': true,
  4263. '110.enabled': true,
  4264. '150.enabled': true,
  4265. '150.problemLink': 'W:Die_beste_Vorgehensweise_beim_Bearbeiten_der_Karte#Richtung_und_Sperren_von_Stra.C3.9Fen'
  4266. },
  4267. 'AR': {
  4268. '.codeISO': 'AR',
  4269. '.country': 'Argentina',
  4270. '.fallbackCode': 'ES',
  4271. '150.enabled': true,
  4272. '169.enabled': true,
  4273. '169.solutionLink': 'W:Como_categorizar_y_nombrar_calles_(Argentina)#Calles',
  4274. '169.params': {'regexp': '/(^|\\b)[Cc]alle(?! [0-9]+( ([A-Z]|bis))?$)/'}
  4275. }
  4276. };
  4277. var CC_UNDEFINED = 48;
  4278. var CC_NULL = 34;
  4279. var CC_BOOL = 46;
  4280. var CC_NUMBER = 44;
  4281. var CC_STRING = 58;
  4282. var CC_GLOBAL = 5;
  4283. var CC_FUNCTION = 37;
  4284. var CC_ARRAY = 32;
  4285. var CC_OBJECT = 42;
  4286. var CC_REGEXP = 23;
  4287. var CC_DATE = 33;
  4288. function classOf(val) {
  4289. return {}.toString.call(val).slice(8, -1)
  4290. }
  4291. function classCode(obj) {
  4292. return {}.toString.call(obj).charCodeAt(8) ^ {}.toString.call(obj).charCodeAt(11)
  4293. }
  4294. function classCodeIs(obj, cc) {
  4295. return cc === classCode(obj)
  4296. }
  4297. function classCodeDefined(obj) {
  4298. return CC_UNDEFINED !== classCode(obj)
  4299. }
  4300. function isEmpty(obj) {
  4301. for (var k in obj)
  4302. if (obj.hasOwnProperty(k)) return false;
  4303. return true
  4304. }
  4305. function deepCopy(obj) {
  4306. switch (classCode(obj)) {
  4307. case CC_ARRAY:
  4308. var cpy = [];
  4309. for (var i = 0, len = obj.length; i < len; i++) cpy[i] = deepCopy(obj[i]);
  4310. return cpy;
  4311. case CC_OBJECT:
  4312. var cpy = {};
  4313. for (var attr in obj)
  4314. if (obj.hasOwnProperty(attr)) cpy[attr] = deepCopy(obj[attr]);
  4315. return cpy
  4316. }
  4317. return obj
  4318. }
  4319. function deepCompare(obj1, obj2) {
  4320. if (obj1 === obj2) return true;
  4321. if (classCode(obj1) !== classCode(obj2)) return false;
  4322. switch (classCode(obj1)) {
  4323. case CC_ARRAY:
  4324. if (obj1.length != obj2.length) return false;
  4325. for (var i = 0; i < obj1.length; i++)
  4326. if (!deepCompare(obj1[i], obj2[i])) return false;
  4327. return true;
  4328. case CC_OBJECT:
  4329. for (var k in obj1) {
  4330. if (!obj1.hasOwnProperty(k)) continue;
  4331. if (!obj2.hasOwnProperty(k)) return false;
  4332. if (!deepCompare(obj1[k], obj2[k])) return false
  4333. }
  4334. return true
  4335. }
  4336. return false
  4337. }
  4338. function getDirection(seg) {
  4339. return (seg.attributes.fwdDirection ? 1 : 0) + (seg.attributes.revDirection ? 2 : 0)
  4340. }
  4341. function getLocalizedValue(val, country) {
  4342. var ipu = OpenLayers.INCHES_PER_UNIT;
  4343. var mph = false;
  4344. if (country == 'United Kingdom' || country == 'Jersey' || country == 'Guernsey' || country == 'United States') mph = true;
  4345. return mph ? Math.round(val * ipu['km'] / ipu['mi']) : val
  4346. };
  4347. var DEF_DEBUG = false;
  4348. var _THUI = {};
  4349. _THUI.NONE = 1;
  4350. _THUI.DIV = 2;
  4351. _THUI.NUMBER = 3;
  4352. _THUI.RADIO = 4;
  4353. _THUI.CHECKBOX = 5;
  4354. _THUI.BUTTON = 6;
  4355. _THUI.TEXT = 7;
  4356. _THUI.PASSWORD = 8;
  4357. _THUI.DATE = 9;
  4358. var _WV = {};
  4359. var WME_BETA = false;
  4360. _WV.$loggedIn = 0;
  4361. _WV.$functions = [];
  4362. var _UI = {};
  4363. var _RT = {};
  4364. var _REP = {};
  4365. var GL_SHOWLAYERS = false;
  4366. var GL_LAYERNAME = 'WME Validator';
  4367. var GL_LAYERUNAME = 'WMEValidator';
  4368. var GL_LAYERACCEL = 'toggleWMEValidator';
  4369. var GL_LAYERSHORTCUT = 'A+v';
  4370. var GL_TBCOLOR = 'WMETB_color';
  4371. var GL_TBPREFIX = 'WMETB';
  4372. var GL_WMECHCOLOR = 'WMECH_color';
  4373. var GL_NOTECOLOR = '#30E';
  4374. var GL_NOTEBGCOLOR = '#EEF';
  4375. var GL_WARNINGCOLOR = '#DA0';
  4376. var GL_WARNINGBGCOLOR = '#FFE';
  4377. var GL_ERRORCOLOR = '#E00';
  4378. var GL_ERRORBGCOLOR = '#FEE';
  4379. var GL_CUSTOM1COLOR = '#0A0';
  4380. var GL_CUSTOM1BGCOLOR = '#EFE';
  4381. var GL_CUSTOM2COLOR = '#09E';
  4382. var GL_CUSTOM2BGCOLOR = '#EFF';
  4383. var GL_VISITEDCOLOR = '#0E0';
  4384. var GL_VISITEDBGCOLOR = '#EFE';
  4385. var GL_NOID = 'No ID';
  4386. var GL_GRAYCOLOR = '#AAA';
  4387. var GL_TODOMARKER = 'TODO: ';
  4388. var RT_RUNWAY = 19;
  4389. var RR_RUNWAY = 1;
  4390. var RT_RAILROAD = 18;
  4391. var RR_RAILROAD = 2;
  4392. var RT_STAIRWAY = 16;
  4393. var RR_STAIRWAY = 3;
  4394. var RT_BOARDWALK = 10;
  4395. var RR_BOARDWALK = 4;
  4396. var RT_TRAIL = 5;
  4397. var RR_TRAIL = 5;
  4398. var RT_PRIVATE = 17;
  4399. var RR_PRIVATE = 6;
  4400. var RT_PARKING = 20;
  4401. var RR_PARKING = 7;
  4402. var RT_DIRT = 8;
  4403. var RR_DIRT = 8;
  4404. var RT_SERVICE = 21;
  4405. var RR_SERVICE = 9;
  4406. var RT_STREET = 1;
  4407. var RR_STREET = 10;
  4408. var RT_PRIMARY = 2;
  4409. var RR_PRIMARY = 11;
  4410. var RT_RAMP = 4;
  4411. var RR_RAMP = 12;
  4412. var RT_MINOR = 7;
  4413. var RR_MINOR = 13;
  4414. var RT_MAJOR = 6;
  4415. var RR_MAJOR = 14;
  4416. var RT_FREEWAY = 3;
  4417. var RR_FREEWAY = 15;
  4418. var DIR_UNKNOWN = 0;
  4419. var DIR_AB = 1;
  4420. var DIR_BA = 2;
  4421. var DIR_TWO = 3;
  4422. var ST_STOP = 1116352408;
  4423. var ST_RUN = 1899447441;
  4424. var ST_PAUSE = 3049323471;
  4425. var ST_CONTINUE = 3921009573;
  4426. var DIR_L2R = 961987163;
  4427. var DIR_R2L = -961987163;
  4428. var RF_HTML = 1508970993;
  4429. var RF_BB = 2453635748;
  4430. var RF_LIST = 2870763221;
  4431. var RF_UPDATEMAXSEVERITY = 1;
  4432. var RF_CREATEPACK = 2;
  4433. var RT_STOP = 1;
  4434. var RT_NEXTCHECK = 2;
  4435. var RS_NOTE = 1;
  4436. var RS_WARNING = 2;
  4437. var RS_ERROR = 3;
  4438. var RS_CUSTOM2 = 4;
  4439. var RS_CUSTOM1 = 5;
  4440. var RS_MAX = 6;
  4441. var LIMIT_PERCHECK = 300;
  4442. var LIMIT_TOLERANCE = 6;
  4443. var LIMIT_DEBUG = 20;
  4444. var CK_TBFIRST = 1;
  4445. var CK_TBLAST = 9;
  4446. var CK_WMECHFIRST = 13;
  4447. var CK_WMECHLAST = 22;
  4448. var CK_TYPEFIRST = 70;
  4449. var CK_TYPELAST = 72;
  4450. var CK_MATCHFIRST = 128;
  4451. var CK_MATCHLAST = 139;
  4452. var CK_CUSTOMFIRST = 130;
  4453. var CK_CUSTOMLAST = 139;
  4454. var CK_LOCKFIRST = 150;
  4455. var CK_LOCKLAST = 158;
  4456. var CK_STREETTNFIRST = 160;
  4457. var CK_STREETTNLAST = 167;
  4458. var CK_STREETNAMEFIRST = 170;
  4459. var CK_STREETNAMELAST = 175;
  4460. var CK_CITYNAMEFIRST = 190;
  4461. var CK_CITYNAMELAST = 193;
  4462. var CK_MIRRORFIRST = 200;
  4463. var CK_MIRRORLAST = 201;
  4464. var CL_UI = 2821834349 - 1;
  4465. var ID_PREFIX = 2554220882;
  4466. var CL_TABS = 2821834349;
  4467. var CL_PANEL = 2952996808;
  4468. var CL_BUTTONS = 3210313671;
  4469. var CL_MSG = 3336571891;
  4470. var CL_MSGY = 3584528711;
  4471. var CL_TRANSLATETIP = 3584528711 + 1;
  4472. var AS_LICENSE = 'license';
  4473. var AS_VERSION = 'version';
  4474. var AS_NONEDITABLES = 'non_editables';
  4475. var AS_DUPLICATES = 'duplicates';
  4476. var AS_PLACES = 'enable_places';
  4477. var AS_STREETS = 'streets';
  4478. var AS_OTHERS = 'others';
  4479. var AS_NOTES = 'notes';
  4480. var AS_YOUREDITS = 'your_edits';
  4481. var AS_UPDATEDSINCE = 'updated_since';
  4482. var AS_CITYNAME = 'city_name';
  4483. var AS_CHECKS = 'checks';
  4484. var AS_UPDATEDBY = 'updated_by';
  4485. var AS_SOUNDS = 'sounds';
  4486. var AS_HLISSUES = 'hl_issues';
  4487. var AS_SLOWCHECKS = 'slow_checks';
  4488. var AS_CUSTOM1TEMPLATE = 'custom1_template';
  4489. var AS_CUSTOM1REGEXP = 'custom1_regexp';
  4490. var AS_CUSTOM2TEMPLATE = 'custom2_template';
  4491. var AS_CUSTOM2REGEXP = 'custom2_regexp';
  4492. var AS_REPORTEXT = 'report_ext';
  4493. var ID_PROPERTY = 3835390401;
  4494. var ID_PROPERTY_DISABLED = 3835390401 + 1;
  4495. var CL_COLLAPSE = 4022224774;
  4496. var CL_NOTE = 264347078;
  4497. var CL_WARNING = 604807628;
  4498. var CL_ERROR = 770255983;
  4499. var CL_CUSTOM1 = 770255983 + 1;
  4500. var CL_CUSTOM2 = 770255983 + 2;
  4501. var CL_RIGHTTIP = 1249150122;
  4502. var CL_RIGHTTIPPOPUP = 1249150122 + 1;
  4503. var CL_RIGHTTIPDESCR = 1249150122 + 2;
  4504. var AS_NAME = 'WME_Validator';
  4505. var SZ_PANEL_HEIGHT = 190;
  4506. var SCAN_ZOOM = 17;
  4507. var SCAN_STEP = 100;
  4508. var HL_WIDTH = 30;
  4509. var HL_OPACITY = .4;
  4510. var I_SEVERITY = 0;
  4511. var I_OBJECTCOPY = 1;
  4512. var I_ISTBCOLOR = 2;
  4513. var I_ISWMECHCOLOR = 3;
  4514. var I_ISPARTIAL = 4;
  4515. var I_CITYID = 5;
  4516. var I_VENUECOPY = 6;
  4517. var CO_MIN = 0;
  4518. var CO_REGEXP = 0;
  4519. var CO_STRING = 1;
  4520. var CO_NUMBER = 2;
  4521. var CO_BOOL = 3;
  4522. var CO_MAX = 3;
  4523. var WD_SHORT = 5;
  4524. var WD_LONG = 1E4;
  4525. var Wa = null;
  4526. var nW = null;
  4527. var WM = null;
  4528. var WLM = null;
  4529. var WSM = null;
  4530. var WMo = null;
  4531. var WC = null;
  4532. var UW = null;
  4533. var R = null;
  4534. function esc(msg) {
  4535. return msg.split('"').join('\\"').split('\n').join('\\n')
  4536. }
  4537. function escRE(e) {
  4538. return e.split('\\')
  4539. .join('\\\\')
  4540. .split('^')
  4541. .join('\\^')
  4542. .split('$')
  4543. .join('\\$')
  4544. .split('+')
  4545. .join('\\+')
  4546. .split('?')
  4547. .join('\\?')
  4548. .split(':')
  4549. .join('\\:')
  4550. .split('!')
  4551. .join('\\!')
  4552. .split('.')
  4553. .join('\\.')
  4554. .split('-')
  4555. .join('\\-')
  4556. .split('*')
  4557. .join('.*')
  4558. .split('(')
  4559. .join('\\(')
  4560. .split(')')
  4561. .join('\\)')
  4562. .split('[')
  4563. .join('\\[')
  4564. .split(']')
  4565. .join('\\]')
  4566. .split('{')
  4567. .join('\\{')
  4568. .split('}')
  4569. .join('\\}')
  4570. }
  4571. function getMsg(mType, msg, newLine) {
  4572. return 'WME Validator v' + WV_VERSION + (mType ? ' ' + mType : '') + (msg ? ':' + (newLine ? '\n' : ' ') + msg : '')
  4573. }
  4574. function log(msg) {
  4575. window.console.log(getMsg('', msg))
  4576. }
  4577. function error(msg) {
  4578. var s = getMsg('error', msg, true);
  4579. log(s);
  4580. if (!isErrorFlag()) {
  4581. setErrorFlag();
  4582. alert(s)
  4583. }
  4584. async(F_PAUSE);
  4585. return -1
  4586. }
  4587. function warning(msg) {
  4588. var s = getMsg('warning', msg, true);
  4589. log(s);
  4590. alert(s);
  4591. return -1
  4592. }
  4593. function info(msg) {
  4594. var s = getMsg('', msg, true);
  4595. alert(s);
  4596. return -1
  4597. }
  4598. function sync(func, param) {
  4599. return func(param)
  4600. }
  4601. function async(func, param, inter) {
  4602. var i = 0;
  4603. if (inter) i = inter;
  4604. window.setTimeout(func, i, param)
  4605. }
  4606. function clearWD() {
  4607. window.clearTimeout(_RT.$WDmoveID);
  4608. window.clearTimeout(_RT.$WDloadID);
  4609. _RT.$WDmoveID = -1;
  4610. _RT.$WDloadID = -1
  4611. }
  4612. function updateTimer(nstate) {
  4613. var csec = Date.now() / 1E3;
  4614. if (RTStateIs(ST_RUN)) _RT.$timer.$secInRun += csec - _RT.$timer.$lastUpdate;
  4615. if (RTStateIs(ST_STOP)) _RT.$timer.$secInRun = 0;
  4616. _RT.$timer.$lastUpdate = csec
  4617. }
  4618. function setRTState(nstate) {
  4619. if (RTStateIs(ST_STOP) && ST_PAUSE === nstate) nstate = ST_STOP;
  4620. updateTimer(nstate);
  4621. _RT.$state = nstate;
  4622. async(F_UPDATEUI)
  4623. }
  4624. function clearReport() {
  4625. _RT.$seen = {};
  4626. _RT.$revalidate = {};
  4627. _REP = {
  4628. $debugCounter: LIMIT_DEBUG,
  4629. $isLimitPerCheck: false,
  4630. $isEditableFound: false,
  4631. $counterTotal: 0,
  4632. $maxSeverity: 0,
  4633. $incompleteIDs: {},
  4634. $users: {},
  4635. $reportCounters: {},
  4636. $cityCounters: {},
  4637. $countries: {},
  4638. $cities: {},
  4639. $streets: {},
  4640. $cityIDs: {},
  4641. $unsortedCityIDs: [],
  4642. $sortedCityIDs: []
  4643. };
  4644. _RT.$reportEditableNotFound = false
  4645. }
  4646. function beep(dur, oscType) {
  4647. try {
  4648. if (_UI.pSettings.pScanner.oSounds.CHECKED) _AUDIO.beep(dur, oscType)
  4649. } catch (e) {
  4650. }
  4651. }
  4652. function setErrorFlag() {
  4653. _RT.$error = true
  4654. }
  4655. function isErrorFlag() {
  4656. return _RT.$error
  4657. }
  4658. function clearErrorFlag() {
  4659. _RT.$error = false
  4660. }
  4661. function RTStateIs(st) {
  4662. return getRTState() === st
  4663. }
  4664. function getRTState() {
  4665. return _RT.$state
  4666. }
  4667. function HLAllObjects() {
  4668. if (RTStateIs(ST_STOP) || RTStateIs(ST_PAUSE))
  4669. if (_UI.pSettings.pScanner.oHLReported.CHECKED)
  4670. sync(F_VALIDATE, false);
  4671. else
  4672. sync(F_VALIDATE, true);
  4673. async(F_UPDATEUI)
  4674. }
  4675. function ForceHLAllObjects() {
  4676. _RT.$isMapChanged = true;
  4677. HLAllObjects()
  4678. }
  4679. function resetDefaults() {
  4680. _UI.pMain.pFilter.oEnablePlaces.CHECKED = false;
  4681. _UI.pMain.pFilter.oExcludeNonEditables.CHECKED = true;
  4682. _UI.pMain.pFilter.oExcludeDuplicates.CHECKED = true;
  4683. _UI.pMain.pFilter.oExcludeStreets.CHECKED = false;
  4684. _UI.pMain.pFilter.oExcludeOther.CHECKED = false;
  4685. _UI.pMain.pFilter.oExcludeNotes.CHECKED = false;
  4686. _UI.pMain.pSearch.oIncludeYourEdits.CHECKED = false;
  4687. _UI.pMain.pSearch.oIncludeUpdatedBy.VALUE = '';
  4688. _RT.$includeUpdatedByCache = {};
  4689. _UI.pMain.pSearch.oIncludeUpdatedSince.VALUE = '';
  4690. _RT.$includeUpdatedSinceTime = 0;
  4691. _UI.pMain.pSearch.oIncludeCityName.VALUE = '';
  4692. _RT.$includeCityNameCache = {};
  4693. _UI.pMain.pSearch.oIncludeChecks.VALUE = '';
  4694. _RT.$includeChecksCache = {};
  4695. _UI.pSettings.pScanner.oSlowChecks.CHECKED = true;
  4696. _UI.pSettings.pScanner.oReportExt.CHECKED = true;
  4697. _UI.pSettings.pScanner.oHLReported.CHECKED = true;
  4698. _UI.pSettings.pScanner.oSounds.CHECKED = false;
  4699. _UI.pSettings.pCustom.oTemplate1.VALUE = '';
  4700. _UI.pSettings.pCustom.oRegExp1.VALUE = '';
  4701. _UI.pSettings.pCustom.oTemplate2.VALUE = '';
  4702. _UI.pSettings.pCustom.oRegExp2.VALUE = ''
  4703. }
  4704. function cmpCheckIDs(a, b) {
  4705. var checkA = _RT.$checks[a], checkB = _RT.$checks[b];
  4706. if (checkA.SEVERITY !== checkB.SEVERITY) return checkB.SEVERITY - checkA.SEVERITY;
  4707. var cmp = checkA.TITLE.localeCompare(checkB.TITLE);
  4708. if (!cmp) return a - b;
  4709. return cmp
  4710. }
  4711. function checkNoCity(str) {
  4712. return str ? str : 'No City'
  4713. }
  4714. function checkNoStreet(str) {
  4715. return str ? str : 'No Street'
  4716. }
  4717. function getFilteredSeverity(oldSeverity, checkID, checkToHL) {
  4718. if (!_UI.pMain.pSearch.oIncludeChecks.VALUE) return oldSeverity;
  4719. var check = _RT.$checks[checkID];
  4720. if (checkToHL && check.REPORTONLY) return 0;
  4721. var textSeverity = getTextSeverity(check.SEVERITY).toUpperCase();
  4722. var cache = _RT.$includeChecksCache;
  4723. var hash = checkID;
  4724. if (hash in cache) {
  4725. if (cache[hash]) return check.SEVERITY
  4726. } else {
  4727. var forChecks = _UI.pMain.pSearch.oIncludeChecks.VALUE;
  4728. var ccode = _RT.$cachedTopCCode;
  4729. var options = trO(check.OPTIONS, ccode);
  4730. var curTitle = exSOS(check.TITLE, options, 'titleEN');
  4731. try {
  4732. cache[hash] = false;
  4733. if (_WV.checkAccessFor(forChecks, function(e) {
  4734. if (/^#?\d+$/.test(e)) {
  4735. if ('#' === e.charAt(0)) e = e.slice(1);
  4736. return +checkID === +e
  4737. }
  4738. if (e.toUpperCase() === textSeverity) return true;
  4739. e = escRE(e);
  4740. var r = new RegExp('^' + e + '$', 'i');
  4741. return r.test(curTitle)
  4742. })) {
  4743. cache[hash] = true;
  4744. return check.SEVERITY
  4745. }
  4746. } catch (e) {
  4747. }
  4748. }
  4749. return 0
  4750. }
  4751. function getFilteredSeverityObj(oldSeverity, checkIDs, checkToHL) {
  4752. if (!_UI.pMain.pSearch.oIncludeChecks.VALUE) return oldSeverity;
  4753. var ret = 0;
  4754. for (var cid in checkIDs) {
  4755. if (!checkIDs.hasOwnProperty(cid)) continue;
  4756. var check = _RT.$checks[cid];
  4757. if (getFilteredSeverity(check.SEVERITY, cid, checkToHL))
  4758. if (ret < check.SEVERITY) {
  4759. ret = check.SEVERITY;
  4760. if (_RT.$curMaxSeverity === ret) return ret
  4761. }
  4762. }
  4763. return ret
  4764. }
  4765. function checkFilter(severity, objectCopy, seenObjects) {
  4766. if (seenObjects) {
  4767. if (objectCopy.$objectID in seenObjects && _UI.pMain.pFilter.oExcludeDuplicates.CHECKED) return false;
  4768. seenObjects[objectCopy.$objectID] = null
  4769. }
  4770. if ((RR_STREET === objectCopy.$typeRank || RR_SERVICE === objectCopy.$typeRank) && _UI.pMain.pFilter.oExcludeStreets.CHECKED) return false;
  4771. if (RR_SERVICE > objectCopy.$typeRank && _UI.pMain.pFilter.oExcludeOther.CHECKED) return false;
  4772. if (!objectCopy.$isEditable && _UI.pMain.pFilter.oExcludeNonEditables.CHECKED) return false;
  4773. if (RS_NOTE === severity && _UI.pMain.pFilter.oExcludeNotes.CHECKED) return false;
  4774. if (objectCopy.$userID !== _RT.$topUser.$userID && !_UI.pMain.pSearch.oIncludeYourEdits.NODISPLAY && _UI.pMain.pSearch.oIncludeYourEdits.CHECKED) return false;
  4775. if (!_UI.pMain.pSearch.oIncludeUpdatedBy.NODISPLAY && _UI.pMain.pSearch.oIncludeUpdatedBy.VALUE) {
  4776. var cache = _RT.$includeUpdatedByCache;
  4777. var hash = objectCopy.$userID;
  4778. if (hash in cache) {
  4779. if (!cache[hash]) return false
  4780. } else {
  4781. var forUser = _UI.pMain.pSearch.oIncludeUpdatedBy.VALUE;
  4782. var curUser = _REP.$users[objectCopy.$userID];
  4783. try {
  4784. cache[hash] = false;
  4785. if (curUser !== _RT.$topUser.$userName && !_RT.$topUser.$isCM) return false;
  4786. if (_RT.$topUser.$isCM && -1 === _RT.$topUser.$countryIDs.indexOf(objectCopy.$countryID)) return false;
  4787. if (!_WV.checkAccessFor(forUser, function(e) {
  4788. e = escRE(e);
  4789. e = e.replace(/(^|\b)(me|i)($|\b)/gi, _RT.$topUser.$userName);
  4790. var r = new RegExp('^' + e + '$', 'i');
  4791. return r.test(curUser)
  4792. }))
  4793. return false;
  4794. cache[hash] = true
  4795. } catch (e) {
  4796. }
  4797. }
  4798. }
  4799. if (objectCopy.$updated && _UI.pMain.pSearch.oIncludeUpdatedSince.VALUE) try {
  4800. if (!_RT.$includeUpdatedSinceTime) _RT.$includeUpdatedSinceTime = (new Date(_UI.pMain.pSearch.oIncludeUpdatedSince.VALUE)).getTime();
  4801. if (objectCopy.$updated < _RT.$includeUpdatedSinceTime) return false
  4802. } catch (e) {
  4803. }
  4804. if (_UI.pMain.pSearch.oIncludeCityName.VALUE) {
  4805. if (!objectCopy.$cityID) return false;
  4806. var cache = _RT.$includeCityNameCache;
  4807. var hash = objectCopy.$cityID;
  4808. if (hash in cache) {
  4809. if (!cache[hash]) return false
  4810. } else {
  4811. var forCity = _UI.pMain.pSearch.oIncludeCityName.VALUE;
  4812. var curCity = _REP.$cities[objectCopy.$cityID];
  4813. try {
  4814. cache[hash] = false;
  4815. if (!_WV.checkAccessFor(forCity, function(e) {
  4816. e = escRE(e);
  4817. var r = new RegExp('^' + e + '$', 'i');
  4818. return r.test(curCity)
  4819. }))
  4820. return false;
  4821. cache[hash] = true
  4822. } catch (e) {
  4823. }
  4824. }
  4825. }
  4826. return true
  4827. }
  4828. function trO(obj, ccode) {
  4829. if (obj) return _I18n.getValueOC(obj, ccode)
  4830. }
  4831. function getCheckOptions(checkID, ccode) {
  4832. return _I18n.getValueOC(_RT.$checks[checkID].OPTIONS, ccode)
  4833. }
  4834. function trLeft(dir) {
  4835. if ('ltr' === dir)
  4836. return 'left';
  4837. else
  4838. return 'right'
  4839. }
  4840. function trRight(dir) {
  4841. if ('ltr' === dir)
  4842. return 'right';
  4843. else
  4844. return 'left'
  4845. }
  4846. function trS(label) {
  4847. return _I18n.getString(label)
  4848. }
  4849. function trSO(label, options) {
  4850. return _I18n.expandSO(_I18n.getString(label), options)
  4851. }
  4852. function exSOS(str, options, subst) {
  4853. if (options && _I18n.$defLng === _RT.$lng && options[subst])
  4854. return _I18n.expandSO(options[subst], options);
  4855. else
  4856. return _I18n.expandSO(str, options)
  4857. }
  4858. function getTextSeverity(sev) {
  4859. switch (sev) {
  4860. case RS_WARNING:
  4861. return 'warning';
  4862. case RS_ERROR:
  4863. return 'error';
  4864. case RS_CUSTOM1:
  4865. return 'custom1';
  4866. case RS_CUSTOM2:
  4867. return 'custom2'
  4868. }
  4869. return 'note'
  4870. }
  4871. function onUpdateUI(e) {
  4872. async(F_UPDATEUI, e)
  4873. }
  4874. function onShowChecks(e) {
  4875. sync(F_SHOWREPORT, RF_LIST)
  4876. }
  4877. function onCreatePack(e) {
  4878. sync(F_SHOWREPORT, RF_CREATEPACK)
  4879. }
  4880. function onShowReport(e) {
  4881. sync(F_SHOWREPORT, RF_HTML)
  4882. }
  4883. function onShareReport(e) {
  4884. sync(F_SHOWREPORT, RF_BB)
  4885. }
  4886. function onWarning(e) {
  4887. async(F_ONWARNING, e)
  4888. }
  4889. function onLogin() {
  4890. async(F_ONLOGIN)
  4891. }
  4892. function onMergeEnd() {
  4893. _RT.$isMapChanged = true;
  4894. window.clearTimeout(_RT.$WDmoveID);
  4895. window.clearTimeout(_RT.$WDloadID);
  4896. async(F_ONMERGEEND)
  4897. }
  4898. function onMoveEnd() {
  4899. if (RTStateIs(ST_RUN) || RTStateIs(ST_CONTINUE))
  4900. async(F_ONMOVEEND);
  4901. else
  4902. ForceHLAllObjects()
  4903. }
  4904. function onLoadStart() {
  4905. async(F_ONLOADSTART)
  4906. }
  4907. function onChangeLayer(e) {
  4908. sync(F_ONCHANGELAYER, e)
  4909. }
  4910. function onSegmentsChanged(e) {
  4911. _RT.$isMapChanged = true;
  4912. sync(F_ONSEGMENTSCHANGED, e)
  4913. }
  4914. function onSegmentsRemoved(e) {
  4915. _RT.$isMapChanged = true;
  4916. if (1 === e.length)
  4917. if (RTStateIs(ST_STOP) || RTStateIs(ST_PAUSE)) sync(F_ONSEGMENTSCHANGED, e)
  4918. }
  4919. function onSegmentsAdded(e) {
  4920. _RT.$isMapChanged = true
  4921. }
  4922. function onNodesChanged(e) {
  4923. _RT.$isMapChanged = true;
  4924. sync(F_ONNODESCHANGED, e)
  4925. }
  4926. function onNodesRemoved(e) {
  4927. _RT.$isMapChanged = true;
  4928. if (1 === e.length)
  4929. if (RTStateIs(ST_STOP) || RTStateIs(ST_PAUSE)) sync(F_ONNODESCHANGED, e)
  4930. }
  4931. function onChangeIsImperial() {
  4932. clearReport();
  4933. _RT.$HLedObjects = {};
  4934. _RT.$HLlayer.destroyFeatures();
  4935. _RT.$isMapChanged = true;
  4936. async(F_LOGIN)
  4937. }
  4938. function onVenuesAdded(e) {
  4939. _RT.$isMapChanged = true
  4940. }
  4941. function onVenuesChanged(e) {
  4942. _RT.$isMapChanged = true;
  4943. sync(F_ONVENUESCHANGED, e)
  4944. }
  4945. function onVenuesRemoved(e) {
  4946. _RT.$isMapChanged = true;
  4947. if (1 === e.length)
  4948. if (RTStateIs(ST_STOP) || RTStateIs(ST_PAUSE)) sync(F_ONVENUESCHANGED, e)
  4949. };
  4950. function F_SHOWREPORT(reportFormat) {
  4951. var _now = new Date;
  4952. var _nowISO = _now.toISOString().slice(0, 10);
  4953. var _repU = _REP.$users;
  4954. var _repC = _REP.$cities;
  4955. var _repCC = _REP.$cityCounters;
  4956. var _repRC = _REP.$reportCounters;
  4957. var _repS = _REP.$streets;
  4958. var isBeta = -1 !== window.location.href.indexOf('beta');
  4959. var noFilters = true;
  4960. var FR = '';
  4961. var FRheader = '';
  4962. var FRfooter = '';
  4963. var newWin = null;
  4964. var Bh1, Eh1;
  4965. var Bh2, Eh2;
  4966. var Bsmall, Esmall;
  4967. var Bbig, Ebig;
  4968. var Ba, Ca, Ea;
  4969. var BaV;
  4970. var Bcolor, Ccolor, Ecolor;
  4971. var Bb, Eb;
  4972. var Bp, Ep;
  4973. var Br;
  4974. var Bol, Eol;
  4975. var Bul, Eul;
  4976. var Bli, Eli;
  4977. var Bcode, Ecode;
  4978. var Mdash, Nbsp;
  4979. var curFormat;
  4980. function setFormat(fmt) {
  4981. curFormat = fmt;
  4982. switch (fmt) {
  4983. case RF_HTML:
  4984. Bh1 = '\n<h1>', Eh1 = '</h1>\n<hr>\n';
  4985. Bh2 = '\n\n<h2>', Eh2 = '</h2>\n';
  4986. Bsmall = '<small>', Esmall = '</small>';
  4987. Bbig = '<big>', Ebig = '</big>';
  4988. Ba = '<a target="_blank" href="', Ca = '">', Ea = '</a>';
  4989. BaV = '<a target="Validator" href="';
  4990. Bcolor = '<span style="color:', Ccolor = '">', Ecolor = '</span>';
  4991. Bb = '<b>', Eb = '</b>';
  4992. Bp = '<p>', Ep = '</p>';
  4993. Br = '<br>\n';
  4994. Bul = '\n<ul>\n', Eul = '\n</ul>\n';
  4995. Bcode = '\n<div style="text-align:left" dir="ltr" class="code" onclick="selectAll(this)">', Ecode = '</div>\n';
  4996. Bol = '\n<ol>\n', Eol = '\n</ol>\n';
  4997. Bli = '\n<li>', Eli = '</li>\n';
  4998. Mdash = ' &mdash; ';
  4999. Nbsp = '&nbsp;';
  5000. break;
  5001. case RF_BB:
  5002. Bh1 = '\n[size=200]', Eh1 = '[/size]\n';
  5003. Bh2 = '\n[size=150]', Eh2 = '[/size]\n';
  5004. Bsmall = '[size=85]', Esmall = '[/size]';
  5005. Bbig = '[size=120]', Ebig = '[/size]';
  5006. Ba = '[url=', Ca = ']', Ea = '[/url]';
  5007. BaV = Ba;
  5008. Bcolor = '[color=', Ccolor = ']', Ecolor = '[/color]';
  5009. Bb = '[b]', Eb = '[/b]';
  5010. Bp = '\n', Ep = '\n';
  5011. Br = '\n';
  5012. Bul = '\n[list]', Eul = '[/list]\n';
  5013. Bcode = '\n[code]', Ecode = '\n[/code]';
  5014. Bol = '\n[list=1]', Eol = '[/list]\n';
  5015. Bli = '\n[*]', Eli = '[/*]\n';
  5016. Mdash = ' - ';
  5017. Nbsp = ' ';
  5018. break
  5019. }
  5020. return ''
  5021. }
  5022. function getReportSource() {
  5023. var m = 0;
  5024. var n = '';
  5025. for (var cid in _repCC)
  5026. if (_repCC.hasOwnProperty(cid) && m < _repCC[cid] && _repC[cid]) {
  5027. m = _repCC[cid];
  5028. n = _repC[cid]
  5029. }
  5030. return n
  5031. }
  5032. function getTopPermalink() {
  5033. var center, zoom;
  5034. if (_RT.$startCenter) {
  5035. center = _RT.$startCenter;
  5036. zoom = _RT.$startZoom
  5037. } else {
  5038. center = WM.getCenter();
  5039. zoom = WM.getZoom()
  5040. }
  5041. var c = center.clone().transform(WM.projection, WM.displayProjection);
  5042. return window.location.origin + window.location.pathname + '?zoomLevel=' + zoom + '&lat=' + Math.round(c.lat * 1E5) / 1E5 + '&lon=' + Math.round(c.lon * 1E5) / 1E5 +
  5043. '&env=' + nW.app.getAppRegionCode()
  5044. }
  5045. function getHTMLHeader(strTitle) {
  5046. var dir = _I18n.getDir();
  5047. var dirLeft = trLeft(dir);
  5048. var dirRight = trRight(dir);
  5049. return '<html dir="' + dir + '"><head><style>' +
  5050. '\na{background-color:white}' +
  5051. '\na:visited{background-color:' + GL_VISITEDBGCOLOR + ' !important;color:' + GL_VISITEDCOLOR + ' !important}' +
  5052. '\n.note a{background-color:' + GL_NOTEBGCOLOR + ';color:' + GL_NOTECOLOR + '}' +
  5053. '\n.warning a{background-color:' + GL_WARNINGBGCOLOR + ';color:' + GL_WARNINGCOLOR + '}' +
  5054. '\n.error a{background-color:' + GL_ERRORBGCOLOR + ';color:' + GL_ERRORCOLOR + '}' +
  5055. '\n.custom1 a{background-color:' + GL_CUSTOM1BGCOLOR + ';color:' + GL_CUSTOM1COLOR + '}' +
  5056. '\n.custom2 a{background-color:' + GL_CUSTOM2BGCOLOR + ';color:' + GL_CUSTOM2COLOR + '}' +
  5057. '\ndiv.note{background-color:' + GL_NOTEBGCOLOR + ';padding:1em;margin-top:0.5em}' +
  5058. '\ndiv.warning{background-color:' + GL_WARNINGBGCOLOR + ';padding:1em;margin-top:0.5em}' +
  5059. '\ndiv.error{background-color:' + GL_ERRORBGCOLOR + ';padding:1em;margin-top:0.5em}' +
  5060. '\nh2+ul>li{margin-bottom:1em}' +
  5061. '\nul{margin-top:0}' +
  5062. '\nh1,h2{margin-bottom:4px;font-family:Georgia,Times,"Times New Roman",serif}' +
  5063. '\nbody{margin:2em;font-family:"Lucida Grande","Lucida Sans Unicode","DejaVu Sans",Lucida,Arial,Helvetica,sans-serif}' +
  5064. '\ndiv#contents{display:inline-block;margin:1em 0;padding:1em;background-color:#f9f9f9;border:1px solid #aaa}' +
  5065. '\ndiv#contents li{margin-bottom:0.1em}' +
  5066. '\ndiv.code::before{content: "CODE: SELECT ALL";display:block;border-bottom:1px solid #ccc;font:bold 1em "Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;color:#105289;margin-bottom:5px;}' +
  5067. '\ndiv.code{margin-top:0.5em;display:block;width:650px;overflow:auto;padding:0.5em;border:1px solid #ccc;background-color:#f4fff4;white-space:pre;font:0.9em Monaco,"Andale Mono","Courier New",Courier,mono;line-height:1.3em;color:#2E8B57;cursor:pointer}' +
  5068. '\n</style>' +
  5069. '\n<script>' +
  5070. '\nfunction selectAll(e){' +
  5071. 'if(window.getSelection){' +
  5072. 'var s = window.getSelection();' +
  5073. 'var r = document.createRange();' +
  5074. 'r.selectNodeContents(e);' +
  5075. 's.removeAllRanges();' +
  5076. 's.addRange(r);' +
  5077. '}}' +
  5078. '\n\x3c/script>' +
  5079. '\n<title>' + strTitle + ' ' + _nowISO + '</title>' +
  5080. '\n<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>' +
  5081. '\n</head><body>'
  5082. }
  5083. function getNaturalList(arr) {
  5084. if (1 === arr.length) return arr[0];
  5085. var ret = '';
  5086. arr.forEach(function(e, i) {
  5087. if (arr.length - 1 === i)
  5088. ret += ' ' + trS('report.and') + ' ';
  5089. else if (0 !== i)
  5090. ret += ', ';
  5091. ret += e
  5092. });
  5093. return ret
  5094. }
  5095. function getHeader(strTitle) {
  5096. var ret = Bh1 + strTitle + Eh1;
  5097. if (RF_LIST !== reportFormat && RF_CREATEPACK !== reportFormat) {
  5098. ret += Bsmall + trS('report.generated.by') + ' ' + _RT.$curUserName + ' ' + trS('report.generated.on') + ' ' + _nowISO + Esmall + Br + Br + Bb + trS('report.source') + ' ' + Eb + Ba +
  5099. getTopPermalink() + Ca + checkNoCity(getReportSource()) + Ea + Br;
  5100. var filters = [];
  5101. if (_UI.pMain.pFilter.oExcludeDuplicates.CHECKED) filters.push(trS('report.filter.duplicate'));
  5102. if (!_UI.pMain.pFilter.oEnablePlaces.CHECKED) filters.push(trS('report.filter.places'));
  5103. if (_UI.pMain.pFilter.oExcludeStreets.CHECKED) filters.push(trS('report.filter.streets'));
  5104. if (_UI.pMain.pFilter.oExcludeOther.CHECKED) filters.push(trS('report.filter.other'));
  5105. if (_UI.pMain.pFilter.oExcludeNonEditables.CHECKED) filters.push(trS('report.filter.noneditable'));
  5106. if (_UI.pMain.pFilter.oExcludeNotes.CHECKED) filters.push(trS('report.filter.notes'));
  5107. if (filters.length) {
  5108. noFilters = false;
  5109. ret += Bb + trS('report.filter.title') + ' ' + Eb + getNaturalList(filters) + ' ' + trS('report.filter.excluded') + Br
  5110. }
  5111. filters = [];
  5112. if (!_UI.pMain.pSearch.oIncludeYourEdits.NODISPLAY && _UI.pMain.pSearch.oIncludeYourEdits.CHECKED) filters.push(trS('report.search.updated.by') + ' ' + _RT.$curUserName);
  5113. if (!_UI.pMain.pSearch.oIncludeUpdatedBy.NODISPLAY && _UI.pMain.pSearch.oIncludeUpdatedBy.VALUE) filters.push(trS('report.search.updated.by') + ' ' + _UI.pMain.pSearch.oIncludeUpdatedBy.VALUE);
  5114. if (_UI.pMain.pSearch.oIncludeUpdatedSince.VALUE) filters.push(trS('report.search.updated.since') + ' ' + _UI.pMain.pSearch.oIncludeUpdatedSince.VALUE);
  5115. if (_UI.pMain.pSearch.oIncludeCityName.VALUE) filters.push(trS('report.search.city') + ' ' + _UI.pMain.pSearch.oIncludeCityName.VALUE);
  5116. if (_UI.pMain.pSearch.oIncludeChecks.VALUE) filters.push(trS('report.search.reported') + ' ' + _UI.pMain.pSearch.oIncludeChecks.VALUE);
  5117. if (filters.length) {
  5118. noFilters = false;
  5119. ret += Bb + trS('report.search.title') + Eb + ' ' + trS('report.search.only') + ' ' + getNaturalList(filters) + ' ' + trS('report.search.included') + Br
  5120. }
  5121. if (isBeta) ret += Br + Bb + trS('report.beta.warning') + Eb + Br + trS('report.beta.text') + Br + Bb + trS('report.beta.share') + Eb + Br
  5122. }
  5123. return ret
  5124. }
  5125. function getSubHeader(strTitle) {
  5126. return Bh2 + strTitle + Eh2
  5127. }
  5128. function getTextACL(acl) {
  5129. if (acl)
  5130. return acl.split(',').join(', ');
  5131. else
  5132. return '*'
  5133. }
  5134. function getCheckProperties(checkID, ccode, showSeverity, showCountry) {
  5135. var check = _RT.$checks[checkID];
  5136. var ret = '';
  5137. if (showSeverity && check.SEVERITY && RS_MAX > check.SEVERITY)
  5138. ret += Bb + trS('report.list.severity') + ' ' + Eb + getTextSeverity(check.SEVERITY) + (check.REPORTONLY ? ' (' + trS('report.list.reportOnly') + ')' : '') + Br;
  5139. if (1 < check.FORLEVEL) ret += Bb + trS('report.list.forEditors') + ' ' + Eb + check.FORLEVEL + ' ' + trS('report.list.andUp') + Br;
  5140. if (showCountry) ret += Bb + trS('report.list.forCountries') + ' ' + Eb + getTextACL(check.FORCOUNTRY) + Br;
  5141. if (check.FORCITY) ret += Bb + trS('report.list.forCities') + ' ' + Eb + getTextACL(check.FORCITY) + Br;
  5142. var options;
  5143. if (check.OPTIONS && (options = getCheckOptions(checkID, ccode))) {
  5144. var defParams = ccode === _I18n.$defLng;
  5145. var arrParams = [];
  5146. for (var optionName in options) {
  5147. if (!/^[a-z]+$/i.test(optionName)) continue;
  5148. var optionTitle = options[optionName + '.title'];
  5149. if (defParams && !optionTitle) continue;
  5150. arrParams.push({$name: optionName, $title: optionTitle, $value: options[optionName]})
  5151. }
  5152. if (arrParams.length) {
  5153. ret += Bb;
  5154. var country = _I18n.getCapitalizedCountry(ccode) || ccode;
  5155. if (defParams)
  5156. ret += trS('report.list.params');
  5157. else
  5158. ret += trSO('report.list.params.set', {'country': country});
  5159. ret += Eb + Bcode + '"' + checkID + '.params": {\n';
  5160. for (var i = 0; i < arrParams.length; i++) {
  5161. var param = arrParams[i];
  5162. if (defParams) ret += ' // ' + param.$title + '\n';
  5163. ret += ' "' + param.$name + '": ' + JSON.stringify(param.$value) + ',' +
  5164. '\n'
  5165. }
  5166. ret += '},' + Ecode
  5167. }
  5168. }
  5169. return ret
  5170. }
  5171. function addTextLabels(pack, label, defSet, oldPack) {
  5172. var defData = (defSet[label] || '').replace(new RegExp('^W:'), PFX_WIKI).replace(new RegExp('^P:'), PFX_PEDIA).replace(new RegExp('^F:'), PFX_FORUM);
  5173. var origData = oldPack[label] || '';
  5174. if (origData) {
  5175. var oldData = origData.replace(new RegExp('^' + GL_TODOMARKER), '').replace(new RegExp('^W:'), PFX_WIKI).replace(new RegExp('^P:'), PFX_PEDIA).replace(new RegExp('^F:'), PFX_FORUM);
  5176. var oldDataEN = (oldPack[label + '.en'] || '').replace(new RegExp('^W:'), PFX_WIKI).replace(new RegExp('^P:'), PFX_PEDIA).replace(new RegExp('^F:'), PFX_FORUM);
  5177. if (oldDataEN)
  5178. if (oldDataEN === defData) {
  5179. pack[label + '.en'] = defData;
  5180. pack[label] = origData
  5181. } else {
  5182. pack[label + '.en'] = defData;
  5183. pack[label] = GL_TODOMARKER + oldData
  5184. }
  5185. else {
  5186. pack[label + '.en'] = defData;
  5187. pack[label] = origData
  5188. }
  5189. } else {
  5190. pack[label + '.en'] = defData;
  5191. pack[label] = GL_TODOMARKER + defData
  5192. }
  5193. }
  5194. function getPackHeader(country, lng) {
  5195. return '// ==UserScript==' + Br + '// @name WME Validator Localization for ' + country + Br + '// @version ' + WV_VERSION + Br +
  5196. '// @description This script localizes WME Validator for ' + country + '. You also need main package (WME Validator) installed.' + Br +
  5197. '// @match https://beta.waze.com/*editor*' + Br + '// @match https://www.waze.com/*editor*' + Br + '// @exclude https://www.waze.com/*user/*editor/*' +
  5198. Br + '// @grant none' + Br + '// @run-at document-start' + Br + '// ==/UserScript==' + Br + '//' + Br + '/*' + Br +
  5199. (lng ? ' Please translate all the lines marked with "' + GL_TODOMARKER + '"' + Br + ' Please DO NOT change ".en" properties. To override english text use "titleEN",' + Br +
  5200. ' "problemEN" and "solutionEN" properties (see an example below).' + Br + Br :
  5201. '') +
  5202. ' See Settings->About->Available checks for complete list of checks and their params.' + Br + Br + ' Examples:' + Br + Br +
  5203. ' Enable #170 "Lowercase street name" but allow lowercase "exit" and "to":' + Br + ' "170.enabled": true,' + Br + ' "170.params": {' + Br +
  5204. ' "regexp": "/^((exit|to) )?[a-z]/",' + Br + ' "},' + Br + Br + ' Enable #130 "Custom check" to find a dot in street names, but allow dots at Ramps:' + Br +
  5205. ' "130.enabled": true,' + Br + ' "130.params": {' + Br + ' "titleEN": "Street name with a dot",' + Br +
  5206. ' "problemEN": "There is a dot in the street name (excluding Ramps)",' + Br + ' "solutionEN": "Expand the abbreviation or remove the dot",' + Br +
  5207. ' "template": "${type}:${street}",' + Br + ' "regexp": "D/^[^4][0-9]?:.*\\\\./",' + Br + ' },' + Br +
  5208. ' *Note: use D at the beginning of RegExp to enable debugging on JS console.' + Br + ' *Note: do not forget to escape backslashes in strings, i.e. use "\\\\" instead of "\\".' + Br +
  5209. '*/' + Br
  5210. }
  5211. function getPack(country, ccode, lng) {
  5212. var ucountry = country.toUpperCase();
  5213. var _country = country.split(' ').join('_');
  5214. var oldPack = _I18n.$translations[ccode] || {};
  5215. var ret = '' + Br + 'window.WME_Validator_' + _country + ' = ';
  5216. var newCountries = [];
  5217. for (var k in _I18n.$country2code)
  5218. if (ccode === _I18n.$country2code[k] && ucountry !== k) newCountries.push(_I18n.capitalize(k));
  5219. newCountries.unshift(country);
  5220. var newAuthor = oldPack['.author'] || _RT.$topUser.$userName;
  5221. if (-1 === newAuthor.indexOf(_RT.$topUser.$userName)) newAuthor += ' and ' + _RT.$topUser.$userName;
  5222. var newLink = oldPack['.link'] || GL_TODOMARKER;
  5223. var pack = {'.country': 1 === newCountries.length ? newCountries[0] : newCountries, '.codeISO': ccode, '.author': newAuthor, '.updated': _nowISO, '.link': newLink};
  5224. if (ccode in _I18n.$code2code) pack['.fallbackCode'] = _I18n.$code2code[ccode];
  5225. if (lng) {
  5226. if (ccode in _I18n.$code2dir) pack['.dir'] = _I18n.$code2dir[ccode];
  5227. var newLngs = [];
  5228. for (var k in _I18n.$lng2code)
  5229. if (ccode === _I18n.$lng2code[k] && k !== lng) newLngs.push(k);
  5230. newLngs.unshift(lng);
  5231. pack['.lng'] = 1 === newLngs.length ? newLngs[0] : newLngs
  5232. }
  5233. if (lng)
  5234. for (var label in _I18n.$defSet) {
  5235. if (/^\./.test(label) || /^[0-9]/.test(label)) continue;
  5236. addTextLabels(pack, label, _I18n.$defSet, oldPack)
  5237. }
  5238. var allLabels = _RT.$otherLabels.concat(_RT.$textLabels);
  5239. var arrDepCodes = _I18n.getDependantCodes(ccode);
  5240. for (var i = 1; i < MAX_CHECKS; i++) {
  5241. if (CK_MIRRORFIRST + 100 <= i && CK_MIRRORLAST + 100 >= i) continue;
  5242. var label = i + '.enabled';
  5243. var checkEnabled = false;
  5244. if (_I18n.$defSet[label] || oldPack[label]) checkEnabled = true;
  5245. if (!checkEnabled)
  5246. for (var depC = 0; depC < arrDepCodes.length; depC++) {
  5247. var depCode = arrDepCodes[depC];
  5248. if (_I18n.$translations[depCode] && _I18n.$translations[depCode][label]) checkEnabled = true
  5249. }
  5250. if (checkEnabled && !(i + '.title' in _I18n.$defSet)) {
  5251. pack[i + '.note'] = GL_TODOMARKER + 'The check #' + i + ' is no longer exist. See the forum thread for more details.';
  5252. continue
  5253. }
  5254. for (var j = 0; j < allLabels.length; j++) {
  5255. var labelSfx = allLabels[j];
  5256. label = i + '.' + labelSfx;
  5257. var defData = _I18n.$defSet[label];
  5258. var oldData = oldPack[label];
  5259. if (classCodeDefined(defData) || classCodeDefined(oldData))
  5260. if (-1 !== _RT.$textLabels.indexOf(labelSfx)) {
  5261. if (lng && checkEnabled) addTextLabels(pack, label, _I18n.$defSet, oldPack)
  5262. } else {
  5263. if ('params' === labelSfx) {
  5264. if (!classCodeDefined(oldData)) continue;
  5265. defData = deepCopy(defData || {});
  5266. oldData = deepCopy(oldData);
  5267. for (var k = CO_MIN; k <= CO_MAX; k++) {
  5268. delete defData[k];
  5269. delete oldData[k]
  5270. }
  5271. for (var k in defData) {
  5272. if (!defData.hasOwnProperty(k)) continue;
  5273. if (/\.title$/.test(k)) delete defData[k]
  5274. }
  5275. }
  5276. if (!deepCompare(defData, oldData)) pack[label] = oldData
  5277. }
  5278. }
  5279. }
  5280. ret += JSON.stringify(pack, null, ' ') + ';\n';
  5281. return ret
  5282. }
  5283. function getListOfChecks(countryID, country) {
  5284. var ucountry = country.toUpperCase();
  5285. var ccode = '';
  5286. if (countryID) ccode = _I18n.getCountryCode(ucountry);
  5287. var ret = trS('report.list.see') + ' ' + Bb + trS('report.list.checks') + Eb + Br + Br;
  5288. var fallbacks = '';
  5289. if (ccode)
  5290. for (var i in _I18n.$country2code) {
  5291. if (!_I18n.$country2code.hasOwnProperty(i)) continue;
  5292. if (i === ucountry) continue;
  5293. var acode = _I18n.$country2code[i];
  5294. if (ccode && acode !== ccode) continue;
  5295. fallbacks += _I18n.capitalize(i) + ' → ' + country + Br
  5296. }
  5297. for (var i in _I18n.$code2code) {
  5298. if (!_I18n.$code2code.hasOwnProperty(i)) continue;
  5299. var countryFrom = _I18n.getCapitalizedCountry(i);
  5300. var countryTo = _I18n.getCapitalizedCountry(_I18n.$code2code[i]);
  5301. if (ccode && i !== ccode && _I18n.$code2code[i] !== ccode) continue;
  5302. if (country && countryFrom !== country && countryTo !== country) continue;
  5303. fallbacks += countryFrom + ' (' + i + ') → ' + countryTo + ' (' + _I18n.$code2code[i] + ')' + Br
  5304. }
  5305. if (fallbacks) ret += Bb + trS('report.list.fallback') + Eb + Br + fallbacks;
  5306. var sortedIDs = getSortedCheckIDs();
  5307. if (ccode) {
  5308. var enabledIDs = [];
  5309. var disabledIDs = [];
  5310. sortedIDs.forEach(function(cid) {
  5311. var c = _RT.$checks[cid];
  5312. if (!c) return;
  5313. if (RS_MAX === c.SEVERITY) return;
  5314. var en = true;
  5315. var forCountry = c.FORCOUNTRY;
  5316. if (forCountry)
  5317. if (!_WV.checkAccessFor(forCountry, function(e) {
  5318. if (e in _I18n.$code2country) return _I18n.$code2country[e] === ucountry;
  5319. error('Please report: fc=' + e);
  5320. return false
  5321. }))
  5322. en = false;
  5323. if (en)
  5324. enabledIDs.push(cid);
  5325. else
  5326. disabledIDs.push(cid)
  5327. });
  5328. ret += Bh2 + trSO('report.list.enabled', {'n': enabledIDs.length}) + ' ' + country + ':' + Eh2 + Bul;
  5329. enabledIDs.forEach(function(cid) {
  5330. ret += Bli + getCheckDescription(cid, countryID, Bb, Eb + Br) + Bsmall;
  5331. ret += getCheckProperties(cid, ccode, false, false);
  5332. ret += Esmall + Eli
  5333. });
  5334. ret += Eul;
  5335. ret += Bh2 + trSO('report.list.disabled', {'n': disabledIDs.length}) + ' ' + country + ':' + Eh2 + Bul;
  5336. disabledIDs.forEach(function(cid) {
  5337. ret += Bli + getCheckDescription(cid, 0, Bb, Eb + Br) + Bsmall;
  5338. ret += getCheckProperties(cid, _I18n.$defLng, false, true);
  5339. ret += Esmall + Eli
  5340. });
  5341. ret += Eul
  5342. } else {
  5343. ret += Bh2 + trSO('report.list.total', {'n': sortedIDs.length}) + ':' + Eh2 + Bul;
  5344. sortedIDs.forEach(function(cid) {
  5345. var c = _RT.$checks[cid];
  5346. if (!c) return;
  5347. if (RS_MAX === c.SEVERITY) return;
  5348. ret += Bli + getCheckDescription(cid, 0, Bb, Eb + Br) + Bsmall;
  5349. ret += getCheckProperties(cid, _I18n.$defLng, false, true);
  5350. ret += Esmall + Eli
  5351. });
  5352. ret += Eul
  5353. }
  5354. return ret
  5355. }
  5356. function getHTMLFooter() {
  5357. return '\n<hr>' +
  5358. '\n<center dir="ltr"><small>WME Validator v' + WV_VERSION + '<br>&copy; 2013-2018 Andriy Berestovskyy</small></center>' +
  5359. '\n</body></html>'
  5360. }
  5361. function getTAHeader(h) {
  5362. var ret = '\n<p>' + (RF_CREATEPACK === reportFormat ? trS('msg.textarea.pack') : trS('msg.textarea')) + ':</p>' +
  5363. '\n<p><textarea style="resize:vertical;width:100%;height:' + h + '">';
  5364. setFormat(RF_BB);
  5365. return ret
  5366. }
  5367. function getTAFooter() {
  5368. setFormat(RF_HTML);
  5369. return '\n</textarea></p>'
  5370. }
  5371. function getSizeWarning(size) {
  5372. return 5E4 < size ? '\n<p style="color:#e00">' + trSO('report.size.warning', {'n': size}) + '</p>' : ''
  5373. }
  5374. function openWindow(data) {
  5375. var nw = UW.open('', '_blank');
  5376. nw.document.write(data)
  5377. }
  5378. function openWindowFR(title) {
  5379. var encFR = 'data:text/html;charset=UTF-8,';
  5380. if (newWin)
  5381. if (reportFormat === RF_HTML) {
  5382. title = title.split(' ').join('_');
  5383. newWin.document.write(FRheader);
  5384. var saveRep = FRheader;
  5385. saveRep += FR;
  5386. saveRep += FRfooter;
  5387. saveRep = encodeURIComponent(saveRep);
  5388. var saveLink = '<br><a download="';
  5389. saveLink += title;
  5390. saveLink += '_';
  5391. saveLink += _nowISO;
  5392. saveLink += '.html" href="data:text/html;charset=UTF-8,';
  5393. saveLink += saveRep;
  5394. saveRep = '';
  5395. saveLink += '"><button>';
  5396. saveLink += trS('report.save');
  5397. saveLink += '</button></a><br>';
  5398. newWin.document.write(saveLink);
  5399. newWin.document.write(FR);
  5400. newWin.document.write(saveLink);
  5401. newWin.document.write(FRfooter)
  5402. } else
  5403. newWin.document.write(FR);
  5404. else {
  5405. encFR += encodeURIComponent(FRheader);
  5406. FRheader = '';
  5407. encFR += encodeURIComponent(FR);
  5408. FR = '';
  5409. encFR += encodeURIComponent(FRfooter);
  5410. FRfooter = '';
  5411. UW.open(encFR, '_blank')
  5412. }
  5413. }
  5414. var seenObjects = {};
  5415. var lastCheckID = -1;
  5416. var lastCityID = -1;
  5417. var lastStreetID = -1;
  5418. var counterNotes = 0;
  5419. var counterWarnings = 0;
  5420. var counterErrors = 0;
  5421. var counterCustoms1 = 0;
  5422. var counterCustoms2 = 0;
  5423. function resetFilter() {
  5424. seenObjects = {};
  5425. lastCheckID = -1;
  5426. lastCityID = -1;
  5427. lastStreetID = -1;
  5428. counterNotes = 0;
  5429. counterWarnings = 0;
  5430. counterErrors = 0;
  5431. counterCustoms1 = 0;
  5432. counterCustoms2 = 0
  5433. }
  5434. function getTOC() {
  5435. resetFilter();
  5436. FR += '\n<br><div id="contents">';
  5437. FR += '\n<big><b>';
  5438. FR += trS('report.contents');
  5439. FR += '</b></big>';
  5440. FR += '\n<ol>';
  5441. traverseReport(function(obj) {
  5442. if (checkFilter(0, obj.$objectCopy, seenObjects) && getFilteredSeverity(obj.$check.SEVERITY, obj.$checkID, false))
  5443. if (obj.$checkID !== lastCheckID) {
  5444. lastCheckID = obj.$checkID;
  5445. var check = obj.$check;
  5446. var strCountry = _REP.$countries[obj.$objectCopy.$countryID];
  5447. var ccode = '';
  5448. if (strCountry)
  5449. ccode = _I18n.getCountryCode(strCountry.toUpperCase());
  5450. else
  5451. ccode = _RT.$cachedTopCCode;
  5452. var options = trO(check.OPTIONS, ccode);
  5453. FR += '\n<li class="';
  5454. FR += getTextSeverity(obj.$check.SEVERITY);
  5455. FR += '"><a href="#a';
  5456. FR += lastCheckID;
  5457. FR += '">';
  5458. FR += exSOS(check.TITLE, options, 'titleEN');
  5459. FR += '</a></li>'
  5460. }
  5461. });
  5462. FR += '\n<li><a href="#a">';
  5463. FR += trS('report.summary');
  5464. FR += '</a></li>';
  5465. FR += '\n</ol>\n</div>'
  5466. }
  5467. function getSortedCheckIDs() {
  5468. return _RT.$sortedCheckIDs ? _RT.$sortedCheckIDs : _RT.$sortedCheckIDs = Object.keys(_RT.$checks).sort(cmpCheckIDs)
  5469. }
  5470. function traverseReport(handler) {
  5471. var mapCenter = WM.getCenter();
  5472. function getSortedCities() {
  5473. var ret = _REP.$sortedCityIDs;
  5474. if (!ret || ret.length != _REP.$unsortedCityIDs.length)
  5475. return _REP.$sortedCityIDs = [].concat(_REP.$unsortedCityIDs).sort(function(a, b) {
  5476. return _repC[a].localeCompare(_repC[b])
  5477. });
  5478. return ret
  5479. }
  5480. function getSortedStreets(repC) {
  5481. var ret = repC.$sortedStreetIDs;
  5482. if (!ret || ret.length != repC.$unsortedStreetIDs.length)
  5483. return repC.$sortedStreetIDs = [].concat(repC.$unsortedStreetIDs).sort(function(a, b) {
  5484. return _repS[a].localeCompare(_repS[b])
  5485. });
  5486. return ret
  5487. }
  5488. function getHypot(c1, c2) {
  5489. return Math.sqrt(c1 * c1 + c2 * c2)
  5490. }
  5491. function getSortedObjects(repS) {
  5492. var ret = repS.$sortedObjectIDs;
  5493. var repSeg = repS.$objectIDs;
  5494. if (!ret || ret.length != repS.$unsortedObjectIDs.length)
  5495. return repS.$sortedSegmentIDs = [].concat(repS.$unsortedObjectIDs).sort(function(a, b) {
  5496. var segA = repSeg[a], segB = repSeg[b];
  5497. if (segA.$typeRank !== segB.$typeRank) return segB.$typeRank - segA.$typeRank;
  5498. var distAB = getHypot(segA.$center.lat - segB.$center.lat, segA.$center.lon - segB.$center.lon);
  5499. if (.002 > distAB) return 0;
  5500. var distA = getHypot(mapCenter.lat - segA.$center.lat, mapCenter.lon - segA.$center.lon);
  5501. var distB = getHypot(mapCenter.lat - segB.$center.lat, mapCenter.lon - segB.$center.lon);
  5502. return distA - distB
  5503. });
  5504. return ret
  5505. }
  5506. var checkIDs = getSortedCheckIDs();
  5507. nextCheck: for (var i = 1; i < checkIDs.length; i++) {
  5508. var checkID = checkIDs[i];
  5509. var check = _RT.$checks[checkID];
  5510. if (!check) continue;
  5511. if (_UI.pMain.pFilter.oExcludeNotes.CHECKED && RS_NOTE === check.SEVERITY) continue;
  5512. var sortedCities = getSortedCities();
  5513. for (var sorcid = 0; sorcid < sortedCities.length; sorcid++) {
  5514. var cid = sortedCities[sorcid];
  5515. var repC = _REP.$cityIDs[cid];
  5516. var sortedStreets = getSortedStreets(repC);
  5517. for (var sorsid = 0; sorsid < sortedStreets.length; sorsid++) {
  5518. var sid = sortedStreets[sorsid];
  5519. var repS = repC.$streetIDs[sid];
  5520. if (repS.$unsortedObjectIDs) {
  5521. var sortedObjects = getSortedObjects(repS);
  5522. for (var sorscid = 0; sorscid < sortedObjects.length; sorscid++) {
  5523. var scid = sortedObjects[sorscid];
  5524. var sc = repS.$objectIDs[scid];
  5525. if (checkID in sc.$reportIDs) {
  5526. var obj = {$checkID: checkID, $check: check, $param: sc.$reportIDs[checkID], $cityParam: repC.$params[checkID], $streetParam: repS.$params[checkID], $objectCopy: sc};
  5527. switch (handler(obj)) {
  5528. case RT_STOP:
  5529. return;
  5530. case RT_NEXTCHECK:
  5531. continue nextCheck
  5532. }
  5533. }
  5534. }
  5535. }
  5536. }
  5537. }
  5538. }
  5539. }
  5540. function closeReportStreet() {
  5541. if (0 <= lastStreetID || 0 <= lastCityID) {
  5542. lastStreetID = -1;
  5543. FR += Eli
  5544. }
  5545. }
  5546. function closeReportCity() {
  5547. if (0 <= lastCityID) {
  5548. lastCityID = -1;
  5549. closeReportStreet();
  5550. FR += Eul
  5551. }
  5552. }
  5553. function closeReportCheck() {
  5554. if (0 <= lastCheckID) {
  5555. if (LIMIT_PERCHECK < _repRC[lastCheckID])
  5556. if (1 === _repRC[lastCheckID] - LIMIT_PERCHECK)
  5557. FR += '[and more...]';
  5558. else {
  5559. FR += '[and ';
  5560. FR += _repRC[lastCheckID] - LIMIT_PERCHECK;
  5561. FR += ' objects more...]'
  5562. }
  5563. lastCheckID = -1;
  5564. closeReportCity()
  5565. }
  5566. if (RF_HTML === curFormat) FR += '</div>'
  5567. }
  5568. function getCheckDescription(checkID, countryID, headB, headE) {
  5569. var check = _RT.$checks[checkID];
  5570. var ret = headB;
  5571. var strCountry = _REP.$countries[countryID];
  5572. var ccode = '';
  5573. if (strCountry)
  5574. ccode = _I18n.getCountryCode(strCountry.toUpperCase());
  5575. else
  5576. ccode = _RT.$cachedTopCCode;
  5577. var options = trO(check.OPTIONS, ccode);
  5578. if (check.COLOR) ret += Bcolor + check.COLOR + Ccolor + '██ ' + Ecolor;
  5579. ret += '' + (countryID ? exSOS(check.TITLE, options, 'titleEN') : check.TITLE) + ' (#' + checkID + ')' + headE;
  5580. var sevColor = GL_NOTECOLOR;
  5581. switch (check.SEVERITY) {
  5582. case RS_WARNING:
  5583. sevColor = GL_WARNINGCOLOR;
  5584. break;
  5585. case RS_ERROR:
  5586. sevColor = GL_ERRORCOLOR;
  5587. break;
  5588. case RS_CUSTOM1:
  5589. sevColor = GL_CUSTOM1COLOR;
  5590. break;
  5591. case RS_CUSTOM2:
  5592. sevColor = GL_CUSTOM2COLOR;
  5593. break
  5594. }
  5595. if (check.PROBLEM) {
  5596. ret += Bcolor + sevColor + Ccolor + (countryID ? exSOS(check.PROBLEM, options, 'problemEN') : check.PROBLEM);
  5597. var pl = trO(check.PROBLEMLINK, ccode);
  5598. if (pl)
  5599. ret += ': ' + Ba + pl + Ca + trO(check.PROBLEMLINKTEXT, ccode) + Ea;
  5600. else
  5601. ret += '.';
  5602. ret += Ecolor + Br
  5603. }
  5604. if (check.SOLUTION) {
  5605. ret += countryID ? exSOS(check.SOLUTION, options, 'solutionEN') : check.SOLUTION;
  5606. var sl = trO(check.SOLUTIONLINK, ccode);
  5607. if (sl)
  5608. ret += ': ' + Ba + sl + Ca + trO(check.SOLUTIONLINKTEXT, ccode) + Ea;
  5609. else
  5610. ret += '.';
  5611. ret += Br
  5612. }
  5613. return ret
  5614. }
  5615. function getReportCheck(obj) {
  5616. closeReportCheck();
  5617. if (RF_HTML === curFormat) {
  5618. FR += '<div class="';
  5619. FR += getTextSeverity(obj.$check.SEVERITY);
  5620. FR += '"><a name="a';
  5621. FR += obj.$checkID;
  5622. FR += '"></a>'
  5623. }
  5624. FR += getCheckDescription(obj.$checkID, obj.$objectCopy.$countryID, Bh2, Eh2);
  5625. FR += Br
  5626. }
  5627. function getReportCity(obj) {
  5628. closeReportCity();
  5629. FR += Bbig;
  5630. FR += Bb;
  5631. FR += checkNoCity(_repC[obj.$objectCopy.$cityID]);
  5632. FR += Eb;
  5633. FR += Ebig;
  5634. if (obj.$cityParam) {
  5635. FR += Mdash;
  5636. FR += obj.$cityParam
  5637. }
  5638. FR += Bul
  5639. }
  5640. function getReportStreet(obj) {
  5641. closeReportStreet();
  5642. FR += Bli;
  5643. FR += checkNoStreet(_repS[obj.$objectCopy.$streetID]);
  5644. FR += ', ';
  5645. FR += checkNoCity(_repC[obj.$objectCopy.$cityID]);
  5646. if (obj.$streetParam) {
  5647. FR += Mdash;
  5648. FR += obj.$streetParam
  5649. }
  5650. FR += Br
  5651. }
  5652. function getPermalink(obj) {
  5653. var z = SCAN_ZOOM;
  5654. if (obj.$objectCopy)
  5655. if (50 > obj.$objectCopy.$length)
  5656. z = 19;
  5657. else if (500 > obj.$objectCopy.$length) {
  5658. if (18 > z) z += 1
  5659. } else
  5660. z = 16;
  5661. else
  5662. z = 16;
  5663. FR += window.location.origin;
  5664. FR += window.location.pathname;
  5665. FR += '?zoomLevel=';
  5666. FR += z;
  5667. FR += '&lat=';
  5668. FR += obj.$objectCopy.$center.lat;
  5669. FR += '&lon=';
  5670. FR += obj.$objectCopy.$center.lon;
  5671. FR += '&env=';
  5672. FR += nW.app.getAppRegionCode();
  5673. FR += '&' + obj.$objectCopy.$model.name + '=';
  5674. FR += obj.$objectCopy.$objectID
  5675. }
  5676. function getReportItem(obj) {
  5677. if (!checkFilter(0, obj.$objectCopy, seenObjects) || !getFilteredSeverity(obj.$check.SEVERITY, obj.$checkID, false)) return;
  5678. if (_REP.$maxSeverity < obj.$check.SEVERITY) _REP.$maxSeverity = obj.$check.SEVERITY;
  5679. if (obj.$checkID !== lastCheckID) {
  5680. getReportCheck(obj);
  5681. if (noFilters) {
  5682. var c = _repRC[obj.$checkID];
  5683. switch (obj.$check.SEVERITY) {
  5684. case RS_NOTE:
  5685. counterNotes += c;
  5686. break;
  5687. case RS_WARNING:
  5688. counterWarnings += c;
  5689. break;
  5690. case RS_ERROR:
  5691. counterErrors += c;
  5692. break;
  5693. case RS_CUSTOM1:
  5694. counterCustoms1 += c;
  5695. break;
  5696. case RS_CUSTOM2:
  5697. counterCustoms2 += c;
  5698. break
  5699. }
  5700. }
  5701. }
  5702. if (obj.$objectCopy.$cityID !== lastCityID) getReportCity(obj);
  5703. if (obj.$objectCopy.$streetID !== lastStreetID) getReportStreet(obj);
  5704. lastCityID = obj.$objectCopy.$cityID;
  5705. lastStreetID = obj.$objectCopy.$streetID;
  5706. lastCheckID = obj.$checkID;
  5707. if (!noFilters) switch (obj.$check.SEVERITY) {
  5708. case RS_NOTE:
  5709. counterNotes++;
  5710. break;
  5711. case RS_WARNING:
  5712. counterWarnings++;
  5713. break;
  5714. case RS_ERROR:
  5715. counterErrors++;
  5716. break;
  5717. case RS_CUSTOM1:
  5718. counterCustoms1++;
  5719. break;
  5720. case RS_CUSTOM2:
  5721. counterCustoms2++;
  5722. break
  5723. }
  5724. FR += BaV;
  5725. getPermalink(obj);
  5726. FR += Ca;
  5727. if (isBeta) FR += 'B:';
  5728. if (obj.$objectCopy.$model === WMo.segments)
  5729. FR += obj.$objectCopy.$objectID;
  5730. else if (obj.$objectCopy.$name !== '')
  5731. FR += obj.$objectCopy.$name;
  5732. else
  5733. FR += obj.$objectCopy.$objectID;
  5734. FR += Ea;
  5735. FR += ' '
  5736. }
  5737. function getSummary() {
  5738. if (RF_HTML === curFormat) FR += '<a name="a"></a>';
  5739. FR += Bh2;
  5740. FR += trS('report.summary');
  5741. FR += Eh2;
  5742. FR += Bb;
  5743. FR += trS('report.segments');
  5744. FR += Eb;
  5745. FR += ' ';
  5746. FR += _REP.$counterTotal;
  5747. FR += Br;
  5748. if (counterCustoms1 || counterCustoms2) {
  5749. FR += Bb;
  5750. FR += trS('report.customs');
  5751. FR += Eb;
  5752. FR += ' ';
  5753. FR += counterCustoms1;
  5754. FR += '/';
  5755. FR += counterCustoms2;
  5756. if (_REP.$isLimitPerCheck) FR += '*';
  5757. FR += Br
  5758. }
  5759. FR += Bb;
  5760. FR += trS('report.reported');
  5761. FR += Eb;
  5762. FR += ' ';
  5763. var summary = [];
  5764. if (counterErrors)
  5765. summary.push(Bb + trS('report.errors') + Mdash + Eb + ' ' + counterErrors + (_REP.$isLimitPerCheck ? '*' : '') + ' (' + Math.round(counterErrors * 1E3 / _REP.$counterTotal) + '‰)');
  5766. if (counterWarnings)
  5767. summary.push(Bb + trS('report.warnings') + Mdash + Eb + ' ' + counterWarnings + (_REP.$isLimitPerCheck ? '*' : '') + ' (' + Math.round(counterWarnings * 1E3 / _REP.$counterTotal) + '‰)');
  5768. if (counterNotes) summary.push(Bb + trS('report.notes') + Mdash + Eb + ' ' + counterNotes + (_REP.$isLimitPerCheck ? '*' : ''));
  5769. FR += getNaturalList(summary);
  5770. FR += Br;
  5771. if (_REP.$isLimitPerCheck) {
  5772. FR += trS('report.note.limit');
  5773. FR += Br
  5774. }
  5775. FR += Br;
  5776. FR += trS('report.forum');
  5777. FR += ' ';
  5778. FR += Ba;
  5779. FR += PFX_FORUM;
  5780. FR += FORUM_HOME;
  5781. FR += Ca;
  5782. FR += trS('report.forum.link');
  5783. FR += Ea;
  5784. FR += Br;
  5785. FR += Br;
  5786. FR += trS('report.thanks');
  5787. FR += Br
  5788. }
  5789. function getReport(fmt) {
  5790. var oldFormat = curFormat;
  5791. setFormat(fmt);
  5792. resetFilter();
  5793. _REP.$maxSeverity = 0;
  5794. traverseReport(function(e) {
  5795. getReportItem(e)
  5796. });
  5797. closeReportCheck();
  5798. getSummary();
  5799. setFormat(oldFormat)
  5800. }
  5801. function updateMaxSeverity() {
  5802. resetFilter();
  5803. _REP.$maxSeverity = 0;
  5804. traverseReport(function(obj) {
  5805. if (checkFilter(0, obj.$objectCopy, seenObjects) && getFilteredSeverity(obj.$check.SEVERITY, obj.$checkID, false)) {
  5806. if (_REP.$maxSeverity < obj.$check.SEVERITY) _REP.$maxSeverity = obj.$check.SEVERITY;
  5807. if (_RT.$curMaxSeverity === _REP.$maxSeverity) return RT_STOP
  5808. }
  5809. })
  5810. }
  5811. setFormat(RF_HTML);
  5812. var t = trS('report.title');
  5813. switch (reportFormat) {
  5814. case RF_UPDATEMAXSEVERITY:
  5815. updateMaxSeverity();
  5816. break;
  5817. case RF_CREATEPACK:
  5818. var wType = 'Localization Package Wizard';
  5819. if (!window.confirm(getMsg(
  5820. wType,
  5821. '\nBefore starting the Wizard:' +
  5822. '\n\n1. Position WME over your country' +
  5823. '\n so the Wizard will know your country name' +
  5824. '\n\n2. Switch WME to your language' +
  5825. '\n so the Wizard will add translations into the package' +
  5826. '\n\n3. Enable any previous version of localization pack' +
  5827. '\n so the Wizard will preserve already translated text',
  5828. true)))
  5829. break;
  5830. var country = _RT.$topCity && _RT.$topCity.$country ? _RT.$topCity.$country : window.prompt(getMsg(wType, '\nWME country name (example: United Kingdom):', true));
  5831. if (!country) break;
  5832. var ucountry = country.toUpperCase();
  5833. var ccode = _I18n.getCountryCode(ucountry) ? _I18n.getCountryCode(ucountry) : window.prompt(getMsg(wType, '\nISO 3166-1 Alpha-2 country code (example: UK):', true));
  5834. if (!ccode) break;
  5835. ccode = ccode.toUpperCase();
  5836. var lng = window.prompt(
  5837. getMsg(
  5838. wType,
  5839. '\nPlease confirm the WME language code:' +
  5840. '\n\nfor "EN" no translations will be included into the package' +
  5841. '\nfor any other code the translations will be included',
  5842. true),
  5843. _RT.$lng);
  5844. if (!lng) break;
  5845. lng = lng.toUpperCase();
  5846. if (_I18n.$defLng === lng)
  5847. t = 'Minimal Localization for ' + country;
  5848. else
  5849. t = 'Localization and Translation for ' + country;
  5850. if (_I18n.$defLng === lng) lng = '';
  5851. var lPack = getHTMLHeader(t) + getHeader(t) + getTAHeader('400px') + getPackHeader(country, lng) + getPack(country, ccode, lng);
  5852. var arrDepCodes = _I18n.getDependantCodes(ccode);
  5853. for (var i = 0; i < arrDepCodes.length; i++) {
  5854. var depCode = arrDepCodes[i];
  5855. var depCountry = _I18n.getCapitalizedCountry(depCode);
  5856. if (depCountry && depCode) {
  5857. lPack += '\n// Dependant package:';
  5858. lPack += getPack(depCountry, depCode, '')
  5859. }
  5860. }
  5861. openWindow(lPack + getTAFooter() + getHTMLFooter());
  5862. break;
  5863. case RF_LIST:
  5864. var countryID = 0;
  5865. var country = '';
  5866. t = trS('report.list.title') + ' ';
  5867. if (_RT.$topCity && _RT.$topCity.$country) {
  5868. countryID = _RT.$topCity.$countryID;
  5869. country = _RT.$topCity.$country;
  5870. t += country + ' (v' + WV_VERSION + ')'
  5871. } else
  5872. t += 'v' + WV_VERSION;
  5873. openWindow(getHTMLHeader(t) + getHeader(t) + getListOfChecks(countryID, country) + getTAHeader('200px') + getHeader(t) + getListOfChecks(countryID, country) + getTAFooter() + getHTMLFooter());
  5874. break;
  5875. case RF_HTML:
  5876. newWin = UW.open('', '_blank');
  5877. FR += getHTMLHeader(t);
  5878. FR += getHeader(t);
  5879. FRheader = FR;
  5880. FR = '';
  5881. getTOC();
  5882. getReport(RF_HTML);
  5883. if (0 === counterNotes + counterWarnings + counterErrors + counterCustoms1 + counterCustoms2) {
  5884. if (newWin) newWin.close();
  5885. async(F_UPDATEUI);
  5886. break
  5887. }
  5888. FRfooter += getHTMLFooter();
  5889. openWindowFR(t);
  5890. break;
  5891. case RF_BB:
  5892. newWin = UW.open('', '_blank');
  5893. var tf = t + ' ' + trS('report.share');
  5894. FR += getHTMLHeader(tf);
  5895. FR += getHeader(tf);
  5896. FR += getTAHeader('200px');
  5897. var beforeShareLen = FR.length;
  5898. FR += getHeader(t);
  5899. getReport(RF_BB);
  5900. var shareLen = FR.length - beforeShareLen;
  5901. if (0 === counterNotes + counterWarnings + counterErrors + counterCustoms1 + counterCustoms2) {
  5902. if (newWin) newWin.close();
  5903. async(F_UPDATEUI);
  5904. break
  5905. }
  5906. FR += getTAFooter();
  5907. FR += getSizeWarning(shareLen);
  5908. FR += getHTMLFooter();
  5909. openWindowFR();
  5910. break
  5911. }
  5912. resetFilter()
  5913. };
  5914. function F_VALIDATE(disabledHL) {
  5915. if (!_RT.$isMapChanged) return;
  5916. _RT.$isMapChanged = false;
  5917. var bUpdateMaxSeverity = false;
  5918. if (RTStateIs(ST_RUN)) beep(10);
  5919. var options;
  5920. var skippedObject = false;
  5921. if (disabledHL) {
  5922. updateObjectProperties([], true);
  5923. return
  5924. }
  5925. if (LIMIT_TOTAL < _REP.$counterTotal && !isErrorFlag()) {
  5926. setErrorFlag();
  5927. if (RTStateIs(ST_RUN)) {
  5928. window.alert(getMsg(trS('msg.autopaused'), '\n' + trS('msg.limit.segments') + trS('msg.limit.segments.continue'), true));
  5929. sync(F_PAUSE)
  5930. } else
  5931. warning(trS('msg.limit.segments') + trS('msg.limit.segments.clear'));
  5932. return
  5933. }
  5934. _RT.$topCenter = WM.getCenter();
  5935. if (_UI.pSettings.pScanner.oReportExt.CHECKED && _RT.oReportWMECH.CHECKED) {
  5936. var el = document.getElementById(_RT.oReportWMECH.FORID);
  5937. if (el) {
  5938. var ev = new CustomEvent('click');
  5939. el.dispatchEvent(ev)
  5940. }
  5941. }
  5942. var _repC = _REP.$cities;
  5943. var _repCC = _REP.$cityCounters;
  5944. var _repRC = _REP.$reportCounters;
  5945. var _repS = _REP.$streets;
  5946. var _repU = _REP.$users;
  5947. function isLimitOk(id) {
  5948. if (DEF_DEBUG)
  5949. return true;
  5950. else
  5951. return !(LIMIT_PERCHECK < _repRC[id])
  5952. }
  5953. function formatDate(d) {
  5954. var n = new Date(d);
  5955. return n.toISOString().substr(0, 10)
  5956. }
  5957. function getUserName(objID) {
  5958. var u = WMo.users.getObjectById(objID);
  5959. return u ? u.userName : objID.toString()
  5960. }
  5961. function getUserLevel(objID) {
  5962. var u = WMo.users.getObjectById(objID);
  5963. return u ? u.normalizedLevel : 0
  5964. }
  5965. function SimpleNODE(objID, segID) {
  5966. this.$rawNode = null;
  5967. this.$nodeID = objID;
  5968. this._center = null;
  5969. this.$center = null;
  5970. this.$isUturn = false;
  5971. this.$isEditable = true;
  5972. this.$isPartial = true;
  5973. this._rawRestrictions = [];
  5974. this._rawRestrictionIDs = [];
  5975. this._restrictions = null;
  5976. this.$restrictions = null;
  5977. this._rawOtherSegments = [];
  5978. this._otherSegments = null;
  5979. this.$otherSegments = null;
  5980. this._rawOutConnections = [];
  5981. this._outConnections = null;
  5982. this.$outConnections = null;
  5983. this._rawInConnections = [];
  5984. this._inConnections = null;
  5985. this.$inConnections = null;
  5986. this.$restrictionsLen = 0;
  5987. this.$otherSegmentsLen = 0;
  5988. this.$outConnectionsLen = 0;
  5989. this.$inConnectionsLen = 0;
  5990. var n = WMo.nodes.getObjectById(objID);
  5991. this.$rawNode = n;
  5992. if (n) {
  5993. this.$isPartial = n.attributes.partial;
  5994. this.$isEditable = true;
  5995. var co = n.attributes.restrictions;
  5996. for (var k in co) {
  5997. if (!co[k]) continue;
  5998. var _con = k.split(',');
  5999. var con0 = +_con[0];
  6000. if (+segID === con0) {
  6001. var con1 = +_con[1];
  6002. var cok = co[k];
  6003. for (var j = 0, l = cok.length; j < l; j++) {
  6004. this._rawRestrictions.push(cok[j]);
  6005. this._rawRestrictionIDs.push(con1)
  6006. }
  6007. }
  6008. }
  6009. this.$restrictionsLen = this._rawRestrictions.length;
  6010. for (var i = 0; i < n.attributes.segIDs.length; i++) {
  6011. var si = n.attributes.segIDs[i];
  6012. if (+segID === +si || !WMo.segments.getObjectById(si)) continue;
  6013. this._rawOtherSegments.push(si)
  6014. }
  6015. this.$otherSegmentsLen = this._rawOtherSegments.length;
  6016. co = n.attributes.connections;
  6017. for (var k in co) {
  6018. if (!co[k]) continue;
  6019. var _con = k.split(',');
  6020. var con0 = +_con[0];
  6021. var con1 = +_con[1];
  6022. if (+segID === con0 && +segID === con1) {
  6023. this.$isUturn = true;
  6024. continue
  6025. }
  6026. if (+segID === con0) this._rawOutConnections.push(con1);
  6027. if (+segID === con1) this._rawInConnections.push(con0)
  6028. }
  6029. }
  6030. this.$outConnectionsLen = this._rawOutConnections.length;
  6031. this.$inConnectionsLen = this._rawInConnections.length;
  6032. Object.defineProperties(this, {
  6033. $rawNode: {enumerable: false},
  6034. $nodeID: {writable: false},
  6035. _center: {enumerable: false},
  6036. $center: {get: this.getCenter},
  6037. $isUturn: {writable: false},
  6038. $isEditable: {writable: false},
  6039. $isPartial: {writable: false},
  6040. _rawRestrictions: {enumerable: false},
  6041. _rawRestrictionIDs: {enumerable: false},
  6042. _restrictions: {enumerable: false},
  6043. $restrictions: {get: this.getRestrictions},
  6044. _rawOtherSegments: {enumerable: false},
  6045. _otherSegments: {enumerable: false},
  6046. $otherSegments: {get: this.getOtherSegments},
  6047. _rawOutConnections: {enumerable: false},
  6048. _outConnections: {enumerable: false},
  6049. $outConnections: {get: this.getOutConnections},
  6050. _rawInConnections: {enumerable: false},
  6051. _inConnections: {enumerable: false},
  6052. $inConnections: {get: this.getInConnections},
  6053. $restrictionsLen: {writable: false},
  6054. $otherSegmentsLen: {writable: false},
  6055. $outConnectionsLen: {writable: false},
  6056. $inConnectionsLen: {writable: false}
  6057. })
  6058. }
  6059. SimpleNODE.prototype.getCenter = function() {
  6060. if (this._center) return this._center;
  6061. if (!this.$rawNode) return null;
  6062. var bounds = this.$rawNode.geometry.bounds;
  6063. this._center = (new OpenLayers.LonLat(bounds.left, bounds.bottom)).transform(WM.projection, WM.displayProjection);
  6064. this._center.lon = Math.round(this._center.lon * 1E5) / 1E5;
  6065. this._center.lat = Math.round(this._center.lat * 1E5) / 1E5;
  6066. return this._center
  6067. };
  6068. SimpleNODE.prototype.getRestrictions = function() {
  6069. var t;
  6070. return this._restrictions ? this._restrictions : (t = this, this._restrictions = this._rawRestrictions.map(function(e, i) {
  6071. return new SimpleRESTRICTION(e, t._rawRestrictionIDs[i])
  6072. }))
  6073. };
  6074. SimpleNODE.prototype.getOutConnections = function() {
  6075. return this._outConnections ? this._outConnections : this._outConnections = this._rawOutConnections.map(function(e) {
  6076. return new SimpleOBJECT(e, WMo.segments)
  6077. })
  6078. };
  6079. SimpleNODE.prototype.getInConnections = function() {
  6080. return this._inConnections ? this._inConnections : this._inConnections = this._rawInConnections.map(function(e) {
  6081. return new SimpleOBJECT(e, WMo.segments)
  6082. })
  6083. };
  6084. SimpleNODE.prototype.getOtherSegments = function() {
  6085. return this._otherSegments ? this._otherSegments : this._otherSegments = this._rawOtherSegments.map(function(e) {
  6086. return new SimpleOBJECT(e, WMo.segments)
  6087. })
  6088. };
  6089. function SimpleROADCLOSURE(obj) {
  6090. this.$id = obj.id;
  6091. this.$segID = obj.segID;
  6092. this.$active = obj.active;
  6093. this.$updatedOn = '';
  6094. this.$updatedBy = '';
  6095. this.$updatedByID = 0;
  6096. this.$updatedByLevel = 0;
  6097. this.$createdOn = '';
  6098. this.$createdBy = '';
  6099. this.$createdByID = 0;
  6100. this.$createdByLevel = 0;
  6101. this.$startDate = Date.parse(obj.startDate);
  6102. this.$endDate = Date.parse(obj.endDate);
  6103. this.$location = obj.location;
  6104. this.$reason = obj.reason;
  6105. if (obj.updatedOn) this.$updatedOn = formatDate('' + obj.updatedOn);
  6106. if (0 < obj.updatedBy) {
  6107. this.$updatedByID = obj.updatedBy;
  6108. this.$updatedBy = getUserName(obj.updatedBy);
  6109. this.$updatedByLevel = getUserLevel(obj.updatedBy)
  6110. }
  6111. if (obj.createdOn) this.$createdOn = formatDate('' + obj.createdOn);
  6112. if (obj.createdBy) {
  6113. this.$createdByID = obj.createdBy;
  6114. this.$createdBy = getUserName(obj.createdBy);
  6115. this.$createdByLevel = getUserLevel(obj.createdBy)
  6116. }
  6117. var past = new Date;
  6118. past.setDate(past.getDate() - 2);
  6119. this.$isInThePast = this.$endDate < past
  6120. }
  6121. function SimpleRESTRICTION(obj, segID) {
  6122. var timeFrame = obj.getTimeFrame();
  6123. this._to = null;
  6124. this.$to = null;
  6125. this.$toID = segID;
  6126. this.$allDay = timeFrame.isAllDay() || false;
  6127. this.$days = timeFrame.getWeekdays();
  6128. this.$description = obj.getDescription() || '';
  6129. this.$isEnabled = true;
  6130. this.$fromDate = timeFrame.getStartDate() || '';
  6131. this.$fromTime = timeFrame.getFromTime() || '';
  6132. this.$toDate = timeFrame.getEndDate() || '';
  6133. this.$toTime = timeFrame.getToTime() || '';
  6134. var past = new Date;
  6135. past.setDate(past.getDate() - 2);
  6136. this.$isInThePast = new Date(this.$toDate + ' ' + this.$toTime) < past;
  6137. Object.defineProperties(this, {
  6138. _to: {enumerable: false},
  6139. $to: {get: this.getTo},
  6140. $toID: {writable: false},
  6141. $allDay: {writable: false},
  6142. $days: {writable: false},
  6143. $description: {writable: false},
  6144. $isInThePast: {writable: false},
  6145. $isEnabled: {writable: false},
  6146. $fromDate: {writable: false},
  6147. $fromTime: {writable: false},
  6148. $toDate: {writable: false},
  6149. $toTime: {writable: false}
  6150. })
  6151. }
  6152. SimpleRESTRICTION.prototype.getTo = function() {
  6153. return this._to ? this._to : this._to = new SimpleOBJECT('' + this.$toID, WMo.segments)
  6154. };
  6155. function SimpleOBJECT(objID, model) {
  6156. this.$model = model;
  6157. var raw = this.$model.getObjectById(objID);
  6158. this.$rawObject = raw;
  6159. this._nodeA = null;
  6160. this.$nodeA = null;
  6161. this.$nodeAID = 0;
  6162. this._nodeB = null;
  6163. this.$nodeB = null;
  6164. this.$nodeBID = 0;
  6165. this._center = null;
  6166. this.$center = null;
  6167. this._restrictions = null;
  6168. this.$restrictions = null;
  6169. this.$name = '';
  6170. this.$brand = '';
  6171. this.$objectID = objID;
  6172. this.$address = null;
  6173. this.$isPoint = false;
  6174. this.$isTurnALocked = false;
  6175. this.$isTurnBLocked = false;
  6176. this.$isRoundabout = false;
  6177. this.$hasHNs = false;
  6178. this.$isEditable = false;
  6179. this.$forceNonEditable = false;
  6180. this.$mainCategory = '';
  6181. this.$categories = [];
  6182. this.$openingHours = [];
  6183. this.$phone = '';
  6184. this.$url = '';
  6185. this.$services = [];
  6186. this.$externalProviders = [];
  6187. this.$type = 0;
  6188. this.$typeRank = 0;
  6189. this.$direction = 0;
  6190. this.$isToll = false;
  6191. this.$elevation = 0;
  6192. this.$lock = 0;
  6193. this.$rank = 0;
  6194. this.$length = 0;
  6195. this.$updatedOn = '';
  6196. this.$updatedBy = '';
  6197. this.$updatedByID = 0;
  6198. this.$updatedByLevel = 0;
  6199. this.$createdOn = '';
  6200. this.$createdBy = '';
  6201. this.$createdByID = 0;
  6202. this.$createdByLevel = 0;
  6203. this.$alts = [];
  6204. this.restrictionsLen = 0;
  6205. this.$fwdMaxSpeed = 0;
  6206. this.$fwdMaxSpeedUnverified = true;
  6207. this.$revMaxSpeed = 0;
  6208. this.$revMaxSpeedUnverified = false;
  6209. this.$flags = null;
  6210. this.$hasClosures = false;
  6211. if (classCodeIs(raw, CC_UNDEFINED) || classCodeIs(raw, CC_NULL)) return;
  6212. var attrs = raw.attributes;
  6213. if (this.$model === WMo.segments) {
  6214. this.$nodeAID = attrs.fromNodeID;
  6215. this.$nodeBID = attrs.toNodeID;
  6216. this.$isRoutable = this.isRoutable();
  6217. this.$isTurnALocked = attrs.revTurnsLocked;
  6218. this.$isTurnBLocked = attrs.fwdTurnsLocked;
  6219. this.$isRoundabout = classCodeDefined(attrs.junctionID) && null !== attrs.junctionID;
  6220. this.$hasHNs = attrs.hasHNs;
  6221. this.$hasRestrictions = raw.hasRestrictions();
  6222. this.$restrictions = attrs.restrictions;
  6223. this.$type = attrs.roadType;
  6224. this.$typeRank = this.getTypeRank(attrs.roadType);
  6225. this.$direction = getDirection(raw);
  6226. this.$elevation = attrs.level;
  6227. if ('length' in attrs)
  6228. this.$length = attrs.length;
  6229. else
  6230. this.$length = Math.round(raw.geometry.getGeodesicLength(WM.projection));
  6231. this.$alts = attrs.streetIDs.map(function(objID) {
  6232. return new _WV.SimpleADDRESS(objID)
  6233. });
  6234. this.$restrictionsLen = attrs.restrictions.length;
  6235. this.$address = new _WV.SimpleADDRESS(attrs.primaryStreetID);
  6236. this.$fwdMaxSpeed = getLocalizedValue(+attrs.fwdMaxSpeed, this.$address.$country);
  6237. this.$fwdMaxSpeedUnverified = attrs.fwdMaxSpeedUnverified;
  6238. this.$revMaxSpeed = getLocalizedValue(+attrs.revMaxSpeed, this.$address.$country);
  6239. this.$revMaxSpeedUnverified = attrs.revMaxSpeedUnverified;
  6240. this.$hasClosures = attrs.hasClosures;
  6241. if (raw.getFlagAttributes) this.$flags = raw.getFlagAttributes()
  6242. } else {
  6243. this.$name = attrs.name;
  6244. this.$brand = attrs.brand;
  6245. if (this.$brand === null) this.$brand = '';
  6246. this.$isApproved = attrs.approved;
  6247. this.$mainCategory = raw.getMainCategory();
  6248. this.$categories = attrs.categories;
  6249. this.$categoryAttributes = attrs.categoryAttributes;
  6250. this.$openingHours = attrs.openingHours;
  6251. this.$services = attrs.services;
  6252. this.$externalProviders = attrs.externalProviderIDs;
  6253. this.$entryExitPoints = attrs.entryExitPoints;
  6254. this.$alts = attrs.aliases;
  6255. this.$address = new _WV.SimpleADDRESS(attrs.streetID);
  6256. this.$geometry = attrs.geometry;
  6257. this.$phone = attrs.phone;
  6258. this.$url = attrs.url;
  6259. this.$isPoint = raw.isPoint()
  6260. }
  6261. this.$isEditable = raw.arePropertiesEditable();
  6262. this.$lock = attrs.lockRank + 1;
  6263. this.$rank = attrs.rank + 1;
  6264. if (attrs.updatedOn) this.$updatedOn = formatDate(attrs.updatedOn);
  6265. if (0 < attrs.updatedBy) {
  6266. this.$updatedByID = attrs.updatedBy;
  6267. this.$updatedBy = getUserName(attrs.updatedBy);
  6268. this.$updatedByLevel = getUserLevel(attrs.updatedBy)
  6269. }
  6270. if (attrs.createdOn) this.$createdOn = formatDate(attrs.createdOn);
  6271. if (attrs.createdBy) {
  6272. this.$createdByID = attrs.createdBy;
  6273. this.$createdBy = getUserName(attrs.createdBy);
  6274. this.$createdByLevel = getUserLevel(attrs.createdBy)
  6275. }
  6276. Object.defineProperties(this, {
  6277. $rawSegment: {enumerable: false},
  6278. _nodeA: {enumerable: false},
  6279. $nodeA: {get: this.getNodeA},
  6280. $nodeAID: {writable: false},
  6281. _nodeB: {enumerable: false},
  6282. $nodeB: {get: this.getNodeB},
  6283. $nodeBID: {writable: false},
  6284. _center: {enumerable: false},
  6285. $center: {get: this.getCenter},
  6286. _restrictions: {enumerable: false},
  6287. $restrictions: {get: this.getRestrictions},
  6288. $segmentID: {writable: false},
  6289. $isRoutable: {writable: false},
  6290. $isPoint: {writable: false},
  6291. $isTurnALocked: {writable: false},
  6292. $isTurnBLocked: {writable: false},
  6293. $isRoundabout: {writable: false},
  6294. $hasHNs: {writable: false},
  6295. $typeRank: {writable: false},
  6296. $isEditable: {writable: false},
  6297. $rank: {writable: false},
  6298. $length: {writable: false},
  6299. $mainCategory: {writable: false},
  6300. $updatedOn: {writable: false},
  6301. $updatedBy: {writable: false},
  6302. $updatedByID: {writable: false},
  6303. $updatedByLevel: {writable: false},
  6304. $createdOn: {writable: false},
  6305. $createdBy: {writable: false},
  6306. $createdByID: {writable: false},
  6307. $createdByLevel: {writable: false},
  6308. $restrictionsLen: {writable: false}
  6309. })
  6310. }
  6311. SimpleOBJECT.prototype.isRoutable = function() {
  6312. var routeableRoadTypes = [RT_STREET, RT_PRIMARY, RT_MINOR, RT_MAJOR, RT_FREEWAY];
  6313. return routeableRoadTypes.includes(this.$type)
  6314. };
  6315. SimpleOBJECT.prototype.getTypeRank = function(typeID) {
  6316. return {19: 1, 18: 2, 16: 3, 10: 4, 5: 5, 17: 6, 20: 7, 8: 8, 21: 9, 1: 10, 2: 11, 4: 12, 7: 13, 6: 14, 3: 15}[typeID]
  6317. };
  6318. SimpleOBJECT.prototype.getNodeA = function() {
  6319. return this._nodeA ? this._nodeA : this._nodeA = new SimpleNODE(this.$nodeAID, this.$objectID)
  6320. };
  6321. SimpleOBJECT.prototype.getNodeB = function() {
  6322. return this._nodeB ? this._nodeB : this._nodeB = new SimpleNODE(this.$nodeBID, this.$objectID)
  6323. };
  6324. SimpleOBJECT.prototype.getCenter = function() {
  6325. if (this._center) return this._center;
  6326. this._center = this.$rawObject.geometry.bounds.getCenterLonLat().clone().transform(WM.projection, WM.displayProjection);
  6327. this._center.lon = Math.round(this._center.lon * 1E5) / 1E5;
  6328. this._center.lat = Math.round(this._center.lat * 1E5) / 1E5;
  6329. return this._center
  6330. };
  6331. SimpleOBJECT.prototype.getRestrictions = function() {
  6332. var t;
  6333. return this._restrictions ? this._restrictions : this._restrictions = this.$model == WMo.venues ? [] : (t = this, this.$rawObject.attributes.restrictions.map(function(e) {
  6334. return new SimpleRESTRICTION(e, t.$objectID)
  6335. }))
  6336. };
  6337. SimpleOBJECT.prototype.report = function(params) {
  6338. if (classCodeIs(params, CC_NUMBER)) params = {$checkID: params};
  6339. var id = params.$checkID;
  6340. if (!id || !isLimitOk(id)) return;
  6341. function getObjectCopy(ss) {
  6342. return {
  6343. $objectID: ss.$objectID, $model: ss.$model, $name: ss.$name, $countryID: +ss.$address.$countryID, $cityID: +ss.$address.$cityID, $streetID: +ss.$address.$streetID, $reportIDs: {},
  6344. $updated: ss.$updatedOn ? ss.$rawObject.attributes.updatedOn :
  6345. ss.$createdOn ? ss.$rawObject.attributes.createdOn :
  6346. 0,
  6347. $userID: ss.$updatedByID ? +ss.$updatedByID :
  6348. ss.$createdByID ? +ss.$createdByID :
  6349. 0,
  6350. $isEditable: ss.$isEditable && (ss.$nodeA.$isEditable || ss.$nodeA.$isPartial) && (ss.$nodeB.$isEditable || ss.$nodeB.$isPartial), $typeRank: +ss.$typeRank, $center: ss.$center,
  6351. $length: +ss.$length
  6352. }
  6353. }
  6354. var rep = _REP.$cityIDs[this.$address.$cityID];
  6355. var check = _RT.$checks[id];
  6356. if (_repRC[id])
  6357. _repRC[id]++;
  6358. else
  6359. _repRC[id] = 1;
  6360. if (LIMIT_PERCHECK < _repRC[id]) {
  6361. _REP.$isLimitPerCheck = true;
  6362. return
  6363. }
  6364. if (params.$cityParam) rep.$params[id] = params.$cityParam;
  6365. var sid = this.$address.$streetID;
  6366. if (!(sid in rep.$streetIDs)) {
  6367. rep.$unsortedStreetIDs.push(sid);
  6368. _repS[sid] = this.$address.$street;
  6369. rep.$streetIDs[sid] = {};
  6370. rep.$streetIDs[sid].$params = {};
  6371. rep.$streetIDs[sid].$objectIDs = {};
  6372. rep.$streetIDs[sid].$unsortedObjectIDs = [];
  6373. rep.$streetIDs[sid].$sortedObjectIDs = []
  6374. }
  6375. rep = rep.$streetIDs[sid];
  6376. if (params.$streetParam) rep.$params[id] = params.$streetParam;
  6377. if (!(this.$objectID in rep.$objectIDs)) {
  6378. rep.$unsortedObjectIDs.push(this.$objectID);
  6379. rep.$objectIDs[this.$objectID] = getObjectCopy(this)
  6380. }
  6381. var objectCopy = rep.$objectIDs[this.$objectID];
  6382. var uid = objectCopy.$userID;
  6383. if (!(uid in _repU)) {
  6384. var n = '';
  6385. if (uid === this.$createdByID)
  6386. n = this.$createdBy;
  6387. else if (uid === this.$updatedByID)
  6388. n = this.$updatedBy;
  6389. _repU[uid] = n
  6390. }
  6391. var seenObj = _RT.$seen[this.$objectID];
  6392. if (this.$forceNonEditable) {
  6393. this.$forceNonEditable = false;
  6394. objectCopy.$isEditable = false;
  6395. if (_REP.$maxSeverity <= seenObj[I_SEVERITY] || _REP.$maxSeverity <= check.SEVERITY) bUpdateMaxSeverity = true
  6396. }
  6397. objectCopy.$reportIDs[id] = params.$param;
  6398. if (_REP.$maxSeverity < check.SEVERITY)
  6399. if (checkFilter(check.SEVERITY, objectCopy, null) && getFilteredSeverity(check.SEVERITY, id, true)) _REP.$maxSeverity = check.SEVERITY;
  6400. if (!check.REPORTONLY && seenObj[I_SEVERITY] < check.SEVERITY) seenObj[I_SEVERITY] = check.SEVERITY;
  6401. seenObj[I_OBJECTCOPY] = objectCopy
  6402. };
  6403. SimpleOBJECT.prototype.incCityCounter = function() {
  6404. var rep = _REP.$cityIDs;
  6405. var cid = this.$address.$cityID;
  6406. if (!(cid in rep)) {
  6407. _REP.$countries[this.$address.$countryID] = this.$address.$country;
  6408. _REP.$unsortedCityIDs.push(cid);
  6409. _repC[cid] = this.$address.$city;
  6410. _repCC[cid] = 0;
  6411. rep[cid] = {};
  6412. rep[cid].$params = {};
  6413. rep[cid].$streetIDs = {};
  6414. rep[cid].$unsortedStreetIDs = [];
  6415. rep[cid].$sortedStreetIDs = []
  6416. }
  6417. _repCC[cid]++;
  6418. _REP.$counterTotal++
  6419. };
  6420. function deleteCityCheck(cityID, checkID) {
  6421. var repS = _REP.$cityIDs[cityID].$streetIDs;
  6422. for (var sid in repS) {
  6423. if (!repS.hasOwnProperty(sid)) continue;
  6424. var repSG = repS[sid].$objectIDs;
  6425. for (var sgid in repSG) {
  6426. if (!repSG.hasOwnProperty(sgid)) continue;
  6427. var reportIDs = repSG[sgid].$reportIDs;
  6428. if (!(checkID in reportIDs)) continue;
  6429. var seen = _RT.$seen[sgid];
  6430. var maxSev = 0;
  6431. var filSev = 0;
  6432. delete reportIDs[checkID];
  6433. for (var repID in reportIDs) {
  6434. if (!reportIDs.hasOwnProperty(repID)) continue;
  6435. var check = _RT.$checks[repID];
  6436. if (!check) continue;
  6437. if (filSev < check.SEVERITY && getFilteredSeverity(check.SEVERITY, repID, true)) filSev = check.SEVERITY;
  6438. if (maxSev < check.SEVERITY) {
  6439. maxSev = check.SEVERITY;
  6440. if (_RT.$curMaxSeverity === maxSev) break
  6441. }
  6442. }
  6443. seen[I_SEVERITY] = maxSev;
  6444. reHLObjectID(+sgid, filSev)
  6445. }
  6446. }
  6447. }
  6448. function getCityCmpObj(cityID, city, otherCity) {
  6449. var obj = {
  6450. $cityID: cityID,
  6451. $counterReported: 0,
  6452. $limit: 0,
  6453. $city: city,
  6454. $otherCity: otherCity,
  6455. $CITY: city.toUpperCase(),
  6456. $noCountyCity: '',
  6457. $noAbbreviationCity: '',
  6458. $sortedCity: '',
  6459. $noSpaceCity: '',
  6460. $reason: ''
  6461. };
  6462. obj.$noCountyCity = obj.$CITY.replace(/ *\([^\)]+\) */g, '').replace(/ *,.*/g, '');
  6463. obj.$noAbbreviationCity = obj.$noCountyCity.replace(/ *[^\. ]+ *\. */g, '');
  6464. obj.$noDigitsCity = obj.$noCountyCity.replace(/ *\d+ */g, ' ');
  6465. obj.$sortedCity = obj.$noAbbreviationCity.split(' ').sort().join(' ');
  6466. obj.$noSpaceCity = obj.$noAbbreviationCity.split(' ').join('');
  6467. return obj
  6468. }
  6469. function setCmpObjLimits(obj1, obj2) {
  6470. var curCase = '';
  6471. if (obj1.$city === obj2.$city) {
  6472. curCase = trS('city.12') + ' ' + obj1.$cityID + ' & ' + obj2.$cityID;
  6473. obj1.$reason = obj2.$reason = curCase;
  6474. obj1.$limit = obj2.$limit = 100;
  6475. return
  6476. }
  6477. if (obj1.$noSpaceCity !== obj1.$noAbbreviationCity && obj1.$noSpaceCity === obj2.$noAbbreviationCity) {
  6478. obj1.$reason = trS('city.13r');
  6479. obj2.$reason = trS('city.13a');
  6480. obj1.$limit = 10;
  6481. obj2.$limit = 1E3;
  6482. return
  6483. }
  6484. if ((new RegExp('(^| )' + obj1.$sortedCity)).test(obj2.$sortedCity)) {
  6485. if (obj1.$noCountyCity.length !== obj1.$noAbbreviationCity.length) {
  6486. curCase = trS('city.2');
  6487. obj1.$reason = obj2.$reason = curCase;
  6488. obj1.$limit = 1E3;
  6489. obj2.$limit = 10;
  6490. return
  6491. }
  6492. if (3 > obj1.$city.length) {
  6493. curCase = trS('city.3');
  6494. obj1.$reason = obj2.$reason = curCase;
  6495. obj1.$limit = 1E3;
  6496. obj2.$limit = 0;
  6497. return
  6498. }
  6499. if (obj1.$CITY === obj2.$CITY) {
  6500. curCase = trS('city.5');
  6501. obj1.$reason = obj2.$reason = curCase;
  6502. if (obj1.$city.charAt(0) !== obj1.$CITY.charAt(0)) {
  6503. obj1.$limit = 1E3;
  6504. obj2.$limit = 10
  6505. } else {
  6506. obj1.$limit = 10;
  6507. obj2.$limit = 1E3
  6508. }
  6509. return
  6510. }
  6511. if (obj1.$sortedCity === obj2.$sortedCity) {
  6512. if (obj1.$noSpaceCity !== obj1.$noAbbreviationCity) {
  6513. curCase = trS('city.6');
  6514. obj1.$reason = obj2.$reason = curCase;
  6515. obj1.$limit = obj2.$limit = 1E3;
  6516. return
  6517. }
  6518. if (obj1.$city.length === obj1.$noCountyCity.length) {
  6519. if (obj2.$city.length === obj2.$noCountyCity.length) {
  6520. curCase = trS('city.7');
  6521. obj1.$reason = obj2.$reason = curCase;
  6522. obj1.$limit = obj2.$limit = 1E3
  6523. } else {
  6524. obj1.$reason = trS('city.8a');
  6525. obj2.$reason = trS('city.8r');
  6526. obj1.$limit = 1E3;
  6527. obj2.$limit = 10
  6528. }
  6529. return
  6530. }
  6531. if (obj2.$city.length === obj2.$noCountyCity.length) {
  6532. obj1.$reason = trS('city.8r');
  6533. obj2.$reason = trS('city.8a');
  6534. obj1.$limit = 10;
  6535. obj2.$limit = 1E3
  6536. } else {
  6537. curCase = trS('city.9');
  6538. obj1.$reason = obj2.$reason = curCase;
  6539. obj1.$limit = obj2.$limit = 1E3
  6540. }
  6541. return
  6542. }
  6543. if ((new RegExp(obj1.$sortedCity + '( |$)')).test(obj2.$sortedCity)) {
  6544. if (4 < obj2.$sortedCity.length - obj1.$sortedCity.length) {
  6545. obj1.$reason = trS('city.10a');
  6546. obj2.$reason = trS('city.10r');
  6547. obj1.$limit = obj2.$limit = 10;
  6548. return
  6549. }
  6550. if (obj1.$noDigitsCity === obj2.$noDigitsCity) {
  6551. curCase = trS('city.14');
  6552. obj1.$reason = obj2.$reason = curCase;
  6553. obj1.$limit = obj2.$limit = 1;
  6554. return
  6555. }
  6556. curCase = trS('city.11');
  6557. obj1.$reason = obj2.$reason = curCase;
  6558. obj1.$limit = 1E3;
  6559. obj2.$limit = 10;
  6560. return
  6561. }
  6562. curCase = trS('city.4');
  6563. obj1.$reason = obj2.$reason = curCase;
  6564. obj1.$limit = 1E3;
  6565. obj2.$limit = 10;
  6566. return
  6567. }
  6568. }
  6569. function addHLedObjects() {
  6570. if (RTStateIs(ST_RUN) || RTStateIs(ST_CONTINUE)) return;
  6571. var features = [];
  6572. for (var i in _RT.$HLedObjects) {
  6573. if (!_RT.$HLedObjects.hasOwnProperty(i)) continue;
  6574. var obj = _RT.$HLedObjects[i];
  6575. if (obj.$severity) features.push(new OpenLayers.Feature.Vector(obj.$geometry.clone(), {0: obj.$severity}))
  6576. }
  6577. _RT.$HLlayer.destroyFeatures();
  6578. _RT.$HLlayer.addFeatures(features)
  6579. }
  6580. function HLObject(rawObject) {
  6581. if (RTStateIs(ST_RUN) || RTStateIs(ST_CONTINUE)) return;
  6582. var objectID = rawObject.getID();
  6583. var seenObj = _RT.$seen[objectID];
  6584. var severity = seenObj[I_SEVERITY];
  6585. var objectCopy = seenObj[I_OBJECTCOPY];
  6586. if (!severity || !objectCopy || !checkFilter(severity, objectCopy, null)) return;
  6587. var filteredSeverity = getFilteredSeverityObj(severity, objectCopy.$reportIDs, true);
  6588. if (!filteredSeverity) return;
  6589. var obj = {$severity: filteredSeverity, $geometry: rawObject.geometry};
  6590. _RT.$HLedObjects[objectID] = obj
  6591. }
  6592. function reHLObjectID(objectID, newSeverity) {
  6593. if (RTStateIs(ST_RUN) || RTStateIs(ST_CONTINUE)) return;
  6594. if (_REP.$maxSeverity !== newSeverity) bUpdateMaxSeverity = true;
  6595. if (oExcludeNotes && RS_NOTE === newSeverity) newSeverity = 0;
  6596. if (objectID in _RT.$HLedObjects) {
  6597. var hlObj = _RT.$HLedObjects[objectID];
  6598. hlObj.$severity = newSeverity
  6599. }
  6600. }
  6601. function deleteSeenObject(objectID) {
  6602. reHLObjectID(objectID, 0);
  6603. var seen = null;
  6604. if (objectID in _RT.$seen) seen = _RT.$seen[objectID];
  6605. if (!seen) return;
  6606. if (_REP.$maxSeverity <= seen[I_SEVERITY]) bUpdateMaxSeverity = true;
  6607. var objectCopy = seen[I_OBJECTCOPY];
  6608. var cityID = seen[I_CITYID];
  6609. delete _RT.$seen[objectID];
  6610. if (0 < _REP.$counterTotal) _REP.$counterTotal--;
  6611. if (0 < _repCC[cityID]) _repCC[cityID]--;
  6612. if (!objectCopy) return;
  6613. var repC = _REP.$cityIDs;
  6614. for (var cid in repC) {
  6615. if (!repC.hasOwnProperty(cid)) continue;
  6616. var repS = repC[cid].$streetIDs;
  6617. for (var sid in repS) {
  6618. if (!repS.hasOwnProperty(sid)) continue;
  6619. var repSG = repS[sid].$objectIDs;
  6620. for (var sgid in repSG) {
  6621. if (!repSG.hasOwnProperty(sgid) || sgid !== objectID) continue;
  6622. var reportIDs = repSG[sgid].$reportIDs;
  6623. for (var repID in reportIDs) {
  6624. if (!reportIDs.hasOwnProperty(repID)) continue;
  6625. if (0 < _repRC[repID]) _repRC[repID]--
  6626. }
  6627. delete repSG[sgid];
  6628. var repUSG = repS[sid].$unsortedObjectIDs;
  6629. repUSG.splice(repUSG.indexOf(sgid), 1);
  6630. repS[sid].$sortedObjectIDs = [];
  6631. return
  6632. }
  6633. }
  6634. }
  6635. }
  6636. function updateObjectProperties(selectedObjects, disabledHL) {
  6637. if (RTStateIs(ST_RUN) || RTStateIs(ST_CONTINUE)) return;
  6638. var prop = document.getElementById('i' + ID_PROPERTY);
  6639. var propDis = document.getElementById('i' + ID_PROPERTY_DISABLED);
  6640. var defID = ID_PROPERTY;
  6641. var defHTML = '';
  6642. if (disabledHL) {
  6643. defID = ID_PROPERTY_DISABLED;
  6644. defHTML = '<div class="direction-message">' +
  6645. '<i class="fa fa-info-circle" aria-hidden="true"></i> ' + trS('props.disabled') + '</div> ';
  6646. if (prop) prop.parentNode.removeChild(prop);
  6647. prop = propDis
  6648. } else if (propDis)
  6649. propDis.parentNode.removeChild(propDis);
  6650. if (prop)
  6651. prop.innerHTML = defHTML;
  6652. else {
  6653. var objectProperties = document.getElementsByClassName('selection-icon')[0];
  6654. if (!objectProperties) objectProperties = document.getElementsByClassName('landmark')[0];
  6655. if (objectProperties) {
  6656. var d = document.createElement('div');
  6657. d.innerHTML = defHTML;
  6658. d.id = 'i' + defID;
  6659. d.style.cssText = 'text-transform: none; padding: 5px;';
  6660. prop = objectProperties.appendChild(d)
  6661. }
  6662. }
  6663. if (disabledHL) return;
  6664. if (!selectedObjects.length) return;
  6665. var selectedIssues = [];
  6666. for (var i = 0; i < selectedObjects.length; i++) {
  6667. var objectID = selectedObjects[i];
  6668. if (objectID in _RT.$seen) {
  6669. var objectCopy = _RT.$seen[objectID][I_OBJECTCOPY];
  6670. if (!objectCopy) continue;
  6671. for (var cid in objectCopy.$reportIDs)
  6672. if (objectCopy.$reportIDs.hasOwnProperty(cid)) {
  6673. var check = _RT.$checks[cid];
  6674. if (check.REPORTONLY) continue;
  6675. selectedIssues.push([check, objectCopy, cid])
  6676. }
  6677. }
  6678. }
  6679. var newProp = '<b style="display:block"><a target="_blank" href="' + PFX_FORUM + FORUM_HOME + '">WME Validator</a> ' + trS('props.reports') + ':</b>';
  6680. if (_REP.$isLimitPerCheck)
  6681. newProp += '<div class="c' + CL_RIGHTTIP + ' c' + CL_NOTE + '">' +
  6682. '<span><i class="fa fa-info-circle" aria-hidden="true"></i>' +
  6683. ' <a class="c' + CL_NOTE + '" href="#">' + trS('props.limit.title') + '</a></span>' +
  6684. '<div class="c' + CL_RIGHTTIPPOPUP + '">' +
  6685. '<i class="fa fa-times-circle fa-lg fa-pull-left" style="margin-top:0.3em" aria-hidden="true"></i>' +
  6686. '<div class="c' + CL_RIGHTTIPDESCR + '">' + trS('props.limit.problem') + '.</div>' +
  6687. '<i class="fa fa-check-square-o fa-lg fa-pull-left" style="color:black;margin-top:0.8em" aria-hidden="true"></i>' +
  6688. '<div class="c' + CL_RIGHTTIPDESCR + '">' +
  6689. '<p>' + trS('props.limit.solution') + '.</p>' +
  6690. '</div></div><br></div>';
  6691. if (skippedObject)
  6692. newProp += '<div class="c' + CL_RIGHTTIP + ' c' + CL_NOTE + '">' +
  6693. '<span><i class="fa fa-info-circle" aria-hidden="true"></i>' +
  6694. ' <a class="c' + CL_NOTE + '" href="#">' + trS('props.skipped.title') + '</a></span>' +
  6695. '<div class="c' + CL_RIGHTTIPPOPUP + '">' +
  6696. '<i class="fa fa-times-circle fa-lg fa-pull-left" style="margin-top:0.3em" aria-hidden="true"></i>' +
  6697. '<div class="c' + CL_RIGHTTIPDESCR + '">' + trS('props.skipped.problem') + '.</div>' +
  6698. '</div><br></div>';
  6699. if (!selectedIssues.length) {
  6700. if (prop && (_REP.$isLimitPerCheck || skippedObject)) prop.innerHTML = newProp;
  6701. return
  6702. }
  6703. selectedIssues.sort(function(a, b) {
  6704. return cmpCheckIDs(a[2], b[2])
  6705. });
  6706. var selectedCounters = {};
  6707. selectedIssues = selectedIssues.filter(function(e, i, arr) {
  6708. var checkID = e[2];
  6709. if (i && arr[i - 1][2] === checkID) {
  6710. selectedCounters[checkID]++;
  6711. return false
  6712. }
  6713. selectedCounters[checkID] = 1;
  6714. return true
  6715. });
  6716. selectedIssues.forEach(function(e) {
  6717. var check = e[0];
  6718. var objectCopy = e[1];
  6719. var checkID = e[2];
  6720. var checkCounter = selectedCounters[checkID];
  6721. var sevClass = 0;
  6722. var sevIcon = '';
  6723. var sevBG = '';
  6724. var strCountry = _REP.$countries[objectCopy.$countryID];
  6725. var ccode = '';
  6726. if (strCountry)
  6727. ccode = _I18n.getCountryCode(strCountry.toUpperCase());
  6728. else
  6729. ccode = _RT.$cachedTopCCode;
  6730. options = trO(check.OPTIONS, ccode);
  6731. switch (check.SEVERITY) {
  6732. case RS_NOTE:
  6733. sevClass = CL_NOTE;
  6734. sevIcon = 'info-circle';
  6735. sevBG = GL_NOTEBGCOLOR;
  6736. break;
  6737. case RS_WARNING:
  6738. sevClass = CL_WARNING;
  6739. sevIcon = 'exclamation-triangle';
  6740. sevBG = GL_WARNINGBGCOLOR;
  6741. break;
  6742. case RS_ERROR:
  6743. sevClass = CL_ERROR;
  6744. sevIcon = 'times-circle';
  6745. sevBG = GL_ERRORBGCOLOR;
  6746. break;
  6747. case RS_CUSTOM1:
  6748. sevClass = CL_CUSTOM1;
  6749. sevIcon = 'user';
  6750. sevBG = GL_CUSTOM1BGCOLOR;
  6751. break;
  6752. case RS_CUSTOM2:
  6753. sevClass = CL_CUSTOM2;
  6754. sevIcon = 'user';
  6755. sevBG = GL_CUSTOM2BGCOLOR;
  6756. break
  6757. }
  6758. var shortTitle = exSOS(check.TITLE, options, 'titleEN').replace('WME Color Highlights', 'WMECH').replace('WME Toolbox', 'WMETB');
  6759. newProp += '<div class="c' + CL_RIGHTTIP + ' c' + sevClass + '">' +
  6760. '<span><i class="fa fa-' + sevIcon + '" aria-hidden="true"></i>' +
  6761. ' <a class="c' + sevClass + '" href="#">' + shortTitle + (1 < checkCounter ? ' (' + checkCounter + ')' : '') + '</a></span>' +
  6762. '<div class="c' + CL_RIGHTTIPPOPUP + '">' +
  6763. '<i class="fa fa-' + sevIcon + ' fa-lg fa-pull-left" style="margin-top:0.3em" aria-hidden="true"></i>' +
  6764. '<div class="c' + CL_RIGHTTIPDESCR + '">' +
  6765. '#' + checkID + ' ' + exSOS(check.PROBLEM, options, 'problemEN');
  6766. var pl = trO(check.PROBLEMLINK, ccode);
  6767. if (pl)
  6768. newProp += ': <a target="_blank" href="' + pl + '">' + trO(check.PROBLEMLINKTEXT, ccode) + '</a>';
  6769. else
  6770. newProp += '.';
  6771. newProp += '</div>';
  6772. if (objectCopy.$isEditable) {
  6773. newProp += '<i class="fa fa-check-square-o fa-pull-left fa-lg" style="color:black;margin-top:0.8em" aria-hidden="true"></i>' +
  6774. '<div class="c' + CL_RIGHTTIPDESCR + '">';
  6775. if (check.SOLUTION) {
  6776. newProp += '<p>' + exSOS(check.SOLUTION, options, 'solutionEN');
  6777. var sl = trO(check.SOLUTIONLINK, ccode);
  6778. if (sl)
  6779. newProp += ': <a target="_blank" href="' + sl + '">' + trO(check.SOLUTIONLINKTEXT, ccode) + '</a>';
  6780. else
  6781. newProp += '.';
  6782. newProp += '</p>'
  6783. }
  6784. } else
  6785. newProp += '<i class="fa fa-ban fa-pull-left fa-lg" style="color:black;margin-top:0.8em" aria-hidden="true"></i>' +
  6786. '<div class="c' + CL_RIGHTTIPDESCR + '">' +
  6787. '<p>' + trS('props.noneditable') + '.</p>';
  6788. var cityID = objectCopy.$cityID;
  6789. var cityParam = _REP.$cityIDs[cityID].$params[checkID];
  6790. if (cityParam) newProp += '<p>' + cityParam + '</p>';
  6791. var streetID = objectCopy.$streetID;
  6792. var streetParam = _REP.$cityIDs[cityID].$streetIDs[streetID].$params[checkID];
  6793. if (streetParam) newProp += '<p>' + streetParam + '</p>';
  6794. newProp += '</div></div><br></div>'
  6795. });
  6796. if (prop) prop.innerHTML = newProp
  6797. }
  6798. function matchRegExp(checkID, objectID, expandedString, options) {
  6799. var optRegExp = options[CO_REGEXP];
  6800. if (!optRegExp) return false;
  6801. var optString = options[CO_STRING];
  6802. var optBool = options[CO_BOOL];
  6803. if (options[CO_NUMBER] && 0 < _REP.$debugCounter) {
  6804. var checkTitle = '';
  6805. if (_RT.$checks[checkID] && _RT.$checks[checkID].TITLE) checkTitle = _RT.$checks[checkID].TITLE;
  6806. var reported = optRegExp.test(expandedString) ? optBool ? false : true : optBool ? true : false;
  6807. _REP.$debugCounter--;
  6808. log(getMsg(
  6809. 'debug log for segment ' + objectID + ', check #' + checkID,
  6810. '\n1. ' + (optString ? 'Expand template: ' + optString + ' -> ' : 'String: ') + expandedString + '\n2. Match RegExp: ' + (optBool ? 'not ' : '') + optRegExp + ' -> ' +
  6811. JSON.stringify(expandedString.match(optRegExp)) + '\n=> ' + (reported ? 'REPORT the segment as #' + checkID + ' \'' + checkTitle + '\'' : 'skip the segment') +
  6812. (0 < _REP.$debugCounter ? '' : '\nEnd of debug log. Click \'✘\' (Clear report) button to start debug over.')))
  6813. }
  6814. if (optRegExp.test(expandedString)) {
  6815. if (!optBool) return true
  6816. } else if (optBool)
  6817. return true;
  6818. return false
  6819. }
  6820. function checkPublicConnection(seg, ignoreSegment) {
  6821. var foundPublicConnection = false;
  6822. if (!seg.$nodeA.$isPartial && seg.$nodeA.$otherSegmentsLen > 0)
  6823. for (var i = 0; i < seg.$nodeA.$otherSegmentsLen; i++) {
  6824. var otherSegment = seg.$nodeA.$otherSegments[i];
  6825. if (ignoreSegment && otherSegment === ignoreSegment) continue;
  6826. if (otherSegment.$isRoutable || RT_RAMP === otherSegment.$type) {
  6827. foundPublicConnection = true;
  6828. break
  6829. }
  6830. }
  6831. if (!seg.$nodeB.$isPartial && seg.$nodeB.$otherSegmentsLen > 0)
  6832. for (var i = 0; i < seg.$nodeB.$otherSegmentsLen; i++) {
  6833. var otherSegment = seg.$nodeB.$otherSegments[i];
  6834. if (ignoreSegment && otherSegment === ignoreSegment) continue;
  6835. if (otherSegment.$isRoutable || RT_RAMP === otherSegment.$type) {
  6836. foundPublicConnection = true;
  6837. break
  6838. }
  6839. }
  6840. return foundPublicConnection
  6841. }
  6842. var reportWMECH = _UI.pSettings.pScanner.oReportExt.CHECKED && _RT.oReportWMECH.CHECKED;
  6843. var reportToolbox = _UI.pSettings.pScanner.oReportExt.CHECKED && _RT.oReportToolbox.CHECKED;
  6844. var currentZoom = WM.getZoom();
  6845. var slowChecks = _UI.pSettings.pScanner.oSlowChecks.CHECKED && 15 < currentZoom;
  6846. var oExcludeNotes = _UI.pMain.pFilter.oExcludeNotes.CHECKED;
  6847. var selectedObjects = [];
  6848. _RT.$HLedObjects = {};
  6849. for (var segmentKey in WMo.segments.objects) {
  6850. var rawSegment = WMo.segments.objects[segmentKey];
  6851. var segmentID = rawSegment.getID();
  6852. if (_RT.$topUser.$userLevel <= rawSegment.attributes.lockRank && rawSegment.attributes.updatedOn && 13989024E5 < rawSegment.attributes.updatedOn) {
  6853. if (rawSegment.selected) {
  6854. skippedObject = true;
  6855. if (!DEF_DEBUG) selectedObjects.push(segmentID)
  6856. }
  6857. if (!DEF_DEBUG) continue
  6858. }
  6859. if (rawSegment.layer && rawSegment.id in rawSegment.layer.unrenderedFeatures) continue;
  6860. if ('Delete' === rawSegment.state) continue;
  6861. var seen = null;
  6862. if (segmentID in _RT.$seen) seen = _RT.$seen[segmentID];
  6863. if (rawSegment.selected) {
  6864. selectedObjects.push(segmentID);
  6865. _RT.$revalidate[segmentID] = true;
  6866. if (seen && !seen[I_ISWMECHCOLOR]) {
  6867. deleteSeenObject(segmentID);
  6868. seen = null
  6869. }
  6870. } else if (segmentID in _RT.$revalidate) {
  6871. deleteSeenObject(segmentID);
  6872. seen = null;
  6873. delete _RT.$revalidate[segmentID];
  6874. delete rawSegment[GL_WMECHCOLOR]
  6875. }
  6876. var segmentGeometry = document.getElementById(rawSegment.geometry.id);
  6877. if (segmentGeometry) {
  6878. var strokeColor = segmentGeometry.getAttribute('stroke').toUpperCase();
  6879. if (4 === strokeColor.length) strokeColor = '#' + strokeColor.charAt(1) + strokeColor.charAt(1) + strokeColor.charAt(2) + strokeColor.charAt(2) + strokeColor.charAt(3) + strokeColor.charAt(3);
  6880. if (strokeColor in _RT.$WMECHcolors) rawSegment[GL_WMECHCOLOR] = strokeColor
  6881. }
  6882. if (seen) {
  6883. var isTBColor = GL_TBCOLOR in rawSegment;
  6884. var isWMECHColor = GL_WMECHCOLOR in rawSegment;
  6885. if (!seen[I_ISPARTIAL] && isTBColor === seen[I_ISTBCOLOR] && isWMECHColor === seen[I_ISWMECHCOLOR]) {
  6886. HLObject(rawSegment);
  6887. continue
  6888. }
  6889. }
  6890. var segment = new SimpleOBJECT(segmentID, WMo.segments);
  6891. Object.seal(segment);
  6892. var address = segment.$address;
  6893. var country = address.$country;
  6894. var countryLen = country.length;
  6895. var countryCode = country ? _I18n.getCountryCode(country.toUpperCase()) : _RT.$cachedTopCCode;
  6896. var city = address.$city;
  6897. var cityLen = city.length;
  6898. var cityID = address.$cityID;
  6899. var street = address.$street;
  6900. var state = address.$state;
  6901. var streetLen = street.length;
  6902. var alts = segment.$alts;
  6903. var roadType = segment.$type;
  6904. var typeRank = segment.$typeRank;
  6905. var isToll = segment.$isToll;
  6906. var direction = segment.$direction;
  6907. var elevation = segment.$elevation;
  6908. var lock = Math.max(segment.$lock, segment.$rank);
  6909. var segmentLen = segment.$length;
  6910. var isRoundabout = segment.$isRoundabout;
  6911. var hasHNs = segment.$hasHNs;
  6912. var isDrivable = RR_TRAIL < typeRank;
  6913. var nodeA = segment.$nodeA;
  6914. var nodeB = segment.$nodeB;
  6915. var nodeAID = segment.$nodeAID;
  6916. var nodeBID = segment.$nodeBID;
  6917. var isPartial = nodeA.$isPartial || nodeB.$isPartial;
  6918. var forwardSpeed = segment.$fwdMaxSpeed;
  6919. var reverseSpeed = segment.$revMaxSpeed;
  6920. var forwardSpeedUnverified = segment.$fwdMaxSpeedUnverified;
  6921. var reverseSpeedUnverified = segment.$revMaxSpeedUnverified;
  6922. var hasRestrictions = segment.$hasRestrictions;
  6923. var hasClosures = segment.$hasClosures;
  6924. var flags = segment.$flags;
  6925. var now = Date.now();
  6926. if (seen) {
  6927. if (seen[I_ISPARTIAL] && isPartial) {
  6928. HLObject(rawSegment);
  6929. continue
  6930. }
  6931. deleteSeenObject(segmentID);
  6932. seen = null
  6933. }
  6934. _RT.$seen[segmentID] = seen = [0, null, GL_TBCOLOR in rawSegment, GL_WMECHCOLOR in rawSegment, isPartial || 16 > currentZoom, cityID];
  6935. segment.incCityCounter();
  6936. if (segment.$isEditable) _REP.$isEditableFound = true;
  6937. if (GL_NOID === street) {
  6938. deleteSeenObject(segmentID);
  6939. continue
  6940. }
  6941. _RT.$isGlobalAccess = true;
  6942. if (!address.isOkFor(0)) {
  6943. _RT.$isGlobalAccess = false;
  6944. continue
  6945. }
  6946. if (slowChecks && RT_RAILROAD !== roadType) {
  6947. if (nodeA.$otherSegmentsLen && isLimitOk(118)) {
  6948. var rawNode = nodeA.$rawNode;
  6949. var baseAngle = rawNode.getAngleToSegment(rawSegment);
  6950. for (var i = 0; i < nodeA.$otherSegmentsLen; i++) {
  6951. var otherSegment = nodeA.$otherSegments[i];
  6952. if (!otherSegment.$rawSegment) continue;
  6953. var curAngle = rawNode.getAngleToSegment(otherSegment.$rawSegment);
  6954. var angle = Math.abs(baseAngle - curAngle);
  6955. if (angle > 180) angle = 360 - angle;
  6956. if (2 > angle && address.isOkFor(118)) {
  6957. segment.report(118);
  6958. break
  6959. }
  6960. }
  6961. }
  6962. if (nodeB.$otherSegmentsLen && isLimitOk(119)) {
  6963. var rawNode = nodeB.$rawNode;
  6964. var baseAngle = rawNode.getAngleToSegment(rawSegment);
  6965. for (var i = 0; i < nodeB.$otherSegmentsLen; i++) {
  6966. var otherSegment = nodeB.$otherSegments[i];
  6967. if (!otherSegment.$rawSegment) continue;
  6968. var curAngle = rawNode.getAngleToSegment(otherSegment.$rawSegment);
  6969. var angle = Math.abs(baseAngle - curAngle);
  6970. if (angle > 180) angle = 360 - angle;
  6971. if (2 > angle && address.isOkFor(119)) {
  6972. segment.report(119);
  6973. break
  6974. }
  6975. }
  6976. }
  6977. }
  6978. if (!countryLen && isLimitOk(23)) {
  6979. seen[I_ISPARTIAL] = false;
  6980. if (address.isOkFor(23)) {
  6981. segment.report(23);
  6982. HLObject(rawSegment)
  6983. }
  6984. continue
  6985. }
  6986. if (streetLen && address.isOkFor(101)) {
  6987. options = getCheckOptions(101, countryCode);
  6988. if (options[CO_REGEXP].test(street)) {
  6989. segment.report(101);
  6990. HLObject(rawSegment);
  6991. continue
  6992. }
  6993. }
  6994. if (!state && address.isOkFor(106)) segment.report(106);
  6995. if (reportToolbox && address.isOkFor(CK_TBFIRST)) {
  6996. var col = rawSegment[GL_TBCOLOR];
  6997. if (col) {
  6998. col = col.toUpperCase();
  6999. for (var i = CK_TBFIRST; i <= CK_TBLAST; i++) {
  7000. var check = _RT.$checks[i];
  7001. if (check.COLOR === col) {
  7002. segment.report(i);
  7003. break
  7004. }
  7005. }
  7006. }
  7007. }
  7008. if (reportWMECH && address.isOkFor(CK_WMECHFIRST)) {
  7009. var col = rawSegment[GL_WMECHCOLOR];
  7010. if (col)
  7011. for (var i = CK_WMECHFIRST; i <= CK_WMECHLAST; i++) {
  7012. var check = _RT.$checks[i];
  7013. if (check && check.COLOR === col) {
  7014. segment.report(i);
  7015. break
  7016. }
  7017. }
  7018. }
  7019. if (alts.length && address.isOkFor(34))
  7020. for (var i = 0; i < alts.length; i++)
  7021. if (!alts[i].$street) {
  7022. segment.report(34);
  7023. break
  7024. }
  7025. if (slowChecks && segment.$restrictionsLen && isLimitOk(38) && address.isOkFor(38)) {
  7026. var restrictions = segment.$restrictions;
  7027. for (var i = 0; i < restrictions.length; i++)
  7028. if (restrictions[i].$isInThePast) {
  7029. segment.report(38);
  7030. break
  7031. }
  7032. }
  7033. if (slowChecks && (nodeA.$restrictionsLen || nodeB.$restrictionsLen) && isLimitOk(39) && address.isOkFor(39)) {
  7034. var restrictions = nodeA.$restrictions.concat(nodeB.$restrictions);
  7035. for (var i = 0; i < restrictions.length; i++) {
  7036. var restriction = restrictions[i];
  7037. if (restriction.$isInThePast) {
  7038. var param = '';
  7039. if (restriction.$to.$address && restriction.$to.$address.$street) param = 'turn to ' + restriction.$to.$address.$street;
  7040. segment.report({$checkID: 39, $streetParam: param});
  7041. break
  7042. }
  7043. }
  7044. }
  7045. if (nodeAID && nodeAID === nodeBID && address.isOkFor(43)) segment.report(43);
  7046. if (RT_RAILROAD === roadType && 100 > segmentLen && !isPartial && !nodeA.$otherSegmentsLen && !nodeB.$otherSegmentsLen && address.isOkFor(104)) segment.report(104);
  7047. if (RT_TRAIL === roadType && -5 === elevation && address.isOkFor(105)) segment.report(105);
  7048. if ((9 < elevation || -5 > elevation) && address.isOkFor(116)) segment.report(116);
  7049. var expandOptions = {
  7050. 'country': country,
  7051. 'state': state,
  7052. 'city': city,
  7053. 'street': street,
  7054. 'altStreet': alts.map(function(e) {
  7055. return e.$street
  7056. }),
  7057. 'altCity': alts.map(function(e) {
  7058. return e.$city
  7059. }),
  7060. 'type': roadType,
  7061. 'typeRank': typeRank,
  7062. 'toll': +isToll,
  7063. 'direction': direction,
  7064. 'elevation': elevation,
  7065. 'lock': lock,
  7066. 'length': segmentLen,
  7067. 'ID': segmentID,
  7068. 'roundabout': +isRoundabout,
  7069. 'hasHNs': +hasHNs,
  7070. 'drivable': +isDrivable,
  7071. 'Uturn': +(nodeA.$isUturn || nodeB.$isUturn),
  7072. 'deadEnd': +!(isPartial || nodeA.$otherSegmentsLen && nodeB.$otherSegmentsLen),
  7073. 'partialA': +nodeA.$isPartial,
  7074. 'deadEndA': +!(nodeA.$isPartial || nodeA.$otherSegmentsLen),
  7075. 'segmentsA': nodeA.$otherSegmentsLen,
  7076. 'inA': nodeA.$inConnectionsLen,
  7077. 'outA': nodeA.$outConnectionsLen,
  7078. 'UturnA': +nodeA.$isUturn,
  7079. 'partialB': +nodeB.$isPartial,
  7080. 'deadEndB': +!(nodeB.$isPartial || nodeB.$otherSegmentsLen),
  7081. 'segmentsB': nodeB.$otherSegmentsLen,
  7082. 'inB': nodeB.$inConnectionsLen,
  7083. 'outB': nodeB.$outConnectionsLen,
  7084. 'UturnB': +nodeB.$isUturn,
  7085. 'softTurns': +!(segment.$isTurnALocked && segment.$isTurnBLocked),
  7086. 'speedLimit': forwardSpeed || reverseSpeed,
  7087. 'speedLimitAB': forwardSpeed,
  7088. 'speedLimitBA': reverseSpeed,
  7089. 'checkSpeedLimit': isDrivable && (reverseSpeedUnverified || forwardSpeedUnverified)
  7090. };
  7091. for (var i = CK_MATCHFIRST; i <= CK_MATCHLAST; i++) {
  7092. if (!isLimitOk(i) || !address.isOkFor(i)) continue;
  7093. options = getCheckOptions(i, countryCode);
  7094. var optString = options[CO_STRING];
  7095. var optRegExp = options[CO_REGEXP];
  7096. if (!optString || !optRegExp) continue;
  7097. var expandedString = _I18n.expandSO(optString, expandOptions);
  7098. if (matchRegExp(i, segmentID, expandedString, options)) segment.report(i)
  7099. }
  7100. if (!cityLen && RT_FREEWAY === roadType && isLimitOk(69) && address.isOkFor(69)) segment.report(69);
  7101. if (slowChecks) {
  7102. if (1 === nodeA.$otherSegmentsLen && DIR_UNKNOWN !== direction && !nodeA.$isPartial && !nodeA.$isUturn && !nodeA.$restrictionsLen && !segment.$restrictionsLen && !hasClosures && isLimitOk(36) &&
  7103. address.isOkFor(36)) {
  7104. var otherSegment = nodeA.$otherSegments[0];
  7105. var otherNode, nextNode;
  7106. if (otherSegment.$nodeAID === nodeAID) {
  7107. otherNode = otherSegment.$nodeA;
  7108. nextNode = otherSegment.$nodeB
  7109. } else {
  7110. otherNode = otherSegment.$nodeB;
  7111. nextNode = otherSegment.$nodeA
  7112. }
  7113. if ((!nodeB.$isPartial || !nextNode.$isPartial) && otherSegment.$segmentID !== segmentID && otherSegment.$rawSegment && (1E4 > otherSegment.$length + segmentLen || 1E3 > segmentLen) &&
  7114. otherSegment.$address.$street === street && otherSegment.$address.$city === city && otherSegment.$address.$state === state && otherSegment.$address.$country === country &&
  7115. otherSegment.$fwdMaxSpeed === forwardSpeed && otherSegment.$revMaxSpeed === reverseSpeed && otherSegment.$fwdMaxSpeedUnverified === forwardSpeedUnverified &&
  7116. otherSegment.$revMaxSpeedUnverified === reverseSpeedUnverified && otherSegment.$type === roadType && otherSegment.$isToll === isToll && otherSegment.$hasRestrictions === hasRestrictions &&
  7117. !otherSegment.$hasClosures && deepCompare(otherSegment.$flags, flags) &&
  7118. (DIR_TWO === otherSegment.$direction && DIR_TWO === direction || DIR_TWO !== otherSegment.$direction && DIR_TWO !== direction) && otherSegment.$elevation === elevation &&
  7119. otherSegment.$nodeAID !== nodeBID && otherSegment.$nodeBID !== nodeBID && !otherSegment.$restrictionsLen && !otherNode.$restrictionsLen && deepCompare(otherSegment.$alts, alts)) {
  7120. var loopFound = false;
  7121. for (var i = 0; i < nextNode.$otherSegmentsLen; i++) {
  7122. var thirdSegment = nextNode.$otherSegments[i];
  7123. if (thirdSegment.$nodeAID === nodeBID || thirdSegment.$nodeBID === nodeBID) {
  7124. loopFound = true;
  7125. break
  7126. }
  7127. }
  7128. if (!loopFound) segment.report(36)
  7129. }
  7130. }
  7131. if (DIR_UNKNOWN !== direction && !nodeB.$isPartial && 1 === nodeB.$otherSegmentsLen && !nodeB.$isUturn && !nodeB.$restrictionsLen && !segment.$restrictionsLen && !hasClosures && isLimitOk(37) &&
  7132. address.isOkFor(37)) {
  7133. var otherSegment = nodeB.$otherSegments[0];
  7134. var otherNode, nextNode;
  7135. if (otherSegment.$nodeAID === nodeBID) {
  7136. otherNode = otherSegment.$nodeA;
  7137. nextNode = otherSegment.$nodeB
  7138. } else {
  7139. otherNode = otherSegment.$nodeB;
  7140. nextNode = otherSegment.$nodeA
  7141. }
  7142. if ((!nodeA.$isPartial || !nextNode.$isPartial) && otherSegment.$segmentID !== segmentID && otherSegment.$rawSegment && 1E4 > otherSegment.$length + segmentLen &&
  7143. otherSegment.$address.$street === street && otherSegment.$address.$city === city && otherSegment.$address.$state === state && otherSegment.$address.$country === country &&
  7144. otherSegment.$fwdMaxSpeed === forwardSpeed && otherSegment.$revMaxSpeed === reverseSpeed && otherSegment.$fwdMaxSpeedUnverified === forwardSpeedUnverified &&
  7145. otherSegment.$revMaxSpeedUnverified === reverseSpeedUnverified && otherSegment.$type === roadType && otherSegment.$isToll === isToll && otherSegment.$hasRestrictions === hasRestrictions &&
  7146. !otherSegment.$hasClosures && deepCompare(otherSegment.$flags, flags) &&
  7147. (DIR_TWO === otherSegment.$direction && DIR_TWO === direction || DIR_TWO !== otherSegment.$direction && DIR_TWO !== direction) && otherSegment.$elevation === elevation &&
  7148. otherSegment.$nodeAID !== nodeAID && otherSegment.$nodeBID !== nodeAID && !otherSegment.$restrictionsLen && !otherNode.$restrictionsLen && deepCompare(otherSegment.$alts, alts)) {
  7149. var loopFound = false;
  7150. for (var i = 0; i < nextNode.$otherSegmentsLen; i++) {
  7151. var thirdSegment = nextNode.$otherSegments[i];
  7152. if (thirdSegment.$nodeAID === nodeAID || thirdSegment.$nodeBID === nodeAID) {
  7153. loopFound = true;
  7154. break
  7155. }
  7156. }
  7157. if (!loopFound) segment.report(37)
  7158. }
  7159. }
  7160. }
  7161. if (cityLen) {
  7162. for (var i = CK_CITYNAMEFIRST; i <= CK_CITYNAMELAST; i++) {
  7163. if (!address.isOkFor(i) || !isLimitOk(i)) continue;
  7164. if (matchRegExp(i, segmentID, city, getCheckOptions(i, countryCode))) segment.report(i)
  7165. }
  7166. if (isLimitOk(24) && address.isOkFor(24)) {
  7167. var param = trS('city.1');
  7168. var r = 3 > cityLen ? true : false;
  7169. var cityCounter = _repCC[cityID];
  7170. if (1 === cityCounter || cityID in _REP.$incompleteIDs && !_REP.$incompleteIDs[cityID].$counterReported)
  7171. for (var i = 0, len = _REP.$unsortedCityIDs.length; i < len; i++) {
  7172. var cid = _REP.$unsortedCityIDs[i];
  7173. if (cid === cityID) continue;
  7174. var c = _repC[cid];
  7175. var cLen = c.length;
  7176. if (1 > cLen) continue;
  7177. var cityObj = getCityCmpObj(cityID, city, c);
  7178. var cObj = getCityCmpObj(cid, c, city);
  7179. setCmpObjLimits(cityObj, cObj);
  7180. setCmpObjLimits(cObj, cityObj);
  7181. if (cityObj.$limit) _REP.$incompleteIDs[cityID] = cityObj;
  7182. if (cObj.$limit && !_REP.$incompleteIDs[cid]) _REP.$incompleteIDs[cid] = cObj;
  7183. if (cityObj.$limit || cObj.$limit) break
  7184. }
  7185. if (cityID in _REP.$incompleteIDs) {
  7186. var incompleteCity = _REP.$incompleteIDs[cityID];
  7187. incompleteCity.$counterReported++;
  7188. if (incompleteCity.$limit < cityCounter) {
  7189. r = false;
  7190. deleteCityCheck(cityID, 24);
  7191. delete _REP.$incompleteIDs[cityID]
  7192. } else {
  7193. r = true;
  7194. param = trS('city.consider') + ' ' + incompleteCity.$otherCity + ' [' + incompleteCity.$reason + ']'
  7195. }
  7196. }
  7197. if (r) segment.report({$checkID: 24, $cityParam: param})
  7198. }
  7199. if (RT_RAILROAD === roadType && isLimitOk(24) && address.isOkFor(27)) segment.report(27);
  7200. if (RT_FREEWAY === roadType && isLimitOk(59) && address.isOkFor(59)) segment.report(59)
  7201. }
  7202. if (isDrivable) {
  7203. if (slowChecks) {
  7204. if (nodeA.$outConnectionsLen && (DIR_TWO === direction || DIR_BA === direction) && isLimitOk(120)) {
  7205. var rawNode = nodeA.$rawNode;
  7206. var baseAngle = rawNode.getAngleToSegment(rawSegment);
  7207. for (var i = 0; i < nodeA.$outConnectionsLen; i++) {
  7208. var otherSegment = nodeA.$outConnections[i];
  7209. if (!otherSegment.$rawSegment) continue;
  7210. var curAngle = rawNode.getAngleToSegment(otherSegment.$rawSegment);
  7211. var angle = Math.abs(baseAngle - curAngle);
  7212. if (angle > 180) angle = 360 - angle;
  7213. if (30 > angle && 2 <= angle && address.isOkFor(120))
  7214. if (10 > angle) {
  7215. segment.report(120);
  7216. break
  7217. } else if (!nodeA.$isPartial && 3 > nodeA.$otherSegmentsLen && RR_STREET < typeRank) {
  7218. segment.report(120);
  7219. break
  7220. }
  7221. }
  7222. }
  7223. if (nodeB.$outConnectionsLen && (DIR_TWO === direction || DIR_AB === direction) && isLimitOk(121)) {
  7224. var rawNode = nodeB.$rawNode;
  7225. var baseAngle = rawNode.getAngleToSegment(rawSegment);
  7226. for (var i = 0; i < nodeB.$outConnectionsLen; i++) {
  7227. var otherSegment = nodeB.$outConnections[i];
  7228. if (!otherSegment.$rawSegment) continue;
  7229. var curAngle = rawNode.getAngleToSegment(otherSegment.$rawSegment);
  7230. var angle = Math.abs(baseAngle - curAngle);
  7231. if (angle > 180) angle = 360 - angle;
  7232. if (30 > angle && 2 <= angle && address.isOkFor(121))
  7233. if (10 > angle) {
  7234. segment.report(121);
  7235. break
  7236. } else if (!nodeB.$isPartial && 3 > nodeB.$otherSegmentsLen && RR_STREET < typeRank) {
  7237. segment.report(121);
  7238. break
  7239. }
  7240. }
  7241. }
  7242. }
  7243. if (RT_PRIVATE !== roadType && isLimitOk(45) && address.isOkFor(45))
  7244. if (!nodeA.$isPartial && !nodeA.$inConnectionsLen)
  7245. if (DIR_AB === direction)
  7246. segment.report(45);
  7247. else if (!nodeB.$isPartial && !nodeB.$inConnectionsLen)
  7248. segment.report(45);
  7249. else {
  7250. if (slowChecks && DIR_TWO === direction && nodeA.$otherSegmentsLen && isLimitOk(46))
  7251. for (var i = 0; i < nodeA.$otherSegmentsLen; i++) {
  7252. var otherSegment = nodeA.$otherSegments[i];
  7253. if (!otherSegment.$rawSegment) continue;
  7254. if (RR_TRAIL < otherSegment.$typeRank &&
  7255. (DIR_TWO === otherSegment.$direction || DIR_AB === otherSegment.$direction && nodeAID === otherSegment.$nodeBID ||
  7256. DIR_BA === otherSegment.$direction && nodeAID === otherSegment.$nodeAID)) {
  7257. segment.report(46);
  7258. break
  7259. }
  7260. }
  7261. }
  7262. else if (!nodeB.$isPartial && !nodeB.$inConnectionsLen)
  7263. if (DIR_BA === direction)
  7264. segment.report(45);
  7265. else if (slowChecks && DIR_TWO === direction && nodeB.$otherSegmentsLen && isLimitOk(47))
  7266. for (var i = 0; i < nodeB.$otherSegmentsLen; i++) {
  7267. var otherSegment = nodeB.$otherSegments[i];
  7268. if (!otherSegment.$rawSegment) continue;
  7269. if (RR_TRAIL < otherSegment.$typeRank &&
  7270. (DIR_TWO === otherSegment.$direction || DIR_AB === otherSegment.$direction && nodeBID === otherSegment.$nodeBID ||
  7271. DIR_BA === otherSegment.$direction && nodeBID === otherSegment.$nodeAID)) {
  7272. segment.report(47);
  7273. break
  7274. }
  7275. }
  7276. if (5 < segmentLen && isLimitOk(44) && address.isOkFor(44))
  7277. if (!nodeA.$isPartial && !nodeA.$outConnectionsLen)
  7278. if (DIR_BA === direction)
  7279. segment.report(44);
  7280. else if (!nodeB.$isPartial && !nodeB.$outConnectionsLen)
  7281. segment.report(44);
  7282. else {
  7283. if (slowChecks && DIR_TWO === direction && nodeA.$otherSegmentsLen && isLimitOk(102))
  7284. for (var i = 0; i < nodeA.$otherSegmentsLen; i++) {
  7285. var otherSegment = nodeA.$otherSegments[i];
  7286. if (!otherSegment.$rawSegment) continue;
  7287. if (RR_TRAIL < otherSegment.$typeRank && RT_PRIVATE !== otherSegment.$type &&
  7288. (DIR_TWO === otherSegment.$direction || DIR_BA === otherSegment.$direction && nodeAID === otherSegment.$nodeBID ||
  7289. DIR_AB === otherSegment.$direction && nodeAID === otherSegment.$nodeAID)) {
  7290. segment.report(102);
  7291. break
  7292. }
  7293. }
  7294. }
  7295. else if (!nodeB.$isPartial && !nodeB.$outConnectionsLen)
  7296. if (DIR_AB === direction)
  7297. segment.report(44);
  7298. else if (slowChecks && DIR_TWO === direction && nodeB.$otherSegmentsLen && isLimitOk(103))
  7299. for (var i = 0; i < nodeB.$otherSegmentsLen; i++) {
  7300. var otherSegment = nodeB.$otherSegments[i];
  7301. if (!otherSegment.$rawSegment) continue;
  7302. if (RR_TRAIL < otherSegment.$typeRank && RT_PRIVATE !== otherSegment.$type &&
  7303. (DIR_TWO === otherSegment.$direction || DIR_BA === otherSegment.$direction && nodeBID === otherSegment.$nodeBID ||
  7304. DIR_AB === otherSegment.$direction && nodeBID === otherSegment.$nodeAID)) {
  7305. segment.report(103);
  7306. break
  7307. }
  7308. }
  7309. if (slowChecks && segment.$isRoutable && !nodeA.$isPartial && !nodeB.$isPartial && nodeA.$otherSegmentsLen > 0 && nodeB.$otherSegmentsLen > 0 && isLimitOk(202) && address.isOkFor(202)) {
  7310. var foundPublicConnection = checkPublicConnection(segment, null);
  7311. if (!foundPublicConnection)
  7312. if (nodeA.$otherSegmentsLen == 1 && nodeB.$otherSegmentsLen == 1) {
  7313. var nodeASegment = nodeA.$otherSegments[0];
  7314. var nodeBSegment = nodeB.$otherSegments[0];
  7315. if (checkPublicConnection(nodeASegment, segment) && checkPublicConnection(nodeBSegment, segment)) foundPublicConnection = true
  7316. }
  7317. if (!foundPublicConnection) segment.report(202)
  7318. }
  7319. if (RR_STREET < typeRank && RT_RAMP !== roadType && !segment.$isRoundabout && segmentLen > 5) {
  7320. if (DIR_AB === direction || DIR_TWO === direction) {
  7321. if (forwardSpeedUnverified && isLimitOk(210) && address.isOkFor(210)) segment.report(210);
  7322. if (!forwardSpeed && isLimitOk(212) && address.isOkFor(212)) segment.report(212);
  7323. if (forwardSpeed) {
  7324. options = getCheckOptions(214, countryCode);
  7325. if (!options[CO_REGEXP].test(forwardSpeed) && isLimitOk(214) && address.isOkFor(214)) segment.report(214)
  7326. }
  7327. }
  7328. if (DIR_BA === direction || DIR_TWO == direction) {
  7329. if (reverseSpeedUnverified && isLimitOk(211) && address.isOkFor(211)) segment.report(211);
  7330. if (!reverseSpeed && isLimitOk(213) && address.isOkFor(213)) segment.report(213);
  7331. if (reverseSpeed) {
  7332. options = getCheckOptions(215, countryCode);
  7333. if (!options[CO_REGEXP].test(reverseSpeed) && isLimitOk(215) && address.isOkFor(215)) segment.report(215)
  7334. }
  7335. }
  7336. }
  7337. if (DIR_UNKNOWN === direction && isLimitOk(25) && address.isOkFor(25)) segment.report(25);
  7338. if (!(nodeAID && nodeBID) && isLimitOk(35) && address.isOkFor(35)) segment.report(35);
  7339. if (RR_PRIMARY > typeRank) {
  7340. if (nodeAID && nodeBID && address.isOkFor(200)) {
  7341. if (!segment.$isTurnALocked && nodeA.$otherSegmentsLen && isLimitOk(200)) segment.report(200);
  7342. if (!segment.$isTurnBLocked && nodeB.$otherSegmentsLen && isLimitOk(300)) segment.report(300)
  7343. }
  7344. } else if (nodeAID && nodeBID && address.isOkFor(201)) {
  7345. if (!segment.$isTurnALocked && nodeA.$otherSegmentsLen && isLimitOk(201)) segment.report(201);
  7346. if (!segment.$isTurnBLocked && nodeB.$otherSegmentsLen && isLimitOk(301)) segment.report(301)
  7347. }
  7348. if ((DIR_AB === direction && nodeA.$outConnectionsLen || DIR_BA === direction && nodeA.$inConnectionsLen) && isLimitOk(41) && address.isOkFor(41)) segment.report(41);
  7349. if ((DIR_BA === direction && nodeB.$outConnectionsLen || DIR_AB === direction && nodeB.$inConnectionsLen) && isLimitOk(42) && address.isOkFor(42)) segment.report(42);
  7350. if (!nodeA.$isPartial) {
  7351. if (slowChecks && 5 < segmentLen && !nodeA.$otherSegmentsLen && nodeA.$rawNode.geometry.bounds && isLimitOk(107) && address.isOkFor(107)) {
  7352. var IDs = nodeA.$rawNode.attributes.segIDs;
  7353. var pt = new OpenLayers.Geometry.Point(nodeA.$rawNode.geometry.bounds.left, nodeA.$rawNode.geometry.bounds.bottom);
  7354. for (var segKey in WMo.segments.objects) {
  7355. var seg = WMo.segments.objects[segKey];
  7356. if (segmentID === seg.getID()) continue;
  7357. if (!seg.geometry) continue;
  7358. if (elevation !== seg.attributes.level) continue;
  7359. if ('Delete' === seg.state) continue;
  7360. if (RR_TRAIL >= SimpleOBJECT.prototype.getTypeRank(seg.attributes.roadType)) continue;
  7361. if (LIMIT_TOLERANCE > seg.geometry.distanceTo(pt, null)) {
  7362. if (!seg.arePropertiesEditable()) segment.$forceNonEditable = true;
  7363. segment.report(107);
  7364. break
  7365. }
  7366. }
  7367. }
  7368. if (nodeA.$isUturn)
  7369. if (slowChecks && 1 === nodeA.$outConnectionsLen && isLimitOk(99) && address.isOkFor(99) && nodeA.$outConnections[0].$isRoundabout) segment.report(99);
  7370. if (slowChecks && nodeA.$otherSegmentsLen && !isRoundabout && isLimitOk(78) && address.isOkFor(78))
  7371. for (var i = 0; i < nodeA.$otherSegmentsLen; i++) {
  7372. var otherSegment = nodeA.$otherSegments[i];
  7373. if (!otherSegment.$rawSegment) continue;
  7374. if (RR_TRAIL < otherSegment.$typeRank && nodeAID && nodeBID &&
  7375. (otherSegment.$nodeAID === nodeAID && otherSegment.$nodeBID === nodeBID || otherSegment.$nodeAID === nodeBID && otherSegment.$nodeBID === nodeAID))
  7376. if (otherSegment.$typeRank > typeRank || otherSegment.$length < segmentLen && otherSegment.$typeRank === typeRank ||
  7377. otherSegment.$segmentID < segmentID && otherSegment.$length === segmentLen && otherSegment.$typeRank === typeRank) {
  7378. segment.report(78);
  7379. break
  7380. }
  7381. }
  7382. if (!nodeB.$isPartial) {
  7383. options = getCheckOptions(109, countryCode);
  7384. if (options[CO_NUMBER] > segmentLen && nodeA.$otherSegmentsLen && nodeB.$otherSegmentsLen && !isRoundabout && address.isOkFor(109)) segment.report(109);
  7385. if (slowChecks && 15 > segmentLen && !streetLen && 2 === nodeA.$otherSegmentsLen && 2 === nodeB.$otherSegmentsLen && isLimitOk(79) && address.isOkFor(79) &&
  7386. nodeA.$otherSegments[0].$rawSegment && nodeA.$otherSegments[1].$rawSegment && nodeB.$otherSegments[0].$rawSegment && nodeB.$otherSegments[1].$rawSegment &&
  7387. nodeA.$otherSegments[0].$address.$street && nodeA.$otherSegments[0].$type === nodeA.$otherSegments[1].$type && nodeB.$otherSegments[0].$type === nodeB.$otherSegments[1].$type &&
  7388. nodeA.$otherSegments[0].$address.$street === nodeA.$otherSegments[1].$address.$street && nodeB.$otherSegments[0].$address.$street === nodeB.$otherSegments[1].$address.$street &&
  7389. nodeA.$otherSegments[0].$address.$street === nodeB.$otherSegments[0].$address.$street) {
  7390. if ((DIR_TWO === direction || DIR_BA === direction) && 1 === nodeA.$outConnectionsLen && 2 > nodeA.$inConnectionsLen && 1 === nodeB.$inConnectionsLen && 2 > nodeB.$outConnectionsLen)
  7391. segment.report(79);
  7392. if ((DIR_TWO === direction || DIR_AB === direction) && 1 === nodeB.$outConnectionsLen && 2 > nodeB.$inConnectionsLen && 1 === nodeA.$inConnectionsLen && 2 > nodeA.$outConnectionsLen)
  7393. segment.report(79)
  7394. }
  7395. }
  7396. }
  7397. if (!nodeB.$isPartial) {
  7398. if (slowChecks && 5 < segmentLen && !nodeB.$otherSegmentsLen && nodeB.$rawNode.geometry.bounds && isLimitOk(108) && address.isOkFor(108)) {
  7399. var IDs = nodeB.$rawNode.attributes.segIDs;
  7400. var pt = new OpenLayers.Geometry.Point(nodeB.$rawNode.geometry.bounds.left, nodeB.$rawNode.geometry.bounds.bottom);
  7401. for (var segKey in WMo.segments.objects) {
  7402. var seg = WMo.segments.objects[segKey];
  7403. if (segmentID === seg.getID()) continue;
  7404. if (!seg.geometry) continue;
  7405. if (elevation !== seg.attributes.level) continue;
  7406. if ('Delete' === seg.state) continue;
  7407. if (RR_TRAIL >= SimpleOBJECT.prototype.getTypeRank(seg.attributes.roadType)) continue;
  7408. if (LIMIT_TOLERANCE > seg.geometry.distanceTo(pt, null)) {
  7409. if (!seg.arePropertiesEditable()) segment.$forceNonEditable = true;
  7410. segment.report(108);
  7411. break
  7412. }
  7413. }
  7414. }
  7415. if (nodeB.$isUturn) {
  7416. if (!nodeB.$otherSegmentsLen && isLimitOk(77) && address.isOkFor(77)) segment.report(77);
  7417. if (slowChecks && 1 === nodeB.$outConnectionsLen && isLimitOk(99) && address.isOkFor(99) && nodeB.$outConnections[0].$isRoundabout) segment.report(99)
  7418. }
  7419. }
  7420. if (RT_FREEWAY === roadType) {
  7421. if (0 !== elevation && isLimitOk(110) && address.isOkFor(110)) segment.report(110);
  7422. options = getCheckOptions(150, countryCode);
  7423. if (options[CO_NUMBER] > lock && isLimitOk(150) && address.isOkFor(150)) segment.report(150);
  7424. if (DIR_TWO === direction && address.isOkFor(90)) segment.report(90)
  7425. }
  7426. if (RT_MAJOR === roadType) {
  7427. options = getCheckOptions(151, countryCode);
  7428. if (options[CO_NUMBER] > lock && isLimitOk(151) && address.isOkFor(151)) segment.report(151)
  7429. }
  7430. if (RT_MINOR === roadType) {
  7431. options = getCheckOptions(152, countryCode);
  7432. if (options[CO_NUMBER] > lock && isLimitOk(152) && address.isOkFor(152)) segment.report(152)
  7433. }
  7434. if (RT_RAMP === roadType) {
  7435. if (DIR_TWO === direction && isLimitOk(91) && address.isOkFor(91)) segment.report(91);
  7436. options = getCheckOptions(153, countryCode);
  7437. if (options[CO_NUMBER] > lock && isLimitOk(153) && address.isOkFor(153)) segment.report(153)
  7438. }
  7439. if (RT_PRIMARY === roadType) {
  7440. options = getCheckOptions(154, countryCode);
  7441. if (options[CO_NUMBER] > lock && isLimitOk(154) && address.isOkFor(154)) segment.report(154)
  7442. }
  7443. if (RT_STREET === roadType) {
  7444. options = getCheckOptions(155, countryCode);
  7445. if (options[CO_NUMBER] > lock && isLimitOk(155) && address.isOkFor(155)) segment.report(155)
  7446. }
  7447. if (RT_PARKING === roadType) {
  7448. options = getCheckOptions(156, countryCode);
  7449. if (options[CO_NUMBER] > lock && isLimitOk(156) && address.isOkFor(156)) segment.report(156)
  7450. }
  7451. if (RT_RAILROAD === roadType) {
  7452. options = getCheckOptions(157, countryCode);
  7453. if (options[CO_NUMBER] > lock && isLimitOk(157) && address.isOkFor(157)) segment.report(157)
  7454. }
  7455. if (RT_PRIVATE === roadType) {
  7456. options = getCheckOptions(158, countryCode);
  7457. if (options[CO_NUMBER] > lock && isLimitOk(158) && address.isOkFor(158)) segment.report(158)
  7458. }
  7459. } else if (slowChecks && !hasHNs && RT_RAILROAD !== roadType) {
  7460. if (nodeA.$otherSegmentsLen && (nodeB.$otherSegmentsLen || 300 < segmentLen) && isLimitOk(114) && address.isOkFor(114))
  7461. for (var i = 0; i < nodeA.$otherSegmentsLen; i++) {
  7462. var otherSegment = nodeA.$otherSegments[i];
  7463. if (!otherSegment.$rawSegment) continue;
  7464. if (RR_TRAIL < otherSegment.$typeRank) {
  7465. segment.report(114);
  7466. break
  7467. }
  7468. }
  7469. if (nodeB.$otherSegmentsLen && (nodeA.$otherSegmentsLen || 300 < segmentLen) && isLimitOk(115) && address.isOkFor(115))
  7470. for (var i = 0; i < nodeB.$otherSegmentsLen; i++) {
  7471. var otherSegment = nodeB.$otherSegments[i];
  7472. if (!otherSegment.$rawSegment) continue;
  7473. if (RR_TRAIL < otherSegment.$typeRank) {
  7474. segment.report(115);
  7475. break
  7476. }
  7477. }
  7478. }
  7479. if (streetLen) {
  7480. var checkIDType = {160: RT_FREEWAY, 161: RT_MAJOR, 162: RT_MINOR, 163: RT_RAMP, 164: RT_PRIMARY, 165: RT_STREET, 166: RT_PARKING, 167: RT_RAILROAD, 169: 0};
  7481. var checkIDID = {160: 70, 161: 71, 162: 72};
  7482. for (var i in checkIDType) {
  7483. i = +i;
  7484. if (!isLimitOk(i) || !address.isOkFor(i)) continue;
  7485. var rType = checkIDType[i];
  7486. options = getCheckOptions(i, countryCode);
  7487. if (rType === roadType || !rType) {
  7488. if (matchRegExp(i, segmentID, street, options)) segment.report(i)
  7489. } else {
  7490. var mi = checkIDID[i];
  7491. if (mi && address.isOkFor(mi) && !matchRegExp(i, segmentID, street, options)) segment.report(mi)
  7492. }
  7493. }
  7494. for (var i = CK_STREETNAMEFIRST; i <= CK_STREETNAMELAST; i++) {
  7495. if (!isLimitOk(i) || !address.isOkFor(i)) continue;
  7496. if (matchRegExp(i, segmentID, street, getCheckOptions(i, countryCode))) segment.report(i)
  7497. }
  7498. if (cityLen && RT_RAMP === roadType && isLimitOk(57) && address.isOkFor(57)) segment.report(57);
  7499. if (-1 !== street.indexOf('CONST ZN') && isLimitOk(117) && address.isOkFor(117)) segment.report(117);
  7500. if (RT_RAMP !== roadType && -1 !== street.indexOf('.') && isLimitOk(95) && address.isOkFor(95)) segment.report(95);
  7501. if (RT_RAMP === roadType)
  7502. if (DIR_TWO === direction)
  7503. if (isLimitOk(28) && address.isOkFor(28)) segment.report(28);
  7504. if (RR_RAMP > typeRank) {
  7505. options = getCheckOptions(73, countryCode);
  7506. if (options[CO_NUMBER] > streetLen && isLimitOk(73) && address.isOkFor(73)) segment.report(73)
  7507. }
  7508. if (isDrivable)
  7509. if (RT_RAMP === roadType) {
  7510. options = getCheckOptions(112, countryCode);
  7511. if (options[CO_NUMBER] < streetLen && isLimitOk(112) && address.isOkFor(112)) segment.report(112)
  7512. } else {
  7513. options = getCheckOptions(52, countryCode);
  7514. if (options[CO_NUMBER] < streetLen && isLimitOk(52) && address.isOkFor(52)) segment.report(52)
  7515. }
  7516. }
  7517. if (isRoundabout && isDrivable) {
  7518. if (streetLen && isLimitOk(29) && address.isOkFor(29)) segment.report(29);
  7519. if (DIR_TWO === direction && address.isOkFor(48)) segment.report(48);
  7520. if (!nodeA.$isPartial && 2 < nodeA.$otherSegmentsLen)
  7521. if (2 < nodeA.$outConnectionsLen) {
  7522. if (address.isOkFor(87)) segment.report(87)
  7523. } else if (address.isOkFor(74))
  7524. segment.report(74);
  7525. if (slowChecks && !isPartial && (DIR_AB === direction || DIR_BA === direction)) {
  7526. var okA = false;
  7527. var okB = false;
  7528. var anode, bnode;
  7529. if (DIR_AB === direction)
  7530. anode = nodeA, bnode = nodeB;
  7531. else
  7532. anode = nodeB, bnode = nodeA;
  7533. for (var i = 0; i < bnode.$outConnectionsLen; i++) {
  7534. var otherSegment = bnode.$outConnections[i];
  7535. if (otherSegment.$isRoundabout) {
  7536. okB = true;
  7537. break
  7538. }
  7539. }
  7540. if (okB)
  7541. for (var i = 0; i < anode.$inConnectionsLen; i++) {
  7542. var otherSegment = anode.$inConnections[i];
  7543. if (otherSegment.$isRoundabout) {
  7544. okA = true;
  7545. break
  7546. }
  7547. }
  7548. if ((!okB || !okA) && address.isOkFor(50)) segment.report(50)
  7549. }
  7550. }
  7551. HLObject(rawSegment)
  7552. }
  7553. if (_UI.pMain.pFilter.oEnablePlaces.CHECKED)
  7554. for (var venueKey in WMo.venues.objects) {
  7555. var rawVenue = WMo.venues.objects[venueKey];
  7556. var venueID = rawVenue.getID();
  7557. if (rawVenue.layer && rawVenue.id in rawVenue.layer.unrenderedFeatures) continue;
  7558. if ('Delete' === rawVenue.state) continue;
  7559. if (rawVenue.outOfScope) continue;
  7560. var seen = null;
  7561. if (venueID in _RT.$seen) seen = _RT.$seen[venueID];
  7562. if (rawVenue.selected) {
  7563. selectedObjects.push(venueID);
  7564. _RT.$revalidate[venueID] = true;
  7565. if (seen) {
  7566. deleteSeenObject(venueID);
  7567. seen = null
  7568. }
  7569. } else if (segmentID in _RT.$revalidate) {
  7570. deleteSeenObject(venueID);
  7571. seen = null;
  7572. delete _RT.$revalidate[segmentID]
  7573. }
  7574. if (seen) {
  7575. HLObject(rawVenue);
  7576. continue
  7577. }
  7578. var venue = new SimpleOBJECT(venueID, WMo.venues);
  7579. Object.seal(venue);
  7580. var address = venue.$address;
  7581. var country = address.$country;
  7582. var countryCode = country ? _I18n.getCountryCode(country.toUpperCase()) : _RT.$cachedTopCCode;
  7583. var city = address.$city;
  7584. var cityLen = city.length;
  7585. var cityID = address.$cityID;
  7586. var street = address.$street;
  7587. var streetLen = street.length;
  7588. var lock = venue.$lock;
  7589. _RT.$seen[venueID] = seen = [0, null, false, false, 16 > currentZoom, cityID];
  7590. venue.incCityCounter();
  7591. if (venue.$isEditable) _REP.$isEditableFound = true;
  7592. if (!cityLen && isLimitOk(250)) {
  7593. options = getCheckOptions(250, countryCode);
  7594. if (!options[CO_REGEXP].test(venue.$categories[0]) && address.isOkFor(250)) venue.report(250)
  7595. }
  7596. if (!streetLen && isLimitOk(251)) {
  7597. options = getCheckOptions(251, countryCode);
  7598. if (!options[CO_REGEXP].test(venue.$categories[0]) && address.isOkFor(251)) venue.report(251)
  7599. }
  7600. if (isLimitOk(252)) {
  7601. options = getCheckOptions(252, countryCode);
  7602. if (options[CO_REGEXP].test(venue.$updatedByID.toString()) || options[CO_REGEXP].test(venue.$updatedBy.toString()) && address.isOkFor(252)) venue.report(252)
  7603. }
  7604. if (venue.$categories.indexOf('OTHER') > -1 && isLimitOk(253) && address.isOkFor(253)) venue.report(253);
  7605. if (venue.$entryExitPoints && venue.$entryExitPoints.length && isLimitOk(254)) {
  7606. var stopPoint = venue.$entryExitPoints[0].getPoint();
  7607. var areaCenter = venue.$geometry.getCentroid();
  7608. if (stopPoint.equals(areaCenter) && address.isOkFor(254)) venue.report(254)
  7609. }
  7610. if (venue.$phone && isLimitOk(255)) {
  7611. options = getCheckOptions(255, countryCode);
  7612. if (!options[CO_REGEXP].test(venue.$phone) && address.isOkFor(255)) venue.report(255)
  7613. }
  7614. if (venue.$url && isLimitOk(256)) {
  7615. options = getCheckOptions(256, countryCode);
  7616. if (!options[CO_REGEXP].test(venue.$url) && address.isOkFor(256)) venue.report(256)
  7617. }
  7618. if (venue.$isPoint && isLimitOk(257)) {
  7619. options = getCheckOptions(257, countryCode);
  7620. if (options[CO_REGEXP].test(venue.$categories[0]) && address.isOkFor(257)) venue.report(257)
  7621. } else if (isLimitOk(258)) {
  7622. options = getCheckOptions(258, countryCode);
  7623. if (options[CO_REGEXP].test(venue.$categories[0]) && address.isOkFor(258)) venue.report(258)
  7624. }
  7625. if (isLimitOk(259)) {
  7626. options = getCheckOptions(259, countryCode);
  7627. if (options[CO_REGEXP].test(venue.$categories[0]) && options[CO_NUMBER] > lock && address.isOkFor(259)) venue.report(259)
  7628. }
  7629. if (isLimitOk(260)) {
  7630. options = getCheckOptions(260, countryCode);
  7631. if (options[CO_REGEXP].test(venue.$categories[0]) && options[CO_NUMBER] > lock && address.isOkFor(260)) venue.report(260)
  7632. }
  7633. if (venue.$rawObject.isParkingLot()) {
  7634. var catAttr = venue.$categoryAttributes;
  7635. var parkAttr = catAttr ? catAttr.PARKING_LOT : undefined;
  7636. if ((!parkAttr || !parkAttr.parkingType) && address.isOkFor(270)) venue.report(270);
  7637. if ((!parkAttr || !parkAttr.costType || parkAttr.costType === 'UNKNOWN') && address.isOkFor(271)) venue.report(271);
  7638. if (parkAttr && parkAttr.costType && parkAttr.costType !== 'FREE' && parkAttr.costType !== 'UNKNOWN' && (!parkAttr.paymentType || !parkAttr.paymentType.length) && address.isOkFor(272))
  7639. venue.report(272);
  7640. if ((!parkAttr || !parkAttr.lotType || parkAttr.lotType.length === 0) && address.isOkFor(273)) venue.report(273);
  7641. if ((!venue.$entryExitPoints || !venue.$entryExitPoints.length) && address.isOkFor(274)) venue.report(274)
  7642. }
  7643. if (venue.$rawObject.isGasStation())
  7644. if (isLimitOk(275) && venue.$name.toLowerCase().indexOf(venue.$brand.toLowerCase().split(' ')[0]) === -1 && address.isOkFor(275)) venue.report(275)
  7645. }
  7646. if (bUpdateMaxSeverity && (RTStateIs(ST_STOP) || RTStateIs(ST_PAUSE))) async(F_SHOWREPORT, RF_UPDATEMAXSEVERITY);
  7647. updateObjectProperties(selectedObjects, false);
  7648. addHLedObjects()
  7649. };
  7650. function F_LOGIN() {
  7651. log('login ' + WLM.user.userName);
  7652. _WV.parseAccessList = function(s) {
  7653. var a = s.split(/\s*,\s*/);
  7654. var res = [];
  7655. a.forEach(function(r, i) {
  7656. var n = false;
  7657. if ('!' === r.charAt(0)) n = true, r = r.slice(1);
  7658. res[i] = { $id: r, $not: n }
  7659. });
  7660. return res
  7661. };
  7662. _WV.checkAccessFor = function(forStr, cmpFunc) {
  7663. if (!forStr) return true;
  7664. var l = _WV.parseAccessList(forStr);
  7665. if (!l.length) return true;
  7666. for (var i = 0; i < l.length; i++) {
  7667. var r = l[i];
  7668. if ('*' === r.$id || cmpFunc(r.$id))
  7669. if (r.$not)
  7670. return false;
  7671. else
  7672. return true
  7673. }
  7674. return false
  7675. };
  7676. function mirrorChecks(defTranslation) {
  7677. var allLabels = _RT.$otherLabels.concat(_RT.$textLabels);
  7678. for (var i = CK_MIRRORFIRST; i <= CK_MIRRORLAST; i++)
  7679. allLabels.forEach(function(l) {
  7680. var label = i + '.' + l;
  7681. if (!(label in defTranslation)) return;
  7682. var value = defTranslation[label];
  7683. var mLabel = i + 100 + '.' + l;
  7684. switch (l) {
  7685. case 'title':
  7686. case 'problem':
  7687. case 'solution':
  7688. defTranslation[mLabel] = value.replace(/ A($|\b)/g, ' B');
  7689. break;
  7690. case 'params':
  7691. defTranslation[mLabel] = deepCopy(value);
  7692. break;
  7693. default:
  7694. defTranslation[mLabel] = value;
  7695. break
  7696. }
  7697. })
  7698. }
  7699. _RT = {
  7700. $textLabels: ['title', 'problem', 'solution'],
  7701. $otherLabels: ['enabled', 'color', 'severity', 'reportOnly', 'params', 'problemLink', 'solutionLink'],
  7702. $curMaxSeverity: RS_ERROR,
  7703. $RegExp1: '',
  7704. $RegExp2: '',
  7705. oReportWMECH: {FORID: '_cbHighlightLocked', CHECKED: false, NA: true},
  7706. oReportToolbox: {FORID: 'WMETB_NavBar', CHECKED: false, NA: true},
  7707. $isMapChanged: false,
  7708. $lng: I18n.locale.toUpperCase(),
  7709. $includeUpdatedByCache: {},
  7710. $includeUpdatedSinceTime: 0,
  7711. $includeCityNameCache: {},
  7712. $includeChecksCache: {},
  7713. $switchValidator: false,
  7714. $HLlayer: null,
  7715. $HLedObjects: {},
  7716. $isGlobalAccess: false,
  7717. $timer: {$secInRun: 0, $lastUpdate: 0},
  7718. $curMessage: {TEXT: '', TITLE: '', CLASS: CL_MSG},
  7719. $topCity: null,
  7720. $cachedTopCCode: '',
  7721. $topUser: {
  7722. $userID: WLM.user.id,
  7723. $userName: WLM.user.userName,
  7724. $userLevel: WLM.user.normalizedLevel,
  7725. $isCM: WLM.user.editableCountryIDs ? 0 !== WLM.user.editableCountryIDs.length : false,
  7726. $countryIDs: WLM.user.editableCountryIDs ? WLM.user.editableCountryIDs : []
  7727. },
  7728. $topCenter: null,
  7729. $WDmoveID: -1,
  7730. $WDloadID: -1,
  7731. $layersVisibility: '',
  7732. $state: ST_STOP,
  7733. $direction: DIR_L2R,
  7734. $firstStep: true,
  7735. $startExtent: null,
  7736. $startCenter: null,
  7737. $startZoom: null,
  7738. $nextCenter: null,
  7739. $moveEndCenter: null,
  7740. $seen: {},
  7741. $revalidate: {},
  7742. $curUserName: WLM.user.userName,
  7743. $error: false,
  7744. $reportEditableNotFound: false,
  7745. $checks: {},
  7746. $sortedCheckIDs: null,
  7747. $WMECHcolors: {},
  7748. $untranslatedLngs: ['IT']
  7749. };
  7750. _RT.$checks = {
  7751. 0: {
  7752. SEVERITY: RS_MAX,
  7753. REPORTONLY: false,
  7754. TITLE: 'Global access list to test before any of the checks below',
  7755. FORCOUNTRY: GA_FORCOUNTRY,
  7756. FORCITY: GA_FORCITY,
  7757. FORUSER: GA_FORUSER,
  7758. FORLEVEL: GA_FORLEVEL,
  7759. OPTIONS: {},
  7760. COLOR: '',
  7761. PROBLEM: '',
  7762. PROBLEMLINK: '',
  7763. PROBLEMLINKTEXT: '',
  7764. SOLUTION: '',
  7765. SOLUTIONLINK: '',
  7766. SOLUTIONLINKTEXT: ''
  7767. }
  7768. };
  7769. _I18n.init({$lng: _RT.$lng});
  7770. var defTranslation = _translations[_I18n.$defLng];
  7771. var defTBProblem = 'The segment is highlighted by WME Toolbox. It is not a problem';
  7772. var defTBProblemLink = 'W:Community_Plugins,_Extensions_and_Tools#WME_Toolbox';
  7773. var TBchecks = [
  7774. [
  7775. '#3030FF', 'W', , 'Roundabout which may cause issues', 'Junction IDs of the roundabout segments are not consecutive', '', 'Redo the roundabout',
  7776. 'W:Creating_and_Editing_a_roundabout#Improving_manually_drawn_roundabouts'
  7777. ],
  7778. [
  7779. '#FF30FF', , , 'Simple segment', 'The segment has unneeded geometry nodes', , 'Simplify segment geometry by hovering mouse pointer and pressing "d" key',
  7780. 'W:Creating_and_Editing_street_segments#Adjusting_road_geometry_.28nodes.29'
  7781. ],
  7782. ['#11F247', , true, 'Lvl 2 lock'], ['#71F211', , true, 'Lvl 3 lock'], ['#E2F211', , true, 'Lvl 4 lock'], ['#F29011', , true, 'Lvl 5 lock'], ['#F22011', , true, 'Lvl 6 lock'],
  7783. ['#00A8FF', , true, 'House numbers'], ['#F7B020', , true, 'Segment with time restrictions']
  7784. ];
  7785. for (var i = CK_TBFIRST; i <= CK_TBLAST; i++) {
  7786. var cc = TBchecks[i - CK_TBFIRST];
  7787. var cp = cc[4] || defTBProblem;
  7788. var cpl = cc[5];
  7789. if (!classCodeDefined(cpl)) cpl = defTBProblemLink;
  7790. defTranslation[i + '.enabled'] = true;
  7791. defTranslation[i + '.color'] = cc[0];
  7792. if (cc[1]) defTranslation[i + '.severity'] = cc[1];
  7793. if (cc[2]) defTranslation[i + '.reportOnly'] = cc[2];
  7794. defTranslation[i + '.title'] = 'WME Toolbox: ' + cc[3];
  7795. defTranslation[i + '.problem'] = cp;
  7796. if (cpl) defTranslation[i + '.problemLink'] = cpl;
  7797. if (cc[6]) defTranslation[i + '.solution'] = cc[6];
  7798. if (cc[7]) defTranslation[i + '.solutionLink'] = cc[7]
  7799. }
  7800. var defWMECHProblem = 'The segment is highlighted by WME Color Highlights. It is not a problem';
  7801. var defWMECHProblemLink = 'W:Community_Plugins,_Extensions_and_Tools#WME_Color_Highlights_.28WMECH.29';
  7802. var WMECHchecks = [
  7803. ['#000000', , true, 'Editor lock'], ['#0000FF', , true, 'Toll road / One way road'], ['#00FF00', , true, 'Recently edited'], ['#880000', , true, 'Road rank'], ['#888888', , true, 'No city'],
  7804. ['#990099', , true, 'Time restriction / Highlighted road type'], ['#FFBB00', , true, 'No name'], ['#FFFF00', , true, 'Filter by city'], ['#FFFF01', , true, 'Filter by city (alt. city)'],
  7805. ['#00FF00', , true, 'Filter by editor']
  7806. ];
  7807. for (var i = CK_WMECHFIRST; i <= CK_WMECHLAST; i++) {
  7808. var cc = WMECHchecks[i - CK_WMECHFIRST];
  7809. var cp = defWMECHProblem;
  7810. var cpl = defWMECHProblemLink;
  7811. defTranslation[i + '.enabled'] = true;
  7812. defTranslation[i + '.color'] = cc[0];
  7813. if (cc[1]) defTranslation[i + '.severity'] = cc[1];
  7814. if (cc[2]) defTranslation[i + '.reportOnly'] = cc[2];
  7815. defTranslation[i + '.title'] = 'WME Color Highlights: ' + cc[3];
  7816. defTranslation[i + '.problem'] = cp;
  7817. if (cpl) defTranslation[i + '.problemLink'] = cpl
  7818. }
  7819. var streetNames = ['Freeway', 'Major Highway', 'Minor Highway', 'Ramp', 'Primary Street', 'Street', 'Parking Lot Road', 'Railroad', 'Private Road'];
  7820. for (var i = CK_TYPEFIRST; i <= CK_TYPELAST; i++) {
  7821. var streetName = streetNames[i - CK_TYPEFIRST];
  7822. defTranslation[i + '.severity'] = 'W';
  7823. defTranslation[i + '.title'] = 'Must be a ' + streetName;
  7824. defTranslation[i + '.problem'] = 'This segment must be a ' + streetName;
  7825. defTranslation[i + '.solution'] = 'Set the road type to ' + streetName + ' or change the road name'
  7826. }
  7827. for (var i = CK_CUSTOMFIRST; i <= CK_CUSTOMLAST; i++) {
  7828. defTranslation[i + '.title'] = 'Custom check';
  7829. defTranslation[i + '.severity'] = 'W';
  7830. defTranslation[i + '.problem'] = 'The segment matched custom conditions';
  7831. defTranslation[i + '.solution'] = 'Solve the issue';
  7832. defTranslation[i + '.params'] = {
  7833. 'template.title': '{string} expandable template',
  7834. 'template': '${street}',
  7835. 'regexp.title': '{string} regular expression to match the template',
  7836. 'regexp': '!/.+/',
  7837. 'titleEN.title': '{string} check title in English',
  7838. 'titleEN': '',
  7839. 'problemEN.title': '{string} problem description in English',
  7840. 'problemEN': '',
  7841. 'solutionEN.title': '{string} solution instructions in English',
  7842. 'solutionEN': ''
  7843. }
  7844. }
  7845. var lockLevels = {150: 5, 151: 4, 152: 3, 153: 4, 154: 2, 155: 0, 156: 0, 157: 2, 158: 2};
  7846. for (var i = CK_LOCKFIRST; i <= CK_LOCKLAST; i++) {
  7847. var lockName = streetNames[i - CK_LOCKFIRST];
  7848. var lockLevel = lockLevels[i];
  7849. defTranslation[i + '.title'] = 'No lock on ' + lockName;
  7850. defTranslation[i + '.problem'] = 'The ' + lockName + ' segment should be locked at least to Lvl ${n}';
  7851. defTranslation[i + '.solution'] = 'Lock the segment';
  7852. defTranslation[i + '.params'] = { 'n.title': '{number} minimum lock level', 'n': lockLevel }
  7853. }
  7854. var streetRegExps = {160: '!/^[AS][0-9]{1,2}/', 161: '!/^[0-9]{1,2}/', 162: '!/^[0-9]{1,3}/', 163: '!/^[AS]?[0-9]* ?> /'};
  7855. var streetDefRegExp = '!/.?/';
  7856. for (var i = CK_STREETTNFIRST; i <= CK_STREETTNLAST; i++) {
  7857. var streetName = streetNames[i - CK_STREETTNFIRST];
  7858. var streetRegExp = streetRegExps[CK_STREETTNFIRST] || streetDefRegExp;
  7859. if (i < 165 || i > 167) defTranslation[i + '.severity'] = 'W';
  7860. defTranslation[i + '.title'] = 'Incorrect ' + streetName + ' name';
  7861. defTranslation[i + '.problem'] = 'The ' + streetName + ' segment has incorrect street name';
  7862. defTranslation[i + '.solution'] = 'Rename the segment in accordance with the guidelines';
  7863. defTranslation[i + '.params'] = { 'regexp.title': '{string} regular expression to match incorrect ' + streetName + ' name', 'regexp': streetRegExp }
  7864. }
  7865. mirrorChecks(defTranslation);
  7866. var listOfIntPacks = '';
  7867. for (var translationsKey in _translations) {
  7868. var translation = _translations[translationsKey];
  7869. mirrorChecks(translation);
  7870. _I18n.addTranslation(translation);
  7871. var country = translation['.country'];
  7872. if (!country) continue;
  7873. if (classCodeIs(country, CC_ARRAY)) country = country[0];
  7874. country = country.split(' ').join('&nbsp;');
  7875. if (listOfIntPacks) listOfIntPacks += ', ';
  7876. if ('.lng' in translation)
  7877. listOfIntPacks += '<b>' + country + '*';
  7878. else
  7879. listOfIntPacks += country;
  7880. if ('.author' in translation) listOfIntPacks += ' by&nbsp;' + translation['.author'];
  7881. if ('.lng' in translation) listOfIntPacks += '</b>';
  7882. if ('.updated' in translation) listOfIntPacks += ' (' + translation['.updated'] + ')'
  7883. }
  7884. listOfIntPacks += '.';
  7885. listOfIntPacks += '<br>* localization pack with translations';
  7886. var listOfPacks = '';
  7887. for (var gObject in window) {
  7888. if (!window.hasOwnProperty(gObject)) continue;
  7889. if (-1 !== gObject.indexOf('WME_Validator')) {
  7890. var translation = window[gObject];
  7891. log('found localization pack: ' + gObject.replace('WME_Validator_', ''));
  7892. mirrorChecks(translation);
  7893. _I18n.addTranslation(translation);
  7894. if ('.country' in translation) {
  7895. var country = translation['.country'];
  7896. if (classCodeIs(country, CC_ARRAY)) country = country[0];
  7897. listOfPacks += '<b>' + country;
  7898. if ('.author' in translation) listOfPacks += ' by&nbsp;' + translation['.author'];
  7899. listOfPacks += '</b>';
  7900. if (!('.lng' in translation)) listOfPacks += '<br>(does not include translations)';
  7901. if ('.updated' in translation) {
  7902. listOfPacks += '<br>Updated: ' + translation['.updated'];
  7903. if ('.link' in translation && translation['.link']) listOfPacks += ' <a target="_blank" href="' + translation['.link'] + '">check&nbsp;for&nbsp;updates</a>'
  7904. }
  7905. listOfPacks += '<br>'
  7906. }
  7907. }
  7908. }
  7909. listOfPacks = listOfPacks ? listOfPacks : 'No external localization packs found';
  7910. listOfPacks += '<br><b>See</b> <a target="_blank" href="' + PFX_FORUM + FORUM_LOCAL + '">' +
  7911. 'how to create a localization pack</a>';
  7912. for (var i = 1; i < MAX_CHECKS; i++) {
  7913. var check = {ENABLED: {}, PROBLEMLINK: {}, PROBLEMLINKTEXT: {}, SOLUTIONLINK: {}, SOLUTIONLINKTEXT: {}};
  7914. var label = i + '.title';
  7915. if (!_I18n.isLabelExist(label)) continue;
  7916. check.TITLE = trS(label);
  7917. label = i + '.color';
  7918. if (_I18n.isLabelExist(label)) {
  7919. var col = trS(label).toUpperCase();
  7920. check.COLOR = col;
  7921. if (CK_WMECHFIRST <= i && CK_WMECHLAST >= i) _RT.$WMECHcolors[col] = true
  7922. }
  7923. label = i + '.problem';
  7924. if (_I18n.isLabelExist(label)) check.PROBLEM = trS(label);
  7925. label = i + '.solution';
  7926. if (_I18n.isLabelExist(label)) check.SOLUTION = trS(label);
  7927. label = i + '.reportOnly';
  7928. if (_I18n.isLabelExist(label)) check.REPORTONLY = trS(label);
  7929. label = i + '.severity';
  7930. var s = 'N';
  7931. if (_I18n.isLabelExist(label)) s = trS(label);
  7932. if (s) switch (s.charAt(0)) {
  7933. case 'w':
  7934. case 'W':
  7935. check.SEVERITY = RS_WARNING;
  7936. break;
  7937. case 'e':
  7938. case 'E':
  7939. check.SEVERITY = RS_ERROR;
  7940. break;
  7941. case '1':
  7942. check.SEVERITY = RS_CUSTOM1;
  7943. break;
  7944. case '2':
  7945. check.SEVERITY = RS_CUSTOM2;
  7946. break;
  7947. default:
  7948. check.SEVERITY = RS_NOTE;
  7949. break
  7950. }
  7951. else
  7952. check.SEVERITY = RS_NOTE;
  7953. label = i + '.enabled';
  7954. var labelP = i + '.params';
  7955. var labelPL = i + '.problemLink';
  7956. var labelSL = i + '.solutionLink';
  7957. var defEnabled = false;
  7958. var arrCodes = [];
  7959. for (var ccode in _I18n.$translations) {
  7960. var translation = _I18n.$translations[ccode];
  7961. if (label in translation) {
  7962. var e = translation[label];
  7963. check.ENABLED[ccode] = e;
  7964. if (_I18n.$defLng === ccode) {
  7965. if (e) defEnabled = true
  7966. } else if (e)
  7967. arrCodes.push(ccode);
  7968. else
  7969. arrCodes.push('!' + ccode)
  7970. }
  7971. if (labelPL in translation) {
  7972. var l = translation[labelPL].replace('W:', PFX_WIKI).replace('P:', PFX_PEDIA).replace('F:', PFX_FORUM);
  7973. check.PROBLEMLINK[ccode] = encodeURI(l);
  7974. if (-1 !== l.indexOf(PFX_WIKI) || -1 !== l.indexOf(PFX_PEDIA))
  7975. check.PROBLEMLINKTEXT[ccode] = trS('report.link.wiki');
  7976. else if (-1 !== l.indexOf(PFX_FORUM))
  7977. check.PROBLEMLINKTEXT[ccode] = trS('report.link.forum');
  7978. else
  7979. check.PROBLEMLINKTEXT[ccode] = trS('report.link.other')
  7980. }
  7981. if (labelSL in translation) {
  7982. var l = translation[labelSL].replace('W:', PFX_WIKI).replace('P:', PFX_PEDIA).replace('F:', PFX_FORUM);
  7983. check.SOLUTIONLINK[ccode] = encodeURI(l);
  7984. if (-1 !== l.indexOf(PFX_WIKI || -1 !== l.indexOf(PFX_PEDIA)))
  7985. check.SOLUTIONLINKTEXT[ccode] = trS('report.link.wiki');
  7986. else if (-1 !== l.indexOf(PFX_FORUM))
  7987. check.SOLUTIONLINKTEXT[ccode] = trS('report.link.forum');
  7988. else
  7989. check.SOLUTIONLINKTEXT[ccode] = trS('report.link.other')
  7990. }
  7991. if (labelP in translation) {
  7992. var params = translation[labelP];
  7993. if (!check.OPTIONS) check.OPTIONS = {};
  7994. if (!(ccode in check.OPTIONS)) check.OPTIONS[ccode] = params;
  7995. if (params['template']) check.OPTIONS[ccode][CO_STRING] = params['template'];
  7996. if (params['regexp']) _WV.buildRegExp(i, check.OPTIONS[ccode], params['regexp']);
  7997. if (params['n']) check.OPTIONS[ccode][CO_NUMBER] = +params['n']
  7998. }
  7999. }
  8000. if (defEnabled) {
  8001. if (arrCodes.length) check.FORCOUNTRY = arrCodes.join(',') + ',*'
  8002. } else if (arrCodes.length)
  8003. check.FORCOUNTRY = arrCodes.join(',');
  8004. else
  8005. check.FORCOUNTRY = '!*';
  8006. _RT.$checks[i] = check
  8007. }
  8008. var dir = _I18n.getDir();
  8009. var dirLeft = trLeft(dir);
  8010. var dirRight = trRight(dir);
  8011. var cssRules, cssRules2, cssRulesA = '>a{text-decoration:underline;cursor:pointer;pointer-events:auto}';
  8012. _THUI.addElemetClassStyle('div', CL_TABS, '{border-bottom:2px solid #ddd;height:29px}');
  8013. _THUI.addElemetClassStyle('div', CL_TABS, '>input{display:none}');
  8014. _THUI.addElemetClassStyle(
  8015. 'div', CL_TABS,
  8016. '>label{white-space:nowrap;overflow:hidden;max-width:100px;text-overflow:ellipsis;cursor:pointer;display:inline-block;margin:0px;margin-' + dirRight +
  8017. ':3px;padding:4px 12px;border-radius:4px 4px 0 0;background-color:#dadbdc}');
  8018. _THUI.addElemetClassStyle(
  8019. 'div', CL_TABS,
  8020. '>input:checked+label{font-weight:normal;margin:-2px;min-height:31px;margin-' + dirRight + ':2px;cursor:default;border:2px solid #ddd;border-bottom-color:#fff;background-color:#fff}');
  8021. _THUI.addElemetClassStyle('div', CL_TABS, '>input:disabled+label{font-weight:bold !important;padding-' + dirLeft + ':0px;color:#333;cursor:default;background-color:transparent}');
  8022. _THUI.addElemetClassStyle('div', CL_TABS, '>input:enabled+label:hover{background-color:#fff}');
  8023. _THUI.addElemetClassStyle('div', CL_TABS, '>input:checked+label:hover{background-color:#fff}');
  8024. _THUI.addElemetClassStyle('div', CL_TABS, '>input:enabled+label>span>span.c' + CL_COLLAPSE + '{display:none}');
  8025. _THUI.addElemetClassStyle('div', CL_TABS, '>input:checked+label>span>span.c' + CL_COLLAPSE + '{display:inline}');
  8026. _THUI.addElemetClassStyle(
  8027. 'div', CL_PANEL,
  8028. '{background-color:#fff;padding:4px;margin:0;margin-bottom:4px;border-bottom:2px solid #ddd;white-space:nowrap;overflow-x:hidden;overflow-y:auto;text-overflow:ellipsis;width:100%;height:' +
  8029. SZ_PANEL_HEIGHT + 'px}');
  8030. _THUI.addElemetClassStyle('div', CL_PANEL, '>span' + cssRulesA);
  8031. _THUI.addElemetClassStyle('div', CL_PANEL, '>label>span' + cssRulesA);
  8032. _THUI.addElemetClassStyle('div', CL_PANEL, '>span>p' + cssRulesA);
  8033. cssRules = '>span{border-radius:5px;background-color:';
  8034. _THUI.addElemetClassStyle('label', 'c1', cssRules + GL_CUSTOM1COLOR + ';color:' + GL_CUSTOM1BGCOLOR + '}');
  8035. _THUI.addElemetClassStyle('label', 'c2', cssRules + GL_CUSTOM2COLOR + ';color:' + GL_CUSTOM2BGCOLOR + '}');
  8036. cssRules = '>span>a{color:white}';
  8037. _THUI.addElemetClassStyle('label', 'c1', cssRules);
  8038. _THUI.addElemetClassStyle('label', 'c2', cssRules);
  8039. _THUI.addElemetClassStyle('div', CL_BUTTONS, '{overflow:hidden;margin-bottom:1em}');
  8040. _THUI.addElemetClassStyle('div', CL_BUTTONS, '>button{font-weight:normal;padding:4px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}');
  8041. _THUI.addElemetClassStyle('div', CL_BUTTONS, '>button>i{pointer-events:none}');
  8042. _THUI.addElemetClassStyle('div', CL_BUTTONS, '>button:disabled{background-color:#eee;border-bottom:0px;cursor:default;pointer-events:auto}');
  8043. _THUI.addElemetClassStyle('div', CL_PANEL, '>label.checkbox{display:block;height:24px;font-weight:normal;margin:0}');
  8044. _THUI.addElemetClassStyle('div', CL_PANEL, '>label.checkbox>span{display:inline-block;height:20px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}');
  8045. _THUI.addElemetClassStyle('div', CL_PANEL, '>label.date{display:block;height:32px;font-weight:normal;margin:0;padding-' + dirRight + ':155px}');
  8046. _THUI.addElemetClassStyle('div', CL_PANEL, '>label.date>span{display:inline-block;line-height:28px;vertical-align:middle;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}');
  8047. _THUI.addElemetClassStyle(
  8048. 'div', CL_PANEL,
  8049. '>label.date>input[type=date]{box-sizing:border-box;height:28px;padding:2px 10px;padding-' + dirRight + ':2px;float:' + dirRight + ';margin-' + dirRight + ':-155px;width:150px}');
  8050. _THUI.addElemetClassStyle('div', CL_PANEL, '>label.text{display:block;height:30px;font-weight:normal;margin:0;padding-' + dirRight + ':155px}');
  8051. _THUI.addElemetClassStyle('div', CL_PANEL, '>label.text>span{display:inline-block;line-height:28px;vertical-align:middle;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}');
  8052. _THUI.addElemetClassStyle('div', CL_PANEL, '>label.text>input[type=text]{box-sizing:border-box;height:28px;padding:2px 10px;float:' + dirRight + ';margin-' + dirRight + ':-155px;width:150px}');
  8053. cssRules = '{position:relative;height:2em;width:100%;margin-bottom:';
  8054. cssRules2 = '>span{position:absolute;' + dirLeft + ':0;bottom:0;display:inline-block;padding:4px 12px;margin:0px;border-radius:8px;border-bottom-' + dirLeft +
  8055. '-radius:0;box-shadow:3px 3px 3px #aaa;border:1px solid ';
  8056. _THUI.addElemetClassStyle('div', CL_TRANSLATETIP, cssRules + '12px}');
  8057. _THUI.addElemetClassStyle('div', CL_TRANSLATETIP, cssRules2 + '#aea;background-color:#cfc;' + dirLeft + ':auto;' + dirRight + ':0;border-radius:8px;border-bottom-' + dirRight + '-radius:0}');
  8058. _THUI.addElemetClassStyle('div', CL_TRANSLATETIP, '>span' + cssRulesA);
  8059. _THUI.addElemetClassStyle('div', CL_MSG, cssRules + '1em}');
  8060. _THUI.addElemetClassStyle('div', CL_MSG, cssRules2 + '#ded;background-color:#efe}');
  8061. _THUI.addElemetClassStyle('div', CL_MSGY, cssRules + '1em}');
  8062. _THUI.addElemetClassStyle('div', CL_MSGY, cssRules2 + '#ee9;background-color:#ffa}');
  8063. _THUI.addElemetIdStyle('div', ID_PROPERTY, '{padding-bottom:5px}');
  8064. _THUI.addElemetIdStyle('div', ID_PROPERTY, '>b' + cssRulesA);
  8065. cssRules = '{color:' + GL_NOTECOLOR + '}';
  8066. _THUI.addElemetClassStyle('div', CL_NOTE, cssRules);
  8067. _THUI.addElemetClassStyle('a', CL_NOTE, cssRules);
  8068. cssRules = '{color:' + GL_WARNINGCOLOR + '}';
  8069. _THUI.addElemetClassStyle('div', CL_WARNING, cssRules);
  8070. _THUI.addElemetClassStyle('a', CL_WARNING, cssRules);
  8071. cssRules = '{color:' + GL_ERRORCOLOR + '}';
  8072. _THUI.addElemetClassStyle('div', CL_ERROR, cssRules);
  8073. _THUI.addElemetClassStyle('a', CL_ERROR, cssRules);
  8074. cssRules = '{color:' + GL_CUSTOM1COLOR + '}';
  8075. _THUI.addElemetClassStyle('div', CL_CUSTOM1, cssRules);
  8076. _THUI.addElemetClassStyle('a', CL_CUSTOM1, cssRules);
  8077. cssRules = '{color:' + GL_CUSTOM2COLOR + '}';
  8078. _THUI.addElemetClassStyle('div', CL_CUSTOM2, cssRules);
  8079. _THUI.addElemetClassStyle('a', CL_CUSTOM2, cssRules);
  8080. _THUI.addElemetClassStyle('div', CL_RIGHTTIP, '{white-space:nowrap;position:relative;cursor:help}');
  8081. _THUI.addElemetClassStyle('div', CL_RIGHTTIP, '>span{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:279px}');
  8082. _THUI.addElemetClassStyle('div', CL_RIGHTTIP, '>span' + cssRulesA);
  8083. cssRules = ';z-index:1000000;position:absolute;visibility:hidden;opacity:0;transition:0.1s ease;' + dirLeft + ':30px;top:-1.7em;cursor:default}';
  8084. _THUI.addElemetClassStyle(
  8085. 'div', CL_RIGHTTIP, ':before{content:"";position:absolute;border:1em solid transparent;border-' + dirRight + '-color:#ddd;margin-' + dirLeft + ':-2em;margin-top:1.5em' + cssRules);
  8086. _THUI.addElemetClassStyle(
  8087. 'div', CL_RIGHTTIPPOPUP, '{white-space:normal;background-color:#fafafa;padding:1em;width:230px;box-shadow:3px 3px 3px #aaa;border-radius:1em;border:1px solid #ddd' + cssRules);
  8088. _THUI.addElemetClassStyle('div', CL_RIGHTTIPDESCR, '{margin-' + dirLeft + ':2em}');
  8089. _THUI.addElemetClassStyle('div', CL_RIGHTTIPDESCR, cssRulesA);
  8090. _THUI.addElemetClassStyle('div', CL_RIGHTTIPDESCR, '>p{color:black;margin-top:0.5em;margin-bottom:0.5em !important}');
  8091. _THUI.addElemetClassStyle('div', CL_RIGHTTIPDESCR, '>p' + cssRulesA);
  8092. cssRules = '{visibility:visible;opacity:1}';
  8093. _THUI.addElemetClassStyle('div', CL_RIGHTTIP, ':hover:before' + cssRules);
  8094. _THUI.addElemetClassStyle('div', CL_RIGHTTIP, ':hover>div' + cssRules);
  8095. _UI = {
  8096. _DISABLED: undefined,
  8097. _NODISPLAY: undefined,
  8098. MAXLENGTH: undefined,
  8099. REVERSE: undefined,
  8100. WARNING: undefined,
  8101. TYPE: undefined,
  8102. FORUSER: undefined,
  8103. FORCITY: undefined,
  8104. FORCOUNTRY: undefined,
  8105. FORLEVEL: undefined,
  8106. ACCESSKEY: undefined,
  8107. STYLEI: '',
  8108. DISCLOSE: 0,
  8109. _NAME: '',
  8110. READONLY: 0,
  8111. _STYLE: '',
  8112. ONWARNING: null,
  8113. ONCHANGE: null,
  8114. _ONCHANGE: undefined,
  8115. ONCLICKO: undefined,
  8116. MIN: undefined,
  8117. MAX: undefined,
  8118. STEP: undefined,
  8119. CLASS: CL_UI,
  8120. _TYPE: _THUI.DIV,
  8121. _ONWARNING: onWarning,
  8122. pTips: {},
  8123. pTranslateBanner: {
  8124. CLASS: CL_TRANSLATETIP,
  8125. TEXT: 'Please help to ' +
  8126. '<a target="_blank" href="' + PFX_FORUM + FORUM_LOCAL + '">' +
  8127. 'translate Validator!</a>',
  8128. TITLE: trS('about.tip')
  8129. },
  8130. pNoAccess: {CLASS: CL_PANEL, NODISPLAY: 1, STYLE: 'text-align:center', TEXT: trS('noaccess.text'), TITLE: trS('noaccess.tip')},
  8131. pMain: {
  8132. pTabs: {
  8133. CLASS: CL_TABS,
  8134. _DISCLOSE: 1,
  8135. _TYPE: _THUI.RADIO,
  8136. _ONCLICK: onUpdateUI,
  8137. tMain: {TEXT: '', TITLE: '', DISABLED: 1, STYLEO: 'cursor:pointer;max-width:97px', ONCLICKO: onUpdateUI},
  8138. tFilter: {
  8139. TEXT: '<i class="fa fa-filter" aria-hidden="true"></i>' +
  8140. '<span class=\'c' + CL_COLLAPSE + '\'> ' + trS('tab.filter.text') + '</span>',
  8141. TITLE: trS('tab.filter.tip'),
  8142. CHECKED: 1
  8143. },
  8144. tSearch: {
  8145. TEXT: '<i class="fa fa-search" aria-hidden="true"></i>' +
  8146. '<span class=\'c' + CL_COLLAPSE + '\'> ' + trS('tab.search.text') + '</span>',
  8147. TITLE: trS('tab.search.tip')
  8148. },
  8149. tHelp: {
  8150. TEXT: '<i class="fa fa-question-circle" aria-hidden="true"></i>' +
  8151. '<span class=\'c' + CL_COLLAPSE + '\'> ' + trS('tab.help.text') + '</span>',
  8152. TITLE: trS('tab.help.tip'),
  8153. STYLEO: 'float:' + dirRight
  8154. }
  8155. },
  8156. pFilter: {
  8157. CLASS: CL_PANEL,
  8158. _CLASS: 'checkbox',
  8159. _TYPE: _THUI.CHECKBOX,
  8160. _REVERSE: 1,
  8161. _ONCHANGE: onUpdateUI,
  8162. oEnablePlaces: {TEXT: trS('filter.places.text'), TITLE: trS('filter.places.tip'), AUTOSAVE: AS_PLACES},
  8163. oExcludeNonEditables: {TEXT: trS('filter.noneditables.text'), TITLE: trS('filter.noneditables.tip'), AUTOSAVE: AS_NONEDITABLES},
  8164. oExcludeDuplicates: {TEXT: trS('filter.duplicates.text'), TITLE: trS('filter.duplicates.tip'), AUTOSAVE: AS_DUPLICATES},
  8165. oExcludeStreets: {TEXT: trS('filter.streets.text'), TITLE: trS('filter.streets.tip'), AUTOSAVE: AS_STREETS},
  8166. oExcludeOther: {TEXT: trS('filter.other.text'), TITLE: trS('filter.other.tip'), AUTOSAVE: AS_OTHERS},
  8167. oExcludeNotes: {TEXT: trS('filter.notes.text'), TITLE: trS('filter.notes.tip'), AUTOSAVE: AS_NOTES}
  8168. },
  8169. pSearch: {
  8170. CLASS: CL_PANEL,
  8171. NODISPLAY: 1,
  8172. _REVERSE: 1,
  8173. _ONCHANGE: onUpdateUI,
  8174. oIncludeYourEdits: {NODISPLAY: 1, TYPE: _THUI.CHECKBOX, TEXT: trS('search.youredits.text'), TITLE: trS('search.youredits.tip'), CLASS: 'checkbox', AUTOSAVE: AS_YOUREDITS},
  8175. oIncludeUpdatedBy: {
  8176. TYPE: _THUI.TEXT,
  8177. TEXT: trS('search.updatedby.text'),
  8178. TITLE: trS('search.updatedby.tip'),
  8179. PLACEHOLDER: trS('search.updatedby.example'),
  8180. CLASS: 'form-label text',
  8181. CLASSI: 'form-control',
  8182. AUTOSAVE: AS_UPDATEDBY
  8183. },
  8184. oIncludeUpdatedSince: {
  8185. TYPE: _THUI.DATE,
  8186. TEXT: trS('search.updatedsince.text'),
  8187. TITLE: trS('search.updatedsince.tip'),
  8188. PLACEHOLDER: trS('search.updatedsince.example'),
  8189. CLASS: 'form-label date',
  8190. CLASSI: 'form-control',
  8191. AUTOSAVE: AS_UPDATEDSINCE
  8192. },
  8193. oIncludeCityName: {
  8194. TYPE: _THUI.TEXT,
  8195. TEXT: trS('search.city.text'),
  8196. TITLE: trS('search.city.tip'),
  8197. PLACEHOLDER: trS('search.city.example'),
  8198. CLASS: 'form-label text',
  8199. CLASSI: 'form-control',
  8200. AUTOSAVE: AS_CITYNAME
  8201. },
  8202. oIncludeChecks: {
  8203. TYPE: _THUI.TEXT,
  8204. TEXT: trS('search.checks.text'),
  8205. TITLE: trS('search.checks.tip'),
  8206. PLACEHOLDER: trS('search.checks.example'),
  8207. CLASS: 'form-label text',
  8208. CLASSI: 'form-control',
  8209. AUTOSAVE: AS_CHECKS
  8210. }
  8211. },
  8212. pHelp: {CLASS: CL_PANEL, NODISPLAY: 1, TEXT: trS('help.text'), TITLE: trS('help.tip')},
  8213. pButtons: {
  8214. CLASS: CL_BUTTONS,
  8215. _CLASS: 'btn btn-default',
  8216. _TYPE: _THUI.BUTTON,
  8217. _ONCLICK: onUpdateUI,
  8218. bScan: {TEXT: '', TITLE: '', STYLE: 'float:' + dirLeft + ';width:38px;font-family:FontAwesome'},
  8219. bPause: {NODISPLAY: 1, TEXT: '', TITLE: trS('button.pause.tip'), STYLE: 'float:' + dirLeft + ';width:38px;font-family:FontAwesome'},
  8220. bContinue: {TEXT: '', TITLE: trS('button.continue.tip'), NODISPLAY: 1, STYLE: 'float:' + dirLeft + ';width:38px;font-family:FontAwesome'},
  8221. bStop: {TEXT: '', TITLE: trS('button.stop.tip'), STYLE: 'float:' + dirLeft + ';width:38px;font-family:FontAwesome;margin-' + dirRight + ':10px'},
  8222. bClear: {TEXT: '✘', TITLE: '', NODISPLAY: 1, DISABLED: 1, STYLE: 'float:' + dirLeft + ';width:38px;margin-' + dirRight + ':10px'},
  8223. bReport: {TEXT: trS('button.report.text'), TITLE: trS('button.report.tip'), STYLE: 'float:' + dirLeft + ';max-width:110px', ONCLICK: onShowReport},
  8224. bReportBB: {TEXT: '', TITLE: trS('button.BBreport.tip'), ONCLICK: onShareReport, STYLE: 'float:' + dirLeft + ';width:38px;font-family:FontAwesome'},
  8225. bSettings: {TEXT: '', TITLE: trS('button.settings.tip'), STYLE: 'float:' + dirRight + ';width:38px;font-family:FontAwesome'}
  8226. }
  8227. },
  8228. pSettings: {
  8229. NODISPLAY: 1,
  8230. pTabs: {
  8231. CLASS: CL_TABS,
  8232. _DISCLOSE: 1,
  8233. _TYPE: _THUI.RADIO,
  8234. _ONCLICK: onUpdateUI,
  8235. tMain: {TEXT: trS('tab.settings.text') + ':', TITLE: 'WME Validator Version ' + WV_VERSION, STYLEO: 'max-width:85px', DISABLED: 1},
  8236. tCustom: {
  8237. TEXT: '<i class="fa fa-user" aria-hidden="true"></i>' +
  8238. '<span class=\'c' + CL_COLLAPSE + '\'> ' + trS('tab.custom.text') + '</span>',
  8239. STYLEO: 'max-width:110px',
  8240. TITLE: trS('tab.custom.tip'),
  8241. CHECKED: 1
  8242. },
  8243. tScanner: {
  8244. TEXT: '<i class="fa fa-wrench" aria-hidden="true"></i>' +
  8245. '<span class=\'c' + CL_COLLAPSE + '\'> ' + trS('tab.scanner.text') + '</span>',
  8246. TITLE: trS('tab.scanner.tip'),
  8247. STYLEO: 'max-width:110px'
  8248. },
  8249. tAbout: {
  8250. TEXT: '<i class="fa fa-question-circle" aria-hidden="true"></i>' +
  8251. '<span class=\'c' + CL_COLLAPSE + '\'> ' + trS('tab.about.text') + '</span>',
  8252. TITLE: trS('tab.about.tip'),
  8253. STYLEO: 'float:' + dirRight + ';max-width:110px'
  8254. }
  8255. },
  8256. pCustom: {
  8257. CLASS: CL_PANEL,
  8258. _CLASS: 'form-label text',
  8259. _REVERSE: 1,
  8260. _ONCHANGE: onUpdateUI,
  8261. oTemplate1: {
  8262. TYPE: _THUI.TEXT,
  8263. TEXT: '&nbsp;' + trS('custom.template.text'),
  8264. TITLE: trS('custom.template.tip'),
  8265. PLACEHOLDER: trS('custom.template.example'),
  8266. CLASS: 'form-label text c1',
  8267. CLASSI: 'form-control',
  8268. AUTOSAVE: AS_CUSTOM1TEMPLATE
  8269. },
  8270. oRegExp1: {
  8271. TYPE: _THUI.TEXT,
  8272. TEXT: '&nbsp;' + trS('custom.regexp.text'),
  8273. TITLE: trS('custom.regexp.tip'),
  8274. PLACEHOLDER: trS('custom.regexp.example'),
  8275. CLASSI: 'form-control',
  8276. AUTOSAVE: AS_CUSTOM1REGEXP
  8277. },
  8278. oTemplate2: {
  8279. TYPE: _THUI.TEXT,
  8280. TEXT: '&nbsp;' + trS('custom.template.text'),
  8281. TITLE: trS('custom.template.tip'),
  8282. PLACEHOLDER: trS('custom.template.example'),
  8283. CLASS: 'form-label text c2',
  8284. CLASSI: 'form-control',
  8285. AUTOSAVE: AS_CUSTOM2TEMPLATE
  8286. },
  8287. oRegExp2: {
  8288. TYPE: _THUI.TEXT,
  8289. TEXT: '&nbsp;' + trS('custom.regexp.text'),
  8290. TITLE: trS('custom.regexp.tip'),
  8291. PLACEHOLDER: trS('custom.regexp.example'),
  8292. CLASSI: 'form-control',
  8293. AUTOSAVE: AS_CUSTOM2REGEXP
  8294. }
  8295. },
  8296. pScanner: {
  8297. NODISPLAY: 1,
  8298. CLASS: CL_PANEL,
  8299. _CLASS: 'checkbox',
  8300. _TYPE: _THUI.CHECKBOX,
  8301. _REVERSE: 1,
  8302. _ONCHANGE: onUpdateUI,
  8303. oSlowChecks: {TEXT: trS('scanner.slow.text'), TITLE: trS('scanner.slow.tip'), AUTOSAVE: AS_SLOWCHECKS},
  8304. oReportExt: {TEXT: trS('scanner.ext.text'), TITLE: trS('scanner.ext.tip'), AUTOSAVE: AS_REPORTEXT},
  8305. oHLReported: {TEXT: trS('scanner.highlight.text'), TITLE: trS('scanner.highlight.tip'), AUTOSAVE: AS_HLISSUES},
  8306. oSounds: {TEXT: trS('scanner.sounds.text'), TITLE: trS('scanner.sounds.tip'), NATITLE: trS('scanner.sounds.NA'), AUTOSAVE: AS_SOUNDS}
  8307. },
  8308. pAbout: {
  8309. CLASS: CL_PANEL,
  8310. NODISPLAY: 1,
  8311. TEXT: '<p><b>WME Validator</b>' +
  8312. '<br>Version ' + WV_VERSION + ' <a target="_blank" href="' + PFX_FORUM + FORUM_HOME + '">check for updates</a>' +
  8313. '<br>&copy; 2013-2018 Andriy Berestovskyy</p>' +
  8314. '<p><b>Built-in localization packs for:</b><br>' + listOfIntPacks + '<p><b>External localization packs for:</b><br>' + listOfPacks + '</p>' +
  8315. '<p><b>Special thanks to:</b><br>OyyoDams, Timbones, paulkok_my, petervdveen, MdSyah, sketch, AlanOfTheBerg, arbaot, Zniwek, orbitc, robindlc, fernandoanguita, BellHouse, vidalnit, Manzareck, gad_m, Zirland and <b>YOU!</b></p>',
  8316. TITLE: trS('about.tip'),
  8317. STYLE: 'direction:ltr;text-align:center;white-space:normal'
  8318. },
  8319. pButtons: {
  8320. CLASS: CL_BUTTONS,
  8321. _CLASS: 'btn btn-default',
  8322. _TYPE: _THUI.BUTTON,
  8323. _ONCLICK: onUpdateUI,
  8324. bReset: {TEXT: '<i class="fa fa-undo" aria-hidden="true"></i> ' + trS('button.reset.text'), TITLE: trS('button.reset.tip'), STYLE: 'float:' + dirLeft + ';max-width:165px'},
  8325. bList: {
  8326. NODISPLAY: 1,
  8327. TEXT: '<i class="fa fa-list" aria-hidden="true"></i> ' + trS('button.list.text'),
  8328. TITLE: trS('button.list.tip'),
  8329. STYLE: 'float:' + dirLeft + ';max-width:165px',
  8330. ONCLICK: onShowChecks
  8331. },
  8332. bWizard: {
  8333. NODISPLAY: 1,
  8334. TEXT: '<i class="fa fa-magic" aria-hidden="true"></i>',
  8335. TITLE: trS('button.wizard.tip'),
  8336. STYLE: 'float:' + dirLeft + ';margin-' + dirLeft + ':6px;width:38px',
  8337. ONCLICK: onCreatePack
  8338. },
  8339. bBack: {TEXT: '<i class="fa fa-angle-double-' + dirLeft + '" aria-hidden="true"></i> ' + trS('button.back.text'), TITLE: trS('button.back.tip'), STYLE: 'float:' + dirRight + ';max-width:70px'}
  8340. }
  8341. }
  8342. };
  8343. clearReport();
  8344. if (_RT.$topUser.$isCM) {
  8345. _UI.pMain.pSearch.oIncludeYourEdits.NODISPLAY = 1;
  8346. _UI.pMain.pSearch.oIncludeUpdatedBy.NODISPLAY = 0
  8347. } else {
  8348. _UI.pMain.pSearch.oIncludeYourEdits.NODISPLAY = 0;
  8349. _UI.pMain.pSearch.oIncludeUpdatedBy.NODISPLAY = 1
  8350. }
  8351. if (-1 !== _RT.$untranslatedLngs.indexOf(_RT.$lng.split('-')[0]))
  8352. _UI.pTranslateBanner.NODISPLAY = 0;
  8353. else
  8354. _UI.pTranslateBanner.NODISPLAY = 1;
  8355. if (!classCodeDefined(UW.AudioContext) && !classCodeDefined(UW.webkitAudioContext)) {
  8356. _UI.pSettings.pScanner.oSounds.CHECKED = false;
  8357. _UI.pSettings.pScanner.oSounds.NA = true
  8358. }
  8359. resetDefaults();
  8360. var storageObj = null;
  8361. var s = null;
  8362. try {
  8363. s = window.localStorage.getItem(AS_NAME);
  8364. storageObj = s ? JSON.parse(s) : null;
  8365. if (!(AS_PASSWORD in storageObj)) storageObj = null
  8366. } catch (e) {
  8367. }
  8368. if (!storageObj || WV_LICENSE_VERSION !== storageObj[AS_LICENSE])
  8369. if (!confirm(WV_LICENSE)) {
  8370. _UI = {};
  8371. WLM.events.un({'afterloginchanged': onLogin, 'login': onLogin});
  8372. return
  8373. }
  8374. var showWhatsNew = false;
  8375. if (s && !storageObj) {
  8376. warning('\nDue to the major changes in Validator, all filter options\nand settings have been RESET to their DEFAULTS.');
  8377. showWhatsNew = true
  8378. }
  8379. if (storageObj && WV_VERSION !== storageObj[AS_VERSION]) showWhatsNew = true;
  8380. if (showWhatsNew) info(WV_WHATSNEW);
  8381. _THUI.loadValues(_UI, storageObj);
  8382. var styleMap = new OpenLayers.StyleMap({strokeWidth: HL_WIDTH});
  8383. var lookup = {};
  8384. lookup[RS_NOTE] = {strokeColor: GL_NOTECOLOR, graphicZIndex: 10};
  8385. lookup[RS_WARNING] = {strokeColor: GL_WARNINGCOLOR, graphicZIndex: 20};
  8386. lookup[RS_ERROR] = {strokeColor: GL_ERRORCOLOR, graphicZIndex: 30};
  8387. lookup[RS_CUSTOM2] = {strokeColor: GL_CUSTOM2COLOR, graphicZIndex: 40};
  8388. lookup[RS_CUSTOM1] = {strokeColor: GL_CUSTOM1COLOR, graphicZIndex: 50};
  8389. styleMap.addUniqueValueRules('default', 0, lookup);
  8390. _RT.$HLlayer = new OpenLayers.Layer.Vector(GL_LAYERNAME, {
  8391. uniqueName: GL_LAYERUNAME,
  8392. shortcutKey: GL_LAYERSHORTCUT,
  8393. accelerator: GL_LAYERACCEL,
  8394. units: 'm',
  8395. styleMap: styleMap,
  8396. projection: new OpenLayers.Projection('EPSG:4326'),
  8397. visibility: _UI.pSettings.pScanner.oHLReported.CHECKED
  8398. });
  8399. I18n.translations[I18n.currentLocale()].layers.name[GL_LAYERUNAME] = GL_LAYERNAME;
  8400. _RT.$HLlayer.setOpacity(HL_OPACITY);
  8401. WM.addLayer(_RT.$HLlayer);
  8402. _RT.$HLlayer.setVisibility(_UI.pSettings.pScanner.oHLReported.CHECKED);
  8403. WM.raiseLayer(_RT.$HLlayer, 99);
  8404. $('#sidepanel-' + ID_PREFIX + '').remove();
  8405. $('#tab-' + ID_PREFIX + '').remove();
  8406. $('#user-tabs ul')
  8407. .append(
  8408. '<li id="tab-' + ID_PREFIX + '">' +
  8409. '<a data-toggle="tab" href="#sidepanel-' + ID_PREFIX + '">' +
  8410. '<span class="fa fa-check-square-o"></span>' +
  8411. ' Validator' +
  8412. '</a></li>');
  8413. $('#user-tabs+div.tab-content').append('<div class="tab-pane" id="sidepanel-' + ID_PREFIX + '"></div>');
  8414. _THUI.appendUI(document.getElementById('sidepanel-' + ID_PREFIX), _UI, 'i' + ID_PREFIX);
  8415. async(F_UPDATEUI);
  8416. async(ForceHLAllObjects, null, 700);
  8417. WMo.events.on({'mergeend': onMergeEnd});
  8418. WM.events.on({'moveend': onMoveEnd, 'zoomend': HLAllObjects, 'changelayer': onChangeLayer});
  8419. WSM.events.on({'selectionchanged': ForceHLAllObjects});
  8420. WC.events.on({'loadstart': onLoadStart});
  8421. WMo.segments.on({'objectsadded': onSegmentsAdded, 'objectschanged': onSegmentsChanged, 'objectsremoved': onSegmentsRemoved});
  8422. WMo.venues.on({'objectsadded': onVenuesAdded, 'objectschanged': onVenuesChanged, 'objectsremoved': onVenuesRemoved});
  8423. WMo.nodes.on({'objectschanged': onNodesChanged, 'objectsremoved': onNodesRemoved});
  8424. W.prefs.on({'change:isImperial': onChangeIsImperial})
  8425. };
  8426. function F_ONSEGMENTSCHANGED(e) {
  8427. var changedNodes = [];
  8428. for (var i = 0; i < e.length; i++) {
  8429. var nodeIDs = [e[i].attributes.fromNodeID, e[i].attributes.toNodeID];
  8430. for (var j = 0; j < nodeIDs.length; j++) {
  8431. var nodeID = nodeIDs[j];
  8432. if (!nodeID) continue;
  8433. var node = WMo.nodes.getObjectById(nodeID);
  8434. if (node) changedNodes.push(node)
  8435. }
  8436. }
  8437. if (changedNodes.length) sync(F_ONNODESCHANGED, changedNodes)
  8438. }
  8439. function F_ONNODESCHANGED(e) {
  8440. var reHL = false;
  8441. for (var i = 0; i < e.length; i++) {
  8442. var ids = e[i].attributes.segIDs;
  8443. for (var j = 0; j < ids.length; j++) _RT.$revalidate[ids[j]] = true, reHL = true
  8444. }
  8445. if (reHL) HLAllObjects()
  8446. }
  8447. function F_ONVENUESCHANGED(e) {
  8448. var reHL = false;
  8449. for (var i = e.length - 1; i >= 0; i--) {
  8450. var id = e[i].attributes.id;
  8451. _RT.$revalidate[id] = true;
  8452. reHL = true
  8453. }
  8454. if (reHL) HLAllObjects()
  8455. }
  8456. function F_ONCHANGELAYER(e) {
  8457. if (!e.hasOwnProperty('layer')) return;
  8458. if (-1 !== e.layer.id.indexOf(GL_TBPREFIX)) {
  8459. if (!e.layer.visibility)
  8460. for (var segmentID in WMo.segments.objects) {
  8461. if (!WMo.segments.objects.hasOwnProperty(segmentID)) continue;
  8462. delete WMo.segments.objects[segmentID][GL_TBCOLOR]
  8463. }
  8464. ForceHLAllObjects()
  8465. } else if (GL_LAYERUNAME === e.layer.uniqueName && e.layer.visibility !== _UI.pSettings.pScanner.oHLReported.CHECKED) {
  8466. _RT.$switchValidator = true;
  8467. async(F_UPDATEUI)
  8468. }
  8469. }
  8470. function F_ONMOVEEND() {
  8471. var c = WM.getCenter();
  8472. if (-1 === _RT.$WDmoveID && -1 === _RT.$WDloadID && c.equals(_RT.$nextCenter))
  8473. _RT.$WDmoveID = window.setTimeout(onMergeEnd, WD_SHORT);
  8474. else if (RTStateIs(ST_RUN) && !_RT.$firstStep && !c.equals(_RT.$nextCenter) && !c.equals(_RT.$startCenter)) {
  8475. _RT.$curMessage = {TEXT: trS('msg.autopaused.text'), TITLE: trS('msg.autopaused.tip')};
  8476. async(F_PAUSE)
  8477. }
  8478. _RT.$moveEndCenter = c
  8479. }
  8480. function F_ONLOADSTART() {
  8481. var c = WM.getCenter();
  8482. window.clearTimeout(_RT.$WDmoveID);
  8483. if (-1 === _RT.$WDloadID && c.equals(_RT.$nextCenter)) _RT.$WDloadID = window.setTimeout(onMergeEnd, WD_LONG);
  8484. _RT.$WDmoveID = -1
  8485. }
  8486. function F_LAYERSOFF() {
  8487. _RT.$HLlayer.destroyFeatures();
  8488. if (_RT.$layersVisibility || GL_SHOWLAYERS) return;
  8489. WM.layers.forEach(function(el) {
  8490. if (el.displayInLayerSwitcher && GL_LAYERUNAME !== el.uniqueName) {
  8491. if (el.getVisibility())
  8492. _RT.$layersVisibility += 'T';
  8493. else
  8494. _RT.$layersVisibility += 'F';
  8495. el.setVisibility(false)
  8496. }
  8497. })
  8498. }
  8499. function F_LAYERSON() {
  8500. if (!_RT.$layersVisibility || GL_SHOWLAYERS) return;
  8501. var j = 0;
  8502. WM.layers.forEach(function(el) {
  8503. if (el.displayInLayerSwitcher && GL_LAYERUNAME !== el.uniqueName)
  8504. if (_RT.$layersVisibility.length > j) {
  8505. el.setVisibility('T' === _RT.$layersVisibility.charAt(j));
  8506. j++
  8507. }
  8508. });
  8509. _RT.$layersVisibility = ''
  8510. }
  8511. function F_PAUSE() {
  8512. if (!RTStateIs(ST_RUN)) return;
  8513. beep(50, 'square');
  8514. sync(F_SHOWREPORT, RF_UPDATEMAXSEVERITY);
  8515. setRTState(ST_PAUSE);
  8516. async(F_LAYERSON)
  8517. }
  8518. function F_STOP() {
  8519. if (!RTStateIs(ST_STOP)) {
  8520. beep(100, 'square');
  8521. if (_RT.$startCenter) {
  8522. WM.panTo(_RT.$startCenter);
  8523. WM.zoomTo(_RT.$startZoom)
  8524. }
  8525. if (!_REP.$maxSeverity) _RT.$curMessage = { TEXT: trS('msg.noissues.text'), TITLE: trS('msg.noissues.tip') }
  8526. }
  8527. sync(F_SHOWREPORT, RF_UPDATEMAXSEVERITY);
  8528. setRTState(ST_STOP);
  8529. async(F_LAYERSON)
  8530. }
  8531. function F_ONMERGEEND() {
  8532. var c = WM.getCenter();
  8533. if (RTStateIs(ST_RUN) && _RT.$nextCenter && !c.equals(_RT.$nextCenter)) return;
  8534. var e = WM.getExtent();
  8535. var ew = e.getWidth();
  8536. var eh = e.getHeight();
  8537. var ew2 = ew / 2;
  8538. var eh2 = eh / 2;
  8539. var s = _RT.$startExtent;
  8540. if (!s) s = new UW.OpenLayers.Bounds;
  8541. var cx = c.lon;
  8542. var cy = c.lat;
  8543. var dir = Math.round(_RT.$direction / Math.abs(_RT.$direction));
  8544. var sw = s.getWidth();
  8545. var sh = s.getHeight();
  8546. var kxMax = Math.ceil(sw / (ew * SCAN_STEP / 100));
  8547. var stepX = sw / kxMax;
  8548. var kyMax = Math.ceil(sh / (eh * SCAN_STEP / 100));
  8549. var stepY = sh / kyMax;
  8550. if (RTStateIs(ST_CONTINUE)) {
  8551. if (_RT.$nextCenter) {
  8552. setRTState(ST_RUN);
  8553. WM.zoomTo(SCAN_ZOOM);
  8554. WM.panTo(_RT.$nextCenter);
  8555. clearWD();
  8556. return
  8557. }
  8558. async(F_ONRUN);
  8559. return
  8560. }
  8561. if (!RTStateIs(ST_RUN)) {
  8562. HLAllObjects();
  8563. return
  8564. }
  8565. async(F_UPDATEUI);
  8566. if (_RT.$firstStep) {
  8567. _RT.$firstStep = false;
  8568. var newX = s.left + ew2;
  8569. var newY = s.top - eh2;
  8570. _RT.$nextCenter = new UW.OpenLayers.LonLat(newX, newY);
  8571. WM.zoomTo(SCAN_ZOOM);
  8572. WM.panTo(_RT.$nextCenter);
  8573. clearWD();
  8574. return
  8575. }
  8576. sync(F_VALIDATE, false);
  8577. var deltaX = Number.MAX_VALUE;
  8578. var deltaY = Number.MAX_VALUE;
  8579. var kx = 0;
  8580. var ky = 0;
  8581. for (var i = 0;; i++) {
  8582. var x = s.left + ew2 + i * stepX;
  8583. var y = s.top - eh2 - i * stepY;
  8584. if (x > s.right && y < s.bottom) break;
  8585. var cd = Math.abs(x - cx);
  8586. if (cd < deltaX) deltaX = cd, kx = i;
  8587. cd = Math.abs(y - cy);
  8588. if (cd < deltaY) deltaY = cd, ky = i
  8589. }
  8590. updateTimer(ST_RUN);
  8591. var curStep = ky * kxMax + (0 < dir ? kx : kxMax - kx);
  8592. if (4 < curStep)
  8593. if (0 === curStep % 5) {
  8594. var maxStep = kyMax * kxMax;
  8595. var minETA = (maxStep / curStep - 1) * _RT.$timer.$secInRun / 60;
  8596. var strMsg = 1 > minETA ? trS('msg.scanning.text.soon') : trSO('msg.scanning.text', {'n': Math.round(minETA)});
  8597. _RT.$curMessage = { TEXT: strMsg, TITLE: trS('msg.scanning.tip') }
  8598. }
  8599. kx = kx + dir;
  8600. var newX = s.left + ew2 + kx * stepX;
  8601. if (newX < s.left || newX > s.right || Math.abs(newX - s.left) < Math.abs(newX - ew2 - s.left) || Math.abs(newX - s.right) < Math.abs(newX + ew2 - s.right)) {
  8602. newX = s.left + ew2 + (kx - dir) * stepX;
  8603. _RT.$direction = -_RT.$direction;
  8604. ky++
  8605. }
  8606. var newY = s.top - eh2 - ky * stepY;
  8607. if (newY < s.bottom || Math.abs(newY - s.bottom) < Math.abs(newY - eh2 - s.bottom)) {
  8608. if (!_REP.$isEditableFound && _UI.pMain.pFilter.oExcludeNonEditables.CHECKED) _RT.$reportEditableNotFound = true;
  8609. async(F_STOP);
  8610. return
  8611. }
  8612. _RT.$nextCenter = new UW.OpenLayers.LonLat(newX, newY);
  8613. WM.zoomTo(SCAN_ZOOM);
  8614. WM.panTo(_RT.$nextCenter);
  8615. clearWD()
  8616. }
  8617. function F_ONRUN() {
  8618. clearErrorFlag();
  8619. if (RTStateIs(ST_RUN)) return;
  8620. async(F_LAYERSOFF);
  8621. _RT.$curMessage = {TEXT: trS('msg.starting.text'), TITLE: trS('msg.starting.tip')};
  8622. setRTState(ST_RUN);
  8623. clearWD();
  8624. _RT.$direction = DIR_L2R;
  8625. _RT.$firstStep = true;
  8626. var e = WM.getExtent();
  8627. _RT.$startExtent = e;
  8628. _RT.$startCenter = WM.getCenter();
  8629. _RT.$startZoom = WM.getZoom();
  8630. _RT.$nextCenter = null;
  8631. _RT.$moveEndCenter = null;
  8632. _RT.$nextCenter = new UW.OpenLayers.LonLat(e.left, e.top);
  8633. WM.panTo(_RT.$nextCenter);
  8634. WM.zoomTo(SCAN_ZOOM)
  8635. }
  8636. function F_ONLOGIN() {
  8637. if (WLM.user) {
  8638. if (!_WV.$loggedIn) {
  8639. _WV.$loggedIn = true;
  8640. async(F_LOGIN)
  8641. }
  8642. } else if (_WV.$loggedIn) {
  8643. _WV.$loggedIn = false;
  8644. async(F_LOGOUT)
  8645. } else {
  8646. log('waiting for login...');
  8647. async(F_ONLOGIN, null, 1E3)
  8648. }
  8649. }
  8650. function F_INIT() {
  8651. UW = window;
  8652. Wa = UW.W;
  8653. nW = UW.W;
  8654. WLM = nW.loginManager;
  8655. WSM = nW.selectionManager;
  8656. WM = nW.map;
  8657. WMo = nW.model;
  8658. WC = nW.controller;
  8659. if (!Wa || !WLM || !WLM.user || !WSM || !WM || !WMo || !WC || !$('#user-tabs')) {
  8660. log('waiting for WME...');
  8661. async(F_INIT, null, 1E3);
  8662. return
  8663. }
  8664. WM = nW.map.olMap;
  8665. if (classCodeDefined(UW.require)) {
  8666. R = UW.require;
  8667. WME_BETA = /beta/.test(location.href)
  8668. }
  8669. var _gaq = UW['_gaq'];
  8670. if (_gaq) {
  8671. _gaq.push(['WME_Validator._setAccount', 'UA-46853768-3']);
  8672. _gaq.push(['WME_Validator._setDomainName', 'waze.com']);
  8673. _gaq.push(['WME_Validator._trackPageview'])
  8674. }
  8675. _WV.$loggedIn = false;
  8676. WLM.events.on({'loginStatus': onLogin, 'login': onLogin});
  8677. async(F_ONLOGIN);
  8678. _WV.buildRegExp = function(checkID, options, strRegExp) {
  8679. try {
  8680. while (strRegExp && ' ' === strRegExp.charAt(0)) strRegExp = strRegExp.substr(1);
  8681. if (strRegExp) {
  8682. if ('D' === strRegExp.charAt(0)) {
  8683. strRegExp = strRegExp.substr(1);
  8684. options[CO_NUMBER] = 1
  8685. } else
  8686. options[CO_NUMBER] = 0;
  8687. if ('!' === strRegExp.charAt(0)) {
  8688. strRegExp = strRegExp.substr(1);
  8689. options[CO_BOOL] = true
  8690. } else
  8691. options[CO_BOOL] = false;
  8692. if ('/' === strRegExp.charAt(0)) strRegExp = strRegExp.substr(1);
  8693. var strRegExpOptions = '';
  8694. var arrMatch = strRegExp.match(/\/([igmy]*)$/);
  8695. if (arrMatch) {
  8696. strRegExpOptions = arrMatch[1];
  8697. strRegExp = strRegExp.slice(0, -arrMatch[0].length)
  8698. }
  8699. options[CO_REGEXP] = new RegExp(strRegExp, strRegExpOptions)
  8700. } else {
  8701. options[CO_BOOL] = false;
  8702. options[CO_NUMBER] = 0;
  8703. options[CO_REGEXP] = null
  8704. }
  8705. } catch (e) {
  8706. error(trSO('err.regexp', {'n': checkID}) + '\n\n' + e);
  8707. options[CO_BOOL] = false;
  8708. options[CO_NUMBER] = 0;
  8709. options[CO_REGEXP] = null
  8710. }
  8711. };
  8712. _WV.SimpleCITY = function(objID) {
  8713. this.$hash = 0;
  8714. this.$cityID = 0;
  8715. this.$city = '';
  8716. this.$state = '';
  8717. this.$countryID = 0;
  8718. this.$country = '';
  8719. if (objID) {
  8720. this.$cityID = objID;
  8721. var oc = WMo.cities.getObjectById(objID);
  8722. if (oc) {
  8723. this.$city = oc.attributes.isEmpty ? '' : oc.attributes.name;
  8724. var o = WMo.states.getObjectById(oc.attributes.stateID);
  8725. if (o) this.$state = o.name;
  8726. this.$countryID = oc.attributes.countryID;
  8727. o = WMo.countries.getObjectById(oc.attributes.countryID);
  8728. if (o) this.$country = o.name
  8729. }
  8730. this.$hash = this.$cityID + this.$countryID;
  8731. Object.defineProperties(this, {$hash: {writable: false}, $cityID: {writable: false}, $state: {writable: false}, $countryID: {writable: false}, $country: {writable: false}})
  8732. }
  8733. };
  8734. _WV.SimpleCITY.prototype.isOkFor = function(checkID) {
  8735. if (!_RT.$isGlobalAccess) return false;
  8736. var rep = _RT.$checks[checkID];
  8737. if (!rep.$cache) rep.$cache = {};
  8738. var cache = rep.$cache;
  8739. var forCity = rep.FORCITY;
  8740. var hash = forCity ? this.$hash : this.$countryID;
  8741. if (hash in cache) return cache[hash];
  8742. cache[hash] = false;
  8743. var forLevel = rep.FORLEVEL;
  8744. if (forLevel && forLevel > _RT.$topUser.$userLevel) return false;
  8745. if (forCity) {
  8746. var curCity = this.$city.toUpperCase();
  8747. if (!_WV.checkAccessFor(forCity, function(e) {
  8748. return e.toUpperCase() === curCity
  8749. }))
  8750. return false
  8751. }
  8752. var forUser = rep.FORUSER;
  8753. if (forUser) {
  8754. var curUser = _RT.$topUser.$userName.toUpperCase();
  8755. if (!_WV.checkAccessFor(forUser, function(e) {
  8756. return e.toUpperCase() === curUser
  8757. }))
  8758. return false
  8759. }
  8760. var forCountry = rep.FORCOUNTRY;
  8761. if (forCountry) {
  8762. var curCountry = this.$country.toUpperCase();
  8763. if (!_WV.checkAccessFor(forCountry, function(e) {
  8764. if (e in _I18n.$code2country) return _I18n.$code2country[e] === curCountry;
  8765. error('Please report: fc=' + e);
  8766. return false
  8767. }))
  8768. return false
  8769. }
  8770. cache[hash] = true;
  8771. return true
  8772. };
  8773. _WV.SimpleADDRESS = function(objID) {
  8774. this.$streetID = 0;
  8775. this.$street = '';
  8776. if (objID) {
  8777. this.$streetID = objID;
  8778. var o = WMo.streets.getObjectById(objID);
  8779. if (o) {
  8780. this.$street = o.isEmpty ? '' : o.name;
  8781. _WV.SimpleCITY.call(this, o.cityID)
  8782. } else {
  8783. this.$street = GL_NOID;
  8784. _WV.SimpleCITY.call(this, 0)
  8785. }
  8786. }
  8787. Object.defineProperties(this, {$streetID: {writable: false}})
  8788. };
  8789. _WV.SimpleADDRESS.prototype = new _WV.SimpleCITY;
  8790. _WV.SimpleADDRESS.prototype.constructor = _WV.SimpleADDRESS
  8791. }
  8792. function F_ONWARNING(e) {
  8793. _THUI.viewToDoc(_UI);
  8794. var target = _THUI.getByDOM(_UI, e.target);
  8795. if (target && target.CHECKED && target.WARNING) warning(target.WARNING);
  8796. async(F_UPDATEUI)
  8797. }
  8798. function F_UPDATEUI(e) {
  8799. function destroyHLs() {
  8800. _RT.$HLedObjects = {};
  8801. _RT.$HLlayer.destroyFeatures()
  8802. }
  8803. function updateReportButtons() {
  8804. if (RTStateIs(ST_RUN) || RTStateIs(ST_CONTINUE)) {
  8805. btns.bReport.CLASS = 'btn btn-default';
  8806. btns.bReport.DISABLED = true;
  8807. btns.bReportBB.DISABLED = true;
  8808. return
  8809. }
  8810. if (!_REP.$maxSeverity) {
  8811. btns.bReport.CLASS = 'btn btn-default';
  8812. btns.bReport.DISABLED = true;
  8813. btns.bReportBB.DISABLED = true
  8814. } else {
  8815. switch (_REP.$maxSeverity) {
  8816. case RS_NOTE:
  8817. btns.bReport.CLASS = 'btn btn-info';
  8818. break;
  8819. case RS_WARNING:
  8820. btns.bReport.CLASS = 'btn btn-warning';
  8821. break;
  8822. case RS_ERROR:
  8823. btns.bReport.CLASS = 'btn btn-danger';
  8824. break;
  8825. case RS_CUSTOM1:
  8826. btns.bReport.CLASS = 'btn btn-success';
  8827. break;
  8828. case RS_CUSTOM2:
  8829. btns.bReport.CLASS = 'btn btn-primary';
  8830. break
  8831. }
  8832. btns.bReport.DISABLED = false;
  8833. btns.bReportBB.DISABLED = false
  8834. }
  8835. if (15 < WM.getZoom()) {
  8836. btns.bScan.CLASS = 'btn btn-default';
  8837. btns.bScan.DISABLED = true;
  8838. btns.bScan.TITLE = trS('button.scan.tip.NA')
  8839. } else {
  8840. btns.bScan.CLASS = 'btn btn-success';
  8841. btns.bScan.DISABLED = false;
  8842. btns.bScan.TITLE = trS('button.scan.tip')
  8843. }
  8844. if (_REP.$isLimitPerCheck) {
  8845. btns.bClear.CLASS = 'btn btn-danger';
  8846. btns.bClear.TITLE = trS('button.clear.tip.red')
  8847. } else {
  8848. btns.bClear.CLASS = 'btn btn-default';
  8849. btns.bClear.TITLE = trS('button.clear.tip')
  8850. }
  8851. if (_UI.pSettings.pScanner.oHLReported.CHECKED) {
  8852. _UI.pMain.pTabs.tMain.TEXT = '<i class="fa fa-check-square-o" aria-hidden="true"></i> ' +
  8853. 'Validator:';
  8854. _UI.pMain.pTabs.tMain.TITLE = trS('tab.switch.tip.off')
  8855. } else {
  8856. _UI.pMain.pTabs.tMain.TEXT = '<font color="#ccc"><i class="fa fa-power-off" aria-hidden="true"></i> ' +
  8857. 'Validator:</font>';
  8858. _UI.pMain.pTabs.tMain.TITLE = trS('tab.switch.tip.on')
  8859. }
  8860. _UI.pMain.pTabs.tMain.TITLE += '\nWME Validator Version ' + WV_VERSION
  8861. }
  8862. function getTopCity() {
  8863. var i = WMo.segments.topCityID;
  8864. if (i) return new _WV.SimpleCITY(i);
  8865. return new _WV.SimpleCITY(0)
  8866. }
  8867. _RT.$topCity = getTopCity();
  8868. if (_RT.$topCity.$country) _RT.$cachedTopCCode = _I18n.getCountryCode(_RT.$topCity.$country.toUpperCase());
  8869. _THUI.viewToDoc(_UI);
  8870. _RT.$isGlobalAccess = true;
  8871. if (!_RT.$topCity.isOkFor(0)) _RT.$isGlobalAccess = false;
  8872. if (!_RT.$isGlobalAccess) {
  8873. _UI.pMain.NODISPLAY = 1;
  8874. _UI.pSettings.NODISPLAY = 1;
  8875. _UI.pTips.NODISPLAY = 1;
  8876. _UI.pNoAccess.NODISPLAY = 0;
  8877. _THUI.docToView(_UI);
  8878. return
  8879. } else if (!_UI.pNoAccess.NODISPLAY) {
  8880. _UI.pMain.NODISPLAY = 0;
  8881. _UI.pTips.NODISPLAY = 0;
  8882. _UI.pNoAccess.NODISPLAY = 1
  8883. }
  8884. if (_RT.oReportToolbox.NA && null !== document.getElementById(_RT.oReportToolbox.FORID)) {
  8885. _RT.oReportToolbox.CHECKED = true;
  8886. _RT.oReportToolbox.NA = false;
  8887. clearReport();
  8888. async(ForceHLAllObjects, null, 1E3)
  8889. }
  8890. if (_RT.oReportWMECH.NA && null !== document.getElementById(_RT.oReportWMECH.FORID)) {
  8891. _RT.oReportWMECH.CHECKED = true;
  8892. _RT.oReportWMECH.NA = false;
  8893. clearReport();
  8894. async(ForceHLAllObjects, null, 1E3)
  8895. }
  8896. var customOptions = _RT.$checks[128].OPTIONS[_I18n.$defLng];
  8897. if (customOptions[CO_STRING] !== _UI.pSettings.pCustom.oTemplate1.VALUE || _RT.$RegExp1 !== _UI.pSettings.pCustom.oRegExp1.VALUE) {
  8898. customOptions[CO_STRING] = _UI.pSettings.pCustom.oTemplate1.VALUE;
  8899. if (customOptions[CO_STRING]) {
  8900. clearErrorFlag();
  8901. _RT.$RegExp1 = _UI.pSettings.pCustom.oRegExp1.VALUE;
  8902. _WV.buildRegExp(128, customOptions, _UI.pSettings.pCustom.oRegExp1.VALUE)
  8903. } else
  8904. customOptions[CO_REGEXP] = null
  8905. }
  8906. customOptions = _RT.$checks[129].OPTIONS[_I18n.$defLng];
  8907. if (customOptions[CO_STRING] !== _UI.pSettings.pCustom.oTemplate2.VALUE || _RT.$RegExp2 !== _UI.pSettings.pCustom.oRegExp2.VALUE) {
  8908. customOptions[CO_STRING] = _UI.pSettings.pCustom.oTemplate2.VALUE;
  8909. if (customOptions[CO_STRING]) {
  8910. clearErrorFlag();
  8911. _RT.$RegExp2 = _UI.pSettings.pCustom.oRegExp2.VALUE;
  8912. _WV.buildRegExp(128, customOptions, _UI.pSettings.pCustom.oRegExp2.VALUE)
  8913. } else
  8914. customOptions[CO_REGEXP] = null
  8915. }
  8916. if (_RT.$checks[128].OPTIONS[_I18n.$defLng][CO_REGEXP])
  8917. _RT.$curMaxSeverity = RS_CUSTOM1;
  8918. else if (_RT.$checks[129].OPTIONS[_I18n.$defLng][CO_REGEXP])
  8919. _RT.$curMaxSeverity = RS_CUSTOM2;
  8920. else
  8921. _RT.$curMaxSeverity = RS_ERROR;
  8922. if (e) {
  8923. switch (_THUI.getByDOM(_UI, e.target)) {
  8924. case _UI.pMain.pTabs.tMain:
  8925. _RT.$switchValidator = true;
  8926. break;
  8927. case _UI.pSettings.pCustom.oTemplate1:
  8928. case _UI.pSettings.pCustom.oRegExp1:
  8929. case _UI.pSettings.pCustom.oTemplate2:
  8930. case _UI.pSettings.pCustom.oRegExp2:
  8931. _RT.$isMapChanged = true;
  8932. clearReport();
  8933. async(ForceHLAllObjects);
  8934. break;
  8935. case _UI.pMain.pFilter.oEnablePlaces:
  8936. case _UI.pMain.pFilter.oExcludeNonEditables:
  8937. case _UI.pMain.pFilter.oExcludeDuplicates:
  8938. case _UI.pMain.pFilter.oExcludeStreets:
  8939. case _UI.pMain.pFilter.oExcludeOther:
  8940. case _UI.pMain.pFilter.oExcludeNotes:
  8941. case _UI.pMain.pSearch.oIncludeYourEdits:
  8942. case _UI.pMain.pSearch.oIncludeUpdatedBy:
  8943. case _UI.pMain.pSearch.oIncludeUpdatedSince:
  8944. case _UI.pMain.pSearch.oIncludeCityName:
  8945. case _UI.pMain.pSearch.oIncludeChecks:
  8946. _RT.$includeUpdatedByCache = {};
  8947. _RT.$includeUpdatedSinceTime = 0;
  8948. _RT.$includeCityNameCache = {};
  8949. _RT.$includeChecksCache = {};
  8950. async(F_SHOWREPORT, RF_UPDATEMAXSEVERITY);
  8951. async(ForceHLAllObjects);
  8952. break;
  8953. case _UI.pMain.pButtons.bScan:
  8954. async(F_ONRUN);
  8955. break;
  8956. case _UI.pMain.pButtons.bStop:
  8957. async(F_STOP);
  8958. break;
  8959. case _UI.pMain.pButtons.bClear:
  8960. _RT.$isMapChanged = true;
  8961. clearErrorFlag();
  8962. clearReport();
  8963. destroyHLs();
  8964. break;
  8965. case _UI.pMain.pButtons.bPause:
  8966. _RT.$curMessage = {TEXT: trS('msg.paused.text'), TITLE: trS('msg.paused.tip')};
  8967. async(F_PAUSE);
  8968. break;
  8969. case _UI.pMain.pButtons.bContinue:
  8970. clearErrorFlag();
  8971. if (!RTStateIs(ST_PAUSE)) break;
  8972. if (LIMIT_TOTAL < _REP.$counterTotal) clearReport();
  8973. async(F_LAYERSOFF);
  8974. _RT.$curMessage = {TEXT: trS('msg.continuing.text'), TITLE: trS('msg.continuing.tip')};
  8975. setRTState(ST_CONTINUE);
  8976. if (_RT.$startCenter) {
  8977. WM.zoomTo(_RT.$startZoom);
  8978. WM.panTo(_RT.$startCenter)
  8979. }
  8980. clearWD();
  8981. break;
  8982. case _UI.pMain.pButtons.bSettings:
  8983. _UI.pMain.NODISPLAY = true;
  8984. _UI.pSettings.NODISPLAY = false;
  8985. _RT.$curMessage = {TEXT: trS('msg.settings.text'), TITLE: trS('msg.settings.tip')};
  8986. break;
  8987. case _UI.pSettings.pButtons.bReset:
  8988. resetDefaults();
  8989. _RT.$curMessage = {TEXT: trS('msg.reset.text'), TITLE: trS('msg.reset.tip')};
  8990. sync(F_SHOWREPORT, RF_UPDATEMAXSEVERITY);
  8991. async(ForceHLAllObjects);
  8992. break;
  8993. case _UI.pSettings.pButtons.bBack:
  8994. _UI.pMain.NODISPLAY = false;
  8995. _UI.pSettings.NODISPLAY = true;
  8996. break;
  8997. case _UI.pSettings.pScanner.oHLReported:
  8998. _UI.pSettings.pScanner.oHLReported.CHECKED = !_UI.pSettings.pScanner.oHLReported.CHECKED;
  8999. _RT.$switchValidator = true;
  9000. break
  9001. }
  9002. async(F_ONWARNING, e)
  9003. }
  9004. if (_RT.$switchValidator) {
  9005. _UI.pSettings.pScanner.oHLReported.CHECKED = !_UI.pSettings.pScanner.oHLReported.CHECKED;
  9006. if (_UI.pSettings.pScanner.oHLReported.CHECKED) {
  9007. ForceHLAllObjects();
  9008. _RT.$HLlayer.setVisibility(true)
  9009. } else {
  9010. ForceHLAllObjects();
  9011. destroyHLs();
  9012. _RT.$HLlayer.setVisibility(false)
  9013. }
  9014. _RT.$switchValidator = false
  9015. }
  9016. if (_RT.$reportEditableNotFound) {
  9017. _RT.$reportEditableNotFound = false;
  9018. _UI.pMain.pFilter.oExcludeNonEditables.CHECKED = false;
  9019. info(trS('filter.noneditables.reverted'))
  9020. }
  9021. _UI.pMain.pHelp.NODISPLAY = !_UI.pMain.pTabs.tHelp.CHECKED;
  9022. _UI.pMain.pFilter.NODISPLAY = !_UI.pMain.pTabs.tFilter.CHECKED;
  9023. _UI.pMain.pSearch.NODISPLAY = !_UI.pMain.pTabs.tSearch.CHECKED;
  9024. _UI.pSettings.pScanner.NODISPLAY = !_UI.pSettings.pTabs.tScanner.CHECKED;
  9025. _UI.pSettings.pCustom.NODISPLAY = !_UI.pSettings.pTabs.tCustom.CHECKED;
  9026. _UI.pSettings.pAbout.NODISPLAY = !_UI.pSettings.pTabs.tAbout.CHECKED;
  9027. if (_UI.pSettings.pTabs.tAbout.CHECKED) {
  9028. _UI.pSettings.pButtons.bReset.NODISPLAY = 1;
  9029. _UI.pSettings.pButtons.bList.NODISPLAY = 0;
  9030. _UI.pSettings.pButtons.bWizard.NODISPLAY = 0
  9031. } else {
  9032. _UI.pSettings.pButtons.bReset.NODISPLAY = 0;
  9033. _UI.pSettings.pButtons.bList.NODISPLAY = 1;
  9034. _UI.pSettings.pButtons.bWizard.NODISPLAY = 1
  9035. }
  9036. var btns = _UI.pMain.pButtons;
  9037. switch (getRTState()) {
  9038. case ST_CONTINUE:
  9039. case ST_RUN:
  9040. btns.bScan.NODISPLAY = true;
  9041. btns.bPause.NODISPLAY = false;
  9042. btns.bContinue.NODISPLAY = true;
  9043. btns.bStop.NODISPLAY = false;
  9044. btns.bClear.NODISPLAY = true;
  9045. updateReportButtons();
  9046. btns.bSettings.DISABLED = true;
  9047. _UI.pMain.pFilter._DISABLED = true;
  9048. _UI.pMain.pSearch._DISABLED = true;
  9049. break;
  9050. case ST_STOP:
  9051. btns.bScan.NODISPLAY = false;
  9052. btns.bPause.NODISPLAY = true;
  9053. btns.bContinue.NODISPLAY = true;
  9054. btns.bStop.NODISPLAY = true;
  9055. btns.bClear.NODISPLAY = false;
  9056. if (isEmpty(_RT.$seen))
  9057. btns.bClear.DISABLED = true;
  9058. else
  9059. btns.bClear.DISABLED = false;
  9060. updateReportButtons();
  9061. if (_REP.$maxSeverity && !_UI.pMain.NODISPLAY) _RT.$curMessage = {TEXT: trS('msg.finished.text'), TITLE: trS('msg.finished.tip'), CLASS: CL_MSGY};
  9062. btns.bSettings.DISABLED = false;
  9063. _UI.pMain.pFilter._DISABLED = false;
  9064. _UI.pMain.pSearch._DISABLED = false;
  9065. break;
  9066. case ST_PAUSE:
  9067. btns.bScan.NODISPLAY = true;
  9068. btns.bPause.NODISPLAY = true;
  9069. btns.bContinue.NODISPLAY = false;
  9070. btns.bContinue.DISABLED = false;
  9071. btns.bStop.NODISPLAY = false;
  9072. btns.bClear.NODISPLAY = true;
  9073. updateReportButtons();
  9074. btns.bSettings.DISABLED = false;
  9075. _UI.pMain.pFilter._DISABLED = false;
  9076. _UI.pMain.pSearch._DISABLED = false;
  9077. break
  9078. }
  9079. if (RTStateIs(ST_STOP) && !_REP.$maxSeverity)
  9080. if (!_UI.pMain.NODISPLAY)
  9081. if (15 < WM.getZoom())
  9082. _RT.$curMessage = {TEXT: _UI.pSettings.pScanner.oHLReported.CHECKED ? trS('msg.pan.text') : trS('msg.zoomout.text'), TITLE: '', CLASS: CL_MSGY};
  9083. else
  9084. _RT.$curMessage = {TEXT: trS('msg.click.text'), TITLE: '', CLASS: CL_MSGY};
  9085. _UI.pTips.TEXT = _RT.$curMessage.TEXT;
  9086. if (_RT.$curMessage.TITLE)
  9087. _UI.pTips.TITLE = _RT.$curMessage.TITLE;
  9088. else
  9089. _UI.pTips.TITLE = '';
  9090. if (_RT.$curMessage.CLASS)
  9091. _UI.pTips.CLASS = _RT.$curMessage.CLASS;
  9092. else
  9093. _UI.pTips.CLASS = CL_MSG;
  9094. var storageObj = _THUI.saveValues(_UI);
  9095. storageObj[AS_VERSION] = WV_VERSION;
  9096. storageObj[AS_LICENSE] = WV_LICENSE_VERSION;
  9097. storageObj[AS_PASSWORD] = 1;
  9098. try {
  9099. window.localStorage.setItem(AS_NAME, JSON.stringify(storageObj))
  9100. } catch (err) {
  9101. }
  9102. _THUI.docToView(_UI)
  9103. }
  9104. function F_LOGOUT() {
  9105. log('logout');
  9106. _UI = {};
  9107. WMo.events.un({'mergeend': onMergeEnd});
  9108. WM.events.un({'moveend': onMoveEnd, 'zoomend': HLAllObjects, 'changelayer': onChangeLayer});
  9109. WSM.events.un({'selectionchanged': ForceHLAllObjects});
  9110. WC.events.un({'loadstart': onLoadStart});
  9111. WMo.segments.events.un({'objectsadded': onSegmentsAdded, 'objectschanged': onSegmentsChanged, 'objectsremoved': onSegmentsRemoved});
  9112. WMo.venues.events.un({'objectsadded': onVenuesAdded, 'objectschanged': onVenuesChanged, 'objectsremoved': onVenuesRemoved});
  9113. WMo.nodes.events.un({'objectschanged': onNodesChanged, 'objectsremoved': onNodesRemoved})
  9114. }
  9115. async(F_INIT, null, 0);
  9116. var _I18n = {
  9117. $defLng: 'EN',
  9118. $lng: '',
  9119. $translations: null,
  9120. $curSet: null,
  9121. $curCode: '',
  9122. $fallbackSet: null,
  9123. $fallbackCode: '',
  9124. $defSet: null,
  9125. $country2code: null,
  9126. $code2country: null,
  9127. $code2code: null,
  9128. $lng2code: null,
  9129. $code2dir: null
  9130. };
  9131. _I18n.init = function(options) {
  9132. _I18n.$lng = options.$lng || _I18n.$defLng;
  9133. _I18n.$translations = options.$translations || {};
  9134. _I18n.$country2code = options.$country2code || {};
  9135. _I18n.$code2country = options.$code2country || {};
  9136. _I18n.$code2code = options.$code2code || {};
  9137. _I18n.$lng2code = options.$lng2code || {};
  9138. _I18n.$code2dir = options.$code2dir || {}
  9139. };
  9140. _I18n.addTranslation = function(translation) {
  9141. var ccode = translation['.codeISO'];
  9142. if (!ccode) return;
  9143. ccode = ccode.toUpperCase();
  9144. _I18n.$translations[ccode] = translation;
  9145. if (_I18n.$defLng !== ccode) {
  9146. var country = translation['.country'];
  9147. if (country) {
  9148. if (!classCodeIs(country, CC_ARRAY)) country = [country];
  9149. for (var i = 0; i < country.length; i++) {
  9150. var ucountry = country[i].toUpperCase();
  9151. _I18n.$country2code[ucountry] = ccode;
  9152. if (!(ccode in _I18n.$code2country)) _I18n.$code2country[ccode] = ucountry
  9153. }
  9154. }
  9155. var lng = translation['.lng'];
  9156. if (lng) {
  9157. if (!classCodeIs(lng, CC_ARRAY)) lng = [lng];
  9158. for (var i = 0; i < lng.length; i++) {
  9159. var ulng = lng[i].toUpperCase();
  9160. _I18n.$lng2code[ulng] = ccode
  9161. }
  9162. }
  9163. var dir = translation['.dir'];
  9164. if (dir) _I18n.$code2dir[ccode] = dir.toLowerCase();
  9165. var fcode = translation['.fallbackCode'];
  9166. if (fcode) {
  9167. fcode = fcode.toUpperCase();
  9168. if (_I18n.$defLng !== fcode) _I18n.$code2code[ccode] = fcode
  9169. }
  9170. }
  9171. _I18n.$curCode = _I18n.getCodeOL(_I18n.$translations, _I18n.$lng);
  9172. _I18n.$curSet = _I18n.getValueOC(_I18n.$translations, _I18n.$curCode);
  9173. _I18n.$fallbackCode = _I18n.getFallbackCodeOC(_I18n.$translations, _I18n.$curCode);
  9174. _I18n.$fallbackSet = _I18n.getValueOC(_I18n.$translations, _I18n.$fallbackCode);
  9175. _I18n.$defSet = _I18n.$translations[_I18n.$defLng]
  9176. };
  9177. _I18n.getDependantCodes = function(uc) {
  9178. var ret = [];
  9179. for (var depCode in _I18n.$code2code)
  9180. if (_I18n.$code2code[depCode] === uc) ret.push(depCode);
  9181. return ret
  9182. };
  9183. _I18n.getCountryCode = function(uc) {
  9184. if (uc in _I18n.$country2code) return _I18n.$country2code[uc];
  9185. return ''
  9186. };
  9187. _I18n.getCountry = function(ucc) {
  9188. if (ucc in _I18n.$code2country) return _I18n.$code2country[ucc];
  9189. return ''
  9190. };
  9191. _I18n.getCapitalizedCountry = function(ucc) {
  9192. return _I18n.capitalize(_I18n.getCountry(ucc)).toLowerCase().replace(/\b./g, function(c) {
  9193. return c.toUpperCase()
  9194. })
  9195. };
  9196. _I18n.capitalize = function(str) {
  9197. return str.toLowerCase().replace(/\b./g, function(c) {
  9198. return c.toUpperCase()
  9199. })
  9200. };
  9201. _I18n.getDir = function() {
  9202. if (_I18n.$curCode in _I18n.$code2dir) return _I18n.$code2dir[_I18n.$curCode];
  9203. if (_I18n.$fallbackCode in _I18n.$code2dir) return _I18n.$code2dir[_I18n.$fallbackCode];
  9204. return 'ltr'
  9205. };
  9206. _I18n.getString = function(label) {
  9207. if (label in _I18n.$curSet) return _I18n.$curSet[label];
  9208. if (label in _I18n.$fallbackSet) return _I18n.$fallbackSet[label];
  9209. if (label in _I18n.$defSet) return _I18n.$defSet[label];
  9210. var ret = '[missing ' + label + ']';
  9211. return ret
  9212. };
  9213. _I18n.isLabelExist = function(label) {
  9214. if (label in _I18n.$curSet) return true;
  9215. if (label in _I18n.$fallbackSet) return true;
  9216. if (label in _I18n.$defSet) return true;
  9217. return false
  9218. };
  9219. _I18n.getCodeOL = function(obj, lng) {
  9220. var ccode = _I18n.$lng2code[lng];
  9221. if (ccode)
  9222. if (ccode in obj)
  9223. return ccode;
  9224. else
  9225. return _I18n.getFallbackCodeOC(obj, ccode);
  9226. else
  9227. return _I18n.$defLng
  9228. };
  9229. _I18n.getFallbackCodeOC = function(obj, ccode) {
  9230. var fcode = _I18n.$code2code[ccode];
  9231. if (fcode && fcode in obj) return fcode;
  9232. return _I18n.$defLng
  9233. };
  9234. _I18n.getValueOL = function(obj, lng) {
  9235. return _I18n.getValueOC(obj, _I18n.getCodeOL(obj, lng))
  9236. };
  9237. _I18n.getValueOC = function(obj, ccode) {
  9238. if (ccode in obj)
  9239. return obj[ccode];
  9240. else if (ccode in _I18n.$code2code) {
  9241. var fcode = _I18n.$code2code[ccode];
  9242. if (fcode in obj) return obj[fcode]
  9243. }
  9244. return obj[_I18n.$defLng]
  9245. };
  9246. _I18n.expandSO = function(str, options) {
  9247. if (!options) return str;
  9248. return str.replace(/\$\{(\w+)(\[(\d+)\]|\[(\W*)\])?\}/g, function(all, name, arr, idx, delims) {
  9249. if (arr) {
  9250. if (idx) return options[name][idx] || '';
  9251. return options[name].join(delims)
  9252. } else
  9253. return options[name]
  9254. })
  9255. };
  9256. _I18n.t = function(obj, ccode, options) {
  9257. return _I18n.expandSO(_I18n.getValueOC(obj, ccode), options)
  9258. };
  9259. _I18n.tL = function(obj, options) {
  9260. return _I18n.expandSO(_I18n.getValueOL(obj, _I18n.$lng), options)
  9261. };
  9262. var _AUDIO = {};
  9263. _AUDIO.beep = function(dur, oscType) {
  9264. try {
  9265. _AUDIO._context = new (window.AudioContext || window.webkitAudioContext);
  9266. var osc = _AUDIO._context.createOscillator();
  9267. osc.connect(_AUDIO._context.destination);
  9268. osc.type = oscType || 'sine';
  9269. osc.start(0);
  9270. setTimeout(function() {
  9271. osc.stop(0)
  9272. }, dur)
  9273. } catch (e) {
  9274. log('beep!')
  9275. }
  9276. };
  9277. _THUI.$def = {
  9278. _class: '',
  9279. _disclose: 0,
  9280. _name: '',
  9281. _nodisplay: 0,
  9282. _disabled: 0,
  9283. _reverse: 0,
  9284. _style: '',
  9285. _type: '',
  9286. _onclick: null,
  9287. _onwarning: null,
  9288. _onchange: null
  9289. };
  9290. _THUI.loadValues = function(uiObj, storageObj) {
  9291. if (!storageObj) return;
  9292. if (uiObj.AUTOSAVE && uiObj.AUTOSAVE in storageObj) {
  9293. switch (uiObj.TYPE) {
  9294. case _THUI.TEXT:
  9295. case _THUI.DATE:
  9296. uiObj.VALUE = storageObj[uiObj.AUTOSAVE];
  9297. break;
  9298. default:
  9299. uiObj.CHECKED = storageObj[uiObj.AUTOSAVE];
  9300. break
  9301. }
  9302. return
  9303. }
  9304. for (var i in uiObj) {
  9305. if (!uiObj.hasOwnProperty(i)) continue;
  9306. var o = uiObj[i];
  9307. switch (classCode(o)) {
  9308. case CC_OBJECT:
  9309. _THUI.loadValues(o, storageObj);
  9310. break;
  9311. case CC_ARRAY:
  9312. for (var j = 0; j < o.length; j++) _THUI.loadValues(o[j], storageObj);
  9313. break
  9314. }
  9315. }
  9316. };
  9317. _THUI.saveValues = function(uiObj, storageObj) {
  9318. if (!storageObj) storageObj = {};
  9319. if (uiObj.AUTOSAVE) {
  9320. switch (uiObj.TYPE) {
  9321. case _THUI.TEXT:
  9322. case _THUI.DATE:
  9323. storageObj[uiObj.AUTOSAVE] = uiObj.VALUE;
  9324. break;
  9325. default:
  9326. storageObj[uiObj.AUTOSAVE] = uiObj.CHECKED;
  9327. break
  9328. }
  9329. return storageObj
  9330. }
  9331. for (var i in uiObj) {
  9332. if (!uiObj.hasOwnProperty(i)) continue;
  9333. var o = uiObj[i];
  9334. switch (classCode(o)) {
  9335. case CC_OBJECT:
  9336. _THUI.saveValues(o, storageObj);
  9337. break;
  9338. case CC_ARRAY:
  9339. for (var j = 0; j < o.length; j++) _THUI.saveValues(o[j], storageObj);
  9340. break
  9341. }
  9342. }
  9343. return storageObj
  9344. };
  9345. _THUI.storage = {
  9346. get: function(name) {
  9347. try {
  9348. var s = window.localStorage.getItem(name);
  9349. return s ? JSON.parse(s) : null
  9350. } catch (e) {
  9351. return null
  9352. }
  9353. },
  9354. set: function(name, obj) {
  9355. try {
  9356. var s = JSON.stringify(obj);
  9357. window.localStorage.setItem(name, s);
  9358. return true
  9359. } catch (e) {
  9360. return false
  9361. }
  9362. }
  9363. };
  9364. _THUI.addElemetClassStyle = function(elem, cl, newStyle) {
  9365. if (classCodeIs(cl, CC_NUMBER)) cl = 'c' + cl;
  9366. return _THUI.addStyle(elem + '.' + cl + newStyle)
  9367. };
  9368. _THUI.addElemetIdStyle = function(elem, id, newStyle) {
  9369. if (classCodeIs(id, CC_NUMBER)) id = 'i' + id;
  9370. return _THUI.addStyle(elem + '#' + id + newStyle)
  9371. };
  9372. _THUI.addStyle = function(newStyle) {
  9373. for (var i = 0; i < 10; i++) {
  9374. var sheet = document.styleSheets[i];
  9375. try {
  9376. if ('cssRules' in sheet) return sheet.insertRule(newStyle, sheet.cssRules.length)
  9377. } catch (e) {
  9378. }
  9379. }
  9380. };
  9381. _THUI.getByDOM = function(uiObj, elem) {
  9382. if (uiObj.IDOM == elem || uiObj.ODOM == elem) return uiObj;
  9383. var ret = null;
  9384. for (var i in uiObj) {
  9385. if (!uiObj.hasOwnProperty(i)) continue;
  9386. var o = uiObj[i];
  9387. switch (classCode(o)) {
  9388. case CC_OBJECT:
  9389. if (ret = _THUI.getByDOM(o, elem)) return ret;
  9390. break;
  9391. case CC_ARRAY:
  9392. for (var j = 0; j < o.length; j++)
  9393. if (ret = _THUI.getByDOM(o[j], elem)) return ret;
  9394. break
  9395. }
  9396. }
  9397. return null
  9398. };
  9399. _THUI.getById = function(uiObj, id) {
  9400. if (uiObj.ID && uiObj.ID == id) return uiObj;
  9401. var ret = null;
  9402. for (var i in uiObj) {
  9403. if (!uiObj.hasOwnProperty(i)) continue;
  9404. var o = uiObj[i];
  9405. switch (classCode(o)) {
  9406. case CC_OBJECT:
  9407. if (ret = _THUI.getById(o, id)) return ret;
  9408. break;
  9409. case CC_ARRAY:
  9410. for (var j = 0; j < o.length; j++)
  9411. if (ret = _THUI.getById(o[j], id)) return ret;
  9412. break
  9413. }
  9414. }
  9415. return null
  9416. };
  9417. _THUI.docToView = function(uiObj) {
  9418. _THUI.appendUI(null, uiObj)
  9419. };
  9420. _THUI.viewToDoc = function(uiObj) {
  9421. if (uiObj.IDOM) {
  9422. if (classCodeDefined(uiObj.IDOM.value)) {
  9423. var val = uiObj.IDOM.value;
  9424. if (classCodeDefined(uiObj.MAX) && val > uiObj.MAX) val = uiObj.MAX;
  9425. if (classCodeDefined(uiObj.MIN) && val < uiObj.MIN) val = uiObj.MIN;
  9426. uiObj.VALUE = val
  9427. }
  9428. if (classCodeDefined(uiObj.IDOM.checked)) uiObj.CHECKED = uiObj.IDOM.checked
  9429. }
  9430. for (var i in uiObj) {
  9431. if (!uiObj.hasOwnProperty(i)) continue;
  9432. var o = uiObj[i];
  9433. switch (classCode(o)) {
  9434. case CC_OBJECT:
  9435. _THUI.viewToDoc(o);
  9436. break;
  9437. case CC_ARRAY:
  9438. o.forEach(_THUI.viewToDoc);
  9439. break
  9440. }
  9441. }
  9442. };
  9443. _THUI.appendUI = function(parent, uiObj, uiPrefix, uiName) {
  9444. uiPrefix = uiPrefix || '';
  9445. uiName = uiName || '';
  9446. var id = uiObj.ID;
  9447. if (!classCodeDefined(id)) id = '';
  9448. var NA = uiObj.NA || false;
  9449. var NAti = uiObj.NATITLE || '';
  9450. var ch = uiObj.CHECKED || false;
  9451. var cl = classCodeDefined(uiObj.CLASS) ? uiObj.CLASS : _THUI.$def._class;
  9452. var cli = uiObj.CLASSI;
  9453. var _cl = uiObj._CLASS;
  9454. var va = uiObj.VALUE;
  9455. var disc = classCodeDefined(uiObj.DISCLOSE) ? uiObj.DISCLOSE : _THUI.$def._disclose;
  9456. var _disc = uiObj._DISCLOSE;
  9457. var di = NA ? NA : classCodeDefined(uiObj.DISABLED) ? uiObj.DISABLED : _THUI.$def._disabled;
  9458. var _di = uiObj._DISABLED;
  9459. var no = classCodeDefined(uiObj.NODISPLAY) ? uiObj.NODISPLAY : _THUI.$def._nodisplay;
  9460. var _no = uiObj._NODISPLAY;
  9461. var ma = uiObj.MAX;
  9462. var mal = uiObj.MAXLENGTH;
  9463. var plh = uiObj.PLACEHOLDER;
  9464. var mi = uiObj.MIN;
  9465. var name = classCodeDefined(uiObj.NAME) ? uiObj.NAME : _THUI.$def._name;
  9466. var _name = uiObj._NAME;
  9467. var ro = uiObj.READONLY || false;
  9468. var re = classCodeDefined(uiObj.REVERSE) ? uiObj.REVERSE : _THUI.$def._reverse;
  9469. var _re = uiObj._REVERSE;
  9470. var step = uiObj.STEP;
  9471. var st = classCodeDefined(uiObj.STYLE) ? uiObj.STYLE : _THUI.$def._style;
  9472. var _st = uiObj._STYLE;
  9473. var sti = classCodeDefined(uiObj.STYLEI) ? uiObj.STYLEI : '';
  9474. var sto = classCodeDefined(uiObj.STYLEO) ? uiObj.STYLEO : '';
  9475. var te = uiObj.TEXT || '';
  9476. var ti = NA ? NAti ? NAti : 'Not available' : uiObj.TITLE;
  9477. var ty = classCodeDefined(uiObj.TYPE) ? uiObj.TYPE : _THUI.$def._type;
  9478. var _ty = uiObj._TYPE;
  9479. var accK = uiObj.ACCESSKEY || '';
  9480. var oncl = uiObj.ONCLICK || _THUI.$def._onclick;
  9481. var onclo = uiObj.ONCLICKO;
  9482. var _oncl = uiObj._ONCLICK;
  9483. var onwa = uiObj.ONWARNING || _THUI.$def._onwarning;
  9484. var _onwa = uiObj._ONWARNING;
  9485. var onch = uiObj.ONCHANGE || _THUI.$def._onchange;
  9486. var _onch = uiObj._ONCHANGE;
  9487. var els = [];
  9488. var iel = document.createElement('input');
  9489. var oel = document.createElement('label');
  9490. var ote = te;
  9491. if (classCodeIs(uiPrefix, CC_NUMBER)) uiPrefix = 'p' + uiPrefix;
  9492. if (classCodeIs(id, CC_NUMBER)) id = 'i' + id;
  9493. if (classCodeIs(cl, CC_NUMBER)) cl = 'c' + cl;
  9494. if (classCodeIs(cli, CC_NUMBER)) cli = 'c' + cli;
  9495. if (classCodeIs(name, CC_NUMBER)) name = 'n' + name;
  9496. switch (ty) {
  9497. case _THUI.NONE:
  9498. iel = oel = null;
  9499. ote = '';
  9500. break;
  9501. case _THUI.NUMBER:
  9502. iel.type = 'number';
  9503. break;
  9504. case _THUI.RADIO:
  9505. if (disc && !id) id = uiPrefix + uiName + 'i';
  9506. if (!name) name = uiPrefix + 'n';
  9507. iel.type = 'radio';
  9508. if (disc) oel.htmlFor = id;
  9509. break;
  9510. case _THUI.CHECKBOX:
  9511. if (disc && !id) id = uiPrefix + uiName + 'i';
  9512. iel.type = 'checkbox';
  9513. if (disc) oel.htmlFor = id;
  9514. break;
  9515. case _THUI.BUTTON:
  9516. iel = document.createElement('button');
  9517. if (te) iel.innerHTML = te;
  9518. oel = null;
  9519. ote = '';
  9520. break;
  9521. case _THUI.TEXT:
  9522. iel.type = 'text';
  9523. break;
  9524. case _THUI.PASSWORD:
  9525. iel.type = 'password';
  9526. break;
  9527. case _THUI.DATE:
  9528. iel.type = 'date';
  9529. break;
  9530. default:
  9531. iel = null;
  9532. oel = document.createElement('div');
  9533. break
  9534. }
  9535. if (oel && iel && !disc)
  9536. if (re)
  9537. oel.appendChild(iel);
  9538. else
  9539. oel.insertBefore(iel, oel.firstChild);
  9540. if (classCodeDefined(uiObj.ODOM)) oel = uiObj.ODOM;
  9541. if (classCodeDefined(uiObj.IDOM)) iel = uiObj.IDOM;
  9542. if (ote) {
  9543. var spanEl = document.createElement('span');
  9544. spanEl.innerHTML = ote;
  9545. spanEl.style.pointerEvents = 'none';
  9546. var oldSpans = oel.getElementsByTagName('span');
  9547. var bInserted = false;
  9548. for (var i = 0; i < oldSpans.length; i++) oel.removeChild(oldSpans[i]);
  9549. oel.insertBefore(spanEl, oel.firstChild)
  9550. }
  9551. if (oel && iel)
  9552. if (disc)
  9553. if (re)
  9554. els.push(oel, iel);
  9555. else
  9556. els.push(iel, oel);
  9557. else
  9558. els.push(oel);
  9559. else {
  9560. if (oel) els.push(oel);
  9561. if (iel) els.push(iel)
  9562. }
  9563. if (id) {
  9564. if (iel)
  9565. iel.id = id;
  9566. else if (oel)
  9567. oel.id = id;
  9568. uiObj.ID = id
  9569. }
  9570. if (name) uiObj.NAME = name;
  9571. if (iel) {
  9572. if (cli) iel.className = cli;
  9573. if (accK) iel.accessKey = accK;
  9574. if (classCodeDefined(ch)) iel.checked = ch;
  9575. iel.disabled = di;
  9576. if (classCodeDefined(ma)) iel.max = ma;
  9577. if (classCodeDefined(mal)) iel.maxLength = mal;
  9578. if (classCodeDefined(mi)) iel.min = mi;
  9579. if (plh) iel.placeholder = plh;
  9580. if (name) iel.name = name;
  9581. if (classCodeDefined(ro)) iel.readonly = ro;
  9582. if (classCodeDefined(step)) iel.step = step;
  9583. if (classCodeDefined(va)) iel.value = va;
  9584. if (classCodeDefined(oncl)) iel.onclick = oncl;
  9585. if (classCodeDefined(onch)) iel.onchange = onch;
  9586. if (classCodeDefined(onwa) && uiObj.WARNING) iel.onchange = onwa;
  9587. if (sti) iel.style.cssText = sti
  9588. }
  9589. if (oel) {
  9590. if (classCodeDefined(onclo)) oel.onclick = onclo;
  9591. if (sto) oel.style.cssText = sto
  9592. }
  9593. var fel = els[0];
  9594. if (fel) {
  9595. if (cl) fel.className = cl;
  9596. if (st) fel.style.cssText = st
  9597. } else
  9598. fel = parent;
  9599. var oldDef = deepCopy(_THUI.$def);
  9600. if (classCodeDefined(_cl)) _THUI.$def._class = _cl;
  9601. if (classCodeDefined(_disc)) _THUI.$def._disclose = _disc;
  9602. if (classCodeDefined(_name)) _THUI.$def._name = _name;
  9603. if (classCodeDefined(_di)) _THUI.$def._disabled = _di;
  9604. if (classCodeDefined(_no)) _THUI.$def._nodisplay = _no;
  9605. if (classCodeDefined(_re)) _THUI.$def._reverse = _re;
  9606. if (classCodeDefined(_st)) _THUI.$def._style = _st;
  9607. if (classCodeDefined(_ty)) _THUI.$def._type = _ty;
  9608. if (_oncl) _THUI.$def._onclick = _oncl;
  9609. if (_onch) _THUI.$def._onchange = _onch;
  9610. if (_onwa) _THUI.$def._onwarning = _onwa;
  9611. for (var i in uiObj) {
  9612. if (!uiObj.hasOwnProperty(i)) continue;
  9613. var o = uiObj[i];
  9614. switch (classCode(o)) {
  9615. case CC_OBJECT:
  9616. fel = _THUI.appendUI(fel, o, uiPrefix + uiName, i);
  9617. break;
  9618. case CC_ARRAY:
  9619. for (var j = 0; j < o.length; j++)
  9620. if (classCodeIs(o[j], CC_OBJECT)) fel = _THUI.appendUI(fel, o[j], uiPrefix + uiName, i);
  9621. break
  9622. }
  9623. }
  9624. _THUI.$def = oldDef;
  9625. els.forEach(function(e) {
  9626. if (no)
  9627. e.style.display = 'none';
  9628. else
  9629. e.style.display = '';
  9630. if (classCodeDefined(ti)) e.title = ti;
  9631. if (e !== uiObj.IDOM && e !== uiObj.ODOM) parent.appendChild(e)
  9632. });
  9633. uiObj.IDOM = iel;
  9634. uiObj.ODOM = oel;
  9635. Object.defineProperties(uiObj, {IDOM: {enumerable: false}, ODOM: {enumerable: false}});
  9636. return parent
  9637. };
  9638. })()