Ticket #17526: 17526patch.diff

File 17526patch.diff, 4.9 KB (added by Hb---, 6 years ago)

untested patch

  • .java

    SearchAction.java
    =================
    old new  
    304304        JCheckBox allElements = new JCheckBox(tr("all objects"), initialValues.allElements);
    305305        allElements.setToolTipText(tr("Also include incomplete and deleted objects in search."));
    306306        JCheckBox addOnToolbar = new JCheckBox(tr("add toolbar button"), false);
     307        addOnToolbar.setToolTipText(tr("Add a button with this search expression to the toolbar."));
    307308
    308309        JRadioButton standardSearch = new JRadioButton(tr("standard"), !initialValues.regexSearch && !initialValues.mapCSSSearch);
    309310        JRadioButton regexSearch = new JRadioButton(tr("regular expression"), initialValues.regexSearch);
     
    321322        selectionSettings.add(inSelection, GBC.eop());
    322323
    323324        JPanel additionalSettings = new JPanel(new GridBagLayout());
    324         additionalSettings.setBorder(BorderFactory.createTitledBorder(tr("Additional settings")));
     325        additionalSettings.setBorder(BorderFactory.createTitledBorder(tr("Options")));
    325326        additionalSettings.add(caseSensitive, GBC.eol().anchor(GBC.WEST).fill(GBC.HORIZONTAL));
    326327
    327328        JPanel left = new JPanel(new GridBagLayout());
     
    471472
    472473    private static JPanel buildHintsSection(HistoryComboBox hcbSearchString) {
    473474        JPanel hintPanel = new JPanel(new GridBagLayout());
    474         hintPanel.setBorder(BorderFactory.createTitledBorder(tr("Search hints")));
     475        hintPanel.setBorder(BorderFactory.createTitledBorder(tr("Hints")));
    475476
    476477        hintPanel.add(new SearchKeywordRow(hcbSearchString)
    477478                .addTitle(tr("basics"))
    478479                .addKeyword(tr("Baker Street"), null, tr("''Baker'' and ''Street'' in any key"))
    479480                .addKeyword(tr("\"Baker Street\""), "\"\"", tr("''Baker Street'' in any key"))
    480481                .addKeyword("<i>key</i>:<i>valuefragment</i>", null,
    481                         tr("''valuefragment'' anywhere in ''key''"), "name:str matches name=Bakerstreet")
     482                        tr("''valuefragment'' anywhere in ''key''"), tr("name:str matches name=Bakerstreet"))
    482483                .addKeyword("-<i>key</i>:<i>valuefragment</i>", null, tr("''valuefragment'' nowhere in ''key''")),
    483484                GBC.eol());
    484485        hintPanel.add(new SearchKeywordRow(hcbSearchString)
     
    491492                .addKeyword("\"key\"=\"value\"", "\"\"=\"\"",
    492493                        tr("to quote operators.<br>Within quoted strings the <b>\"</b> and <b>\\</b> characters need to be escaped " +
    493494                                "by a preceding <b>\\</b> (e.g. <b>\\\"</b> and <b>\\\\</b>)."),
     495                        tr("\"Baker Street\""),
    494496                        "\"addr:street\""),
    495497                GBC.eol().anchor(GBC.CENTER));
    496498        hintPanel.add(new SearchKeywordRow(hcbSearchString)
    497499                .addTitle(tr("combinators"))
    498                 .addKeyword("<i>expr</i> <i>expr</i>", null, tr("logical and (both expressions have to be satisfied)"))
     500                .addKeyword("<i>expr</i> <i>expr</i>", null, tr("logical and (both expressions have to be satisfied)"),
     501                        tr("Baker Street"))
    499502                .addKeyword("<i>expr</i> | <i>expr</i>", "| ", tr("logical or (at least one expression has to be satisfied)"))
    500503                .addKeyword("<i>expr</i> OR <i>expr</i>", "OR ", tr("logical or (at least one expression has to be satisfied)"))
    501504                .addKeyword("-<i>expr</i>", null, tr("logical not"))
     
    519522                    GBC.eol().anchor(GBC.CENTER));
    520523            hintPanel.add(new SearchKeywordRow(hcbSearchString)
    521524                .addTitle(tr("metadata"))
    522                 .addKeyword("user:", "user:", tr("objects changed by user", "user:anonymous"))
    523                 .addKeyword("id:", "id:", tr("objects with given ID"), "id:0 (new objects)")
    524                 .addKeyword("version:", "version:", tr("objects with given version"), "version:0 (objects without an assigned version)")
     525                .addKeyword("user:", "user:", tr("objects changed by user"), tr("user:anonymous"))
     526                .addKeyword("id:", "id:", tr("objects with given ID"), tr("id:0 (new objects)"))
     527                .addKeyword("version:", "version:", tr("objects with given version"), tr("version:0 (objects without an assigned version)"))
    525528                .addKeyword("changeset:", "changeset:", tr("objects with given changeset ID"),
    526                         "changeset:0 (objects without an assigned changeset)")
     529                        tr("changeset:0 (objects without an assigned changeset)"))
    527530                .addKeyword("timestamp:", "timestamp:", tr("objects with last modification timestamp within range"), "timestamp:2012/",
    528531                        "timestamp:2008/2011-02-04T12"),
    529532                GBC.eol());