提交 7dd4171c 编写于 作者: K Kohsuke Kawaguchi

pushed up the pronoun to AbstractItem.

上级 33573ca2
......@@ -88,6 +88,14 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet
return name;
}
/**
* Get the term used in the UI to represent this kind of
* {@link Item}. Must start with a capital letter.
*/
public String getPronoun() {
return Messages.AbstractItem_Pronoun();
}
@Exported
public String getDisplayName() {
return getName();
......
......@@ -248,10 +248,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
return b!=null && b.isBuilding();
}
/**
* Get the term used in the UI to represent this kind of
* {@link AbstractProject}. Must start with a capital letter.
*/
@Override
public String getPronoun() {
return Messages.Job_Pronoun();
}
......
......@@ -33,7 +33,7 @@ THE SOFTWARE.
<st:include page="sidepanel.jelly" />
<l:main-panel>
<form method="post" action="doDelete">
${%Are you sure about deleting the job?}
${%blurb(it.pronoun)}
<f:submit value="${%Yes}" />
</form>
</l:main-panel>
......
blurb=Are you sure about deleting the {0}?
\ No newline at end of file
......@@ -21,4 +21,4 @@
# THE SOFTWARE.
Yes=Ja
Are\ you\ sure\ about\ deleting\ the\ job?=Er du sikker p\u00e5 at du vil slette dette job?
blurb=Er du sikker p\u00e5 at du vil slette dette {0}?
......@@ -20,5 +20,5 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
Are\ you\ sure\ about\ deleting\ the\ job?=Bent u zeker? U staat op het punt deze job te verwijderen!
blurb=Bent u zeker? U staat op het punt deze {0} te verwijderen!
Yes=Ja
......@@ -26,6 +26,7 @@ AbstractBuild.BuildingOnMaster=Building on master
AbstractBuild.KeptBecause=kept because of {0}
AbstractItem.NoSuchJobExists=No such job ''{0}'' exists. Perhaps you meant ''{1}''?
AbstractItem.Pronoun=Job
AbstractProject.NewBuildForWorkspace=Scheduling a new build to get a workspace.
AbstractProject.AwaitingBuildForWorkspace=Awaiting build to get a workspace.
AbstractProject.Pronoun=Project
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册