Changeset 9854 in osm


Ignore:
Timestamp:
2008-08-15T13:47:07+02:00 (16 years ago)
Author:
stoecker
Message:

finished TagChecker

Location:
applications/editors/josm/plugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/lang/de/de.po

    r9732 r9854  
    1212"Project-Id-Version: de\n"
    1313"Report-Msgid-Bugs-To: \n"
    14 "POT-Creation-Date: 2008-08-12 18:22+0200\n"
    15 "PO-Revision-Date: 2008-08-12 18:26+0200\n"
     14"POT-Creation-Date: 2008-08-15 13:29+0200\n"
     15"PO-Revision-Date: 2008-08-15 13:37+0200\n"
    1616"Last-Translator: Dirk Stöcker <lang@dstoecker.de>\n"
    1717"Language-Team: \n"
     
    353353#: ../colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java:93
    354354#: ../wmsplugin/src/wmsplugin/WMSPreferenceEditor.java:75
    355 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:508
     355#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:507
    356356msgid "Delete"
    357357msgstr "Löschen"
     
    410410
    411411#: ../../core/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java:77
    412 #: ../../core/src/org/openstreetmap/josm/Main.java:414
     412#: ../../core/src/org/openstreetmap/josm/Main.java:415
    413413msgid "Unsaved Changes"
    414414msgstr "Daten nicht gespeichert"
     
    484484#: ../../core/src/org/openstreetmap/josm/actions/HelpAction.java:105
    485485#: ../grid/src/grid/GridPlugin.java:43 ../grid/src/grid/GridPlugin.java:49
    486 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:477
     486#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:476
    487487msgid "Edit"
    488488msgstr "Bearbeiten"
     
    568568#: ../../core/src/org/openstreetmap/josm/gui/preferences/AdvancedPreference.java:116
    569569#: ../../core/src/org/openstreetmap/josm/gui/preferences/TaggingPresetPreference.java:65
    570 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:496
     570#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:495
    571571msgid "Please select the row to edit."
    572572msgstr "Bitte wählen sie eine Zeile zum Bearbeiten."
     
    576576#: ../../core/src/org/openstreetmap/josm/gui/preferences/TaggingPresetPreference.java:80
    577577#: ../wmsplugin/src/wmsplugin/WMSPreferenceEditor.java:80
    578 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:512
     578#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:511
    579579msgid "Please select the row to delete."
    580580msgstr "Bitte wählen Sie die zu löschende Zeile."
     
    588588#: ../colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java:79
    589589#: ../wmsplugin/src/wmsplugin/WMSPreferenceEditor.java:55
    590 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:467
     590#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:466
    591591msgid "Add"
    592592msgstr "Hinzufügen"
     
    16261626
    16271627#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:26
    1628 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:103
     1628#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:104
    16291629msgid "Only interesting direction hints (e.g. with oneway tag)."
    16301630msgstr "Nur interessante Richtungspfeile (z.B. bei Einbahnstraßen)."
     
    16421642msgstr "Zeichne inaktive Ebenen in anderer Farbe"
    16431643
    1644 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:43
     1644#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:30
     1645msgid "Smooth map graphics (antialiasing)"
     1646msgstr "Glätten der Kartengrafik (Anti-Aliasing)"
     1647
     1648#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:44
    16451649msgid ""
    16461650"If your gps device draw too few lines, select this to draw lines along your "
     
    16501654"werden um die Linien entlang des Weges zu vervollständigen."
    16511655
    1652 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:48
     1656#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:49
    16531657msgid "Maximum length (in meters) to draw lines. Set to '-1' to draw all lines."
    16541658msgstr "Maximallänge zum Linienzeichnen (in Meter). Für alle Linien auf -1 setzen."
    16551659
    1656 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:50
     1660#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:51
    16571661msgid "Maximum length (meters)"
    16581662msgstr "Maximallänge (Meter)"
    16591663
    1660 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:54
     1664#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:55
    16611665msgid "Force drawing of lines if the imported data contain no line information."
    16621666msgstr ""
     
    16641668"Informationen enthalten."
    16651669
    1666 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:65
     1670#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:66
    16671671msgid "Draw direction arrows for lines, connecting GPS points."
    16681672msgstr "Zeichne Richtunspfeile für Linien zwischen GPS-Punkten."
    16691673
    1670 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:71
     1674#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:72
    16711675msgid "Draw the direction arrows using table lookups instead of complex math."
    16721676msgstr ""
     
    16741678"Mathematik."
    16751679
    1676 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:78
     1680#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:79
    16771681msgid "Choose the hue for the track color by the velocity at that point."
    16781682msgstr "Farbton einer GPS-Spur abhängig von der Geschwindigkeit wählen."
    16791683
    1680 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:84
     1684#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:85
    16811685msgid "Draw larger dots for the GPS points."
    16821686msgstr "Zeichnet größere Punkte für GPS-Punkte."
    16831687
    1684 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:98
     1688#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:99
    16851689msgid "Draw direction hints for way segments."
    16861690msgstr "Zeichne Richtungspfeile für Abschnitte."
    16871691
    1688 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:109
     1692#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:110
    16891693msgid "Draw the order numbers of all segments within their way."
    16901694msgstr "Zeige die Ordnungsnummer für alle Abschnitte innerhalb des Weges."
    16911695
    1692 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:114
     1696#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:115
     1697msgid "Apply antialiasing to the map view resulting in a smoother appearance."
     1698msgstr "Anti-Aliasing in der kartenanzeige nutzen, um ein gefälligeres Aussehen zu erreichen."
     1699
     1700#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:120
    16931701msgid "Draw the boundaries of data loaded from the server."
    16941702msgstr "Grenze des vom OSM Server geladenen Bereichs anzeigen."
    16951703
    1696 #: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:119
     1704#: ../../core/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java:125
    16971705msgid "Draw the inactive data layers in a different color."
    16981706msgstr "Zeichne inaktive Datenebenen in einer anderen Farbe."
     
    19611969
    19621970#: ../../core/src/org/openstreetmap/josm/gui/preferences/TaggingPresetPreference.java:91
    1963 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:523
     1971#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:522
    19641972msgid "Delete the selected source from the list."
    19651973msgstr "Ausgewählte Quelle löschen."
     
    20182026msgstr "Drahtdarstellung"
    20192027
    2020 #: ../../core/src/org/openstreetmap/josm/gui/MapView.java:141
     2028#: ../../core/src/org/openstreetmap/josm/gui/MapView.java:143
    20212029#: ../../core/src/org/openstreetmap/josm/gui/MainApplication.java:168
    20222030msgid "Java OpenStreetMap - Editor"
    20232031msgstr "Java OpenStreetMap - Editor"
    20242032
    2025 #: ../../core/src/org/openstreetmap/josm/gui/MapView.java:190
     2033#: ../../core/src/org/openstreetmap/josm/gui/MapView.java:192
    20262034msgid "layer not in list."
    20272035msgstr "Ebene nicht in der Liste."
     
    23802388"information:</html>"
    23812389msgstr ""
    2382 "<html>Bitte melden Sie einen Fehler unter: {0}<br> "
    2383 "Fügen Sie eine (möglichst ausführliche) Beschreibung der zum Reproduzieren notwendigen Schritte bei.<br> "
    2384 "Stellen Sie sicher, dass folgende Informationen enthalten sind:</html>"
     2390"<html>Bitte melden Sie einen Fehler unter: {0}<br> Fügen Sie eine (möglichst "
     2391"ausführliche) Beschreibung der zum Reproduzieren notwendigen Schritte bei."
     2392"<br> Stellen Sie sicher, dass folgende Informationen enthalten sind:</html>"
    23852393
    23862394#: ../../core/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java:133
     
    24282436"EPSG:4263."
    24292437
    2430 #: ../../core/src/org/openstreetmap/josm/Main.java:411
     2438#: ../../core/src/org/openstreetmap/josm/Main.java:412
    24312439msgid "Hint: Some changes came from uploading new data to the server."
    24322440msgstr "Hinweis: Einige Änderungen sind durch das Übertragen zum Server enstanden."
    24332441
    2434 #: ../../core/src/org/openstreetmap/josm/Main.java:413
     2442#: ../../core/src/org/openstreetmap/josm/Main.java:414
    24352443msgid "There are unsaved changes. Discard the changes and continue?"
    24362444msgstr "Es gibt ungesicherte Daten. Änderungen verwerfen und wirklich beenden?"
    24372445
    2438 #: ../../core/src/org/openstreetmap/josm/Main.java:426
     2446#: ../../core/src/org/openstreetmap/josm/Main.java:427
    24392447#, java-format
    24402448msgid "Ignoring malformed url: \"{0}\""
    24412449msgstr "Ingnoriere die ungültige URL: \"{0}\""
    24422450
    2443 #: ../../core/src/org/openstreetmap/josm/Main.java:439
     2451#: ../../core/src/org/openstreetmap/josm/Main.java:440
    24442452#, java-format
    24452453msgid "Ignoring malformed file url: \"{0}\""
     
    35913599msgstr "Raster Ebene:"
    35923600
    3593 #: ../lang/validator.java:28
     3601#: ../lang/validator.java:38
    35943602msgid "oneway tag on a node"
    35953603msgstr "Einbahnschlüssel auf einem Knoten"
    35963604
    3597 #: ../lang/validator.java:29 ../lang/validator.java:30
     3605#: ../lang/validator.java:39
     3606msgid "bridge tag on a node"
     3607msgstr "Brückenschlüssel auf einem Knoten"
     3608
     3609#: ../lang/validator.java:40 ../lang/validator.java:41
     3610#: ../lang/validator.java:42 ../lang/validator.java:43
     3611#: ../lang/validator.java:44
    35983612msgid "wrong highway tag on a node"
    35993613msgstr "Falscher Straßenschlüssel auf einem Knoten"
    36003614
    3601 #: ../lang/validator.java:31 ../lang/validator.java:32
     3615#: ../lang/validator.java:45 ../lang/validator.java:46
    36023616msgid "highway without a reference"
    36033617msgstr "Straße ohne Referenznummer"
     3618
     3619#: ../lang/validator.java:47
     3620msgid "misspelled key name"
     3621msgstr "Falschgeschriebener Schlüssel: name"
    36043622
    36053623#: ../lang/presets.java:11
     
    70457063msgstr "Ähnlich benannte Wege"
    70467064
    7047 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:130
     7065#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:135
    70487066msgid "Properties checker :"
    70497067msgstr "Eigenschaftsprüfer:"
    70507068
    7051 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:131
     7069#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:136
    70527070msgid "This plugin checks for errors in property keys and values."
    70537071msgstr "Dieses Plugin prüft auf Fehler in Schlüsseln und Werten"
    70547072
    7055 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:225
     7073#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:207
     7074#, java-format
     7075msgid "Invalid tagchecker line - {0}: {1}"
     7076msgstr "Ungültige Schlüsselprüferzeile - {0}: {1}"
     7077
     7078#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:220
     7079#, java-format
     7080msgid "Invalid spellcheck line: {0}"
     7081msgstr "Ungülte Rechtschreibprüferzeile: {0}"
     7082
     7083#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:227
    70567084#, java-format
    70577085msgid ""
     
    70627090"{0}"
    70637091
    7064 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:278
     7092#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:280
    70657093msgid "Illegal tag/value combinations"
    70667094msgstr "Ungültige Schlüssel/Wert-Kombinationen"
    70677095
    7068 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:293
     7096#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:295
    70697097msgid "Tags with empty values"
    70707098msgstr "Tags mit leerem Wert"
    70717099
    7072 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:294
    7073 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:300
    7074 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:306
    7075 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:312
    7076 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:321
     7100#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:296
     7101#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:302
     7102#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:308
     7103#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:314
     7104#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:323
    70777105#, java-format
    70787106msgid "Key ''{0}'' invalid."
    70797107msgstr "Schlüssel \"{0}\" ungültig."
    70807108
    7081 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:299
     7109#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:301
    70827110msgid "Invalid property key"
    70837111msgstr "Ungültiger Schlüssel"
    70847112
    7085 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:305
     7113#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:307
    70867114msgid "Invalid white space in property key"
    70877115msgstr "Ungültiger Leerraum in Schlüssel"
    70887116
    7089 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:311
     7117#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:313
    70907118msgid "Property values start or end with white space"
    70917119msgstr "Werte beginnen oder enden mit Leerraum"
    70927120
    7093 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:320
     7121#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:322
    70947122msgid "Unknown property values"
    70957123msgstr "Unbekannter Werte"
    70967124
    7097 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:330
     7125#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:332
    70987126msgid "FIXMES"
    70997127msgstr "FIXMEs"
     
    71157143msgstr "Prüft die Gültigkeit von Werten und Schlüsseln anhand von komplexen Regeln."
    71167144
    7117 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:470
    7118 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:490
    7119 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:500
     7145#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:469
     7146#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:489
     7147#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:499
    71207148msgid "TagChecker source"
    71217149msgstr "Schlüsselprüferdatenquellen"
    71227150
    7123 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:520
     7151#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:519
    71247152msgid ""
    71257153"The sources (url or filename) of spell check (see http://wiki.openstreetmap."
     
    71297157"openstreetmap.org/index.php/User:JLS/speller) oder Schlüsselprüfung."
    71307158
    7131 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:521
     7159#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:520
    71327160msgid "Add a new source to the list."
    71337161msgstr "Eine neue Quelle zur Liste hinzufügen."
    71347162
    7135 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:522
     7163#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:521
    71367164msgid "Edit the selected source."
    71377165msgstr "Ausgewählte Quelle bearbeiten."
    71387166
    7139 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:525
     7167#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:524
    71407168msgid "Data sources"
    71417169msgstr "Datenquellen"
    71427170
    7143 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:545
     7171#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:544
    71447172msgid "Check property values."
    71457173msgstr "Werte überprüfen."
    71467174
    7147 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:546
     7175#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:545
    71487176msgid "Validate that property values are valid checking against presets."
    71497177msgstr "Prüft die Gültigkeit von Werten anhand von Presets."
    71507178
    7151 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:553
     7179#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:552
    71527180msgid "Check for FIXMES."
    71537181msgstr "Prüfe auf FIXMEs"
    71547182
    7155 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:554
     7183#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:553
    71567184msgid "Looks for nodes or ways with FIXME in any property value."
    71577185msgstr ""
     
    71597187"haben."
    71607188
    7161 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:561
     7189#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:560
    71627190msgid "Use default data file."
    71637191msgstr "Standarddatendatei nutzen."
    71647192
    7165 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:562
     7193#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:561
    71667194msgid "Use the default data file (recommended)."
    71677195msgstr "Nutzung der Standarddatendatei (empfohlen)."
    71687196
    7169 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:565
     7197#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:564
    71707198msgid "Use default spellcheck file."
    71717199msgstr "Standarddatei für Schreibprüfung nutzen."
    71727200
    7173 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:566
     7201#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:565
    71747202msgid "Use the default spellcheck file (recommended)."
    71757203msgstr "Nutzung der Standarddatei für die Schreibfehlerprüfung (empfohlen)."
    71767204
    7177 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:648
     7205#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:647
    71787206msgid "Fix properties"
    71797207msgstr "Eigenschaften korrigieren"
    71807208
    7181 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:29
     7209#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:756
     7210msgid "Could not find element type"
     7211msgstr "Konnte Elementtyp nicht finden"
     7212
     7213#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:773
     7214msgid "Could not find warning level"
     7215msgstr "Konnte Warnlevel nicht finden"
     7216
     7217#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:782
     7218#, java-format
     7219msgid "Illegal expression ''{0}''"
     7220msgstr "Ungültiger Ausdruck \"{0}\""
     7221
     7222#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java:786
     7223#, java-format
     7224msgid "Illegal regular expression ''{0}''"
     7225msgstr "Ungültiger regulärer Ausdruck \"{0}\""
     7226
     7227#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:30
    71827228msgid "Unclosed Ways."
    71837229msgstr "Nicht geschlossene Wege."
    71847230
    7185 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:30
     7231#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:31
    71867232msgid "This tests if ways which should be circular are closed."
    71877233msgstr "Testen ob zu schließende Wege korrekt geschlossen sind."
    71887234
    7189 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:60
     7235#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:61
    71907236#, java-format
    71917237msgid "natural type {0}"
    71927238msgstr "Naturflächentyp {0}"
    71937239
    7194 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:67
     7240#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:68
    71957241#, java-format
    71967242msgid "landuse type {0}"
    71977243msgstr "Landnutzungstyp {0}"
    71987244
    7199 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:74
     7245#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:75
    72007246#, java-format
    72017247msgid "amenities type {0}"
    72027248msgstr "Einrichtungstyp {0}"
    72037249
    7204 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:81
     7250#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:82
    72057251#, java-format
    72067252msgid "sport type {0}"
    72077253msgstr "Sportart {0}"
    72087254
    7209 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:88
     7255#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:89
    72107256#, java-format
    72117257msgid "tourism type {0}"
    72127258msgstr "Tourismustyp {0}"
    72137259
    7214 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:95
     7260#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:96
    72157261#, java-format
    72167262msgid "shop type {0}"
    72177263msgstr "Geschäftstyp {0}"
    72187264
    7219 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:102
     7265#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:103
    72207266#, java-format
    72217267msgid "leisure type {0}"
    72227268msgstr "Erholungstyp {0}"
    72237269
    7224 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:109
     7270#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:110
    72257271#, java-format
    72267272msgid "waterway type {0}"
    72277273msgstr "Wasserstraßentyp {0}"
    72287274
    7229 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:116
     7275#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:117
    72307276msgid "building"
    72317277msgstr "Gebäude"
    72327278
    7233 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:123
     7279#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:124
    72347280msgid "area"
    72357281msgstr "Fläche"
    72367282
    7237 #: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:136
     7283#: ../validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java:137
    72387284msgid "Unclosed way"
    72397285msgstr "Nicht geschlossener Weg"
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java

    r9755 r9854  
    4242import org.openstreetmap.josm.data.osm.Node;
    4343import org.openstreetmap.josm.data.osm.OsmPrimitive;
     44import org.openstreetmap.josm.data.osm.OsmUtils;
     45import org.openstreetmap.josm.data.osm.Relation;
    4446import org.openstreetmap.josm.data.osm.Way;
    4547import org.openstreetmap.josm.gui.preferences.TaggingPresetPreference;
     
    121123        protected static int INVALID_SPACE     = 1204;
    122124        protected static int INVALID_KEY_SPACE = 1205;
    123         protected static int TAG_CHECK         = 1206;
     125        /** 1250 and up is used by tagcheck */
    124126
    125127        /** List of sources for spellcheck data */
     
    276278                                if(d.match(p))
    277279                                {
    278                                         errors.add( new TestError(this, Severity.WARNING, tr("Illegal tag/value combinations"),
    279                                         d.getDescription(), TAG_CHECK, p) );
     280                                        errors.add( new TestError(this, d.getSeverity(), tr("Illegal tag/value combinations"),
     281                                        d.getDescription(), d.getCode(), p) );
    280282                                        withErrors.add(p, "TC");
    281283                                        break;
     
    662664                private List<CheckerElement> data = new ArrayList<CheckerElement>();
    663665                private Integer type = 0;
     666                private Integer code;
     667                protected Severity severity;
    664668                protected static int NODE = 1;
    665669                protected static int WAY = 2;
    666                 protected static int ALL = 3;
     670                protected static int RELATION = 3;
     671                protected static int ALL = 4;
     672                protected static int TAG_CHECK_ERROR  = 1250;
     673                protected static int TAG_CHECK_WARN   = 1260;
     674                protected static int TAG_CHECK_INFO   = 1270;
    667675
    668676                private class CheckerElement {
     
    672680                        public Boolean tagAll = false;
    673681                        public Boolean valueAll = false;
     682                        public Boolean valueBool = false;
    674683                        private Pattern getPattern(String str) throws IllegalStateException, PatternSyntaxException
    675684                        {
     
    694703                                if(n.equals("*"))
    695704                                        valueAll = true;
     705                                else if(n.equals("BOOLEAN_TRUE"))
     706                                {
     707                                        valueBool = true;
     708                                        value = OsmUtils.trueval;
     709                                }
     710                                else if(n.equals("BOOLEAN_FALSE"))
     711                                {
     712                                        valueBool = true;
     713                                        value = OsmUtils.falseval;
     714                                }
    696715                                else
    697716                                        value = n.startsWith("/") ? getPattern(n) : n;
    698717                        }
    699                         public Boolean match(String key, String val)
    700                         {
    701                                 Boolean tagtrue = tagAll || (tag instanceof Pattern ? ((Pattern)tag).matcher(key).matches() : key.equals(tag));
    702                                 Boolean valtrue = valueAll || (value instanceof Pattern ? ((Pattern)value).matcher(val).matches() : val.equals(value));
    703                                 return tagtrue && (noMatch ? !valtrue : valtrue);
     718                        public Boolean match(OsmPrimitive osm)
     719                        {
     720                                for(Entry<String, String> prop: osm.keys.entrySet())
     721                                {
     722                                        String key = prop.getKey();
     723                                        String val = valueBool ? OsmUtils.getNamedOsmBoolean(prop.getValue()) : prop.getValue();
     724                                        if((tagAll || (tag instanceof Pattern ? ((Pattern)tag).matcher(key).matches() : key.equals(tag)))
     725                                        && (valueAll || (value instanceof Pattern ? ((Pattern)value).matcher(val).matches() : val.equals(value))))
     726                                                return !noMatch;
     727                                }
     728                                return noMatch;
    704729                        }
    705730                };
     
    719744                                description = null;
    720745                        }
    721                         String[] n = str.split(" *: *", 2);
     746                        String[] n = str.split(" *: *", 3);
    722747                        if(n[0].equals("way"))
    723748                                type = WAY;
    724749                        else if(n[0].equals("node"))
    725750                                type = NODE;
     751                        else if(n[0].equals("relation"))
     752                                type = RELATION;
    726753                        else if(n[0].equals("*"))
    727754                                type = ALL;
    728                         if(type == 0 || n.length != 2)
     755                        if(type == 0 || n.length != 3)
    729756                                return tr("Could not find element type");
    730                         for(String exp: n[1].split(" *&& *"))
     757                        if(n[1].equals("W"))
     758                        {
     759                                severity = Severity.WARNING;
     760                                code = TAG_CHECK_WARN;
     761                        }
     762                        else if(n[1].equals("E"))
     763                        {
     764                                severity = Severity.ERROR;
     765                                code = TAG_CHECK_ERROR;
     766                        }
     767                        else if(n[1].equals("I"))
     768                        {
     769                                severity = Severity.OTHER;
     770                                code = TAG_CHECK_INFO;
     771                        }
     772                        else
     773                                return tr("Could not find warning level");
     774                        for(String exp: n[2].split(" *&& *"))
    731775                        {
    732776                                try
     
    747791                public Boolean match(OsmPrimitive osm)
    748792                {
    749                         if(osm.keys == null)
     793                        if(osm.keys == null || (type == NODE && !(osm instanceof Node))
     794                        || (type == RELATION && !(osm instanceof Relation)) || (type == WAY && !(osm instanceof Way)))
    750795                                return false;
    751796                        for(CheckerElement ce : data)
    752797                        {
    753                                 Boolean result = false;
    754                                 for(Entry<String, String> prop: osm.keys.entrySet())
    755                                 {
    756                                         if(result = ce.match(prop.getKey(), prop.getValue()))
    757                                                 break;
    758                                 }
    759                                 if(!result)
     798                                if(!ce.match(osm))
    760799                                        return false;
    761800                        }
     
    766805                        return tr(description);
    767806                }
     807                public Severity getSeverity()
     808                {
     809                        return severity;
     810                }
     811                public int getCode()
     812                {
     813                        return code + type;
     814                }
    768815        }
    769816}
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java

    r9684 r9854  
    77import org.openstreetmap.josm.data.osm.OsmPrimitive;
    88import org.openstreetmap.josm.data.osm.Way;
     9import org.openstreetmap.josm.data.osm.OsmUtils;
    910import org.openstreetmap.josm.data.coor.LatLon;
    1011import org.openstreetmap.josm.plugins.validator.Severity;
     
    110111                        mode = 1108;
    111112                }
    112                 test = w.get("building");
    113                 if (test != null && ("true".equalsIgnoreCase(test) || "yes".equalsIgnoreCase(test) || "1".equals(test)))
     113                Boolean btest = OsmUtils.getOsmBoolean(w.get("building"));
     114                if (btest != null && btest)
    114115                {
    115116                        force = true;
     
    117118                        mode = 1120;
    118119                }
    119                 test = w.get("area");
    120                 if (test != null && ("true".equalsIgnoreCase(test) || "yes".equalsIgnoreCase(test) || "1".equals(test)))
     120                btest = OsmUtils.getOsmBoolean(w.get("area"));
     121                if (btest != null && btest)
    121122                {
    122123                        force = true;
  • applications/editors/josm/plugins/validator/tagchecker.cfg

    r9745 r9854  
    33# format:
    44# each line specifies a certain error to be reported
    5 # <data type>: <key><expression><value>
     5# <data type> : messagetype : <key><expression><value>
    66#
    77# data type can be:
     
    1111#  *           - all data types
    1212#
     13# message type can be:
     14# E            - an error
     15# W            - a warning
     16# I            - an low priority informational warning
     17#
    1318# key and value are expressions describing certain keys and values of these keys
    1419# regulator expressions are supported. In this case the expressions starts and
    15 # ends with // signs. The * sign indicates any string.
     20# ends with // signs. If an i is appended, the regular expression is
     21# case insensitive.
    1622#
    17 # expression can be:
     23# The * sign indicates any string.
     24# The texts BOOLEAN_TRUE and BOOLEAN_FALSE in the value part indicate a special
     25# handling for boolean values (yes, true, 0, false, no, ...).
     26#
     27# Expression can be:
    1828#  !=          - the key/value combination does not match
    1929#  ==          - the key/value combination does match
     
    2636# Empty lines and space signs are ignored
    2737
    28 node : oneway == *                                         # oneway tag on a node
    29 node : highway == tertiary                                 # wrong highway tag on a node
    30 node : highway == secondary                                # wrong highway tag on a node
    31 way  : highway == secondary && ref != *                    # highway without a reference
    32 way  : highway == tertiary && ref != *                     # highway without a reference
    33 *    : / *name */i == * && name != *                       # misspelled key
     38node : W : oneway == *                                         # oneway tag on a node
     39node : W : bridge == BOOLEAN_TRUE                              # bridge tag on a node
     40node : W : highway == tertiary                                 # wrong highway tag on a node
     41node : W : highway == secondary                                # wrong highway tag on a node
     42node : W : highway == residential                              # wrong highway tag on a node
     43node : W : highway == unclassified                             # wrong highway tag on a node
     44node : W : highway == track                                    # wrong highway tag on a node
     45way  : I : highway == secondary && ref != *                    # highway without a reference
     46way  : I : highway == tertiary && ref != *                     # highway without a reference
     47*    : W : / *name */i == * && name != *                       # misspelled key name
Note: See TracChangeset for help on using the changeset viewer.