Skip to content

Commit 8130906

Browse files
committed
Update link target to Lucene 5.5 query syntax, moving the link to the page.
Update the link target to the query parser syntax page of the 5.5 version. Refactor the `LuceneSearchPage` to use an `ExternalLink` for the link to the lucene page, so that the link target is kept and updated in the Java code. Move the link out of the language files. This was way too cumbersome to update the link target (which is probably why no one ever did). The query help text is changed to contain a variable: `gb.queryHelp = here be some ${querySyntax} help`, which is replaced by Wicket with a link. The link text is a new lange file property: `gb.querySyntax`.
1 parent 9c2ddff commit 8130906

16 files changed

+139
-119
lines changed

src/main/java/com/gitblit/wicket/GitBlitWebApp.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ gb.pages = pages
218218
gb.workingCopy = working copy
219219
gb.workingCopyWarning = this repository has a working copy and can not receive pushes
220220
gb.query = query
221-
gb.queryHelp = Standard query syntax is supported.<p/><p/>Please see <a target="_new" href="http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/queryparsersyntax.html">Lucene Query Parser Syntax</a> for details.
221+
gb.queryHelp = Standard query syntax is supported.<p/><p/>Please see ${querySyntax} for details.
222+
gb.querySyntax = Lucene Query Parser Syntax
222223
gb.queryResults = results {0} - {1} ({2} hits)
223224
gb.noHits = no hits
224225
gb.authored = authored

src/main/java/com/gitblit/wicket/GitBlitWebApp_cs.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,8 @@ gb.transportPreferenceDescription=Vyberte transport, kter\u00fd preferujete pro
773773
gb.sortHighestSeverity=nejvy\u0161\u0161\u00ed z\u00e1va\u017enost
774774
gb.diffFileDiffTooLarge=Rozd\u00edl je p\u0159\u00edli\u0161 velk\u00fd
775775
gb.missingIntegrationBranchMore=C\u00edlov\u00e1 integra\u010dn\u00ed v\u011btev v repozit\u00e1\u0159i neexistuje!
776-
gb.queryHelp=Standardn\u00ed syntaxe dotaz\u016f je podporov\u00e1na.<p/><p/>Pod\u00edvejte se pros\u00edm na <a target="_new" href="http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/queryparsersyntax.html">Lucene Query Parser Syntax</a> pro detaily.
776+
gb.queryHelp=Standardn\u00ed syntaxe dotaz\u016f je podporov\u00e1na.<p/><p/>Pod\u00edvejte se pros\u00edm na ${querySyntax} pro detaily.
777+
gb.querySyntax=Lucene Query Parser Syntax
777778
gb.diffTruncated=Diff o\u0159iznut po p\u0159edchoz\u00edm souboru
778779
gb.blame=blame
779780
gb.imgdiffSubtract=Od\u010d\u00edtat (\u010dern\u00e1 = stejn\u00e9l)

src/main/java/com/gitblit/wicket/GitBlitWebApp_de.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ gb.pages = Seiten
218218
gb.workingCopy = Arbeitskopie
219219
gb.workingCopyWarning = Dieses Repository besitzt eine Arbeitskopie und kann keine Pushes empfangen
220220
gb.query = Abfrage
221-
gb.queryHelp = Standard Abfragesyntax wird unterst\u00fctzt.<p/><p/>Unter <a target="_new" href="http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/queryparsersyntax.html">Lucene Query Parser Syntax</a> finden Sie weitere Details.
221+
gb.queryHelp = Standard Abfragesyntax wird unterst\u00fctzt.<p/><p/>Unter ${querySyntax} finden Sie weitere Details.
222+
gb.querySyntax = Lucene Query Parser Syntax
222223
gb.queryResults = Ergebnisse {0} - {1} ({2} Treffer)
223224
gb.noHits = Keine Treffer
224225
gb.authored = ist Autor von

