Ticket #17526: SearchDialog-added-Context.patch
File SearchDialog-added-Context.patch, 4.1 KB (added by , 5 years ago) |
---|
-
.java
==================================================================
old new 2 2 package org.openstreetmap.josm.gui.dialogs; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 import static org.openstreetmap.josm.tools.I18n.trc; 5 6 6 7 import java.awt.Cursor; 7 8 import java.awt.Dimension; … … 275 276 .addKeyword(tr("Baker Street"), null, tr("''Baker'' and ''Street'' in any key")) 276 277 .addKeyword(tr("\"Baker Street\""), "\"\"", tr("''Baker Street'' in any key")) 277 278 .addKeyword("<i>key</i>:<i>valuefragment</i>", null, 278 tr("''valuefragment'' anywhere in ''key''"), tr("name:str matches name=Bakerstreet")) 279 tr("''valuefragment'' anywhere in ''key''"), 280 trc("search string example", "name:str matches name=Bakerstreet")) 279 281 .addKeyword("-<i>key</i>:<i>valuefragment</i>", null, tr("''valuefragment'' nowhere in ''key''")), 280 282 GBC.eol()); 281 283 hintPanel.add(new SearchKeywordRow(hcbSearchString) … … 288 290 .addKeyword("\"key\"=\"value\"", "\"\"=\"\"", 289 291 tr("to quote operators.<br>Within quoted strings the <b>\"</b> and <b>\\</b> characters need to be escaped " + 290 292 "by a preceding <b>\\</b> (e.g. <b>\\\"</b> and <b>\\\\</b>)."), 291 tr ("name=\"Baker Street\""),293 trc("search string example", "name=\"Baker Street\""), 292 294 "\"addr:street\""), 293 295 GBC.eol().anchor(GBC.CENTER)); 294 296 hintPanel.add(new SearchKeywordRow(hcbSearchString) 295 297 .addTitle(tr("combinators")) 296 298 .addKeyword("<i>expr</i> <i>expr</i>", null, 297 299 tr("logical and (both expressions have to be satisfied)"), 298 tr ("Baker Street"))300 trc("search string example", "Baker Street")) 299 301 .addKeyword("<i>expr</i> | <i>expr</i>", "| ", tr("logical or (at least one expression has to be satisfied)")) 300 302 .addKeyword("<i>expr</i> OR <i>expr</i>", "OR ", tr("logical or (at least one expression has to be satisfied)")) 301 303 .addKeyword("-<i>expr</i>", null, tr("logical not")) … … 319 321 GBC.eol().anchor(GBC.CENTER)); 320 322 hintPanel.add(new SearchKeywordRow(hcbSearchString) 321 323 .addTitle(tr("metadata")) 322 .addKeyword("user:", "user:", tr("objects changed by user"), tr("user:anonymous")) 323 .addKeyword("id:", "id:", tr("objects with given ID"), tr("id:0 (new objects)")) 324 .addKeyword("version:", "version:", tr("objects with given version"), tr("version:0 (objects without an assigned version)")) 324 .addKeyword("user:", "user:", tr("objects changed by author"), 325 trc("search string example", "user:<i>OSM username</i> (objects with the author <i>OSM username</i>)"), 326 trc("search string example", "user:anonymous (objects without an assigned author)")) 327 .addKeyword("id:", "id:", tr("objects with given ID"), 328 trc("search string example", "id:0 (new objects)")) 329 .addKeyword("version:", "version:", tr("objects with given version"), 330 trc("search string example", "version:0 (objects without an assigned version)")) 325 331 .addKeyword("changeset:", "changeset:", tr("objects with given changeset ID"), 326 tr ("changeset:0 (objects without an assigned changeset)"))332 trc("search string example", "changeset:0 (objects without an assigned changeset)")) 327 333 .addKeyword("timestamp:", "timestamp:", tr("objects with last modification timestamp within range"), "timestamp:2012/", 328 334 "timestamp:2008/2011-02-04T12"), 329 335 GBC.eol());