提交 6f0942b3 编写于 作者: S sogabe

Added license statement.

I18N and L10n (Cause). 

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15189 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c1ee75af
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Michael B. Donohue, Seiji Sogabe
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package hudson.model;
import hudson.triggers.Trigger;
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;
......@@ -24,7 +46,7 @@ public abstract class Cause {
@Override
@Exported
public String getShortDescription() {
return "Legacy code started this job. No cause information is available";
return Messages.Cause_LegacyCodeCause_ShortDescription();
}
}
......@@ -44,7 +66,7 @@ public abstract class Cause {
@Override
@Exported
public String getShortDescription() {
return "Started by upstream project \"" + upstreamProject + "\" build number " + upstreamBuild;
return Messages.Cause_UpstreamCause_ShortDescription(upstreamProject, upstreamBuild);
}
}
......@@ -58,7 +80,7 @@ public abstract class Cause {
@Override
@Exported
public String getShortDescription() {
return "Started by user " + authenticationName;
return Messages.Cause_UserCause_ShortDescription(authenticationName);
}
}
}
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Michael B. Donohue
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package hudson.model;
public class CauseAction implements Action {
......
<!--
The MIT License
Copyright (c) 2004-2009, Sun Microsystems, Inc., Michael B. Donohue
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<t:summary icon="orange-square.gif">
<p>${it.shortDescription}</p>
......
......@@ -177,3 +177,7 @@ MyView.DisplayName=My View
LoadStatistics.Legends.TotalExecutors=Total executors
LoadStatistics.Legends.BusyExecutors=Busy executors
LoadStatistics.Legends.QueueLength=Queue length
Cause.LegacyCodeCause.ShortDescription=Legacy code started this job. No cause information is available
Cause.UpstreamCause.ShortDescription=Started by upstream project "{0}" build number {1}
Cause.UserCause.ShortDescription=Started by user {0}
......@@ -174,3 +174,6 @@ LoadStatistics.Legends.TotalExecutors=\u30A8\u30B0\u30BC\u30AD\u30E5\u30FC\u30BF
LoadStatistics.Legends.BusyExecutors=\u30D3\u30B8\u30FC\u30A8\u30B0\u30BC\u30AD\u30E5\u30FC\u30BF\u30FC\u6570
LoadStatistics.Legends.QueueLength=\u30D3\u30EB\u30C9\u30AD\u30E5\u30FC\u9577
Cause.LegacyCodeCause.ShortDescription=\u975E\u63A8\u5968\u306E\u30B3\u30FC\u30C9\u304C\u3053\u306E\u30B8\u30E7\u30D6\u3092\u8D77\u52D5\u3057\u307E\u3057\u305F\u3002\u8D77\u52D5\u5951\u6A5F\u306B\u95A2\u3059\u308B\u60C5\u5831\u304C\u3042\u308A\u307E\u305B\u3093\u3002
Cause.UpstreamCause.ShortDescription=\u4E0A\u6D41\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8 "{0}" \u306E\u30D3\u30EB\u30C9\u756A\u53F7 {1} \u304C\u3053\u306E\u30B8\u30E7\u30D6\u3092\u8D77\u52D5\u3057\u307E\u3057\u305F\u3002
Cause.UserCause.ShortDescription=\u30E6\u30FC\u30B6\u30FC {0} \u304C\u3053\u306E\u30B8\u30E7\u30D6\u3092\u8D77\u52D5\u3057\u307E\u3057\u305F\u3002
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册