Skip to content

Commit 3b37d26

Browse files
authored
Merge pull request #24 from jenkinsci/feat/master/i18n
Localize Groovy files
2 parents 517ca52 + 48d393b commit 3b37d26

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

src/main/resources/io/jenkins/plugins/designlibrary/Links/index.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ def example(html) {
1717
}
1818
}
1919

20-
namespace("/lib/samples").sample(title:_("Navigational context menu integration")) {
20+
namespace("/lib/samples").sample(title:_("title")) {
2121
raw(_("blurb"))
2222

23-
h2(_("Defining context menu"))
23+
h2(_("define.title"))
2424
raw(_("blurb.define"))
2525

26-
h2(_("Breadcrumb integration"))
26+
h2(_("breadcrumb.title"))
2727
raw(_("blurb.breadcrumb"))
2828

2929

30-
h2(_("Model hyperlink"))
30+
h2(_("hyperlink.title"))
3131
raw(_("blurb.modelLink"))
3232
table(border:1) {
3333
example "<a href='.' class='model-link'>self</a>"

src/main/resources/io/jenkins/plugins/designlibrary/Links/index.properties

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1+
title=Navigational context menu integration
2+
13
blurb=<p>Jenkins consists of a large and complex graph of domain objects (<code>ModelObject</code>), where each node in the graph is a web page and edges are hyperlinks. \
24
To help users navigate quickly on this graph, Jenkins provides a mechanism to attach context menus to model objects, \
35
which can be used to hop multiple edges without going through individual hyperlinks.
46

7+
define.title=Defining context menu
8+
59
blurb.define=<p>To define a context menu on <code>ModelObject</code>, implement <a href="https://javadoc.jenkins.io/byShortName/ModelObjectWithContextMenu"><code>ModelObjectWithContextMenu</code></a>. \
610
See <a href="sourceFile/NavigationContextMenu.java">the example</a> for how to implement this method.
711

12+
breadcrumb.title=Breadcrumb integration
13+
814
blurb.breadcrumb=<p>Implementing <code>ModelObjectWithContextMenu</code> is sufficient for the core to show the context menu \
915
for your model object in the breadcrumb. Hover your mouse over the breadcrumb of this page to see context menu \
1016
associated with this sample. \
1117
<p> \
1218
In addition, implementing \
13-
<a href="http://javadoc.jenkins-ci.org/byShortName/ModelObjectWithChildren"><code>ModelObjectWithChildren</code></a> \
19+
<a href="https://javadoc.jenkins.io/jenkins/model/ModelObjectWithChildren.html"><code>ModelObjectWithChildren</code></a> \
1420
enables you to show children of your model object in the breadcrumb when you click the \u2018>\u2019 icon that separates \
1521
breadcrumb items.
1622

23+
hyperlink.title=Model hyperlink
24+
1725
blurb.modelLink=<p>By adding CSS class "model-link" to the &lt;a> tags pointing to model objects with context menu, \
1826
you can enable the context menu support to that hyperlink. For example:
1927

@@ -24,4 +32,4 @@ blurb.modelLink.inside=\
2432

2533
blurb.tltr=<p>By default, context menu appears below the link ,but this is inconvenient when model links line up in a vertical list. \
2634
Add additional "tl-tr" CSS class (read it as 'top-left of the context menu to top-right of the target anchor) to \
27-
make context menu appear on the right.
35+
make context menu appear on the right.

0 commit comments

Comments
 (0)