src/main/java/com/gitblit/wicket/GitBlitWebApp_es.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ gb.pages = P\u00E1ginas
218218
gb.workingCopy = Copia de trabajo
219219
gb.workingCopyWarning = Este repositorio tiene una copia de trabajo y no se le puede empujar
220220
gb.query = Consulta
221-
gb.queryHelp = Se admite la sintaxis de consulta est\u00E1ndar.<p/>Por favor, lee el: <a target="_new" href="http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/queryparsersyntax.html">Analizador sint\u00E1ctico de consultas de Lucene</a> para m\u00E1s detalles.
221+
gb.queryHelp = Se admite la sintaxis de consulta est\u00E1ndar.<p/>Por favor, lee el: ${querySyntax} para m\u00E1s detalles.
222+
gb.querySyntax = Analizador sint\u00E1ctico de consultas de Lucene
222223
gb.queryResults = Resultados {0} - {1} ({2} coincidencias)
223224
gb.noHits = Sin coincidencias
224225
gb.authored = Autor

src/main/java/com/gitblit/wicket/GitBlitWebApp_fr.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ gb.pages = pages
218218
gb.workingCopy = d\u00e9p\u00f4t de travail
219219
gb.workingCopyWarning = ce d\u00e9p\u00f4t poss\u00e8de un d\u00e9p\u00f4t de travail et ne peut donc pas recevoir de pushes
220220
gb.query = recherche
221-
gb.queryHelp = La syntaxe Lucene standard est support\u00e9e.<p/><p/>Se r\u00e9f\u00e9rer \u00e0 la <a target="_new" href="http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/queryparsersyntax.html">Syntaxe de recherche Lucene</a> pour plus de d\u00e9tails.
221+
gb.queryHelp = La syntaxe Lucene standard est support\u00e9e.<p/><p/>Se r\u00e9f\u00e9rer \u00e0 la ${querySyntax} pour plus de d\u00e9tails.
222+
gb.querySyntax = Syntaxe de recherche Lucene
222223
gb.queryResults = r\u00e9sultats {0} - {1} ({2} hits)
223224
gb.noHits = aucun r\u00e9sultats
224225
gb.authored = authored

src/main/java/com/gitblit/wicket/GitBlitWebApp_it.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ gb.pages = pagine
218218
gb.workingCopy = copia di lavoro
219219
gb.workingCopyWarning = questo repository è una copia di lavoro a non ammette push
220220
gb.query = interrogazione
221-
gb.queryHelp = La sintassi standard è supportata.<p/><p/>Si vedi <a target="_new" href="http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/queryparsersyntax.html">Lucene Query Parser Syntax</a> per ulteriori dettagli.
221+
gb.queryHelp = La sintassi standard è supportata.<p/><p/>Si vedi ${querySyntax} per ulteriori dettagli.
222+
gb.querySyntax = Lucene Query Parser Syntax
222223
gb.queryResults = risultati {0} - {1} ({2} corrispondenze)
223224
gb.noHits = nessuna corrispondenza
224225
gb.authored = creato da

src/main/java/com/gitblit/wicket/GitBlitWebApp_ja.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ gb.pages = \u30da\u30fc\u30b8
217217
gb.workingCopy = \u4f5c\u696d\u30b3\u30d4\u30fc
218218
gb.workingCopyWarning = \u3053\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u4f5c\u696d\u30b3\u30d4\u30fc\u304c\u3042\u308b\u305f\u3081 push \u3067\u304d\u307e\u305b\u3093
219219
gb.query = \u30af\u30a8\u30ea\u30fc
220-
gb.queryHelp = \u6a19\u6e96\u7684\u306a\u30af\u30a8\u30ea\u30fc\u66f8\u5f0f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<p/><p/>\u8a73\u7d30\u306f <a target="_new" href="http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/queryparsersyntax.html">Lucene Query Parser Syntax</a> \u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002
220+
gb.queryHelp = \u6a19\u6e96\u7684\u306a\u30af\u30a8\u30ea\u30fc\u66f8\u5f0f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<p/><p/>\u8a73\u7d30\u306f ${querySyntax} \u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002
221+
gb.querySyntax = Lucene Query Parser Syntax
221222
gb.queryResults = \u691c\u7d22\u7d50\u679c {0} - {1} ({2} \u30d2\u30c3\u30c8)
222223
gb.noHits = \u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002
223224
gb.authored = authored

0 commit comments

Comments
 (0)