﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
18360	validator : wikipedia language code are not up to date	pyrog	Don-vip	"Hi,

The static list of language code is different from the wikimedia commons api (that list effective wiki sites and their languages).

The wikipedia.mapcss allow 127 languages that don't have yet wikipedia website.
And 8 languages are missing.

==== What steps will reproduce the problem?
1. add the following tag: {{{wikipedia=sje:Dummy}}}

2. press the validation button

==== What is the expected result?
Got this warning ""la clé wikipedia contient un préfixe de langue inconnu""
(And this is an error as the wiki website couldn't be reached)

==== What happens instead?
No warning/error messages are displayed by the validator.
When opening the link (with tag2link plugin), the web browser can't open https://sje.wikipedia.org/wiki/Dummy

It the Wikipedia plugin is installed, it display this error : ""[Wiki] Unknown Wikipedia language prefix 'sje'!""

==== Please provide any additional information below. Attach a screenshot if possible.

https://josm.openstreetmap.de/browser/josm/trunk/data/validator/wikipedia.mapcss#L13

For information, the wikipedia plugin download dynamically the uptodate list of wikipedia languages.
https://gitlab.com/JOSM/plugin/wikipedia/blob/master/src/main/java/org/wikipedia/WikipediaApp.java#L58
https://gitlab.com/JOSM/plugin/wikipedia/blob/master/src/main/java/org/wikipedia/validator/WikipediaValueFormat.java#L97

BR,
Yves

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-11-24 21:23:35 +0100 (Sun, 24 Nov 2019)
Build-Date:2019-11-25 02:31:03
Revision:15541
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15541 fr) Mac OS X 10.14.6
OS Build number: Mac OS X 10.14.6 (18G95)
Memory Usage: 596 MB / 1820 MB (126 MB allocated, but free)
Java version: 1.8.0_231-b11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: Display 69732928 1280x800
Maximum Screen Size: 1280x800
VM arguments: [-Djava.security.policy=file:<java.home>/lib/security/javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>/bin, -Djava.security.manager, -Djnlpx.origFilenameArg=${HOME}/Library/Application Support/Oracle/Java/Deployment/cache/6.0/31/583aa85f-4a297e61, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Dmacosx.jnlpx.dock.name=JOSM (development version), -Dmacosx.jnlpx.dock.icon=${HOME}/Library/Application Support/Oracle/Java/Deployment/cache/6.0/25/4c122699-72a21903.icns, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm-latest.jnlp , -Djnlpx.jvm=""<java.home>/bin/java""]
Dataset consistency test: No problems found

Plugins:
+ CADTools (1008)
+ PicLayer (35104)
+ SeaMapEditor (34908)
+ apache-commons (35092)
+ apache-http (34908)
+ cadastre-fr (35194)
+ ejml (35122)
+ geotools (35169)
+ jaxb (35014)
+ jna (34908)
+ jts (35122)
+ opendata (35179)
+ reverter (35226)
+ tag2link (35149)
+ utilsplugin2 (35230)
+ wikipedia (1.1.3)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/Towers&zip=1
+ https://raw.githubusercontent.com/OpenNauticalChart/josm/master/INT-1-preset.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/Telecom&zip=1

Validator rules:
+ https://github.com/Jungle-Bus/transport_mapcss/raw/gh-pages/transport.validator.zip
+ ${HOME}/Downloads/Rules_Pictures.validator.mapcss

Last errors/warnings:
- W: Identifiant de territoire inconnu: JA
- W: Identifiant de territoire inconnu: JA
- W: Identifiant de territoire inconnu: JA
- W: Identifiant de territoire inconnu: JA
- W: Identifiant de territoire inconnu: JA
- W: Identifiant de territoire inconnu: JA
- W: java.net.SocketTimeoutException: connect timed out
- W: Already here java.net.SocketException: Network is unreachable (connect failed)
- E: java.net.SocketTimeoutException: connect timed out
- W: org.openstreetmap.josm.io.OsmTransferException: Impossible de joindre le serveur. Veuillez vérifier votre connexion Internet.. Cause : java.net.SocketTimeoutException: connect timed out
}}}
"	defect	closed	normal	19.11	Core validator		fixed	template_report wikipedia	
