The Unified and Autonomous Development Platform
wip: i18n support
Robin Shend8b26c133be4
diff --git a/server-core/src/main/java/io/onedev/server/model/PullRequest.java b/server-core/src/main/java/io/onedev/server/model/PullRequest.javaindex 138d45059b..7a9478e477 100644--- a/server-core/src/main/java/io/onedev/server/model/PullRequest.java+++ b/server-core/src/main/java/io/onedev/server/model/PullRequest.java@@ -27,8 +27,10 @@ import static io.onedev.server.model.support.pullrequest.MergeStrategy.CREATE_MEimport static io.onedev.server.model.support.pullrequest.MergeStrategy.CREATE_MERGE_COMMIT_IF_NECESSARY;import static io.onedev.server.model.support.pullrequest.MergeStrategy.SQUASH_SOURCE_BRANCH_COMMITS;import static io.onedev.server.search.entity.EntitySort.Direction.DESCENDING;+import static io.onedev.server.web.translation.Translation._T;import static java.lang.ThreadLocal.withInitial;+import java.text.MessageFormat;import java.util.ArrayList;import java.util.Collection;import java.util.Collections;@@ -1169,21 +1171,21 @@ public class PullRequest extends ProjectBelonging@Nullablepublic String checkMerge() {if (!isOpen())- return "Pull request already closed";+ return _T("Pull request already closed");String checkError = getCheckError();if (checkError != null)- return "Pull request is in error: " + checkError;+ return MessageFormat.format(_T("Pull request is in error: {0}"), checkError);MergePreview preview = checkMergePreview();if (preview == null)- return "Merge preview not calculated yet";+ return _T("Merge preview not calculated yet");if (preview.getMergeCommitHash() == null)- return "There are merge conflicts";+ return _T("There are merge conflicts");if (!isAllReviewsApproved())- return "Waiting for approvals";+ return _T("Waiting for approvals");if (!isBuildRequirementSatisfied())- return "Some required builds not passed";+ return _T("Some required builds not passed");if (!isSignatureRequirementSatisfied())- return "No valid signature for head commit";+ return _T("No valid signature for head commit");var commitMessageError = checkCommitMessages();if (commitMessageError != null)return commitMessageError.toString();@@ -1192,12 +1194,12 @@ public class PullRequest extends ProjectBelongingpublic String getDefaultMergeCommitMessage() {if (getMergeStrategy() != SQUASH_SOURCE_BRANCH_COMMITS) {- return "Merges pull request #" + getNumber() + "\n\n" + getTitle();+ return _T("Merges pull request") + " #" + getNumber() + "\n\n" + getTitle();} else {var commitMessage = getTitle();if (getDescription() != null)commitMessage += "\n\n" + getDescription();- commitMessage += "\n\n" + "Merges pull request #" + getNumber();+ commitMessage += "\n\n" + _T("Merges pull request") + " #" + getNumber();return commitMessage;}}@@ -1205,25 +1207,25 @@ public class PullRequest extends ProjectBelonging@Nullablepublic String checkReopen() {if (isOpen())- return "Pull request already opened";+ return _T("Pull request already opened");if (getTarget().getObjectName(false) == null)- return "Target branch no longer exists";+ return _T("Target branch no longer exists");if (getSourceProject() == null)- return "Source project no longer exists";+ return _T("Source project no longer exists");if (getSource().getObjectName(false) == null)- return "Source branch no longer exists";+ return _T("Source branch no longer exists");PullRequestManager manager = OneDev.getInstance(PullRequestManager.class);PullRequest request = manager.findEffective(getTarget(), getSource());if (request != null) {if (request.isOpen())- return "Another pull request already open for this change";+ return _T("Another pull request already open for this change");else- return "Change already merged";+ return _T("Change already merged");}if (getGitService().isMergedInto(getTargetProject(), null,getSource().getObjectId(), getTarget().getObjectId())) {- return "Source branch already merged into target branch";+ return _T("Source branch already merged into target branch");}return null;@@ -1232,32 +1234,32 @@ public class PullRequest extends ProjectBelonging@Nullablepublic String checkDeleteSourceBranch() {if (!isMerged())- return "Pull request not merged";+ return _T("Pull request not merged");if (getSourceProject() == null)- return "Source project no longer exists";+ return _T("Source project no longer exists");if (getSource().getObjectName(false) == null)- return "Source branch no longer exists";+ return _T("Source branch no longer exists");if (getSource().isDefault())- return "Source branch is default branch";+ return _T("Source branch is default branch");MergePreview preview = checkMergePreview();if (preview == null)- return "Merge preview not calculated yet";+ return _T("Merge preview not calculated yet");if (!getSource().getObjectName().equals(preview.getHeadCommitHash())&& !getSource().getObjectName().equals(preview.getMergeCommitHash())) {- return "Change not updated yet";+ return _T("Change not updated yet");}PullRequestManager manager = OneDev.getInstance(PullRequestManager.class);if (!manager.queryOpenTo(getSource()).isEmpty())- return "Some other pull requests are opening to this branch";+ return _T("Some other pull requests are opening to this branch");return null;}@Nullablepublic String checkRestoreSourceBranch() {if (getSourceProject() == null)- return "Source project no longer exists";+ return _T("Source project no longer exists");if (getSource().getObjectName(false) != null)- return "Source branch already exists";+ return _T("Source branch already exists");return null;}diff --git a/server-core/src/main/java/io/onedev/server/notification/ActivityDetail.java b/server-core/src/main/java/io/onedev/server/notification/ActivityDetail.javaindex 92dab770bc..416ed2a3a9 100644--- a/server-core/src/main/java/io/onedev/server/notification/ActivityDetail.java+++ b/server-core/src/main/java/io/onedev/server/notification/ActivityDetail.java@@ -1,13 +1,27 @@package io.onedev.server.notification;+import static io.onedev.server.web.translation.Translation._T;++import java.io.Serializable;+import java.util.List;+import java.util.Map;++import org.apache.wicket.Component;+import org.apache.wicket.markup.head.CssHeaderItem;+import org.apache.wicket.markup.head.IHeaderResponse;+import org.apache.wicket.markup.html.basic.Label;+import org.apache.wicket.model.Model;+import org.eclipse.jgit.revwalk.RevCommit;+import org.unbescape.html.HtmlEscape;+import io.onedev.server.OneDev;-import io.onedev.server.web.UrlManager;import io.onedev.server.model.CodeComment;import io.onedev.server.model.Issue;import io.onedev.server.model.Project;import io.onedev.server.model.PullRequest;import io.onedev.server.util.ProjectScopedCommit;import io.onedev.server.util.PropertyChange;+import io.onedev.server.web.UrlManager;import io.onedev.server.web.asset.emoji.Emojis;import io.onedev.server.web.asset.fieldcompare.FieldCompareCssResourceReference;import io.onedev.server.web.component.codecomment.referencedfrom.ReferencedFromCodeCommentPanel;@@ -15,17 +29,6 @@ import io.onedev.server.web.component.commit.info.CommitInfoPanel;import io.onedev.server.web.component.issue.referencedfrom.ReferencedFromIssuePanel;import io.onedev.server.web.component.pullrequest.referencedfrom.ReferencedFromPullRequestPanel;import io.onedev.server.web.page.project.ProjectPage;-import org.apache.wicket.Component;-import org.apache.wicket.markup.head.CssHeaderItem;-import org.apache.wicket.markup.head.IHeaderResponse;-import org.apache.wicket.markup.html.basic.Label;-import org.apache.wicket.model.Model;-import org.eclipse.jgit.revwalk.RevCommit;-import org.unbescape.html.HtmlEscape;--import java.io.Serializable;-import java.util.List;-import java.util.Map;public class ActivityDetail implements Serializable {@@ -72,9 +75,9 @@ public class ActivityDetail implements Serializable {builder.append(" <thead>");builder.append(" <tr>");if (changes.size() != 1 || !hideNameIfOnlyOneRow)- builder.append(" <th style='padding:0.4em 0.6em; border-bottom:1px solid #EBEDF3; font-size:0.9em; text-align:left;'>Name</th>");- builder.append(" <th style='padding:0.4em 0.6em; border-bottom:1px solid #EBEDF3; font-size:0.9em; text-align:left;'>Previous Value</th>");- builder.append(" <th style='padding:0.4em 0.6em; border-bottom:1px solid #EBEDF3; font-size:0.9em; text-align:left;'>Current Value</th>");+ builder.append(" <th style='padding:0.4em 0.6em; border-bottom:1px solid #EBEDF3; font-size:0.9em; text-align:left;'>" + _T("Name") + "</th>");+ builder.append(" <th style='padding:0.4em 0.6em; border-bottom:1px solid #EBEDF3; font-size:0.9em; text-align:left;'>" + _T("Previous Value") + "</th>");+ builder.append(" <th style='padding:0.4em 0.6em; border-bottom:1px solid #EBEDF3; font-size:0.9em; text-align:left;'>" + _T("Current Value") + "</th>");builder.append(" </tr>");builder.append(" </thead>");builder.append(" <tbody>");diff --git a/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.html b/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.htmlindex f411420efe..6d301d5558 100644--- a/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.html@@ -6,11 +6,11 @@<div class="input-group"><input wicket:id="input" spellcheck="false" autocomplete="off" class="form-control" t:placeholder="Query/order builds"><span class="input-group-append">- <button wicket:id="submit" type="submit" class="btn btn-icon btn-outline-secondary" title="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" type="submit" class="btn btn-icon btn-outline-secondary" t:data-tippy-content="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></form>- <a wicket:id="runJob" class="btn btn-primary btn-icon flex-shrink-0 ml-3" title="Run job"><wicket:svg href="play" class="icon"/></a>+ <a wicket:id="runJob" class="btn btn-primary btn-icon flex-shrink-0 ml-3" t:data-tippy-content="Run job"><wicket:svg href="play" class="icon"/></a></div><div class="mb-4"><a wicket:id="showSavedQueries" class="show-saved-queries text-gray d-inline-block mb-2 mr-4 text-nowrap">diff --git a/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.java b/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.javaindex 59551c8d2d..2cb4cc24b5 100644--- a/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.java+++ b/server-core/src/main/java/io/onedev/server/web/component/build/list/BuildListPanel.java@@ -1,6 +1,7 @@package io.onedev.server.web.component.build.list;import static io.onedev.server.model.Build.SORT_FIELDS;+import static io.onedev.server.web.translation.Translation._T;import java.util.ArrayList;import java.util.Collection;@@ -637,7 +638,7 @@ public abstract class BuildListPanel extends Panel {@Overridepublic String getLabel() {- return "Delete All Queried Builds";+ return _T("Delete All Queried Builds");}@Overridediff --git a/server-core/src/main/java/io/onedev/server/web/component/build/minilist/MiniBuildListPanel.html b/server-core/src/main/java/io/onedev/server/web/component/build/minilist/MiniBuildListPanel.htmlindex 84a6427112..3dd705a182 100644--- a/server-core/src/main/java/io/onedev/server/web/component/build/minilist/MiniBuildListPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/build/minilist/MiniBuildListPanel.html@@ -5,7 +5,7 @@<wicket:enclosure child="showInList"><div class="head d-flex align-items-center py-3 px-3 border-bottom"><h6 class="mb-0 mr-4">Builds</h6>- <a wicket:id="showInList" class="show-in-list" title="Show in build list"><wicket:svg href="unordered-list" class="icon"></wicket:svg></a>+ <a wicket:id="showInList" class="show-in-list" t:data-tippy-content="Show in build list"><wicket:svg href="unordered-list" class="icon"></wicket:svg></a></div></wicket:enclosure><div class="body py-2">diff --git a/server-core/src/main/java/io/onedev/server/web/component/build/side/BuildSidePanel.html b/server-core/src/main/java/io/onedev/server/web/component/build/side/BuildSidePanel.htmlindex 725c92607c..009b422f85 100644--- a/server-core/src/main/java/io/onedev/server/web/component/build/side/BuildSidePanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/build/side/BuildSidePanel.html@@ -27,7 +27,7 @@<div class="name">Job</div><div class="value"><a wicket:id="job"><span wicket:id="label"></span></a>- <a wicket:id="editJob" class="ml-2 btn btn-icon btn-xs btn-light btn-hover-primary" title="Edit job"><wicket:svg href="edit" class="icon icon-sm"/></a>+ <a wicket:id="editJob" class="ml-2 btn btn-icon btn-xs btn-light btn-hover-primary" t:data-tippy-content="Edit job"><wicket:svg href="edit" class="icon icon-sm"/></a></div></div><wicket:enclosure child="agent">diff --git a/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.html b/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.htmlindex 06c412ac3a..05a103da8a 100644--- a/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.html@@ -5,25 +5,25 @@<div class="input-group"><input wicket:id="input" spellcheck="false" autocomplete="off" class="form-control" t:placeholder="Query/order comments"><span class="input-group-append">- <button wicket:id="submit" type="submit" class="btn btn-icon btn-outline-secondary" title="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" type="submit" class="btn btn-icon btn-outline-secondary" t:data-tippy-content="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></form><div class="mb-4"><a wicket:id="showSavedQueries" class="show-saved-queries text-gray d-inline-block mb-2 mr-4">- <wicket:svg href="eye" class="icon"></wicket:svg> Show Saved Queries+ <wicket:svg href="eye" class="icon"></wicket:svg> <wicket:t>Show Saved Queries</wicket:t></a><a wicket:id="saveQuery" class="save-query text-gray d-inline-block mb-2 mr-4">- <wicket:svg href="save" class="icon"></wicket:svg> Save Query+ <wicket:svg href="save" class="icon"></wicket:svg> <wicket:t>Save Query</wicket:t></a><a wicket:id="filter" class="filter text-gray mr-4 mb-2 d-inline-block text-nowrap">- <wicket:svg href="filter" class="icon"></wicket:svg> Filter+ <wicket:svg href="filter" class="icon"></wicket:svg> <wicket:t>Filter</wicket:t></a><a wicket:id="orderBy" class="order-by text-gray d-inline-block mb-2 mr-4">- <wicket:svg href="sort" class="icon"></wicket:svg> Order By+ <wicket:svg href="sort" class="icon"></wicket:svg> <wicket:t>Order By</wicket:t></a><a wicket:id="operations" class="text-gray mr-4 mb-2 d-inline-block text-nowrap">- <wicket:svg href="ellipsis-circle" class="icon rotate-180"></wicket:svg> Operations+ <wicket:svg href="ellipsis-circle" class="icon rotate-180"></wicket:svg> <wicket:t>Operations</wicket:t></a><span wicket:id="count" class="float-right text-gray"></span></div>diff --git a/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.java b/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.javaindex 4637f70b6b..e6e15261ce 100644--- a/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.java+++ b/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentListPanel.java@@ -111,7 +111,7 @@ public abstract class CodeCommentListPanel extends Panel {error(e.getMessage());return null;} else {- info("Performing fuzzy query. Enclosing search text with '~' to add more conditions, for instance: ~text to search~ and unresolved");+ info(_T("Performing fuzzy query. Enclosing search text with '~' to add more conditions, for instance: ~text to search~ and unresolved"));return new CodeCommentQuery(new FuzzyCriteria(queryString));}}@@ -511,7 +511,7 @@ public abstract class CodeCommentListPanel extends Panel {@Overridepublic String getLabel() {- return "Delete All Queried Comments";+ return _T("Delete All Queried Comments");}@Override@@ -539,7 +539,7 @@ public abstract class CodeCommentListPanel extends Panel {@Overrideprotected String getConfirmMessage() {- return "Type <code>yes</code> below to delete all queried comments";+ return _T("Type <code>yes</code> below to delete all queried comments");}@Override@@ -562,7 +562,7 @@ public abstract class CodeCommentListPanel extends Panel {configure();if (!isEnabled()) {tag.put("disabled", "disabled");- tag.put("title", "No comments to delete");+ tag.put("data-tippy-content", _T("No comments to delete"));}}@@ -576,7 +576,7 @@ public abstract class CodeCommentListPanel extends Panel {@Overridepublic String getLabel() {- return "Set All Queried Comments as Read";+ return _T("Set All Queried Comments as Read");}@Override@@ -595,7 +595,7 @@ public abstract class CodeCommentListPanel extends Panel {configure();if (!isEnabled()) {tag.put("disabled", "disabled");- tag.put("title", "No comments to set as read");+ tag.put("data-tippy-content", _T("No comments to set as read"));}}@@ -831,11 +831,11 @@ public abstract class CodeCommentListPanel extends Panel {protected String load() {if (rowModel.getObject().isResolved()) {return String.format(- "<span title='Resolved'><svg class='icon text-success mr-1'><use xlink:href='%s'/></svg></span>",+ "<span data-tippy-content=\"" + _T("Resolved") + "\"><svg class='icon text-success mr-1'><use xlink:href='%s'/></svg></span>",SpriteImage.getVersionedHref("tick-circle-o"));} else {return String.format(- "<span title='Unresolved'><svg class='icon text-warning mr-1'><use xlink:href='%s'/></svg></span>",+ "<span data-tippy-content=\"" + _T("Unresolved") + "\"><svg class='icon text-warning mr-1'><use xlink:href='%s'/></svg></span>",SpriteImage.getVersionedHref("dot"));}}diff --git a/server-core/src/main/java/io/onedev/server/web/component/commit/info/CommitInfoPanel.html b/server-core/src/main/java/io/onedev/server/web/component/commit/info/CommitInfoPanel.htmlindex 95643d0ef1..f186b0eb30 100644--- a/server-core/src/main/java/io/onedev/server/web/component/commit/info/CommitInfoPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/commit/info/CommitInfoPanel.html@@ -20,7 +20,7 @@<a wicket:id="copyHash" class="btn btn-icon btn-outline-secondary"><wicket:svg href="copy" class="icon"></wicket:svg></a></span><span class="btn-group browse">- <a wicket:id="browseCode" title="Browse code" class="btn btn-icon btn-outline-secondary"><wicket:svg href="files" class="icon"></wicket:svg></a>+ <a wicket:id="browseCode" t:data-tippy-content="Browse code" class="btn btn-icon btn-outline-secondary"><wicket:svg href="files" class="icon"></wicket:svg></a></span></div></div>diff --git a/server-core/src/main/java/io/onedev/server/web/component/commit/message/CommitMessagePanel.html b/server-core/src/main/java/io/onedev/server/web/component/commit/message/CommitMessagePanel.htmlindex 80850eda4e..6f64d45ea9 100644--- a/server-core/src/main/java/io/onedev/server/web/component/commit/message/CommitMessagePanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/commit/message/CommitMessagePanel.html@@ -1,7 +1,7 @@<wicket:panel><div class="commit-message d-flex align-items-center flex-wrap"><span wicket:id="summary" class="summary text-break"></span>- <a class="btn btn-xs h-75 btn-secondary btn-icon ml-2" href="javascript:void(0);" title="Toggle detail message" onclick="$(this).next().toggle(); $(window).resize();" wicket:id="toggle">+ <a class="btn btn-xs h-75 btn-secondary btn-icon ml-2" href="javascript:void(0);" t:data-tippy-content="Toggle detail message" onclick="$(this).next().toggle(); $(window).resize();" wicket:id="toggle"><wicket:svg href="ellipsis" class="icon"/></a><pre wicket:id="detail" class="detail text-break w-100"></pre>diff --git a/server-core/src/main/java/io/onedev/server/web/component/diff/blob/BlobDiffPanel.java b/server-core/src/main/java/io/onedev/server/web/component/diff/blob/BlobDiffPanel.javaindex 1a8d8618eb..a5cddd1e2a 100644--- a/server-core/src/main/java/io/onedev/server/web/component/diff/blob/BlobDiffPanel.java+++ b/server-core/src/main/java/io/onedev/server/web/component/diff/blob/BlobDiffPanel.java@@ -157,7 +157,7 @@ public class BlobDiffPanel extends Panel {});- add(new DiffStatBar("diffStat", change.getAdditions(), change.getDeletions(), true) {+ add(new DiffStatBar("diffStat", change.getAdditions(), change.getDeletions()) {@Overrideprotected void onConfigure() {super.onConfigure();diff --git a/server-core/src/main/java/io/onedev/server/web/component/diff/blob/image/BlobImageDiffPanel.html b/server-core/src/main/java/io/onedev/server/web/component/diff/blob/image/BlobImageDiffPanel.htmlindex c57b3c33c0..80bafe823c 100644--- a/server-core/src/main/java/io/onedev/server/web/component/diff/blob/image/BlobImageDiffPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/diff/blob/image/BlobImageDiffPanel.html@@ -1,8 +1,8 @@<wicket:panel><div class="old p-3 border-right w-50">- <img wicket:id="old" class="w-100" title="Before modification">+ <img wicket:id="old" class="w-100" t:data-tippy-content="Before modification"></div><div class="new p-3 w-50">- <img wicket:id="new" class="w-100" title="After modification">+ <img wicket:id="new" class="w-100" t:data-tippy-content="After modification"></div></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/component/diff/diffstat/DiffStatBar.java b/server-core/src/main/java/io/onedev/server/web/component/diff/diffstat/DiffStatBar.javaindex 4247cb7510..120e913ef0 100644--- a/server-core/src/main/java/io/onedev/server/web/component/diff/diffstat/DiffStatBar.java+++ b/server-core/src/main/java/io/onedev/server/web/component/diff/diffstat/DiffStatBar.java@@ -1,5 +1,9 @@package io.onedev.server.web.component.diff.diffstat;+import static io.onedev.server.web.translation.Translation._T;++import java.text.MessageFormat;+import org.apache.wicket.behavior.AttributeAppender;import org.apache.wicket.markup.head.CssHeaderItem;import org.apache.wicket.markup.head.IHeaderResponse;@@ -14,15 +18,12 @@ public class DiffStatBar extends Panel {private final int additions;private final int deletions;-- private final boolean showTooltip;-- public DiffStatBar(String id, int additions, int deletions, boolean showTooltip) {++ public DiffStatBar(String id, int additions, int deletions) {super(id);this.additions = additions;this.deletions = deletions;- this.showTooltip = showTooltip;}@Override@@ -64,8 +65,7 @@ public class DiffStatBar extends Panel {}}).setEscapeModelStrings(false));- if (showTooltip)- add(AttributeAppender.append("title", additions + " additions & " + deletions + " deletions"));+ add(AttributeAppender.append("data-tippy-content", MessageFormat.format(_T("{0} additions & {1} deletions"), additions, deletions)));}private int getAdditionBlocks() {diff --git a/server-core/src/main/java/io/onedev/server/web/component/entity/nav/EntityNavPanel.java b/server-core/src/main/java/io/onedev/server/web/component/entity/nav/EntityNavPanel.javaindex 78dd32d631..0db3eaf7cc 100644--- a/server-core/src/main/java/io/onedev/server/web/component/entity/nav/EntityNavPanel.java+++ b/server-core/src/main/java/io/onedev/server/web/component/entity/nav/EntityNavPanel.java@@ -1,5 +1,8 @@package io.onedev.server.web.component.entity.nav;+import static io.onedev.server.web.translation.Translation._T;++import java.text.MessageFormat;import java.util.List;import javax.annotation.Nullable;@@ -62,7 +65,7 @@ public abstract class EntityNavPanel<T extends AbstractEntity> extends Panel {super.onComponentTag(tag);if (getCursor() == null || getCursor().getOffset() <= 0)tag.put("disabled", "disabled");- tag.put("title", "Previous " + entityName);+ tag.put("title", MessageFormat.format(_T("Previous {0}"), _T(entityName)));}@Override@@ -79,7 +82,7 @@ public abstract class EntityNavPanel<T extends AbstractEntity> extends Panel {Cursor prevCursor = new Cursor(getCursor().getQuery(), count, offset, projectScope);getCursorSupport().navTo(target, entities.get(0), prevCursor);} else {- WebSession.get().warn("No more " + entityName + "s");+ WebSession.get().warn(_T("No more " + entityName + "s"));}}@@ -97,7 +100,7 @@ public abstract class EntityNavPanel<T extends AbstractEntity> extends Panel {super.onComponentTag(tag);if (getCursor() == null || getCursor().getOffset() >= getCursor().getCount()-1)tag.put("disabled", "disabled");- tag.put("title", "Next " + entityName);+ tag.put("title", MessageFormat.format(_T("Next {0}"), _T(entityName)));}@Override@@ -116,7 +119,7 @@ public abstract class EntityNavPanel<T extends AbstractEntity> extends Panel {Cursor nextCursor = new Cursor(getCursor().getQuery(), count, offset, projectScope);getCursorSupport().navTo(target, entities.get(0), nextCursor);} else {- WebSession.get().warn("No more " + entityName + "s");+ WebSession.get().warn(_T("No more " + entityName + "s"));}}@@ -127,9 +130,9 @@ public abstract class EntityNavPanel<T extends AbstractEntity> extends Panel {@Overridepublic String getObject() {if (getCursor() != null)- return entityName + " " + (getCursor().getOffset() + 1) + " of " + getCursor().getCount();+ return _T(entityName) + " " + (getCursor().getOffset() + 1) + "/" + getCursor().getCount();else- return entityName + " 1 of 1";+ return _T(entityName) + " 1/1";}}));diff --git a/server-core/src/main/java/io/onedev/server/web/component/entity/reference/EntityReferencePanel.html b/server-core/src/main/java/io/onedev/server/web/component/entity/reference/EntityReferencePanel.htmlindex 7e94fca680..2f377aaaab 100644--- a/server-core/src/main/java/io/onedev/server/web/component/entity/reference/EntityReferencePanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/entity/reference/EntityReferencePanel.html@@ -1,5 +1,5 @@<wicket:panel>- <div class="head">Reference <a wicket:id="referenceHelp" class="ml-2 text-gray"><wicket:svg href="question-circle-o" class="icon icon-sm"/></a></div>+ <div class="head"><wicket:t>Reference</wicket:t> <a wicket:id="referenceHelp" class="ml-2 text-gray"><wicket:svg href="question-circle-o" class="icon icon-sm"/></a></div><div class="body"><div class="d-flex align-items-center flex-nowrap"><span wicket:id="reference" class="text-nowrap text-truncate mr-3"></span>diff --git a/server-core/src/main/java/io/onedev/server/web/component/entity/reference/EntityReferencePanel.java b/server-core/src/main/java/io/onedev/server/web/component/entity/reference/EntityReferencePanel.javaindex e945a94fb4..e73b06080c 100644--- a/server-core/src/main/java/io/onedev/server/web/component/entity/reference/EntityReferencePanel.java+++ b/server-core/src/main/java/io/onedev/server/web/component/entity/reference/EntityReferencePanel.java@@ -3,6 +3,11 @@ package io.onedev.server.web.component.entity.reference;import io.onedev.server.entityreference.EntityReference;import io.onedev.server.entityreference.IssueReference;import io.onedev.server.web.component.link.copytoclipboard.CopyToClipboardLink;++import static io.onedev.server.web.translation.Translation._T;++import java.text.MessageFormat;+import org.apache.wicket.markup.ComponentTag;import org.apache.wicket.markup.html.WebMarkupContainer;import org.apache.wicket.markup.html.basic.Label;@@ -24,11 +29,11 @@ public abstract class EntityReferencePanel extends Panel {@Overrideprotected void onComponentTag(ComponentTag tag) {super.onComponentTag(tag);- var help = "Reference this " + getReference().getType()- + " in markdown or commit message via below string.";+ var help = MessageFormat.format(_T("Reference this {0} in markdown or commit message via below string."),+ _T(getReference().getType()));if (getReference().getProject().getKey() == null)- help += " Project path can be omitted if reference from current project";- tag.put("title", help);+ help += _T(" Project path can be omitted if reference from current project");+ tag.put("data-tippy-content", help);}});diff --git a/server-core/src/main/java/io/onedev/server/web/component/entity/watches/EntityWatchesPanel.html b/server-core/src/main/java/io/onedev/server/web/component/entity/watches/EntityWatchesPanel.htmlindex e818ef9cf5..b2ecabdf2a 100644--- a/server-core/src/main/java/io/onedev/server/web/component/entity/watches/EntityWatchesPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/entity/watches/EntityWatchesPanel.html@@ -4,7 +4,7 @@<div class="body"><wicket:enclosure child="watchers"><div class="watchers">- <span wicket:id="watchers"><a wicket:id="watcher" class="avatar"></a></span> <a wicket:id="more">and more</a>+ <span wicket:id="watchers"><a wicket:id="watcher" class="avatar"></a></span> <a wicket:id="more"><wicket:t>and more</wicket:t></a></div></wicket:enclosure><a wicket:id="watch" class="watch-status btn btn-sm btn-outline-secondary mt-2"></a>diff --git a/server-core/src/main/java/io/onedev/server/web/component/entity/watches/EntityWatchesPanel.java b/server-core/src/main/java/io/onedev/server/web/component/entity/watches/EntityWatchesPanel.javaindex c28bf2db5a..36c0b21a91 100644--- a/server-core/src/main/java/io/onedev/server/web/component/entity/watches/EntityWatchesPanel.java+++ b/server-core/src/main/java/io/onedev/server/web/component/entity/watches/EntityWatchesPanel.java@@ -1,5 +1,7 @@package io.onedev.server.web.component.entity.watches;+import static io.onedev.server.web.translation.Translation._T;+import java.util.ArrayList;import java.util.List;import java.util.stream.Collectors;@@ -51,7 +53,7 @@ public abstract class EntityWatchesPanel extends Panel {@Overrideprotected String load() {- return "Watchers (" + getEffectWatches().size() + ")";+ return _T("Watchers") + " (" + getEffectWatches().size() + ")";}}));diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/authorizations/IssueAuthorizationsPanel.html b/server-core/src/main/java/io/onedev/server/web/component/issue/authorizations/IssueAuthorizationsPanel.htmlindex 3b25fd9f6f..b87344de4d 100644--- a/server-core/src/main/java/io/onedev/server/web/component/issue/authorizations/IssueAuthorizationsPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/authorizations/IssueAuthorizationsPanel.html@@ -18,6 +18,6 @@<a wicket:id="link"><img wicket:id="avatar"> <span wicket:id="name" class="name"></span></a></wicket:fragment><wicket:fragment wicket:id="actionFrag">- <a wicket:id="unauthorize" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Unauthorize this user"><wicket:svg href="trash" class="icon align-middle"></wicket:svg></a>+ <a wicket:id="unauthorize" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Unauthorize this user"><wicket:svg href="trash" class="icon align-middle"></wicket:svg></a></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/editabletitle/IssueEditableTitlePanel.html b/server-core/src/main/java/io/onedev/server/web/component/issue/editabletitle/IssueEditableTitlePanel.htmlindex ae951040dd..8814557376 100644--- a/server-core/src/main/java/io/onedev/server/web/component/issue/editabletitle/IssueEditableTitlePanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/editabletitle/IssueEditableTitlePanel.html@@ -6,14 +6,14 @@<input wicket:id="title" type="text" t:placeholder="Input title" class="form-control"></div><div class="flex-shrink-0 text-nowrap">- <button wicket:id="save" title="Save" t:value="Save" class="btn btn-primary btn-icon mr-1" type="submit"><wicket:svg href="tick" class="icon"/></button>- <a wicket:id="cancel" title="Cancel" type="button" t:value="Cancel" class="btn btn-secondary btn-icon"><wicket:svg href="times" class="icon"/></a>+ <button wicket:id="save" t:data-tippy-content="Save" t:value="Save" class="btn btn-primary btn-icon mr-1" type="submit"><wicket:svg href="tick" class="icon"/></button>+ <a wicket:id="cancel" t:data-tippy-content="Cancel" type="button" t:value="Cancel" class="btn btn-secondary btn-icon"><wicket:svg href="times" class="icon"/></a></div></form></wicket:fragment><wicket:fragment wicket:id="titleViewFrag"><span wicket:id="title" class="mr-2"></span>- <span wicket:id="confidential" title="Confidential" class="text-warning mr-2"><wicket:svg href="incognito" class="icon icon-lg"/></span>+ <span wicket:id="confidential" t:data-tippy-content="Confidential" class="text-warning mr-2"><wicket:svg href="incognito" class="icon icon-lg"/></span><a wicket:id="copy" class="btn btn-xs btn-icon btn-light btn-hover-primary copy flex-shrink-0 mr-2"><wicket:svg href="copy" class="icon"></wicket:svg></a><a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary edit flex-shrink-0 mr-2"><wicket:svg href="edit" class="icon"></wicket:svg></a><span wicket:id="progress" class="d-flex align-items-center mr-2"></span>diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.html b/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.htmlindex db54cb5df8..42f8ec86fb 100644--- a/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.html@@ -6,11 +6,11 @@<div class="input-group"><input wicket:id="input" spellcheck="false" autocomplete="off" class="form-control" t:placeholder="Query/order issues"><span class="input-group-append">- <button wicket:id="submit" type="submit" class="btn btn-outline-secondary btn-icon" title="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" type="submit" class="btn btn-outline-secondary btn-icon" t:data-tippy-content="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></form>- <a wicket:id="newIssue" class="add-new btn btn-primary btn-icon flex-shrink-0 ml-3" title="Create new issue"><wicket:svg href="plus" class="icon"/></a>+ <a wicket:id="newIssue" class="add-new btn btn-primary btn-icon flex-shrink-0 ml-3" t:data-tippy-content="Create new issue"><wicket:svg href="plus" class="icon"/></a></div><div class="mb-5"><a wicket:id="showSavedQueries" class="show-saved-queries text-gray d-inline-block mr-4 mb-2 text-nowrap">@@ -57,20 +57,20 @@<div class="primary d-flex mb-3"><div class="mr-4 flex-grow-1 d-flex flex-wrap row-gap-2"><span wicket:id="numberAndTitle" class="mr-2"></span>- <a wicket:id="copy" title="Copy issue number and title" class="copy mr-2 btn btn-icon btn-xs btn-light btn-hover-primary">+ <a wicket:id="copy" t:data-tippy-content="Copy issue number and title" class="copy mr-2 btn btn-icon btn-xs btn-light btn-hover-primary"><wicket:svg href="copy" class="icon"/></a>- <a wicket:id="pin" title="Pin this issue" class="pin mr-2 btn btn-icon btn-xs btn-light btn-hover-primary">+ <a wicket:id="pin" t:data-tippy-content="Pin this issue" class="pin mr-2 btn btn-icon btn-xs btn-light btn-hover-primary"><wicket:svg href="pin" class="icon"/></a><span wicket:id="progress" class="d-flex align-items-center mr-2"></span><span wicket:id="links" class="d-flex align-items-center links"></span></div><div class="flex-shrink-0 d-none d-lg-block text-muted">- <span class="votes mr-2" title="Votes">+ <span class="votes mr-2" t:data-tippy-content="Votes"><wicket:svg href="thumb-up" class="icon"></wicket:svg> <span wicket:id="votes"></span></span>- <span class="comments" title="Comments">+ <span class="comments" t:data-tippy-content="Comments"><wicket:svg href="comments" class="icon"></wicket:svg> <span wicket:id="comments"></span></span></div>diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.java b/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.javaindex a88213401d..5914e0af7f 100644--- a/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.java+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/list/IssueListPanel.java@@ -3,6 +3,7 @@ package io.onedev.server.web.component.issue.list;import static com.google.common.collect.Lists.newArrayList;import static io.onedev.server.search.entity.EntitySort.Direction.ASCENDING;import static io.onedev.server.search.entity.issue.IssueQuery.merge;+import static io.onedev.server.web.translation.Translation._T;import static java.util.Comparator.comparingInt;import static java.util.stream.Collectors.joining;import static java.util.stream.Collectors.toList;@@ -1443,7 +1444,7 @@ public abstract class IssueListPanel extends Panel {@Overridepublic String getLabel() {- return "Delete All Queried Issues";+ return _T("Delete All Queried Issues");}@Overridediff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/operation/IssueOperationsPanel.html b/server-core/src/main/java/io/onedev/server/web/component/issue/operation/IssueOperationsPanel.htmlindex b54f940e07..667863b5c9 100644--- a/server-core/src/main/java/io/onedev/server/web/component/issue/operation/IssueOperationsPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/operation/IssueOperationsPanel.html@@ -3,6 +3,6 @@<a wicket:id="state" class="state"><span wicket:id="name"></span></a>- <a wicket:id="newIssue" class="new-issue btn btn-primary btn-sm btn-icon ml-auto" title="Create new issue"><wicket:svg href="plus" class="icon"/></a>+ <a wicket:id="newIssue" class="new-issue btn btn-primary btn-sm btn-icon ml-auto" t:data-tippy-content="Create new issue"><wicket:svg href="plus" class="icon"/></a></div></wicket:panel>diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/progress/IssueProgressPanel.html b/server-core/src/main/java/io/onedev/server/web/component/issue/progress/IssueProgressPanel.htmlindex 04c34117a1..d8a76da4e5 100644--- a/server-core/src/main/java/io/onedev/server/web/component/issue/progress/IssueProgressPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/progress/IssueProgressPanel.html@@ -1,7 +1,7 @@<wicket:panel><span class="d-inline-flex align-items-center issue-progress flex-nowrap">- <a wicket:id="completionRate" class="completion-rate d-inline-block align-middle" title="Estimated/Spent time. Click for details"></a>+ <a wicket:id="completionRate" class="completion-rate d-inline-block align-middle" t:data-tippy-content="Estimated/Spent time. Click for details"></a><span wicket:id="workingTime" class="working-time font-weight-bold font-size-h6 text-warning align-middle d-inline-block ml-2"></span>- <a wicket:id="stopWork" class="btn btn-icon btn-xs btn-light-warning btn-hover-warning ml-2" title="Stop work"><wicket:svg href="stop" class="icon"/></a>+ <a wicket:id="stopWork" class="btn btn-icon btn-xs btn-light-warning btn-hover-warning ml-2" t:data-tippy-content="Stop work"><wicket:svg href="stop" class="icon"/></a></span></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/progress/TimingDetailPanel.html b/server-core/src/main/java/io/onedev/server/web/component/issue/progress/TimingDetailPanel.htmlindex 5779bde76f..700f30b59c 100644--- a/server-core/src/main/java/io/onedev/server/web/component/issue/progress/TimingDetailPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/progress/TimingDetailPanel.html@@ -12,7 +12,7 @@<div class="mb-2"><span>Own: </span><span wicket:id="ownEstimatedTime"></span>- <a wicket:id="editOwnEstimatedTime" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="editOwnEstimatedTime" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a></div><div><span>Aggregated from '<span wicket:id="estimatedTimeAggregationLink"></span>':</span>@@ -30,8 +30,8 @@<div class="mb-2"><span>Own: </span><span wicket:id="ownSpentTime"></span>- <a wicket:id="logWork" title="Log work"><wicket:svg href="plus" class="icon"></wicket:svg></a>- <a wicket:id="startWork" title="Start work"><wicket:svg href="play" class="icon"></wicket:svg></a>+ <a wicket:id="logWork" t:data-tippy-content="Log work"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="startWork" t:data-tippy-content="Start work"><wicket:svg href="play" class="icon"></wicket:svg></a></div><div><span>Aggregated from '<span wicket:id="spentTimeAggregationLink"></span>':</span>@@ -43,13 +43,13 @@<div class="mb-4"><span>Estimated Time:</span><span wicket:id="estimatedTime"></span>- <a wicket:id="editEstimatedTime" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="editEstimatedTime" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a></div><div class="mb-0"><span>Spent Time:</span><span wicket:id="spentTime"></span>- <a wicket:id="logWork" title="Log work"><wicket:svg href="plus" class="icon"></wicket:svg></a>- <a wicket:id="startWork" title="Start work"><wicket:svg href="play" class="icon"></wicket:svg></a>+ <a wicket:id="logWork" t:data-tippy-content="Log work"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="startWork" t:data-tippy-content="Start work"><wicket:svg href="play" class="icon"></wicket:svg></a></div></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/side/IssueSidePanel.html b/server-core/src/main/java/io/onedev/server/web/component/issue/side/IssueSidePanel.htmlindex 70b353177b..85b026afa2 100644--- a/server-core/src/main/java/io/onedev/server/web/component/issue/side/IssueSidePanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/side/IssueSidePanel.html@@ -26,7 +26,7 @@<li wicket:id="iterations" class="bg-light rounded p-3"><div class="d-flex"><a wicket:id="link" class="mr-2"><span wicket:id="label"></span></a>- <a wicket:id="delete" class="mr-2 flex-shrink-0" title="Remove issue from this iteration"><wicket:svg href="trash" class="icon icon-sm"></wicket:svg></a>+ <a wicket:id="delete" class="mr-2 flex-shrink-0" t:data-tippy-content="Remove issue from this iteration"><wicket:svg href="trash" class="icon icon-sm"></wicket:svg></a><span wicket:id="status" class="status ml-auto"></span></div><div wicket:id="progress" class="mt-3"></div>@@ -58,7 +58,7 @@<li wicket:id="externalParticipants" class="pb-2"><div class="d-flex"><span wicket:id="label" class="mr-2"></span>- <a wicket:id="delete" class="flex-shrink-0 ml-auto" title="Remove this external participant from issue"><wicket:svg href="trash" class="icon icon-sm"></wicket:svg></a>+ <a wicket:id="delete" class="flex-shrink-0 ml-auto" t:data-tippy-content="Remove this external participant from issue"><wicket:svg href="trash" class="icon icon-sm"></wicket:svg></a></div></li><span class="form-text font-size-sm text-muted">diff --git a/server-core/src/main/java/io/onedev/server/web/component/issue/title/IssueTitlePanel.html b/server-core/src/main/java/io/onedev/server/web/component/issue/title/IssueTitlePanel.htmlindex 1b11e0a1d4..c085ef4277 100644--- a/server-core/src/main/java/io/onedev/server/web/component/issue/title/IssueTitlePanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/issue/title/IssueTitlePanel.html@@ -1,5 +1,5 @@<wicket:panel><span wicket:id="title" class="title"></span><a wicket:id="number" class="number"></a>- <span wicket:id="confidential" class="text-warning" title="Confidential"><wicket:svg href="incognito" class="icon"/></span>+ <span wicket:id="confidential" class="text-warning" t:data-tippy-content="Confidential"><wicket:svg href="incognito" class="icon"/></span></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/component/iteration/actions/IterationActionsPanel.html b/server-core/src/main/java/io/onedev/server/web/component/iteration/actions/IterationActionsPanel.htmlindex 4a13abb95d..f092cf2ddb 100644--- a/server-core/src/main/java/io/onedev/server/web/component/iteration/actions/IterationActionsPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/iteration/actions/IterationActionsPanel.html@@ -1,10 +1,10 @@<wicket:panel><span class="actions d-inline-flex align-items-center">- <a wicket:id="reopen" title="Reopen this iteration">Reopen</a>- <a wicket:id="close" title="Close this iteration">Close</a>+ <a wicket:id="reopen" t:data-tippy-content="Reopen this iteration">Reopen</a>+ <a wicket:id="close" t:data-tippy-content="Close this iteration">Close</a><span class="dot mx-2"></span>- <a wicket:id="edit" title="Edit this iteration">Edit</a>+ <a wicket:id="edit" t:data-tippy-content="Edit this iteration">Edit</a><span class="dot mx-2"></span>- <a wicket:id="delete" title="Delete this iteration">Delete</a>+ <a wicket:id="delete" t:data-tippy-content="Delete this iteration">Delete</a></span></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/component/modal/confirm/ContentPanel.html b/server-core/src/main/java/io/onedev/server/web/component/modal/confirm/ContentPanel.htmlindex d72d0579f3..b3e1c4c01c 100644--- a/server-core/src/main/java/io/onedev/server/web/component/modal/confirm/ContentPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/modal/confirm/ContentPanel.html@@ -2,7 +2,7 @@<div class="confirm"><form><div class="modal-header">- <h5 id="modal-title" class="modal-title">Please Confirm</h5>+ <h5 id="modal-title" class="modal-title"><wicket:t>Please Confirm</wicket:t></h5><button wicket:id="close" type="button" class="close"><wicket:svg href="times" class="icon"/></button></div><div class="modal-body">@@ -12,7 +12,7 @@</div><div class="modal-footer"><input wicket:id="ok" type="submit" class="btn btn-primary" t:value="Ok">- <a wicket:id="cancel" class="btn btn-secondary">Cancel</a>+ <a wicket:id="cancel" class="btn btn-secondary"><wicket:t>Cancel</wicket:t></a></div></form></div>diff --git a/server-core/src/main/java/io/onedev/server/web/component/offcanvas/OffCanvasCardSupportPanel.html b/server-core/src/main/java/io/onedev/server/web/component/offcanvas/OffCanvasCardSupportPanel.htmlindex 4f0c65f6f1..d6943473d5 100644--- a/server-core/src/main/java/io/onedev/server/web/component/offcanvas/OffCanvasCardSupportPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/offcanvas/OffCanvasCardSupportPanel.html@@ -3,7 +3,7 @@<div class="card-header flex-nowrap"><div wicket:id="title" class="card-title"></div><div class="card-toolbar">- <a wicket:id="close" class="text-muted text-hover-primary" title="Close"><wicket:svg href="times" class="icon"></wicket:svg></a>+ <a wicket:id="close" class="text-muted text-hover-primary" t:data-tippy-content="Close"><wicket:svg href="times" class="icon"></wicket:svg></a></div></div>diff --git a/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.html b/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.htmlindex c3b11493e2..18dd631bed 100644--- a/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.html@@ -6,7 +6,7 @@<div class="input-group"><input wicket:id="input" spellcheck="false" autocomplete="off" class="form-control" t:placeholder="Query/order packages"><span class="input-group-append">- <button wicket:id="submit" type="submit" class="btn btn-icon btn-outline-secondary" title="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" type="submit" class="btn btn-icon btn-outline-secondary" t:data-tippy-content="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></form>diff --git a/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.java b/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.javaindex ffaa7d9cf3..f7598aa5e9 100644--- a/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.java+++ b/server-core/src/main/java/io/onedev/server/web/component/pack/list/PackListPanel.java@@ -1,5 +1,7 @@package io.onedev.server.web.component.pack.list;+import static io.onedev.server.web.translation.Translation._T;+import java.util.ArrayList;import java.util.Collection;import java.util.Comparator;@@ -312,7 +314,7 @@ public abstract class PackListPanel extends Panel {@Overridepublic String getLabel() {- return "Delete All Queried Packages";+ return _T("Delete All Queried Packages");}@Overridediff --git a/server-core/src/main/java/io/onedev/server/web/component/project/info/ProjectInfoPanel.html b/server-core/src/main/java/io/onedev/server/web/component/project/info/ProjectInfoPanel.htmlindex cdae54ed95..eb6979e6d9 100644--- a/server-core/src/main/java/io/onedev/server/web/component/project/info/ProjectInfoPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/project/info/ProjectInfoPanel.html@@ -14,7 +14,7 @@<div><span wicket:id="forkInfo" class="btn-group fork-info"><a wicket:id="forks" class="btn btn-light btn-hover-primary"><span wicket:id="label"></span></a>- <a wicket:id="forkNow" class="btn btn-light btn-hover-primary btn-icon" title="Fork now"><wicket:svg href="fork" class="icon"/></a>+ <a wicket:id="forkNow" class="btn btn-light btn-hover-primary btn-icon" t:data-tippy-content="Fork now"><wicket:svg href="fork" class="icon"/></a></span></div></wicket:enclosure>@@ -33,7 +33,7 @@<tr wicket:id="replicas"><td wicket:id="server"></td><td class="text-right">- <a wicket:id="sync" title="Request to sync"><wicket:svg href="refresh" class="icon"/></a>+ <a wicket:id="sync" t:data-tippy-content="Request to sync"><wicket:svg href="refresh" class="icon"/></a></td></tr></tbody>diff --git a/server-core/src/main/java/io/onedev/server/web/component/project/list/ProjectListPanel.html b/server-core/src/main/java/io/onedev/server/web/component/project/list/ProjectListPanel.htmlindex 3573c1f386..5350f21a53 100644--- a/server-core/src/main/java/io/onedev/server/web/component/project/list/ProjectListPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/project/list/ProjectListPanel.html@@ -6,7 +6,7 @@<div class="input-group"><input wicket:id="input" spellcheck="false" autocomplete="off" class="form-control" t:placeholder="Query/order projects"><span class="input-group-append">- <button wicket:id="submit" t:data-tippy-content="Query" type="submit" class="btn btn-outline-secondary btn-icon" title="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" t:data-tippy-content="Query" type="submit" class="btn btn-outline-secondary btn-icon"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></form>diff --git a/server-core/src/main/java/io/onedev/server/web/component/pullrequest/RequestStatusBadge.java b/server-core/src/main/java/io/onedev/server/web/component/pullrequest/RequestStatusBadge.javaindex 7bdaba2761..3fe44673cf 100644--- a/server-core/src/main/java/io/onedev/server/web/component/pullrequest/RequestStatusBadge.java+++ b/server-core/src/main/java/io/onedev/server/web/component/pullrequest/RequestStatusBadge.java@@ -1,5 +1,7 @@package io.onedev.server.web.component.pullrequest;+import static io.onedev.server.web.translation.Translation._T;+import org.apache.wicket.behavior.AttributeAppender;import org.apache.wicket.markup.html.basic.Label;import org.apache.wicket.model.AbstractReadOnlyModel;@@ -17,7 +19,7 @@ public class RequestStatusBadge extends Label {@Overrideprotected String load() {- return requestModel.getObject().getStatus().toString();+ return _T(requestModel.getObject().getStatus().toString());}});diff --git a/server-core/src/main/java/io/onedev/server/web/component/pullrequest/assignment/AssignmentListPanel.html b/server-core/src/main/java/io/onedev/server/web/component/pullrequest/assignment/AssignmentListPanel.htmlindex 1403d410c4..071af54d4d 100644--- a/server-core/src/main/java/io/onedev/server/web/component/pullrequest/assignment/AssignmentListPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/pullrequest/assignment/AssignmentListPanel.html@@ -2,7 +2,7 @@<ul class="assignments list-unstyled mb-0"><li wicket:id="assignments" class="d-flex align-items-center flex-nowrap"><a wicket:id="user" class="mr-2 left flex-shrink-0"></a>- <a wicket:id="delete" class="right delete btn btn-icon btn-xs btn-light btn-hover-danger flex-shrink-0" title="Remove this assignee"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="right delete btn btn-icon btn-xs btn-light btn-hover-danger flex-shrink-0" t:data-tippy-content="Remove this assignee"><wicket:svg href="trash" class="icon"></wicket:svg></a></li><wicket:enclosure><li class="add-assignee">diff --git a/server-core/src/main/java/io/onedev/server/web/component/pullrequest/list/PullRequestListPanel.html b/server-core/src/main/java/io/onedev/server/web/component/pullrequest/list/PullRequestListPanel.htmlindex 6ecd128711..95907745ac 100644--- a/server-core/src/main/java/io/onedev/server/web/component/pullrequest/list/PullRequestListPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/pullrequest/list/PullRequestListPanel.html@@ -46,7 +46,7 @@</span><span wicket:id="labels" class="mr-2"></span></div>- <div class="flex-shrink-0 comments d-none d-lg-block text-muted" title="Comments">+ <div class="flex-shrink-0 comments d-none d-lg-block text-muted" t:data-tippy-content="Comments"><wicket:svg href="comments" class="icon"></wicket:svg> <span wicket:id="comments"></span></div></div>diff --git a/server-core/src/main/java/io/onedev/server/web/component/pullrequest/review/ReviewListPanel.html b/server-core/src/main/java/io/onedev/server/web/component/pullrequest/review/ReviewListPanel.htmlindex a0cdb274f7..d28158a97f 100644--- a/server-core/src/main/java/io/onedev/server/web/component/pullrequest/review/ReviewListPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/pullrequest/review/ReviewListPanel.html@@ -3,8 +3,8 @@<li wicket:id="reviews" class="d-flex flex-nowrap align-items-center"><a wicket:id="user" class="reviewer left mr-2 flex-shrink-0"></a><span class="flex-shrink-0 right d-flex align-items-center">- <a wicket:id="refresh" class="refresh btn btn-xs btn-icon btn-light btn-hover-primary flex-shrink-0 mr-2" title="Request review"><wicket:svg href="refresh" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="delete btn btn-xs btn-icon btn-light btn-hover-danger flex-shrink-0 mr-2" title="Remove this reviewer"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="refresh" class="refresh btn btn-xs btn-icon btn-light btn-hover-primary flex-shrink-0 mr-2" t:data-tippy-content="Request review"><wicket:svg href="refresh" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="delete btn btn-xs btn-icon btn-light btn-hover-danger flex-shrink-0 mr-2" t:data-tippy-content="Remove this reviewer"><wicket:svg href="trash" class="icon"></wicket:svg></a><span wicket:id="status" class="status flex-shrink-0"></span></span></li>diff --git a/server-core/src/main/java/io/onedev/server/web/component/savedquery/SavedQueriesPanel.html b/server-core/src/main/java/io/onedev/server/web/component/savedquery/SavedQueriesPanel.htmlindex 73d57794bc..e08d512a15 100644--- a/server-core/src/main/java/io/onedev/server/web/component/savedquery/SavedQueriesPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/savedquery/SavedQueriesPanel.html@@ -3,10 +3,10 @@<div class="card-header"><h3 class="card-title mr-4"><wicket:t>Saved Queries</wicket:t></h3><div class="card-toolbar">- <a wicket:id="edit" t:data-tippy-content="Edit saved queries" class="edit-saved-queries mr-2 btn btn-light btn-xs btn-icon btn-hover-primary text-muted" title="Edit saved queries">+ <a wicket:id="edit" t:data-tippy-content="Edit saved queries" class="edit-saved-queries mr-2 btn btn-light btn-xs btn-icon btn-hover-primary text-muted"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="close" t:data-tippy-content="Hide saved queries" class="close-saved-queries btn btn-light btn-xs btn-icon btn-hover-danger text-muted" title="Hide saved queries">+ <a wicket:id="close" t:data-tippy-content="Hide saved queries" class="close-saved-queries btn btn-light btn-xs btn-icon btn-hover-danger text-muted"><wicket:svg href="times" class="icon"></wicket:svg></a></div>diff --git a/server-core/src/main/java/io/onedev/server/web/component/savedquery/saved-queries.css b/server-core/src/main/java/io/onedev/server/web/component/savedquery/saved-queries.cssindex d904edc33a..c3ac9571e0 100644--- a/server-core/src/main/java/io/onedev/server/web/component/savedquery/saved-queries.css+++ b/server-core/src/main/java/io/onedev/server/web/component/savedquery/saved-queries.css@@ -1,5 +1,5 @@-.saved-queries > .card-body .watch-status:after,-.saved-queries > .card-body .subscription-status:after {+.saved-queries > .card-body .watch-status .text,+.saved-queries > .card-body .subscription-status .text {display: none;}.edit-saved-queries .modal-footer {diff --git a/server-core/src/main/java/io/onedev/server/web/component/sideinfo/SideInfoPanel.html b/server-core/src/main/java/io/onedev/server/web/component/sideinfo/SideInfoPanel.htmlindex 654c415b9c..3a78e6c538 100644--- a/server-core/src/main/java/io/onedev/server/web/component/sideinfo/SideInfoPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/sideinfo/SideInfoPanel.html@@ -1,7 +1,7 @@<wicket:panel><div class="header d-flex align-items-center flex-shrink-0 border-bottom"><div wicket:id="title" class="title flex-grow-1"></div>- <a wicket:id="close" title="Hide" class="flex-shrink-0 ml-4 close align-items-center"><wicket:svg href="times" class="icon"/></a>+ <a wicket:id="close" t:data-tippy-content="Hide" class="flex-shrink-0 ml-4 close align-items-center"><wicket:svg href="times" class="icon"/></a></div><div wicket:id="body" class="body flex-grow-1"></div></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/component/sortedit/SortEditPanel.html b/server-core/src/main/java/io/onedev/server/web/component/sortedit/SortEditPanel.htmlindex 8134e1898d..0e8d4951da 100644--- a/server-core/src/main/java/io/onedev/server/web/component/sortedit/SortEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/sortedit/SortEditPanel.html@@ -12,13 +12,13 @@</label></td><td class="actions">- <a wicket:id="remove" title="Remove"><wicket:svg href="times" class="icon"/></a>+ <a wicket:id="remove" t:data-tippy-content="Remove"><wicket:svg href="times" class="icon"/></a></td></tr></table><ul wicket:id="available" class="available list-unstyled mb-0"><li wicket:id="availableItems">- <a wicket:id="add" title="Add" class="d-flex align-items-center text-hover-gray-dark text-nowrap">+ <a wicket:id="add" t:data-tippy-content="Add" class="d-flex align-items-center text-hover-gray-dark text-nowrap"><wicket:svg href="plus" class="icon"></wicket:svg><span wicket:id="name"></span></a>diff --git a/server-core/src/main/java/io/onedev/server/web/component/subscriptionstatus/SubscriptionStatusLink.java b/server-core/src/main/java/io/onedev/server/web/component/subscriptionstatus/SubscriptionStatusLink.javaindex a06aeef400..7953c3e2f3 100644--- a/server-core/src/main/java/io/onedev/server/web/component/subscriptionstatus/SubscriptionStatusLink.java+++ b/server-core/src/main/java/io/onedev/server/web/component/subscriptionstatus/SubscriptionStatusLink.java@@ -1,5 +1,7 @@package io.onedev.server.web.component.subscriptionstatus;+import static io.onedev.server.web.translation.Translation._T;+import org.apache.wicket.ajax.AjaxRequestTarget;import org.apache.wicket.ajax.markup.html.AjaxLink;import org.apache.wicket.markup.ComponentTag;@@ -35,10 +37,10 @@ public abstract class SubscriptionStatusLink extends AjaxLink<Void> {classes = "";if (isSubscribed()) {tag.put("class", classes + " subscription-status subscribed");- tag.put("title", "Watched. Click to unwatch");+ tag.put("data-tippy-content", _T("Watched. Click to unwatch"));} else {tag.put("class", classes + " subscription-status unsubscribed");- tag.put("title", "Unwatched. Click to watch");+ tag.put("data-tippy-content", _T("Unwatched. Click to watch"));}}diff --git a/server-core/src/main/java/io/onedev/server/web/component/user/emailaddresses/EmailAddressesPanel.html b/server-core/src/main/java/io/onedev/server/web/component/user/emailaddresses/EmailAddressesPanel.htmlindex 7b82c26d9e..1939f7e28d 100644--- a/server-core/src/main/java/io/onedev/server/web/component/user/emailaddresses/EmailAddressesPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/user/emailaddresses/EmailAddressesPanel.html@@ -16,7 +16,7 @@<span wicket:id="verificationStatus" class="ml-1"></span></td><td>- <a wicket:id="operations" title="Operations" class="btn btn-xs btn-icon btn-light btn-hover-primary"><wicket:svg href="arrow" class="icon rotate-90"/></a>+ <a wicket:id="operations" t:data-tippy-content="Operations" class="btn btn-xs btn-icon btn-light btn-hover-primary"><wicket:svg href="arrow" class="icon rotate-90"/></a></td></tr><tr>diff --git a/server-core/src/main/java/io/onedev/server/web/component/watchstatus/WatchStatusLink.java b/server-core/src/main/java/io/onedev/server/web/component/watchstatus/WatchStatusLink.javaindex e06f24ab00..b75908d60f 100644--- a/server-core/src/main/java/io/onedev/server/web/component/watchstatus/WatchStatusLink.java+++ b/server-core/src/main/java/io/onedev/server/web/component/watchstatus/WatchStatusLink.java@@ -4,6 +4,9 @@ import io.onedev.server.util.watch.WatchStatus;import io.onedev.server.web.component.floating.FloatingPanel;import io.onedev.server.web.component.link.DropdownLink;import io.onedev.server.web.component.svg.SpriteImage;++import static io.onedev.server.web.translation.Translation._T;+import org.apache.wicket.Component;import org.apache.wicket.ajax.AjaxRequestTarget;import org.apache.wicket.behavior.AttributeAppender;@@ -44,9 +47,9 @@ public abstract class WatchStatusLink extends DropdownLink {@Overridepublic IModel<?> getBody() {return Model.of(String.format(""- + "<svg class='icon icon-bell-ring'><use xlink:href='%s'/></svg>"- + "<svg class='icon icon-bell'><use xlink:href='%s'/></svg>"- + "<svg class='icon icon-bell-off'><use xlink:href='%s'/></svg>",+ + "<span class='default'><svg class='icon'><use xlink:href='%s'/></svg> <span class='text'>" + _T("Watch if involved") + "</span></span>"+ + "<span class='watch'><svg class='icon'><use xlink:href='%s'/></svg> <span class='text'>" + _T("Watch") + "</span></span>"+ + "<span class='ignore'><svg class='icon'><use xlink:href='%s'/></svg> <span class='text'>" + _T("Ignore") + "</span></span>",SpriteImage.getVersionedHref("bell-ring"),SpriteImage.getVersionedHref("bell"),SpriteImage.getVersionedHref("bell-off")));diff --git a/server-core/src/main/java/io/onedev/server/web/component/watchstatus/WatchStatusPanel.html b/server-core/src/main/java/io/onedev/server/web/component/watchstatus/WatchStatusPanel.htmlindex 366efb09fd..87ebc8485e 100644--- a/server-core/src/main/java/io/onedev/server/web/component/watchstatus/WatchStatusPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/component/watchstatus/WatchStatusPanel.html@@ -3,22 +3,22 @@<a wicket:id="default" class="d-flex px-3 py-2 text-hover-gray-dark"><wicket:svg href="tick" class="icon mr-2 mt-1"/><div>- <div class="font-weight-bold">Watch if involved (default)</div>- <div class="text-muted font-size-sm mt-1">Start to watch once I am involved</div>+ <div class="font-weight-bold"><wicket:t>Watch if involved (default)</wicket:t></div>+ <div class="text-muted font-size-sm mt-1"><wicket:t>Start to watch once I am involved</wicket:t></div></div></a><a wicket:id="watch" class="d-flex px-3 py-2 text-hover-gray-dark"><wicket:svg href="tick" class="icon mr-2 mt-1"/><div>- <div class="font-weight-bold">Watch</div>- <div class="text-muted font-size-sm mt-1">You will be notified of any activities</div>+ <div class="font-weight-bold"><wicket:t>Watch</wicket:t></div>+ <div class="text-muted font-size-sm mt-1"><wicket:t>You will be notified of any activities</wicket:t></div></div></a><a wicket:id="ignore" class="d-flex px-3 py-2 text-hover-gray-dark"><wicket:svg href="tick" class="icon mr-2 mt-1"/><div>- <div class="font-weight-bold">Ignore</div>- <div class="text-muted font-size-sm mt-1">Ignore activities irrelevant to me</div>+ <div class="font-weight-bold"><wicket:t>Ignore</wicket:t></div>+ <div class="text-muted font-size-sm mt-1"><wicket:t>Ignore activities irrelevant to me</wicket:t></div></div></a></div>diff --git a/server-core/src/main/java/io/onedev/server/web/component/watchstatus/watch-status.css b/server-core/src/main/java/io/onedev/server/web/component/watchstatus/watch-status.cssindex 3507b6a4e9..479de4b6c6 100644--- a/server-core/src/main/java/io/onedev/server/web/component/watchstatus/watch-status.css+++ b/server-core/src/main/java/io/onedev/server/web/component/watchstatus/watch-status.css@@ -1,21 +1,12 @@.watch-status:AFTER {margin-left: 0.5rem;}-.watch-status.default:AFTER {- content: "Watch if involved";-}-.watch-status.watch:AFTER {- content: "Watch";-}-.watch-status.ignore:AFTER {- content: "Ignore";-}-.watch-status .icon {+.watch-status>span {display: none;}-.watch-status.default .icon-bell,-.watch-status.watch .icon-bell-ring,-.watch-status.ignore .icon-bell-off {+.watch-status.default>span.default,+.watch-status.watch>span.watch,+.watch-status.ignore>span.ignore {display: inline-block;}diff --git a/server-core/src/main/java/io/onedev/server/web/editable/agentquery/AgentQueryEditPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/agentquery/AgentQueryEditPanel.htmlindex 176b0537aa..06049588a0 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/agentquery/AgentQueryEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/agentquery/AgentQueryEditPanel.html@@ -6,7 +6,7 @@</div></div><div class="flex-shrink-0">- <a wicket:id="showSelectedAgents" class="btn btn-icon btn-primary" title="Show matching agents" target="_blank"><wicket:svg href="computer" class="icon"/></a>+ <a wicket:id="showSelectedAgents" class="btn btn-icon btn-primary" t:data-tippy-content="Show matching agents" target="_blank"><wicket:svg href="computer" class="icon"/></a></div></div></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/agentquery/AgentQueryViewPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/agentquery/AgentQueryViewPanel.htmlindex ac593f1d9f..ea21f3a218 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/agentquery/AgentQueryViewPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/agentquery/AgentQueryViewPanel.html@@ -1,4 +1,4 @@<wicket:panel><span wicket:id="queryString" class="mr-2"></span>- <a wicket:id="showSelectedAgents" title="Show matching agents" target="_blank"><wicket:svg href="computer" class="icon"/></a>+ <a wicket:id="showSelectedAgents" t:data-tippy-content="Show matching agents" target="_blank"><wicket:svg href="computer" class="icon"/></a></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/jobdependency/JobDependencyListEditPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/jobdependency/JobDependencyListEditPanel.htmlindex 45198f6d71..7dea6d7632 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/jobdependency/JobDependencyListEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/jobdependency/JobDependencyListEditPanel.html@@ -2,11 +2,11 @@<div class="job-dependency-list"><table wicket:id="dependencies" class="table-hover"></table><div class="foot">- <a wicket:id="addNew" title="Add new job dependency" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" t:data-tippy-content="Add new job dependency" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-icon btn-xs btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-icon btn-xs btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/postbuildaction/PostBuildActionListEditPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/postbuildaction/PostBuildActionListEditPanel.htmlindex f9bbe25ee7..a726fb12a9 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/postbuildaction/PostBuildActionListEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/postbuildaction/PostBuildActionListEditPanel.html@@ -2,11 +2,11 @@<div class="post-build-action-list"><table wicket:id="actions" class="table-hover"></table><div class="foot">- <a wicket:id="addNew" title="Add new post-build action" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" t:data-tippy-content="Add new post-build action" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-icon btn-xs btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-icon btn-xs btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/projectdependency/ProjectDependencyListEditPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/projectdependency/ProjectDependencyListEditPanel.htmlindex fb8eb04a5a..3098ce7663 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/projectdependency/ProjectDependencyListEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/projectdependency/ProjectDependencyListEditPanel.html@@ -2,11 +2,11 @@<div class="job-dependency-list"><table wicket:id="dependencies" class="table-hover"></table><div class="foot">- <a wicket:id="addNew" title="Add new project dependency" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" t:data-tippy-content="Add new project dependency" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/trigger/JobTriggerListEditPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/trigger/JobTriggerListEditPanel.htmlindex 692b79f0cb..c69c89fce9 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/trigger/JobTriggerListEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/job/trigger/JobTriggerListEditPanel.html@@ -2,11 +2,11 @@<div class="job-trigger-list"><table wicket:id="triggers" class="table-hover"></table><div class="foot">- <a wicket:id="addNew" title="Add new trigger" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" t:data-tippy-content="Add new trigger" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/param/instance/ParamMatrixEditPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/param/instance/ParamMatrixEditPanel.htmlindex 72381c0bcd..8f947e8de3 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/param/instance/ParamMatrixEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/param/instance/ParamMatrixEditPanel.html@@ -15,11 +15,11 @@<div wicket:id="values" class="specified-value"><div class="d-flex align-items-center mb-3"><div wicket:id="value" class="flex-grow-1 mr-3"></div>- <a wicket:id="delete" class="flex-shrink-0 btn btn-icon btn-light btn-hover-danger" title="Delete this value"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="flex-shrink-0 btn btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete this value"><wicket:svg href="trash" class="icon"></wicket:svg></a></div><div wicket:id="feedback" class="feedback mb-3"></div></div>- <a wicket:id="add" class="btn btn-light btn-hover-primary btn-block mb-1" title="Add value"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="add" class="btn btn-light btn-hover-primary btn-block mb-1" t:data-tippy-content="Add value"><wicket:svg href="plus" class="icon"></wicket:svg></a><div wicket:id="matrixDescription" class="text-muted font-size-sm"></div></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/param/spec/ParamSpecListEditPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/param/spec/ParamSpecListEditPanel.htmlindex ab7cddfbf7..c18f394529 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/param/spec/ParamSpecListEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/param/spec/ParamSpecListEditPanel.html@@ -2,11 +2,11 @@<div class="param-spec-list"><table wicket:id="paramSpecs" class="table-hover"></table><div class="foot">- <a wicket:id="addNew" title="Add new param" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" t:data-tippy-content="Add new param" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-light btn-hover-primary btn-icon btn-xs mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-light btn-hover-danger btn-icon btn-xs" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-light btn-hover-primary btn-icon btn-xs mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-light btn-hover-danger btn-icon btn-xs" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/step/StepListEditPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/step/StepListEditPanel.htmlindex 391a30bf14..4363d50985 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/buildspec/step/StepListEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/buildspec/step/StepListEditPanel.html@@ -2,11 +2,11 @@<div class="step-list"><table wicket:id="steps" class="table-hover"></table><div class="foot">- <a wicket:id="addNew" title="Add new step" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" t:data-tippy-content="Add new step" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="actions" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="More operations"><wicket:svg href="arrow" class="icon rotate-90"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="actions" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="More operations"><wicket:svg href="arrow" class="icon rotate-90"></wicket:svg></a></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/interpolativestringlist/InterpolativeStringListPropertyEditor.html b/server-core/src/main/java/io/onedev/server/web/editable/interpolativestringlist/InterpolativeStringListPropertyEditor.htmlindex c8fae60f85..b06aab9ba9 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/interpolativestringlist/InterpolativeStringListPropertyEditor.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/interpolativestringlist/InterpolativeStringListPropertyEditor.html@@ -13,7 +13,7 @@<div wicket:id="feedback"></div></td><td class="actions minimum">- <a wicket:id="deleteElement" class="btn btn-icon btn-light btn-hover-danger" title="Delete this"><wicket:svg href="trash" class="icon delete"/></a>+ <a wicket:id="deleteElement" class="btn btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete this"><wicket:svg href="trash" class="icon delete"/></a></td></tr></tbody>@@ -23,6 +23,6 @@</tr></tfoot></table>- <div class="foot"><a wicket:id="addElement" title="Add new" class="add-element btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div>+ <div class="foot"><a wicket:id="addElement" t:data-tippy-content="Add new" class="add-element btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div></div></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/issue/creation/IssueCreationSettingListEditPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/issue/creation/IssueCreationSettingListEditPanel.htmlindex 04211b2a55..38d43a6e1d 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/issue/creation/IssueCreationSettingListEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/issue/creation/IssueCreationSettingListEditPanel.html@@ -2,11 +2,11 @@<div class="issue-creation-setting-list"><table wicket:id="settings" class="table-hover"></table><div class="foot">- <a wicket:id="addNew" title="Add new issue creation setting" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" t:data-tippy-content="Add new issue creation setting" class="btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-icon btn-xs btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-icon btn-xs btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/polymorphiclist/PolymorphicListPropertyEditor.html b/server-core/src/main/java/io/onedev/server/web/editable/polymorphiclist/PolymorphicListPropertyEditor.htmlindex 78a6adb763..a8a673b749 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/polymorphiclist/PolymorphicListPropertyEditor.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/polymorphiclist/PolymorphicListPropertyEditor.html@@ -11,7 +11,7 @@<div wicket:id="feedback"></div></td><td class="actions minimum">- <a wicket:id="deleteElement" class="btn btn-icon btn-light btn-hover-danger" title="Delete this"><wicket:svg href="trash" class="icon delete"/></a>+ <a wicket:id="deleteElement" class="btn btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete this"><wicket:svg href="trash" class="icon delete"/></a></td></tr></tbody>@@ -21,6 +21,6 @@</tr></tfoot></table>- <div class="foot"><a wicket:id="addElement" title="Add new" class="add-element btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div>+ <div class="foot"><a wicket:id="addElement" t:data-tippy-content="Add new" class="add-element btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div></div></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/refreshtoken/RefreshTokenPropertyEditor.html b/server-core/src/main/java/io/onedev/server/web/editable/refreshtoken/RefreshTokenPropertyEditor.htmlindex 0b09cb1206..cc34194e26 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/refreshtoken/RefreshTokenPropertyEditor.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/refreshtoken/RefreshTokenPropertyEditor.html@@ -2,7 +2,7 @@<div class="input-group"><input wicket:id="input" type="password" autocomplete="new-password" class="form-control"><span class="input-group-append">- <button wicket:id="generate" title="Login and generate refresh token" class="btn btn-outline-secondary btn-icon"><wicket:svg href="refresh" class="icon"/></button>+ <button wicket:id="generate" t:data-tippy-content="Login and generate refresh token" class="btn btn-outline-secondary btn-icon"><wicket:svg href="refresh" class="icon"/></button></span></div></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/secret/SecretPropertyViewer.html b/server-core/src/main/java/io/onedev/server/web/editable/secret/SecretPropertyViewer.htmlindex 029f949c13..40a8819d41 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/secret/SecretPropertyViewer.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/secret/SecretPropertyViewer.html@@ -1,6 +1,6 @@<wicket:panel><div class="d-flex align-items-center"><div wicket:id="maskedValue" class="mr-2"></div>- <a wicket:id="copy" class="mt-n1" title="Copy to clipboard"><wicket:svg href="copy" class="icon icon-sm"/></a>+ <a wicket:id="copy" class="mt-n1" t:data-tippy-content="Copy to clipboard"><wicket:svg href="copy" class="icon icon-sm"/></a></div></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/servicelocator/ServiceLocatorListEditPanel.html b/server-core/src/main/java/io/onedev/server/web/editable/servicelocator/ServiceLocatorListEditPanel.htmlindex 1c20527e14..7df86d88cb 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/servicelocator/ServiceLocatorListEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/servicelocator/ServiceLocatorListEditPanel.html@@ -6,7 +6,7 @@</div></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-light btn-hover-primary btn-xs btn-icon mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-light btn-hover-danger btn-xs btn-icon" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-light btn-hover-primary btn-xs btn-icon mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-light btn-hover-danger btn-xs btn-icon" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/editable/verticalbeanlist/VerticalBeanListPropertyEditor.html b/server-core/src/main/java/io/onedev/server/web/editable/verticalbeanlist/VerticalBeanListPropertyEditor.htmlindex be4a13baf7..29c5d4fd61 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/verticalbeanlist/VerticalBeanListPropertyEditor.html+++ b/server-core/src/main/java/io/onedev/server/web/editable/verticalbeanlist/VerticalBeanListPropertyEditor.html@@ -11,7 +11,7 @@<div wicket:id="feedback"></div></td><td class="actions minimum">- <a wicket:id="deleteElement" class="btn btn-icon btn-light btn-hover-danger" title="Delete this"><wicket:svg href="trash" class="icon delete"/></a>+ <a wicket:id="deleteElement" class="btn btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete this"><wicket:svg href="trash" class="icon delete"/></a></td></tr></tbody>@@ -21,6 +21,6 @@</tr></tfoot></table>- <div class="foot"><a wicket:id="addElement" title="Add new" class="add-element btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div>+ <div class="foot"><a wicket:id="addElement" t:data-tippy-content="Add new" class="add-element btn btn-light btn-hover-primary btn-block"><wicket:svg href="plus" class="icon"></wicket:svg></a></div></div></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentListPanel.html b/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentListPanel.htmlindex 9353eb2dda..fc3b78fb37 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentListPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentListPanel.html@@ -6,11 +6,11 @@<div class="input-group"><input wicket:id="input" spellcheck="false" autocomplete="off" class="form-control" t:placeholder="Query/order agents"><span class="input-group-append">- <button wicket:id="submit" type="submit" class="btn btn-outline-secondary btn-icon" title="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" type="submit" class="btn btn-outline-secondary btn-icon" t:data-tippy-content="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></form>- <a wicket:id="addAgent" class="btn btn-primary btn-icon flex-shrink-0 ml-3" title="Add agent"><wicket:svg href="plus" class="icon"/></a>+ <a wicket:id="addAgent" class="btn btn-primary btn-icon flex-shrink-0 ml-3" t:data-tippy-content="Add agent"><wicket:svg href="plus" class="icon"/></a></div><div class="operations mb-4"><a wicket:id="showSavedQueries" class="show-saved-queries text-gray mr-4 d-inline-block mb-2 text-nowrap">@@ -40,10 +40,10 @@</div></div><wicket:fragment wicket:id="cpuHeaderFrag">- <span class="mr-1">CPU</span> <a title="CPU capability in millis. This is normally (CPU cores)*1000"><wicket:svg href="question-circle-o" class="icon icon-sm"/></a>+ <span class="mr-1">CPU</span> <a t:data-tippy-content="CPU capability in millis. This is normally (CPU cores)*1000"><wicket:svg href="question-circle-o" class="icon icon-sm"/></a></wicket:fragment><wicket:fragment wicket:id="memoryHeaderFrag">- <span class="mr-1">Memory</span> <a title="Physical memory in mega bytes"><wicket:svg href="question-circle-o" class="icon icon-sm"/></a>+ <span class="mr-1">Memory</span> <a t:data-tippy-content="Physical memory in mega bytes"><wicket:svg href="question-circle-o" class="icon icon-sm"/></a></wicket:fragment><wicket:fragment wicket:id="agentLinkFrag"><a wicket:id="link" class="d-flex align-items-center"><svg wicket:id="icon" class="icon icon-lg mr-1"></svg> <span wicket:id="label"></span></a>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentLogPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentLogPage.htmlindex 5960d535cf..c37b0c499d 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentLogPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentLogPage.html@@ -3,7 +3,7 @@<wicket:fragment wicket:id="onlineFrag"><div class="card server-log"><div class="card-body">- <a wicket:id="download" class="btn btn-light btn-hover-primary btn-block mb-4" title="Download log"><wicket:svg href="download" class="icon mr-2"/> Download</a>+ <a wicket:id="download" class="btn btn-light btn-hover-primary btn-block mb-4" t:data-tippy-content="Download log"><wicket:svg href="download" class="icon mr-2"/> Download</a><div wicket:id="warning" class="alert alert-notice alert-light-warning mb-4"></div><pre class="font-size-sm" wicket:id="logContent"></pre></div>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentOverviewPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentOverviewPage.htmlindex 81c13d1e80..da3b13a7a3 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentOverviewPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/agent/AgentOverviewPage.html@@ -38,8 +38,8 @@<div class="mb-4"><span class="font-weight-bold">Access Token: </span><span wicket:id="accessToken" class="text-monospace font-size-sm mr-2"></span>- <a wicket:id="copyAccessToken" title="copy"><wicket:svg href="copy" class="icon mr-1"/></a>- <a wicket:id="regenerateAccessToken" title="Regenerate"><wicket:svg href="refresh2" class="icon"/></a>+ <a wicket:id="copyAccessToken" t:data-tippy-content="copy"><wicket:svg href="copy" class="icon mr-1"/></a>+ <a wicket:id="regenerateAccessToken" t:data-tippy-content="Regenerate"><wicket:svg href="refresh2" class="icon"/></a></div><div wicket:id="attributes"></div><wicket:fragment wicket:id="onlineAttributesFrag">diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/jobexecutor/JobExecutorPanel.html b/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/jobexecutor/JobExecutorPanel.htmlindex 9615cd2c92..0dd8202893 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/jobexecutor/JobExecutorPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/buildsetting/jobexecutor/JobExecutorPanel.html@@ -7,10 +7,10 @@<wicket:svg href="grip" class="icon icon-lg"></wicket:svg></span><span wicket:id="name" class="name mr-3"></span>- <a wicket:id="edit" title="Edit this executor" onclick="$(this).closest('.job-executor').addClass('expanded');" class="btn btn-light btn-xs btn-icon btn-hover-primary text-muted mr-2">+ <a wicket:id="edit" t:data-tippy-content="Edit this executor" onclick="$(this).closest('.job-executor').addClass('expanded');" class="btn btn-light btn-xs btn-icon btn-hover-primary text-muted mr-2"><wicket:svg href="edit" class="icon"/></a>- <a wicket:id="delete" title="Delete this executor" class="btn btn-light btn-xs btn-icon btn-hover-danger text-muted mr-4">+ <a wicket:id="delete" t:data-tippy-content="Delete this executor" class="btn btn-light btn-xs btn-icon btn-hover-danger text-muted mr-4"><wicket:svg href="trash" class="icon"/></a><span wicket:id="disabled" class="badge badge-light-warning">Disabled</span>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/gpgsigningkey/GpgSigningKeyPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/gpgsigningkey/GpgSigningKeyPage.htmlindex 7d341c4f19..857f151ad0 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/gpgsigningkey/GpgSigningKeyPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/gpgsigningkey/GpgSigningKeyPage.html@@ -17,7 +17,7 @@<dd wicket:id="emailAddress"></dd><dt>Key ID</dt><dd wicket:id="keyID"></dd>- <dt class="mb-2">Public Key <a wicket:id="copyPublicKey" title="Copy public key"><wicket:svg href="copy" class="icon"/></a></dt>+ <dt class="mb-2">Public Key <a wicket:id="copyPublicKey" t:data-tippy-content="Copy public key"><wicket:svg href="copy" class="icon"/></a></dt><dd><pre wicket:id="publicKey" class="font-size-sm bg-light p-3 rounded"></pre></dd>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/gpgtrustedkeys/GpgTrustedKeysPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/gpgtrustedkeys/GpgTrustedKeysPage.htmlindex 3a3d606742..ec7f709783 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/gpgtrustedkeys/GpgTrustedKeysPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/gpgtrustedkeys/GpgTrustedKeysPage.html@@ -4,12 +4,12 @@<div class="alert alert-light alert-notice mb-4">Add GPG public keys to be trusted here. Commits signed with trusted keys will be shown as verified.</div>- <a wicket:id="newKey" class="btn btn-primary btn-icon mb-4" title="Add GPG Key"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="newKey" class="btn btn-primary btn-icon mb-4" t:data-tippy-content="Add GPG key"><wicket:svg href="plus" class="icon"></wicket:svg></a><table wicket:id="keys" class="table table-hover"></table></div></div><wicket:fragment wicket:id="actionFrag">- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete this key"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete this key"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment><wicket:fragment wicket:id="addKeyFrag"><div class="add-gpg-trusted-key">diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/groovyscript/GroovyScriptListPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/groovyscript/GroovyScriptListPage.htmlindex fb41bb5096..44187ff306 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/groovyscript/GroovyScriptListPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/groovyscript/GroovyScriptListPage.html@@ -1,12 +1,12 @@<wicket:extend><div class="card"><div class="card-body">- <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" title="Add groovy script"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" t:data-tippy-content="Add groovy script"><wicket:svg href="plus" class="icon"></wicket:svg></a><table wicket:id="scripts" class="table table-hover"></table></div></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:extend>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/defaultboard/DefaultBoardListPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/defaultboard/DefaultBoardListPage.htmlindex d7984b3359..8966c85ec6 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/defaultboard/DefaultBoardListPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/defaultboard/DefaultBoardListPage.html@@ -3,11 +3,11 @@<wicket:svg href="bulb" class="icon"/> Define default issue boards for all projects here.A certain project can override this setting to define its own issue boards.</div>- <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" title="Add default issue board"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" t:data-tippy-content="Add default issue board"><wicket:svg href="plus" class="icon"></wicket:svg></a><table wicket:id="issueBoards" class="table table-hover"></table><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:extend>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/fieldspec/IssueFieldListPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/fieldspec/IssueFieldListPage.htmlindex 81c1b152f2..fdfa816ea2 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/fieldspec/IssueFieldListPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/fieldspec/IssueFieldListPage.html@@ -6,11 +6,11 @@<b class="text-warning">NOTE: </b> Newly defined fields by default only appear in new issues.Batch edit existing issues from issue list page if you want them to have these new fields</div>- <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" title="Add custom field"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" t:data-tippy-content="Add custom field"><wicket:svg href="plus" class="icon"></wicket:svg></a><table wicket:id="issueFields" class="table table-hover"></table></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:extend>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/issuetemplate/IssueTemplateListPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/issuetemplate/IssueTemplateListPage.htmlindex c2e304fc18..4bde0610b3 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/issuetemplate/IssueTemplateListPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/issuetemplate/IssueTemplateListPage.html@@ -3,11 +3,11 @@<wicket:svg href="bulb" class="icon"/> Define issue templates here.When a new issue is created, the first matching template will be used.</div>- <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" title="Add issue description template"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" t:data-tippy-content="Add issue description template"><wicket:svg href="plus" class="icon"></wicket:svg></a><table wicket:id="issueTemplates" class="table table-hover"></table><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:extend>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/linkspec/LinkSpecListPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/linkspec/LinkSpecListPage.htmlindex d1dd394860..7d34c406d9 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/linkspec/LinkSpecListPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/linkspec/LinkSpecListPage.html@@ -4,11 +4,11 @@<wicket:svg href="bulb" class="icon"/> Links can be used to associate different issues. For instance, an issue can be linked tosub issues or related issues</div>- <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" title="Add issue link"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" t:data-tippy-content="Add issue link"><wicket:svg href="plus" class="icon"></wicket:svg></a><table wicket:id="links" class="table table-hover"></table></div><wicket:fragment wicket:id="linkActionsFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon align-middle"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete this link"><wicket:svg href="trash" class="icon align-middle"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon align-middle"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete this link"><wicket:svg href="trash" class="icon align-middle"></wicket:svg></a></wicket:fragment></wicket:extend>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/statespec/IssueStateListPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/statespec/IssueStateListPage.htmlindex fdf38b4fe2..238d2549f9 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/statespec/IssueStateListPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/statespec/IssueStateListPage.html@@ -4,11 +4,11 @@<wicket:svg href="bulb" class="icon"/> Define all custom issue states here. The first state will be used asinitial state of created issues</div>- <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" title="Add issue state"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" t:data-tippy-content="Add issue state"><wicket:svg href="plus" class="icon"></wicket:svg></a><table wicket:id="issueStates" class="table table-hover"></table></div><wicket:fragment wicket:id="stateActionsFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit this state"><wicket:svg href="edit" class="icon align-middle"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete this state"><wicket:svg href="trash" class="icon align-middle"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit this state"><wicket:svg href="edit" class="icon align-middle"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete this state"><wicket:svg href="trash" class="icon align-middle"></wicket:svg></a></wicket:fragment></wicket:extend>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/transitionspec/StateTransitionListPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/transitionspec/StateTransitionListPage.htmlindex 19b4c4ff59..e9ab4f18df 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/transitionspec/StateTransitionListPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/issuesetting/transitionspec/StateTransitionListPage.html@@ -5,7 +5,7 @@or automatically when some events happen. And the rule can be configured to apply to certain projects and issuesvia the applicable issues setting</div>- <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" title="Add issue state transition"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" t:data-tippy-content="Add issue state transition"><wicket:svg href="plus" class="icon"></wicket:svg></a><table wicket:id="stateTransitions" class="table table-hover"></table></div><wicket:fragment wicket:id="descriptionFrag">@@ -18,7 +18,7 @@<div wicket:id="applicable"></div></wicket:fragment><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:extend>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/rolemanagement/RoleListPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/rolemanagement/RoleListPage.htmlindex e0d5cfb1c3..bc5de34472 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/rolemanagement/RoleListPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/rolemanagement/RoleListPage.html@@ -14,6 +14,6 @@<a wicket:id="link"><span wicket:id="label"></span></a></wicket:fragment><wicket:fragment wicket:id="actionFrag">- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete this role"><wicket:svg href="trash" class="icon align-middle"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete this role"><wicket:svg href="trash" class="icon align-middle"></wicket:svg></a></wicket:fragment></wicket:extend>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/serverlog/ServerLogPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/serverlog/ServerLogPage.htmlindex 62937c19e6..42940985d7 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/serverlog/ServerLogPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/serverlog/ServerLogPage.html@@ -1,7 +1,7 @@<wicket:extend><div class="card server-log"><div class="card-body">- <a wicket:id="download" class="btn btn-light btn-hover-primary btn-block mb-4" title="Download log"><wicket:svg href="download" class="icon mr-2"/> Download</a>+ <a wicket:id="download" class="btn btn-light btn-hover-primary btn-block mb-4" t:data-tippy-content="Download log"><wicket:svg href="download" class="icon mr-2"/> Download</a><div wicket:id="warning" class="alert alert-notice alert-light-warning mb-4"></div><pre wicket:id="logContent" class="font-size-sm"></pre></div>diff --git a/server-core/src/main/java/io/onedev/server/web/page/admin/ssosetting/SsoConnectorListPage.html b/server-core/src/main/java/io/onedev/server/web/page/admin/ssosetting/SsoConnectorListPage.htmlindex 343e955256..62c50446b8 100644--- a/server-core/src/main/java/io/onedev/server/web/page/admin/ssosetting/SsoConnectorListPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/admin/ssosetting/SsoConnectorListPage.html@@ -1,13 +1,13 @@<wicket:extend><div class="card"><div class="card-body">- <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" title="Add SSO Provider"><wicket:svg href="plus" class="icon"/></a>+ <a wicket:id="addNew" class="btn btn-icon btn-primary mb-4" t:data-tippy-content="Add SSO provider"><wicket:svg href="plus" class="icon"/></a><table wicket:id="connectors" class="table table-hover"></table></div></div><wicket:fragment wicket:id="actionColumnFrag">- <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment><wicket:fragment wicket:id="callbackUriFrag"><span wicket:id="value"></span>diff --git a/server-core/src/main/java/io/onedev/server/web/page/help/ExampleValuePanel.html b/server-core/src/main/java/io/onedev/server/web/page/help/ExampleValuePanel.htmlindex 4d7d1c94ac..93f4b3c18d 100644--- a/server-core/src/main/java/io/onedev/server/web/page/help/ExampleValuePanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/help/ExampleValuePanel.html@@ -1,6 +1,6 @@<wicket:panel><wicket:container wicket:id="content"></wicket:container>- <a wicket:id="hint" class="example-value-hint" title="More info about this property"><wicket:svg href="info-circle" class="icon icon-sm"/></a>+ <a wicket:id="hint" class="example-value-hint" t:data-tippy-content="More info about this property"><wicket:svg href="info-circle" class="icon icon-sm"/></a><wicket:fragment wicket:id="objectFrag"><span class="example-value-brace">{</span>@@ -56,7 +56,7 @@<wicket:container wicket:id="name"></wicket:container><span class="example-value-code">:</span><wicket:container wicket:id="value"></wicket:container>- <a wicket:id="implementations" class="example-value-implementations" title="All possible classes"><wicket:svg href="play" class="icon rotate-90"/></a>+ <a wicket:id="implementations" class="example-value-implementations" t:data-tippy-content="All possible classes"><wicket:svg href="play" class="icon rotate-90"/></a><span wicket:id="comma" class="example-value-comma">,</span></wicket:fragment></wicket:panel>diff --git a/server-core/src/main/java/io/onedev/server/web/page/help/MethodDetailPage.html b/server-core/src/main/java/io/onedev/server/web/page/help/MethodDetailPage.htmlindex 298de38595..bad20f5190 100644--- a/server-core/src/main/java/io/onedev/server/web/page/help/MethodDetailPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/help/MethodDetailPage.html@@ -57,7 +57,7 @@<dt>Content Type</dt><dd wicket:id="contentType">application/json</dd><wicket:enclosure child="requestBodyExample">- <dt>Example <a wicket:id="copyRequestBodyExample" class="ml-1" title="Copy to clipboard"><wicket:svg href="copy" class="icon icon-sm"/></a></dt>+ <dt>Example <a wicket:id="copyRequestBodyExample" class="ml-1" t:data-tippy-content="Copy to clipboard"><wicket:svg href="copy" class="icon icon-sm"/></a></dt><dd wicket:id="requestBodyExample"></dd></wicket:enclosure></dl>@@ -86,7 +86,7 @@</dd></dl></dd>- <dt>cURL Example <a wicket:id="copyCurlExample" class="ml-1" title="Copy to clipboard"><wicket:svg href="copy" class="icon icon-sm"/></a></dt>+ <dt>cURL Example <a wicket:id="copyCurlExample" class="ml-1" t:data-tippy-content="Copy to clipboard"><wicket:svg href="copy" class="icon icon-sm"/></a></dt><dd><code wicket:id="curlExample"></code></dd>@@ -104,7 +104,7 @@<dt>Content Type</dt><dd wicket:id="contentType">application/json</dd><wicket:enclosure child="example">- <dt>Example <a wicket:id="copyExample" class="ml-1" title="Copy to clipboard"><wicket:svg href="copy" class="icon icon-sm"/></a></dt>+ <dt>Example <a wicket:id="copyExample" class="ml-1" t:data-tippy-content="Copy to clipboard"><wicket:svg href="copy" class="icon icon-sm"/></a></dt><dd wicket:id="example"></dd></wicket:enclosure></dl>diff --git a/server-core/src/main/java/io/onedev/server/web/page/layout/LayoutPage.html b/server-core/src/main/java/io/onedev/server/web/page/layout/LayoutPage.htmlindex b20e39592c..72fbb8a6e8 100644--- a/server-core/src/main/java/io/onedev/server/web/page/layout/LayoutPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/layout/LayoutPage.html@@ -150,6 +150,6 @@<pre wicket:id="detail" class="mt-2 font-size-sm"></pre></wicket:fragment><wicket:fragment wicket:id="alertActionFrag">- <a wicket:id="delete" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="delete" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:extend>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/blob/ProjectBlobPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/blob/ProjectBlobPage.htmlindex 256c2da34f..a0774c348e 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/blob/ProjectBlobPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/blob/ProjectBlobPage.html@@ -7,10 +7,10 @@<div wicket:id="blobNavigator" class="blob-navigator mr-3 py-2"></div></div><div wicket:id="blobOperations" class="py-2">- <a wicket:id="getCode" title="Code clone or download" class="mr-4 font-weight-boldest font-size-lg text-nowrap link-info"><wicket:svg href="download2" class="icon"/> <wicket:t>Clone</wicket:t></a>- <a wicket:id="add" title="Add files to current directory" class="mr-3 text-nowrap dropdown-toggle"><wicket:t>Add</wicket:t></a>- <a wicket:id="search" title="Search files, symbols and texts" class="mr-3 text-nowrap dropdown-toggle"><wicket:t>Search</wicket:t></a>- <a wicket:id="history" title="Commit history of current path" class="text-nowrap"><wicket:t>History</wicket:t></a>+ <a wicket:id="getCode" t:data-tippy-content="Code clone or download" class="mr-4 font-weight-boldest font-size-lg text-nowrap link-info"><wicket:svg href="download2" class="icon"/> <wicket:t>Clone</wicket:t></a>+ <a wicket:id="add" t:data-tippy-content="Add files to current directory" class="mr-3 text-nowrap dropdown-toggle"><wicket:t>Add</wicket:t></a>+ <a wicket:id="search" t:data-tippy-content="Search files, symbols and texts" class="mr-3 text-nowrap dropdown-toggle"><wicket:t>Search</wicket:t></a>+ <a wicket:id="history" t:data-tippy-content="Commit history of current path" class="text-nowrap"><wicket:t>History</wicket:t></a></div></div><div wicket:id="revisionIndexing" class="p-3 revision-indexing text-warning flex-shrink-0">diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/renderers/buildspec/BuildSpecEditPanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/renderers/buildspec/BuildSpecEditPanel.htmlindex bbc45a3e24..2d32957893 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/renderers/buildspec/BuildSpecEditPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/renderers/buildspec/BuildSpecEditPanel.html@@ -30,7 +30,7 @@<wicket:svg href="grip" class="icon drag-indicator flex-shrink-0 mr-1"/><span wicket:id="label" class="label"></span></a>- <a wicket:id="actions" title="Operations" class="actions btn btn-outline-secondary btn-icon flex-grow-0 flex-shrink-0"><wicket:svg href="arrow" class="icon rotate-90"></wicket:svg></a>+ <a wicket:id="actions" t:data-tippy-content="Operations" class="actions btn btn-outline-secondary btn-icon flex-grow-0 flex-shrink-0"><wicket:svg href="arrow" class="icon rotate-90"></wicket:svg></a></div></div><div class="add btn-group btn-block"><a wicket:id="create" class="create btn btn-primary justify-content-start no-suggestions">@@ -48,13 +48,13 @@<wicket:svg href="grip" class="icon drag-indicator flex-shrink-0 mr-1"/><span wicket:id="label" class="label"></span></a>- <a wicket:id="actions" title="Operations" class="actions btn btn-outline-secondary btn-icon flex-grow-0 flex-shrink-0"><wicket:svg href="arrow" class="icon rotate-90"></wicket:svg></a>+ <a wicket:id="actions" t:data-tippy-content="Operations" class="actions btn btn-outline-secondary btn-icon flex-grow-0 flex-shrink-0"><wicket:svg href="arrow" class="icon rotate-90"></wicket:svg></a></wicket:fragment><wicket:fragment wicket:id="addJobFrag"><a wicket:id="create" class="create btn btn-primary justify-content-start text-nowrap"><wicket:svg href="plus" class="icon flex-shrink-0 mr-1"></wicket:svg> <wicket:t>Add New</wicket:t></a>- <a wicket:id="suggestions" class="suggestions btn btn-primary flex-grow-0 flex-shrink-0 btn-icon" title="Suggestions">+ <a wicket:id="suggestions" class="suggestions btn btn-primary flex-grow-0 flex-shrink-0 btn-icon" t:data-tippy-content="Suggestions"><wicket:svg href="wand" class="icon"/></a></wicket:fragment>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/blob/search/result/SearchResultPanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/blob/search/result/SearchResultPanel.htmlindex 6c98ede58f..89d8db8eb9 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/blob/search/result/SearchResultPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/blob/search/result/SearchResultPanel.html@@ -3,14 +3,14 @@<div class="head d-flex align-items-center px-3 py-2 flex-shrink-0"><h6 class="title mr-4 mb-0">Search Result</h6><div class="actions text-nowrap mr-2">- <a wicket:id="prevMatch" title="Show previous match" class="mr-1"><wicket:svg href="arrow2" class="icon rotate-270"></wicket:svg></a>- <a wicket:id="nextMatch" title="Show next match" class="mr-1"><wicket:svg href="arrow2" class="icon rotate-90"></wicket:svg></a>- <a wicket:id="expandAll" title="Expand all" class="mr-2"><wicket:svg href="plus-square" class="icon"></wicket:svg></a>- <a wicket:id="collapseAll" title="Collapse all"><wicket:svg href="minus-square" class="icon"></wicket:svg></a>+ <a wicket:id="prevMatch" t:data-tippy-content="Show previous match" class="mr-1"><wicket:svg href="arrow2" class="icon rotate-270"></wicket:svg></a>+ <a wicket:id="nextMatch" t:data-tippy-content="Show next match" class="mr-1"><wicket:svg href="arrow2" class="icon rotate-90"></wicket:svg></a>+ <a wicket:id="expandAll" t:data-tippy-content="Expand all" class="mr-2"><wicket:svg href="plus-square" class="icon"></wicket:svg></a>+ <a wicket:id="collapseAll" t:data-tippy-content="Collapse all"><wicket:svg href="minus-square" class="icon"></wicket:svg></a></div><div wicket:id="hasMoreMessage" class="warning mr-2 d-none d-md-inline text-muted"></div><div class="ml-auto">- <a wicket:id="close" class="text-muted text-hover-primary" title="Close"><wicket:svg href="times" class="icon"></wicket:svg></a>+ <a wicket:id="close" class="text-muted text-hover-primary" t:data-tippy-content="Close"><wicket:svg href="times" class="icon"></wicket:svg></a></div></div><ul class="body list-unstyled mb-0 px-3 py-2 overflow-auto flex-grow-1">diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.htmlindex 7c8ca72705..139454af56 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.html@@ -8,14 +8,14 @@<span wicket:id="statusLabel"></span></div><div wicket:id="actions" class="mr-2">- <a wicket:id="rebuild" class="btn btn-icon btn-light btn-hover-primary btn-xs mr-2" title="Re-run this build"><wicket:svg href="re-run" class="icon"/></a>- <a wicket:id="cancel" class="btn btn-icon btn-light btn-hover-danger btn-xs mr-2" title="Cancel this build"><wicket:svg href="cancel" class="icon"/></a>- <a wicket:id="terminal" title="Open terminal of current running step" class="ee-feature btn btn-icon btn-light btn-hover-primary btn-xs mr-2"><wicket:svg href="terminal" class="icon"/></a>- <a wicket:id="promotions" class="btn btn-icon btn-light btn-hover-primary btn-xs mr-2" title="Promotions"><wicket:svg href="next" class="icon"/></a>+ <a wicket:id="rebuild" class="btn btn-icon btn-light btn-hover-primary btn-xs mr-2" t:data-tippy-content="Re-run this build"><wicket:svg href="re-run" class="icon"/></a>+ <a wicket:id="cancel" class="btn btn-icon btn-light btn-hover-danger btn-xs mr-2" t:data-tippy-content="Cancel this build"><wicket:svg href="cancel" class="icon"/></a>+ <a wicket:id="terminal" t:data-tippy-content="Open terminal of current running step" class="ee-feature btn btn-icon btn-light btn-hover-primary btn-xs mr-2"><wicket:svg href="terminal" class="icon"/></a>+ <a wicket:id="promotions" class="btn btn-icon btn-light btn-hover-primary btn-xs mr-2" t:data-tippy-content="Promotions"><wicket:svg href="next" class="icon"/></a></div></div><div class="card-toolbar">- <a wicket:id="moreInfo" class="more-info side-info ml-auto" title="More info"><wicket:svg href="ellipsis" class="icon"/></a>+ <a wicket:id="moreInfo" class="more-info side-info ml-auto" t:data-tippy-content="More info"><wicket:svg href="ellipsis" class="icon"/></a></div></div><div class="card-body d-flex flex-grow-1 position-relative">diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/artifacts/BuildArtifactsPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/artifacts/BuildArtifactsPage.htmlindex 8afaa73766..5756cb518d 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/artifacts/BuildArtifactsPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/artifacts/BuildArtifactsPage.html@@ -9,6 +9,6 @@</a></wicket:fragment><wicket:fragment wicket:id="deleteFrag">- <a wicket:id="link" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="link" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:extend>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/log/BuildLogPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/log/BuildLogPage.htmlindex d40152c7e4..2a220fc7a9 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/log/BuildLogPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/log/BuildLogPage.html@@ -2,7 +2,7 @@<div wicket:id="log" class="d-flex flex-grow-1 position-relative"></div><wicket:fragment wicket:id="optionsFrag"><div>- <a wicket:id="download" class="btn btn-light btn-hover-primary btn-icon btn-sm btn-xs" title="Download full log"><wicket:svg href="download" class="icon"/></a>+ <a wicket:id="download" class="btn btn-light btn-hover-primary btn-icon btn-sm btn-xs" t:data-tippy-content="Download full log"><wicket:svg href="download" class="icon"/></a></div></wicket:fragment></wicket:extend>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/report/BuildReportTabOptionPanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/report/BuildReportTabOptionPanel.htmlindex 85d61f929d..e33dd98191 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/report/BuildReportTabOptionPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/report/BuildReportTabOptionPanel.html@@ -1,3 +1,3 @@<wicket:panel>- <a wicket:id="link" title="View statistics" class="btn btn-xs btn-icon btn-light btn-hover-primary"><wicket:svg href="stats" class="icon"/></a>+ <a wicket:id="link" t:data-tippy-content="View statistics" class="btn btn-xs btn-icon btn-light btn-hover-primary"><wicket:svg href="stats" class="icon"/></a></wicket:panel>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/project/codecomments/ProjectCodeCommentsPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/codecomments/ProjectCodeCommentsPage.javaindex fb34b94f1f..7f15724170 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/codecomments/ProjectCodeCommentsPage.java+++ b/server-core/src/main/java/io/onedev/server/web/page/project/codecomments/ProjectCodeCommentsPage.java@@ -31,6 +31,9 @@ import org.apache.wicket.request.cycle.RequestCycle;import org.apache.wicket.request.mapper.parameter.PageParameters;import javax.annotation.Nullable;++import static io.onedev.server.web.translation.Translation._T;+import java.io.Serializable;import java.util.ArrayList;@@ -236,12 +239,12 @@ public class ProjectCodeCommentsPage extends ProjectPage {@Overrideprotected Component newProjectTitle(String componentId) {- return new Label(componentId, "<span class='text-truncate'>Code Comments</span>").setEscapeModelStrings(false);+ return new Label(componentId, "<span class='text-truncate'>" + _T("Code Comments") + "</span>").setEscapeModelStrings(false);}@Overrideprotected String getPageTitle() {- return "Code Comments - " + getProject().getPath();+ return _T("Code Comments") + " - " + getProject().getPath();}@Overridediff --git a/server-core/src/main/java/io/onedev/server/web/page/project/commits/CommitDetailPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/commits/CommitDetailPage.htmlindex 25bbdf12a6..27cc9b7c23 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/commits/CommitDetailPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/commits/CommitDetailPage.html@@ -47,8 +47,8 @@<div class="multiple"><span wicket:id="count" class="mr-2"></span><div wicket:id="parents" class="parent btn-group mr-2">- <a wicket:id="link" title="Show commit of this parent" class="commit btn btn-outline-secondary btn-sm"><span wicket:id="label"></span></a>- <a wicket:id="diff" title="Compare with this parent" class="diff btn btn-outline-secondary btn-sm"><wicket:svg href="diff" class="icon"></wicket:svg></a>+ <a wicket:id="link" t:data-tippy-content="Show commit of this parent" class="commit btn btn-outline-secondary btn-sm"><span wicket:id="label"></span></a>+ <a wicket:id="diff" t:data-tippy-content="Compare with this parent" class="diff btn btn-outline-secondary btn-sm"><wicket:svg href="diff" class="icon"></wicket:svg></a></div></div></wicket:fragment>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/compare/RevisionComparePage.html b/server-core/src/main/java/io/onedev/server/web/page/project/compare/RevisionComparePage.htmlindex 09b28649de..17cdc2021f 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/compare/RevisionComparePage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/compare/RevisionComparePage.html@@ -4,11 +4,11 @@<div class="base revision card"><div class="card-body"><div class="head">- <div class="title">Base</div>+ <div class="title"><wicket:t>Base</wicket:t></div><wicket:enclosure child="compareWithMergeBase"><label class="checkbox"><input wicket:id="compareWithMergeBase" type="checkbox">- common ancestor+ <wicket:t>common ancestor</wicket:t></label><span wicket:id="mergeBaseTooltip" class="help"><wicket:svg href="question-circle-o" class="icon"></wicket:svg></span></wicket:enclosure>@@ -18,27 +18,27 @@</div></div><div class="swap">- <a wicket:id="swap" class="btn btn-primary btn-icon" title="Swap"><wicket:svg href="swap" class="icon"></wicket:svg></a>+ <a wicket:id="swap" class="btn btn-primary btn-icon" t:data-tippy-content="Swap"><wicket:svg href="swap" class="icon"></wicket:svg></a></div><div class="compare revision card"><div class="card-body">- <div class="title">Compare</div>+ <div class="title"><wicket:t>Compare</wicket:t></div><div wicket:id="rightRevSelector" class="selector"></div><a wicket:id="rightCommitLink" class="message"><span wicket:id="message"></span></a></div></div></div><div wicket:id="effectiveRequest" class="alert alert-notice alert-light-success mb-5">- <span wicket:id="description"></span> <a wicket:id="link"><span wicket:id="label"></span></a>+ <span wicket:id="description"></span></div><div>- <a wicket:id="createRequest" class="btn btn-primary btn-block mb-5"><wicket:svg href="plus" class="icon mr-2"/> Create Pull Request for This Change</a>+ <a wicket:id="createRequest" class="btn btn-primary btn-block mb-5"><wicket:svg href="plus" class="icon mr-2"/> <wicket:t>Create Pull Request for This Change</wicket:t></a></div><div wicket:id="revisionNotSpecified" class="alert alert-notice alert-light-warning mb-5">- <span>Please select revisions to compare</span>+ <span><wicket:t>Please select revisions to compare</wicket:t></span></div><div wicket:id="unrelatedHistory" class="alert alert-notice alert-light-warning mb-5">- <span>History of comparing revisions is unrelated</span>+ <span><wicket:t>History of comparing revisions is unrelated</wicket:t></span></div><wicket:enclosure child="tabs"><div class="card compare-result">diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/compare/RevisionComparePage.java b/server-core/src/main/java/io/onedev/server/web/page/project/compare/RevisionComparePage.javaindex 6dbd547e59..08b4d9c111 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/compare/RevisionComparePage.java+++ b/server-core/src/main/java/io/onedev/server/web/page/project/compare/RevisionComparePage.java@@ -4,6 +4,7 @@ import static io.onedev.server.search.commit.Revision.Type.COMMIT;import static io.onedev.server.web.translation.Translation._T;import java.io.Serializable;+import java.text.MessageFormat;import java.util.ArrayList;import java.util.Collection;import java.util.HashMap;@@ -25,7 +26,6 @@ import org.apache.wicket.markup.html.basic.Label;import org.apache.wicket.markup.html.form.CheckBox;import org.apache.wicket.markup.html.link.BookmarkablePageLink;import org.apache.wicket.markup.html.link.Link;-import org.apache.wicket.model.AbstractReadOnlyModel;import org.apache.wicket.model.IModel;import org.apache.wicket.model.LoadableDetachableModel;import org.apache.wicket.model.Model;@@ -74,7 +74,6 @@ import io.onedev.server.web.page.project.ProjectPage;import io.onedev.server.web.page.project.commits.CommitDetailPage;import io.onedev.server.web.page.project.dashboard.ProjectDashboardPage;import io.onedev.server.web.page.project.pullrequests.create.NewPullRequestPage;-import io.onedev.server.web.page.project.pullrequests.detail.PullRequestDetailPage;import io.onedev.server.web.page.project.pullrequests.detail.activities.PullRequestActivitiesPage;import io.onedev.server.web.util.EditParamsAware;@@ -227,7 +226,7 @@ public class RevisionComparePage extends ProjectPage implements RevisionAnnotati* project*/if (!state.compareWithMergeBase && !state.leftSide.getProject().equals(state.rightSide.getProject()))- throw new IllegalArgumentException("Can only compare with common ancestor when different projects are involved");+ throw new IllegalArgumentException(_T("Can only compare with common ancestor when different projects are involved"));state.pathFilter = params.get(PARAM_PATH_FILTER).toString();state.blameFile = params.get(PARAM_BLAME_FILE).toString();@@ -335,12 +334,12 @@ public class RevisionComparePage extends ProjectPage implements RevisionAnnotatiString tooltip;if (!state.leftSide.getProject().equals(state.rightSide.getProject())) {checkBox.add(AttributeAppender.append("disabled", "disabled"));- tooltip = "Can only compare with common ancestor when different projects are involved";+ tooltip = _T("Can only compare with common ancestor when different projects are involved");} else {- tooltip = "Check this to compare \"right side\" with common ancestor of left and right";+ tooltip = _T("Check this to compare right side with common ancestor of left and right");}- add(new WebMarkupContainer("mergeBaseTooltip").add(AttributeAppender.append("title", tooltip)));+ add(new WebMarkupContainer("mergeBaseTooltip").add(AttributeAppender.append("data-tippy-content", tooltip)));if (state.leftSide.getRevision() != null) {PageParameters params = CommitDetailPage.paramsOf(state.leftSide.getProject(), state.leftSide.getCommit().name());@@ -445,41 +444,19 @@ public class RevisionComparePage extends ProjectPage implements RevisionAnnotatiprotected void onInitialize() {super.onInitialize();- add(new Label("description", new AbstractReadOnlyModel<String>() {+ add(new Label("description", new LoadableDetachableModel<String>() {@Override- public String getObject() {- if (requestModel.getObject().isOpen())- return "This change is already opened for merge by ";+ protected String load() {+ var request = requestModel.getObject();+ var link = String.format("<a href='%s'>%s</a>", RequestCycle.get().urlFor(PullRequestActivitiesPage.class, PullRequestActivitiesPage.paramsOf(request)), "#" + request.getNumber());+ if (request.isOpen())+ return MessageFormat.format(_T("This change is already opened for merge by pull request {0}"), link);else- return "This change is squashed/rebased onto base branch via ";+ return MessageFormat.format(_T("This change is squashed/rebased onto base branch via pull request {0}"), link);}- }).setEscapeModelStrings(false));-- add(new Link<Void>("link") {-- @Override- protected void onInitialize() {- super.onInitialize();- add(new Label("label", new AbstractReadOnlyModel<String>() {-- @Override- public String getObject() {- return "pull request #" + requestModel.getObject().getNumber();- }-- }));- }-- @Override- public void onClick() {- PageParameters params = PullRequestDetailPage.paramsOf(requestModel.getObject());- setResponsePage(PullRequestActivitiesPage.class, params);- }-- });-+ }).setEscapeModelStrings(false));}});@@ -880,7 +857,7 @@ public class RevisionComparePage extends ProjectPage implements RevisionAnnotati@Overrideprotected Component newProjectTitle(String componentId) {- return new Label(componentId, "Code Compare");+ return new Label(componentId, _T("Code Compare"));}@Override@@ -958,7 +935,7 @@ public class RevisionComparePage extends ProjectPage implements RevisionAnnotati@Overrideprotected String getPageTitle() {- return "Code Compare - " + getProject().getPath();+ return _T("Code Compare") + " - " + getProject().getPath();}@Overridediff --git a/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BacklogColumnPanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BacklogColumnPanel.htmlindex b1fe912790..aedb09dc69 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BacklogColumnPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BacklogColumnPanel.html@@ -4,10 +4,10 @@<span class="mr-2">Backlog</span><span wicket:id="count" class="card-count badge badge-secondary badge-sm mr-2"></span><div class="ml-auto">- <a wicket:id="addCard" title="Add new card to this column" class="add-card"><wicket:svg href="plus" class="icon"></wicket:svg></a>- <a wicket:id="addToIteration" title="Add all cards to specified iteration" class="add-to-iteration"><wicket:svg href="iteration" class="icon"></wicket:svg></a>- <a wicket:id="showProgress" title="Show total estimated/spent time" class="show-progress ml-1"><wicket:svg href="clock" class="icon"></wicket:svg></a>- <a wicket:id="viewAsList" title="Show issues in list" class="view-list ml-1"><wicket:svg href="unordered-list" class="icon"></wicket:svg></a>+ <a wicket:id="addCard" t:data-tippy-content="Add new card to this column" class="add-card"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addToIteration" t:data-tippy-content="Add all cards to specified iteration" class="add-to-iteration"><wicket:svg href="iteration" class="icon"></wicket:svg></a>+ <a wicket:id="showProgress" t:data-tippy-content="Show total estimated/spent time" class="show-progress ml-1"><wicket:svg href="clock" class="icon"></wicket:svg></a>+ <a wicket:id="viewAsList" t:data-tippy-content="Show issues in list" class="view-list ml-1"><wicket:svg href="unordered-list" class="icon"></wicket:svg></a></div></div><div wicket:id="body" class="body flex-grow-1 d-flex flex-column overflow-auto px-4 pt-4"></div>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BoardCardPanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BoardCardPanel.htmlindex a2cd262c14..684913a896 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BoardCardPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BoardCardPanel.html@@ -3,9 +3,9 @@<wicket:fragment wicket:id="contentFrag"><div class="primary d-flex align-items-center flex-wrap row-gap-2 mb-3"><span wicket:id="numberAndTitle" class="font-weight-bold mr-2"></span>- <a wicket:id="copy" class="btn btn-xs btn-icon btn-light btn-hover-primary copy flex-shrink-0 mr-2" title="Copy issue number and title"><wicket:svg href="copy" class="icon"></wicket:svg></a>+ <a wicket:id="copy" class="btn btn-xs btn-icon btn-light btn-hover-primary copy flex-shrink-0 mr-2" t:data-tippy-content="Copy issue number and title"><wicket:svg href="copy" class="icon"></wicket:svg></a><span wicket:id="links" class="links mr-2"></span>- <a wicket:id="showDetail" title="Click to show issue details" class="show-detail"><wicket:svg href="ellipsis" class="icon"/></a>+ <a wicket:id="showDetail" t:data-tippy-content="Click to show issue details" class="show-detail"><wicket:svg href="ellipsis" class="icon"/></a></div><div class="secondary d-flex align-items-center flex-wrap mb-n2"><div wicket:id="fields" class="field mr-1 mr-last-child-0"></div>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BoardColumnPanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BoardColumnPanel.htmlindex 9a3b062c7b..9073a2dea0 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BoardColumnPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/BoardColumnPanel.html@@ -5,10 +5,10 @@<span wicket:id="title" class="mr-2"></span><span wicket:id="count" class="card-count badge badge-secondary badge-sm mr-3"></span><div class="ml-auto">- <a wicket:id="addCard" title="Add new card to this column" class="add-card"><wicket:svg href="plus" class="icon"></wicket:svg></a>- <a wicket:id="addToIteration" title="Add all cards to specified iteration" class="add-to-iteration"><wicket:svg href="iteration" class="icon"></wicket:svg></a>- <a wicket:id="showProgress" title="Show total estimated/spent time" class="show-progress ml-1"><wicket:svg href="clock" class="icon"></wicket:svg></a>- <a wicket:id="viewAsList" title="Show issues in list" class="show-list ml-1"><wicket:svg href="unordered-list" class="icon"></wicket:svg></a>+ <a wicket:id="addCard" t:data-tippy-content="Add new card to this column" class="add-card"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a wicket:id="addToIteration" t:data-tippy-content="Add all cards to specified iteration" class="add-to-iteration"><wicket:svg href="iteration" class="icon"></wicket:svg></a>+ <a wicket:id="showProgress" t:data-tippy-content="Show total estimated/spent time" class="show-progress ml-1"><wicket:svg href="clock" class="icon"></wicket:svg></a>+ <a wicket:id="viewAsList" t:data-tippy-content="Show issues in list" class="show-list ml-1"><wicket:svg href="unordered-list" class="icon"></wicket:svg></a></div></div><div wicket:id="body" class="body flex-grow-1 overflow-auto px-4 pt-4"></div>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/CardDetailPanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/CardDetailPanel.htmlindex 666499991d..7cee6ac9f1 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/CardDetailPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/CardDetailPanel.html@@ -2,7 +2,7 @@<div class="board-card-detail"><div class="modal-header d-flex align-items-center"><h5 wicket:id="title" class="mb-0"></h5>- <a wicket:id="moreInfoTrigger" class="more-info side-info flex-shrink-0 ml-auto mr-5" title="More info"><wicket:svg href="ellipsis" class="icon"></wicket:svg></a>+ <a wicket:id="moreInfoTrigger" class="more-info side-info flex-shrink-0 ml-auto mr-5" t:data-tippy-content="More info"><wicket:svg href="ellipsis" class="icon"></wicket:svg></a><button wicket:id="close" type="button" class="close d-flex align-items-center"><wicket:svg href="times" class="icon"/></button></div><div class="modal-body d-flex position-relative overflow-hidden">diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/IssueBoardsPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/IssueBoardsPage.htmlindex 0f0635e090..87bf9f9c73 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/IssueBoardsPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/issues/boards/IssueBoardsPage.html@@ -4,13 +4,13 @@<div class="head flex-shrink-0"><form wicket:id="query" class="d-flex flex-wrap flex-md-nowrap"><span class="btn-group flex-shrink-0 mr-0 mr-md-4 mb-3 mb-md-0">- <a wicket:id="board" title="Board" class="board-selector btn btn-outline-secondary btn-hover-primary text-nowrap bg-white">+ <a wicket:id="board" t:data-tippy-content="Board" class="board-selector btn btn-outline-secondary btn-hover-primary text-nowrap bg-white"><wicket:svg href="split" class="icon mr-2"></wicket:svg><span wicket:id="label"></span><wicket:svg href="arrow" class="icon rotate-90 ml-1"></wicket:svg></a>- <a wicket:id="backlog" title="Show issues not scheduled into current iteration" class="bg-white backlog btn btn-outline-secondary btn-hover-primary text-nowrap"><wicket:svg href="inbox" class="icon mr-2"></wicket:svg> Backlog</a>- <a wicket:id="iteration" title="Iteration" class="iteration-selector btn text-nowrap bg-white">+ <a wicket:id="backlog" t:data-tippy-content="Show issues not scheduled into current iteration" class="bg-white backlog btn btn-outline-secondary btn-hover-primary text-nowrap"><wicket:svg href="inbox" class="icon mr-2"></wicket:svg> Backlog</a>+ <a wicket:id="iteration" t:data-tippy-content="Iteration" class="iteration-selector btn text-nowrap bg-white"><wicket:svg href="iteration" class="icon mr-2"></wicket:svg><span wicket:id="label"></span><wicket:svg href="arrow" class="icon rotate-90 ml-1"></wicket:svg>@@ -20,7 +20,7 @@<div class="input-group"><input wicket:id="input" spellcheck="false" autocomplete="off" class="form-control"><span class="input-group-append">- <button wicket:id="submit" type="submit" class="bg-white btn btn-icon btn-outline-secondary btn-hover-primary" title="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" type="submit" class="bg-white btn btn-icon btn-outline-secondary btn-hover-primary" t:data-tippy-content="Query"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></div>@@ -51,9 +51,9 @@<span wicket:id="default" class="badge badge-sm badge-light-info ml-2">default</span></td><td wicket:id="actions" class="actions text-right">- <a wicket:id="edit" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" title="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="copy" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" title="Copy"><wicket:svg href="copy" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-icon btn-xs btn-light btn-hover-danger" title="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="copy" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" t:data-tippy-content="Copy"><wicket:svg href="copy" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-icon btn-xs btn-light btn-hover-danger" t:data-tippy-content="Delete"><wicket:svg href="trash" class="icon"></wicket:svg></a></td></tr></table>@@ -69,7 +69,7 @@<td class="name text-nowrap"><a wicket:id="select"><span wicket:id="name"></span></a><span wicket:id="inherited" class="ml-2 badge badge-info badge-sm">Inherited</span>- <a wicket:id="burndown" title="Burndown chart" class="ml-2"><wicket:svg href="burndown" class="icon"/></a>+ <a wicket:id="burndown" t:data-tippy-content="Burndown chart" class="ml-2"><wicket:svg href="burndown" class="icon"/></a></td><td class="status text-nowrap"><span wicket:id="status"></span>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/issues/detail/IssueDetailPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/issues/detail/IssueDetailPage.htmlindex bb46f1acb0..0ce66d4a70 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/issues/detail/IssueDetailPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/issues/detail/IssueDetailPage.html@@ -2,7 +2,7 @@<div class="card position-relative overflow-hidden issue-detail"><div class="card-header d-flex align-items-center flex-nowrap"><div wicket:id="title" class="card-title flex-grow-1 mx-0"></div>- <a wicket:id="moreInfo" class="more-info side-info flex-shrink-0 ml-3" title="More info"><wicket:svg href="ellipsis" class="icon"></wicket:svg></a>+ <a wicket:id="moreInfo" class="more-info side-info flex-shrink-0 ml-3" t:data-tippy-content="More info"><wicket:svg href="ellipsis" class="icon"></wicket:svg></a></div><div class="card-body d-flex position-relative overflow-hidden"><div class="main flex-grow-1">diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/issues/list/ProjectIssueListPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/issues/list/ProjectIssueListPage.htmlindex 5f4b6a8185..a922618b0b 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/issues/list/ProjectIssueListPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/issues/list/ProjectIssueListPage.html@@ -11,12 +11,12 @@<wicket:fragment wicket:id="pinnedIssueFrag"><div class="primary d-flex align-items-center flex-wrap row-gap-2 position-relative mb-3"><span wicket:id="numberAndTitle" class="mr-2"></span>- <a wicket:id="copy" title="Copy issue number and title" class="copy mr-2 btn btn-icon btn-xs btn-light btn-hover-primary">+ <a wicket:id="copy" t:data-tippy-content="Copy issue number and title" class="copy mr-2 btn btn-icon btn-xs btn-light btn-hover-primary"><wicket:svg href="copy" class="icon"/></a><span wicket:id="progress" class="d-flex align-items-center mr-2"></span><span wicket:id="links" class="links d-flex align-items-center"/>- <a wicket:id="unpin" title="Unpin this issue" class="unpin btn btn-icon btn-xs btn-light btn-hover-primary"><wicket:svg href="unpin" class="icon flip-x"/></a>+ <a wicket:id="unpin" t:data-tippy-content="Unpin this issue" class="unpin btn btn-icon btn-xs btn-light btn-hover-primary"><wicket:svg href="unpin" class="icon flip-x"/></a></div><div class="secondary d-flex flex-wrap"><div wicket:id="fields" class="field"></div>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/packs/detail/PackDetailPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/packs/detail/PackDetailPage.htmlindex 763ca23aa2..3a5022e00a 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/packs/detail/PackDetailPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/packs/detail/PackDetailPage.html@@ -6,7 +6,7 @@<span wicket:id="type" class="text-muted ml-1"></span></div><div class="card-toolbar">- <a wicket:id="moreInfo" class="more-info side-info ml-auto" title="More info"><wicket:svg href="ellipsis" class="icon"/></a>+ <a wicket:id="moreInfo" class="more-info side-info ml-auto" t:data-tippy-content="More info"><wicket:svg href="ellipsis" class="icon"/></a></div></div><div class="card-body d-flex flex-grow-1 position-relative">diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.htmlindex bf98cabfcb..6233a75b73 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.html@@ -5,30 +5,30 @@<wicket:enclosure child="title"><div class="card-title mr-3"><span wicket:id="title"></span></div></wicket:enclosure>- <a wicket:id="edit" title="Edit title" class="btn btn-xs btn-icon btn-light btn-hover-primary edit mr-3"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="edit" t:data-tippy-content="Edit title" class="btn btn-xs btn-icon btn-light btn-hover-primary edit mr-3"><wicket:svg href="edit" class="icon"></wicket:svg></a><form wicket:id="editForm" class="form flex-grow-1 d-flex align-items-center"><div class="clearable-wrapper mr-3 flex-grow-1"><input wicket:id="title" type="text" t:placeholder="Input title" class="form-control"></div><div class="flex-shrink-0 text-nowrap">- <button wicket:id="save" title="Save" t:value="Save" class="btn btn-primary btn-icon mr-1" type="submit"><wicket:svg href="tick" class="icon"></wicket:svg></button>- <a wicket:id="cancel" title="Cancel" type="button" t:value="Cancel" class="btn btn-secondary btn-icon"><wicket:svg href="times" class="icon"></wicket:svg></a>+ <button wicket:id="save" t:data-tippy-content="Save" t:value="Save" class="btn btn-primary btn-icon mr-1" type="submit"><wicket:svg href="tick" class="icon"></wicket:svg></button>+ <a wicket:id="cancel" t:data-tippy-content="Cancel" type="button" t:value="Cancel" class="btn btn-secondary btn-icon"><wicket:svg href="times" class="icon"></wicket:svg></a></div></form></div>- <a wicket:id="moreInfo" class="side-info flex-shrink-0 ml-3" title="More info"><wicket:svg href="ellipsis" class="icon"></wicket:svg></a>+ <a wicket:id="moreInfo" class="side-info flex-shrink-0 ml-3" t:data-tippy-content="More info"><wicket:svg href="ellipsis" class="icon"></wicket:svg></a></div><div class="card-body d-flex"><div class="main flex-grow-1"><div wicket:id="statusBar" class="status-bar d-flex mb-4"><div wicket:id="status" class="badge status mr-3"></div>- <a wicket:id="clone" title="Check out to local workspace" class="btn btn-primary btn-icon mr-3"><wicket:svg href="download2" class="icon"></wicket:svg></a>- <a wicket:id="newPullRequest" class="btn btn-primary btn-icon flex-shrink-0 ml-auto" title="Open new pull request"><wicket:svg href="plus" class="icon"/></a>+ <a wicket:id="clone" t:data-tippy-content="Check out to local workspace" class="btn btn-primary btn-icon mr-3"><wicket:svg href="download2" class="icon"></wicket:svg></a>+ <a wicket:id="newPullRequest" class="btn btn-primary btn-icon flex-shrink-0 ml-auto" t:data-tippy-content="Open new pull request"><wicket:svg href="plus" class="icon"/></a></div><div class="primary border border-dashed border-primary rounded p-4 mb-4"><div wicket:id="description" class="description"><div class="mb-3">- <span wicket:id="submitterAvatar" class="mr-1"></span> <span wicket:id="submitterName" class="user"></span> opened <span wicket:id="submitDate"></span>+ <span wicket:id="submitterAvatar" class="mr-1"></span> <wicket:t><span wicket:id="submitterName" class="user"></span> opened <span wicket:id="submitDate"></span></wicket:t></div><div wicket:id="content"></div></div>@@ -39,52 +39,52 @@</div></wicket:enclosure><div wicket:id="discarded" class="discarded text-info">- <wicket:svg href="info-circle" class="icon"></wicket:svg> This pull request has been discarded+ <wicket:svg href="info-circle" class="icon"></wicket:svg> <wicket:t>This pull request has been discarded</wicket:t></div><div wicket:id="fastForwarded" class="fast-forwarded text-success">- <wicket:svg href="tick-circle" class="icon"></wicket:svg> Target branch was fast-forwarded to source branch+ <wicket:svg href="tick-circle" class="icon"></wicket:svg> <wicket:t>Target branch was fast-forwarded to source branch</wicket:t></div><div wicket:id="merged" class="merged text-success">- <wicket:svg href="tick-circle" class="icon"></wicket:svg> Commits were merged into target branch+ <wicket:svg href="tick-circle" class="icon"></wicket:svg> <wicket:t>Commits were merged into target branch</wicket:t></div><div wicket:id="mergedOutside" class="merged-outside text-success">- <wicket:svg href="tick-circle" class="icon"></wicket:svg> Commits were merged into target branch outside of this pull request+ <wicket:svg href="tick-circle" class="icon"></wicket:svg> <wicket:t>Commits were merged into target branch outside of this pull request</wicket:t></div><div wicket:id="squashed" class="squashed text-success">- <wicket:svg href="tick-circle" class="icon"></wicket:svg> Commits were squashed into a single commit on target branch+ <wicket:svg href="tick-circle" class="icon"></wicket:svg> <wicket:t>Commits were squashed into a single commit on target branch</wicket:t></div><div wicket:id="rebased" class="rebased text-success">- <wicket:svg href="tick-circle" class="icon"></wicket:svg> Commits were rebased onto target branch+ <wicket:svg href="tick-circle" class="icon"></wicket:svg> <wicket:t>Commits were rebased onto target branch</wicket:t></div><div wicket:id="sourceBranchOutdated" class="source-branch-outdated text-primary">- <wicket:svg href="info-circle" class="icon"></wicket:svg> Source branch is outdated <a wicket:id="detail" class="link-primary" title="Show changes"><wicket:svg href="diff2" class="icon"/></a>+ <wicket:svg href="info-circle" class="icon"></wicket:svg> <wicket:t>Source branch is outdated</wicket:t> <a wicket:id="detail" class="link-primary" t:data-tippy-content="Show changes"><wicket:svg href="diff2" class="icon"/></a></div><div wicket:id="calculatingMergePreview" class="calculating-merge-preview text-warning d-flex align-items-center">- <wicket:svg href="loading" class="icon spin mr-2"></wicket:svg> Calculating merge preview...+ <wicket:svg href="loading" class="icon spin mr-2"></wicket:svg> <wicket:t>Calculating merge preview...</wicket:t></div><div wicket:id="calculatedMergePreview" class="calculated-merge-preview text-success">- <wicket:svg href="tick-circle" class="icon"></wicket:svg> Able to merge without conflicts+ <wicket:svg href="tick-circle" class="icon"></wicket:svg> <wicket:t>Able to merge without conflicts</wicket:t></div><div wicket:id="hasMergeConflict" class="has-merge-conflict text-warning">- <wicket:svg href="exclamation-circle" class="icon"></wicket:svg> There are merge conflicts.+ <wicket:svg href="exclamation-circle" class="icon"></wicket:svg> <wicket:t>There are merge conflicts.</wicket:t><wicket:enclosure child="resolveInstructions">- Please follow <a wicket:id="resolveInstructions" class="link-primary" href="javascript:void(0);">this instruction</a> to resolve the conflicts+ <wicket:t>Please follow <a wicket:id="resolveInstructions" class="link-primary" href="javascript:void(0);">this instruction</a> to resolve the conflicts</wicket:t></wicket:enclosure></div><div wicket:id="noValidCommitSignature" class="no-valid-commit-signature text-warning">- <wicket:svg href="times-circle" class="icon"></wicket:svg> Pull request can not be merged now as valid signature is required for head commit+ <wicket:svg href="times-circle" class="icon"></wicket:svg> <wicket:t>Pull request can not be merged now as valid signature is required for head commit</wicket:t></div><div wicket:id="requestedForChanges" class="requested-for-changes text-warning">- <wicket:svg href="diff" class="icon"></wicket:svg> Pull request can not be merged now as it was <a class="more-info d-inline link-primary">requested for changes</a>+ <wicket:svg href="diff" class="icon"></wicket:svg> <wicket:t>Pull request can not be merged now as it was <a class="more-info d-inline link-primary">requested for changes</a></wicket:t></div><div wicket:id="waitingForReviews" class="waiting-for-reviews text-warning">- <wicket:svg href="clock" class="icon"></wicket:svg> Pull request can not be merged now as it is <a class="more-info d-inline link-primary">pending review</a>+ <wicket:svg href="clock" class="icon"></wicket:svg> <wicket:t>Pull request can not be merged now as it is <a class="more-info d-inline link-primary">pending review</a></wicket:t></div><div wicket:id="unsuccessfulBuilds" class="unsuccessful-builds text-warning">- <wicket:svg href="times-circle" class="icon"></wicket:svg> Pull request can not be merged now as <a class="more-info d-inline link-primary">some required builds</a> are not successful+ <wicket:svg href="times-circle" class="icon"></wicket:svg> <wicket:t>Pull request can not be merged now as <a class="more-info d-inline link-primary">some required builds</a> are not successful</wicket:t></div><div wicket:id="unfinishedBuilds" class="unfinished-builds text-warning">- <wicket:svg href="clock" class="icon"></wicket:svg> Pull request can not be merged now as <a class="more-info d-inline link-primary">some required builds</a> are not finished yet+ <wicket:svg href="clock" class="icon"></wicket:svg> <wicket:t>Pull request can not be merged now as <a class="more-info d-inline link-primary">some required builds</a> are not finished yet</wicket:t></div><wicket:enclosure child="commitMessageCheckError"><div class="invalid-commit-messages text-warning">@@ -102,7 +102,7 @@</div></wicket:enclosure><div wicket:id="mergeableByCodeWriters" class="mergeable-by-code-writers text-info">- <wicket:svg href="info-circle" class="icon"></wicket:svg> Pull request can only be merged by users with code write permission+ <wicket:svg href="info-circle" class="icon"></wicket:svg> <wicket:t>Pull request can only be merged by users with code write permission</wicket:t></div><div wicket:id="contributions" class="contribution"><div wicket:id="head" class="head font-weight-bold mb-2 "></div>@@ -111,14 +111,14 @@</div></div><div wicket:id="requestOperations" class="operations">- <a wicket:id="merge" class="btn btn-sm btn-light-success btn-hover-success">Merge</a>- <a wicket:id="discard" class="btn btn-sm btn-light-info btn-hover-info">Discard</a>- <a wicket:id="approve" class="btn btn-sm btn-light-success btn-hover-success">Approve</a>- <a wicket:id="requestForChanges" class="btn btn-sm btn-light-warning btn-hover-warning">Request For Changes</a>- <a wicket:id="reopen" class="btn btn-sm btn-light-primary btn-hover-primary">Reopen</a>- <a wicket:id="updateSourceBranch" class="btn btn-sm btn-light-primary btn-hover-primary">Update Source Branch <wicket:svg href="arrow" class="icon rotate-90"/></a>- <a wicket:id="deleteSourceBranch" class="btn btn-sm btn-light-primary btn-hover-primary">Delete Source Branch</a>- <a wicket:id="restoreSourceBranch" class="btn btn-sm btn-light-primary btn-hover-primary">Restore Source Branch</a>+ <a wicket:id="merge" class="btn btn-sm btn-light-success btn-hover-success"><wicket:t>Merge</wicket:t></a>+ <a wicket:id="discard" class="btn btn-sm btn-light-info btn-hover-info"><wicket:t>Discard</wicket:t></a>+ <a wicket:id="approve" class="btn btn-sm btn-light-success btn-hover-success"><wicket:t>Approve</wicket:t></a>+ <a wicket:id="requestForChanges" class="btn btn-sm btn-light-warning btn-hover-warning"><wicket:t>Request For Changes</wicket:t></a>+ <a wicket:id="reopen" class="btn btn-sm btn-light-primary btn-hover-primary"><wicket:t>Reopen</wicket:t></a>+ <a wicket:id="updateSourceBranch" class="btn btn-sm btn-light-primary btn-hover-primary"><wicket:t>Update Source Branch</wicket:t> <wicket:svg href="arrow" class="icon rotate-90"/></a>+ <a wicket:id="deleteSourceBranch" class="btn btn-sm btn-light-primary btn-hover-primary"><wicket:t>Delete Source Branch</wicket:t></a>+ <a wicket:id="restoreSourceBranch" class="btn btn-sm btn-light-primary btn-hover-primary"><wicket:t>Restore Source Branch</wicket:t></a></div><ul wicket:id="requestTabs" class="tabs nav nav-tabs nav-tabs-line nav-bold mb-5 mt-3 align-items-center"></ul><wicket:child></wicket:child>@@ -127,56 +127,56 @@</div></div><wicket:fragment wicket:id="codeCommentsTabLinkFrag">- <a wicket:id="link" class="code-comments nav-link d-flex align-items-center">Code Comments <wicket:svg href="dot" class="icon ml-2 d-none"></wicket:svg></a>+ <a wicket:id="link" class="code-comments nav-link d-flex align-items-center"><wicket:t>Code Comments</wicket:t> <wicket:svg href="dot" class="icon ml-2 d-none"></wicket:svg></a></wicket:fragment><wicket:fragment wicket:id="moreInfoFrag"><div class="submission"><table class="table table-borderless"><tr>- <td class="name">Submitter</td>+ <td class="name"><wicket:t>Submitter</wicket:t></td><td class="value text-break text-right"><span wicket:id="submitter"></span></td></tr><tr>- <td class="name">Target</td>+ <td class="name"><wicket:t>Target</wicket:t></td><td class="value text-break text-right">- <a wicket:id="changeTargetBranch" class="btn btn-xs btn-icon btn-light btn-hover-primary" title="Change"><wicket:svg href="arrow" class="rotate-90 icon"/></a>+ <a wicket:id="changeTargetBranch" class="btn btn-xs btn-icon btn-light btn-hover-primary" t:data-tippy-content="Change"><wicket:svg href="arrow" class="rotate-90 icon"/></a><a wicket:id="targetBranch"></a></td></tr><tr>- <td class="name">Source</td>+ <td class="name"><wicket:t>Source</wicket:t></td><td class="value text-right text-break"><a wicket:id="sourceBranch"></a></td></tr></table></div><wicket:enclosure child="reviews"><div class="reviews">- <div class="head">Reviewers</div>+ <div class="head"><wicket:t>Reviewers</wicket:t></div><div wicket:id="reviews" class="body"></div>- <div wicket:id="reviewerHelp" class="font-size-sm text-muted form-text">Pull request can only be merged after getting approvals from all reviewers</div>+ <div wicket:id="reviewerHelp" class="font-size-sm text-muted form-text"><wicket:t>Pull request can only be merged after getting approvals from all reviewers</wicket:t></div></div></wicket:enclosure><wicket:enclosure child="jobs"><div class="jobs"><div class="head">- Jobs- <span wicket:id="hiddenJobsNote" class="warning ml-2" title="Some jobs are hidden due to permission policy">+ <wicket:t>Jobs</wicket:t>+ <span wicket:id="hiddenJobsNote" class="warning ml-2" t:data-tippy-content="Some jobs are hidden due to permission policy"><wicket:svg href="exclamation-circle-o" class="icon"/></span></div><div wicket:id="jobs" class="body"></div>- <div wicket:id="jobsHelp" class="font-size-sm text-muted form-text">Jobs marked with <span class="text-danger">*</span> are required to be successful</div>+ <div wicket:id="jobsHelp" class="font-size-sm text-muted form-text"><wicket:t>Jobs marked with <span class="text-danger">*</span> are required to be successful</wicket:t></div></div></wicket:enclosure><wicket:enclosure child="assignments"><div class="assignments">- <div class="head d-flex"><span class="mr-2">Assignees</span> <a wicket:id="assignToMe" class="ml-auto font-size-sm font-weight-normal">assign to me</a></div>+ <div class="head d-flex"><span class="mr-2"><wicket:t>Assignees</wicket:t></span> <a wicket:id="assignToMe" class="ml-auto font-size-sm font-weight-normal"><wicket:t>assign to me</wicket:t></a></div><div wicket:id="assignments" class="body"></div>- <div wicket:id="assigneeHelp" class="font-size-sm text-muted form-text">Assignees are expected to merge the pull request</div>+ <div wicket:id="assigneeHelp" class="font-size-sm text-muted form-text"><wicket:t>Assignees are expected to merge the pull request</wicket:t></div></div></wicket:enclosure><div wicket:id="mergeStrategy" class="merge-strategy">- <div class="head">Merge Strategy</div>+ <div class="head"><wicket:t>Merge Strategy</wicket:t></div><div class="body"><select wicket:id="editor" class="form-control custom-select"></select><span wicket:id="viewer"></span>@@ -185,7 +185,7 @@</div><div wicket:id="autoMerge" class="auto-merge"><div class="head d-flex">- <span class="mr-2">Auto Merge <span wicket:id="badge" class="ml-2 badge badge-sm badge-info"/></span>+ <span class="mr-2"><wicket:t>Auto Merge</wicket:t> <span wicket:id="badge" class="ml-2 badge badge-sm badge-info"/></span><wicket:enclosure child="toggle"><div class="switch switch-sm switch-primary ml-auto"><label>@@ -200,42 +200,42 @@</div><div wicket:id="labels" class="labels"><div wicket:id="head" class="d-flex align-items-center justify-content-between mb-3">- <span class="font-weight-bolder">Labels</span>+ <span class="font-weight-bolder"><wicket:t>Labels</wicket:t></span><wicket:svg href="gear" class="icon icon-sm"></wicket:svg></div><div wicket:id="body" class="body d-flex align-items-center"></div>- <span wicket:id="labelsHelp" class="form-text font-size-sm text-muted"><wicket:svg href="bulb" class="icon icon-sm"/> Labels can be defined in Administration / Label Management</span>+ <span wicket:id="labelsHelp" class="form-text font-size-sm text-muted"><wicket:svg href="bulb" class="icon icon-sm"/> <wicket:t>Labels can be defined in Administration / Label Management</wicket:t></span></div><div wicket:id="watches" class="watches"></div><div wicket:id="reference"></div><div wicket:id="actions" class="d-flex align-items-center justify-content-between"><wicket:enclosure child="synchronize"><div class="synchronize d-flex align-items-center mr-3">- <a wicket:id="synchronize" class="btn btn-light-primary mr-2">Synchronize</a>- <a href="javascript:void(0)" class="help text-muted text-hover-primary" title="In case the pull request status is out of sync with underlying repository, you may synchronize them manually here">+ <a wicket:id="synchronize" class="btn btn-light-primary mr-2"><wicket:t>Synchronize</wicket:t></a>+ <a href="javascript:void(0)" class="help text-muted text-hover-primary" t:data-tippy-content="In case the pull request status is out of sync with underlying repository, you may synchronize them manually here"><wicket:svg href="question-circle-o" class="icon"/></a></div></wicket:enclosure>- <a wicket:id="delete" class="delete btn btn-light-danger">Delete</a>+ <a wicket:id="delete" class="delete btn btn-light-danger"><wicket:t>Delete</wicket:t></a></div></wicket:fragment><wicket:fragment wicket:id="projectTitleFrag"><span class="d-flex align-items-center">- <a wicket:id="pullRequests" class="text-nowrap">Pull Requests</a>+ <a wicket:id="pullRequests" class="text-nowrap"><wicket:t>Pull Requests</wicket:t></a><span class="dot"></span><span wicket:id="pullRequestNumber"></span></span></wicket:fragment><wicket:fragment wicket:id="cloneFrag"><div class="p-4">- <div class="font-weight-bolder font-size-lg mb-2">Checkout Pull Request Head</div>+ <div class="font-weight-bolder font-size-lg mb-2"><wicket:t>Checkout Pull Request Head</wicket:t></div><div class="code font-size-sm"><div>git fetch origin <span wicket:id="headRef"></span></div><div>git checkout FETCH_HEAD</div></div><wicket:enclosure child="mergeRef">- <div class="font-weight-bolder font-size-lg mt-4 mb-2">Checkout Pull Request Merge Preview</div>+ <div class="font-weight-bolder font-size-lg mt-4 mb-2"><wicket:t>Checkout Pull Request Merge Preview</wicket:t></div><div class="code font-size-sm"><div>git fetch origin <span wicket:id="mergeRef"></span></div><div>git checkout FETCH_HEAD</div>@@ -243,12 +243,20 @@</wicket:enclosure></div></wicket:fragment>- <wicket:fragment wicket:id="autoMergeEnabledFrag">- Pull request will be merged automatically<wicket:enclosure> with a preset <a wicket:id="commitMessage">commit message</a></wicket:enclosure> when ready.- This option will be disabled upon adding new commits, changing merge strategy, or switching target branch+ <wicket:fragment wicket:id="autoMergeEnabledWithPresetCommitMessageFrag">+ <wicket:t>+ Pull request will be merged automatically with a preset <a wicket:id="commitMessage">commit message</a> when ready.+ This option will be disabled upon adding new commits, changing merge strategy, or switching target branch+ </wicket:t>+ </wicket:fragment>+ <wicket:fragment wicket:id="autoMergeEnabledWithoutPresetCommitMessageFrag">+ <wicket:t>+ Pull request will be merged automatically when ready.+ This option will be disabled upon adding new commits, changing merge strategy, or switching target branch+ </wicket:t></wicket:fragment><wicket:fragment wicket:id="autoMergeDisabledFrag">- Enable this option to merge the pull request automatically when ready (all reviewers approved, all required jobs passed etc.)+ <wicket:t>Enable this option to merge the pull request automatically when ready (all reviewers approved, all required jobs passed etc.)</wicket:t></wicket:fragment><wicket:fragment wicket:id="moreDescriptionActionsFrag"><span class="d-first-child-none dot mr-2"></span>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.javaindex 2f1a14deb1..b171f9cbfe 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.java+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.java@@ -9,6 +9,7 @@ import static io.onedev.server.web.translation.Translation._T;import static org.unbescape.html.HtmlEscape.escapeHtml5;import java.io.Serializable;+import java.text.MessageFormat;import java.util.ArrayList;import java.util.Arrays;import java.util.Collection;@@ -44,6 +45,7 @@ import org.apache.wicket.markup.html.basic.Label;import org.apache.wicket.markup.html.form.CheckBox;import org.apache.wicket.markup.html.form.DropDownChoice;import org.apache.wicket.markup.html.form.Form;+import org.apache.wicket.markup.html.form.IChoiceRenderer;import org.apache.wicket.markup.html.form.TextField;import org.apache.wicket.markup.html.link.BookmarkablePageLink;import org.apache.wicket.markup.html.link.Link;@@ -160,6 +162,7 @@ import io.onedev.server.web.util.Cursor;import io.onedev.server.web.util.CursorSupport;import io.onedev.server.web.util.DeleteCallback;import io.onedev.server.web.util.PullRequestAware;+import io.onedev.server.web.util.TextUtils;import io.onedev.server.web.util.editbean.CommitMessageBean;import io.onedev.server.web.util.editbean.LabelsBean;import io.onedev.server.xodus.VisitInfoManager;@@ -197,13 +200,12 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRtry {requestNumber = Long.valueOf(requestNumberString);} catch (NumberFormatException e) {- throw new ValidationException("Invalid pull request number: " + requestNumberString);+ throw new ValidationException(MessageFormat.format(_T("Invalid pull request number: {0}"), requestNumberString));}PullRequest request = getPullRequestManager().find(getProject(), requestNumber);if (request == null) {- throw new EntityNotFoundException("Unable to find pull request #"- + requestNumber + " in project " + getProject());+ throw new EntityNotFoundException(MessageFormat.format(_T("Unable to find pull request #{0} in project {1}"), requestNumber, getProject().getPath()));} else if (!request.getTargetProject().equals(getProject())) {throw new RestartResponseException(getPageClass(), paramsOf(request));} else {@@ -686,12 +688,12 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRif (commitMessageError != null) {if (commitMessageError.getCommitId() != null) {var params = CommitDetailPage.paramsOf(getProject(), commitMessageError.getCommitId().name());- return String.format("Error validating commit message of <a href='%s' class='text-monospace font-size-sm'>%s</a>: %s",+ return MessageFormat.format(_T("Error validating commit message of <a href=\"{0}\" class='text-monospace font-size-sm'>{1}</a>: {2}"),RequestCycle.get().urlFor(CommitDetailPage.class, params),GitUtils.abbreviateSHA(commitMessageError.getCommitId().name()),escapeHtml5(commitMessageError.getErrorMessage()));} else {- return String.format("Error validating auto merge commit message: %s",+ return MessageFormat.format(_T("Error validating auto merge commit message: {0}"),escapeHtml5(commitMessageError.getErrorMessage()));}} else {@@ -714,9 +716,9 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullR@Overridepublic String getObject() {if (getPullRequest().getBuildRequirement().isStrictMode())- return "Jobs required to be successful on merge commit: ";+ return _T("Jobs required to be successful on merge commit: ");else- return "Jobs required to be successful: ";+ return _T("Jobs required to be successful: ");}}));summaryContainer.add(new ListView<String>("requiredJobs", new LoadableDetachableModel<List<String>>() {@@ -804,7 +806,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRList<Tab> tabs = new ArrayList<>();- tabs.add(new PageTab(Model.of("Activities"), PullRequestActivitiesPage.class, PullRequestActivitiesPage.paramsOf(getPullRequest())) {+ tabs.add(new PageTab(Model.of(_T("Activities")), PullRequestActivitiesPage.class, PullRequestActivitiesPage.paramsOf(getPullRequest())) {@Overridepublic Component render(String componentId) {@@ -825,7 +827,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullR}});- tabs.add(new PageTab(Model.of("File Changes"), PullRequestChangesPage.class, PullRequestChangesPage.paramsOf(getPullRequest())) {+ tabs.add(new PageTab(Model.of(_T("File Changes")), PullRequestChangesPage.class, PullRequestChangesPage.paramsOf(getPullRequest())) {@Overridepublic Component render(String componentId) {@@ -840,7 +842,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullR}});- tabs.add(new PageTab(Model.of("Code Comments"), PullRequestCodeCommentsPage.class, PullRequestCodeCommentsPage.paramsOf(getPullRequest())) {+ tabs.add(new PageTab(Model.of(_T("Code Comments")), PullRequestCodeCommentsPage.class, PullRequestCodeCommentsPage.paramsOf(getPullRequest())) {@Overridepublic Component render(String componentId) {Fragment fragment = new Fragment(componentId, "codeCommentsTabLinkFrag", PullRequestDetailPage.this);@@ -939,7 +941,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRprotected void updateAjaxAttributes(AjaxRequestAttributes attributes) {super.updateAjaxAttributes(attributes);attributes.getAjaxCallListeners().add(new ConfirmClickListener(- "Do you really want to change target branch to " + branch + "?"));+ MessageFormat.format(_T("Do you really want to change target branch to {0}?"), branch)));}@Override@@ -1182,7 +1184,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullR@Overridepublic void onClick(AjaxRequestTarget target) {getPullRequestManager().checkAsync(getPullRequest(), false, true);- Session.get().success("Pull request synchronization submitted");+ Session.get().success(_T("Pull request synchronization submitted"));}});@@ -1192,7 +1194,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRpublic void onClick() {PullRequest request = getPullRequest();getPullRequestManager().delete(request);- Session.get().success("Pull request #" + request.getNumber() + " deleted");+ Session.get().success(MessageFormat.format(_T("Pull request #{0} deleted"), request.getNumber()));String redirectUrlAfterDelete = WebSession.get().getRedirectUrlAfterDelete(PullRequest.class);if (redirectUrlAfterDelete != null)@@ -1201,7 +1203,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRsetResponsePage(ProjectPullRequestsPage.class, ProjectPullRequestsPage.paramsOf(getProject()));}- }.add(new ConfirmClickModifier("Do you really want to delete this pull request?")));+ }.add(new ConfirmClickModifier(_T("Do you really want to delete this pull request?"))));} else {actions.add(new WebMarkupContainer("synchronize"));actions.add(new WebMarkupContainer("delete"));@@ -1272,11 +1274,29 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRmergeStrategy = getPullRequest().getMergeStrategy();- IModel<MergeStrategy> mergeStrategyModel = new PropertyModel<MergeStrategy>(this, "mergeStrategy");+ var mergeStrategyModel = new PropertyModel<MergeStrategy>(this, "mergeStrategy");- List<MergeStrategy> mergeStrategies = Arrays.asList(MergeStrategy.values());+ var mergeStrategies = Arrays.asList(MergeStrategy.values());+ var renderer = new IChoiceRenderer<MergeStrategy>() {++ @Override+ public Object getDisplayValue(MergeStrategy object) {+ return _T(TextUtils.getDisplayValue(object));+ }++ @Override+ public String getIdValue(MergeStrategy object, int index) {+ return object.name();+ }++ @Override+ public MergeStrategy getObject(String id, IModel<? extends List<? extends MergeStrategy>> choices) {+ return MergeStrategy.valueOf(id);+ }++ };DropDownChoice<MergeStrategy> editor =- new DropDownChoice<MergeStrategy>("editor", mergeStrategyModel, mergeStrategies) {+ new DropDownChoice<MergeStrategy>("editor", mergeStrategyModel, mergeStrategies, renderer) {@Overrideprotected void onConfigure() {@@ -1318,7 +1338,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullR@Overridepublic String getObject() {- return getPullRequest().getMergeStrategy().getDescription();+ return _T(getPullRequest().getMergeStrategy().getDescription());}}) {@@ -1343,9 +1363,9 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRvar request = getPullRequest();var autoMerge = request.getAutoMerge();if (autoMerge.isEnabled()) {- tipsContainer = new Fragment("tips", "autoMergeEnabledFrag", PullRequestDetailPage.this);- WebMarkupContainer link;if (request.isMergeCommitMessageRequired()) {+ tipsContainer = new Fragment("tips", "autoMergeEnabledWithPresetCommitMessageFrag", PullRequestDetailPage.this);+ WebMarkupContainer link;if (SecurityUtils.canManagePullRequests(getProject())|| autoMerge.getUser() != null && autoMerge.getUser().equals(SecurityUtils.getUser())) {link = new AjaxLink<Void>("commitMessage") {@@ -1354,7 +1374,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRpublic void onClick(AjaxRequestTarget target) {var bean = new CommitMessageBean();bean.setCommitMessage(autoMerge.getCommitMessage());- new BeanEditModalPanel<>(target, bean, "Preset Commit Message") {+ new BeanEditModalPanel<>(target, bean, _T("Preset Commit Message")) {@Overrideprotected String getCssClass() {return "modal-lg commit-message no-autosize";@@ -1371,7 +1391,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullR} else {autoMerge.setCommitMessage(bean.getCommitMessage());getPullRequestChangeManager().changeAutoMerge(request, autoMerge);- Session.get().success("Preset commit message updated");+ Session.get().success(_T("Preset commit message updated"));close();getPullRequestManager().checkAutoMerge(request);return null;@@ -1392,11 +1412,10 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullR};}+ tipsContainer.add(link);} else {- link = new WebMarkupContainer("commitMessage");- link.setVisible(false);+ tipsContainer = new Fragment("tips", "autoMergeEnabledWithoutPresetCommitMessageFrag", PullRequestDetailPage.this);}- tipsContainer.add(link);} else {tipsContainer = new Fragment("tips", "autoMergeDisabledFrag", PullRequestDetailPage.this);}@@ -1454,7 +1473,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRbean.setCommitMessage(request.getAutoMerge().getCommitMessage());if (bean.getCommitMessage() == null)bean.setCommitMessage(request.getDefaultMergeCommitMessage());- new BeanEditModalPanel<>(target, bean, "Preset Commit Message") {+ new BeanEditModalPanel<>(target, bean, _T("Preset Commit Message")) {@Overrideprotected String getCssClass() {@@ -1538,7 +1557,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullR@Overridepublic String getObject() {- return getPullRequest().getStatus().toString();+ return _T(getPullRequest().getStatus().toString());}}) {@@ -1796,7 +1815,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRmenuItems.add(new MenuItem() {@Overridepublic String getLabel() {- return "Merge";+ return _T("Merge");}@Override@@ -1814,7 +1833,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRvar mergeCommit = getProject().getRevCommit((ObjectId) result, true);var bean = new CommitMessageBean();bean.setCommitMessage(mergeCommit.getFullMessage());- new BeanEditModalPanel<>(target, bean, "Merge Target Branch into Source Branch") {+ new BeanEditModalPanel<>(target, bean, _T("Merge Target Branch into Source Branch")) {@Overrideprotected String getCssClass() {return "modal-lg commit-message no-autosize";@@ -1840,9 +1859,9 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRmergeCommit.getAuthorIdent(), mergeCommit.getCommitterIdent(),bean.getCommitMessage());updateSourceBranch(amendedCommitId);- getSession().success("Source branch updated successfully");+ getSession().success(_T("Source branch updated successfully"));} else {- getSession().warn("Target or source branch is updated. Please try again");+ getSession().warn(_T("Target or source branch is updated. Please try again"));}close();return null;@@ -1859,7 +1878,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRmenuItems.add(new MenuItem() {@Overridepublic String getLabel() {- return "Rebase";+ return _T("Rebase");}@Override@@ -1882,9 +1901,9 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRif (targetHead.equals(request.getTarget().getObjectId())&& sourceHead.equals(request.getSourceHead())) {updateSourceBranch((ObjectId)result);- getSession().success("Source branch updated successfully");+ getSession().success(_T("Source branch updated successfully"));} else {- getSession().warn("Target or source branch is updated. Please try again");+ getSession().warn(_T("Target or source branch is updated. Please try again"));}}@@ -1895,7 +1914,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullR@Overrideprotected String getConfirmMessage() {- return "You are rebasing source branch on top of target branch";+ return _T("You are rebasing source branch on top of target branch");}};} else {@@ -1949,16 +1968,16 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRif (canOperate()) {getPullRequestReviewManager().review(getPullRequest(), true, getComment());notifyPullRequestChange(target);- Session.get().success("Approved");+ Session.get().success(_T("Approved"));return null;} else {- return "Can not perform this operation now";+ return _T("Can not perform this operation now");}}@Overrideprotected String getTitle() {- return "Confirm Approve";+ return _T("Confirm Approve");}};}@@ -1992,16 +2011,16 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRif (canOperate()) {getPullRequestReviewManager().review(getPullRequest(), false, getComment());notifyPullRequestChange(target);- Session.get().success("Requested For changes");+ Session.get().success(_T("Requested For changes"));return null;} else {- return "Can not perform this operation now";+ return _T("Can not perform this operation now");}}@Overrideprotected String getTitle() {- return "Confirm Request For Changes";+ return _T("Confirm Request For Changes");}};}@@ -2041,7 +2060,7 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRnotifyPullRequestChange(target);return null;} else {- return "Can not perform this operation now";+ return _T("Can not perform this operation now");}}@@ -2073,13 +2092,13 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRnotifyPullRequestChange(target);return null;} else {- return "Can not perform this operation now";+ return _T("Can not perform this operation now");}}@Overrideprotected String getTitle() {- return "Confirm Discard";+ return _T("Confirm Discard");}};}@@ -2110,13 +2129,13 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRnotifyPullRequestChange(target);return null;} else {- return "Can not perform this operation now";+ return _T("Can not perform this operation now");}}@Overrideprotected String getTitle() {- return "Confirm Reopen";+ return _T("Confirm Reopen");}};}@@ -2147,16 +2166,16 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRif (canOperate()) {getPullRequestManager().deleteSourceBranch(getPullRequest(), getComment());notifyPullRequestChange(target);- Session.get().success("Deleted source branch");+ Session.get().success(_T("Deleted source branch"));return null;} else {- return "Can not perform this operation now";+ return _T("Can not perform this operation now");}}@Overrideprotected String getTitle() {- return "Confirm Delete Source Branch";+ return _T("Confirm Delete Source Branch");}};}@@ -2187,16 +2206,16 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRif (canOperate()) {getPullRequestManager().restoreSourceBranch(getPullRequest(), getComment());notifyPullRequestChange(target);- Session.get().success("Restored source branch");+ Session.get().success(_T("Restored source branch"));return null;} else {- return "Can not perform this operation now";+ return _T("Can not perform this operation now");}}@Overrideprotected String getTitle() {- return "Confirm Restore Source Branch";+ return _T("Confirm Restore Source Branch");}};}@@ -2222,33 +2241,37 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullRvar gitService = getGitService();if (updateByMerge) {- var commitMessage = "Merge branch '" + request.getTargetBranch() +"'";- if (!request.getSourceProject().equals(project))- commitMessage += " of project '" + project.getPath() + "' ";- commitMessage += " into branch '" + request.getSourceBranch() + "'";+ String commitMessage;+ if (!request.getSourceProject().equals(project)) {+ commitMessage = MessageFormat.format(_T("Merge branch \"{0}\" of project \"{1}\" into branch \"{2}\""),+ request.getTargetBranch(), project.getPath(), request.getSourceBranch());+ } else {+ commitMessage = MessageFormat.format(_T("Merge branch \"{0}\" into branch \"{1}\""),+ request.getTargetBranch(), request.getSourceBranch());+ }mergeCommitId = gitService.merge(project, targetHead, sourceHead,false, user.asPerson(), user.asPerson(), commitMessage, false);} else {mergeCommitId = gitService.rebase(project, sourceHead, targetHead, user.asPerson());}if (mergeCommitId == null)- return "There are merge conflicts";+ return _T("There are merge conflicts");if (protection.isReviewRequiredForPush(project, sourceHead, mergeCommitId, new HashMap<>()))- return "Review required for this change. Submit pull request instead";+ return _T("Review required for this change. Submit pull request instead");var buildRequirement = protection.getBuildRequirement(project, sourceHead, mergeCommitId, new HashMap<>());if (!buildRequirement.getRequiredJobs().isEmpty())- return "This change needs to be verified by some jobs. Submit pull request instead";+ return _T("This change needs to be verified by some jobs. Submit pull request instead");if (protection.isCommitSignatureRequired()&& !project.hasValidCommitSignature(project.getRevCommit(targetHead, true))) {- return "No valid signature for head commit of target branch";+ return _T("No valid signature for head commit of target branch");}if (protection.isCommitSignatureRequired()&& OneDev.getInstance(SettingManager.class).getGpgSetting().getSigningKey() == null) {- return "Commit signature required but no GPG signing key specified";+ return _T("Commit signature required but no GPG signing key specified");}var error = gitService.checkCommitMessages(protection, project, sourceHead, mergeCommitId, new HashMap<>());if (error != null)- return "Error validating commit message of '" + error.getCommitId().name() + "': " + error.getErrorMessage();+ return MessageFormat.format(_T("Error validating commit message of \"{0}\": {1}"), error.getCommitId().name(), error.getErrorMessage());return mergeCommitId;}diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.htmlindex f9d4f4a77d..4bef7939f7 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.html@@ -3,8 +3,8 @@<wicket:svg href="history" class="icon text-gray"></wicket:svg><div class="head"><span wicket:id="avatar" class="mr-1"></span>- <span wicket:id="name"></span> <span wicket:id="description"></span> <span wicket:id="age"></span>- <a wicket:id="changes" class="since-changes ml-2" title="Changes since this action"><wicket:svg href="diff" class="icon"></wicket:svg></a>+ <wicket:t><span wicket:id="name"></span> <span wicket:id="description"></span> <span wicket:id="age"></span></wicket:t>+ <a wicket:id="changes" class="since-changes ml-2" t:data-tippy-content="Changes since this action"><wicket:svg href="diff" class="icon"></wicket:svg></a></div><div wicket:id="body" class="body mt-3"></div></div>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.java b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.javaindex 58648d1181..70614db5b4 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.java+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestChangePanel.java@@ -1,5 +1,7 @@package io.onedev.server.web.page.project.pullrequests.detail.activities.activity;+import static io.onedev.server.web.translation.Translation._T;+import org.apache.wicket.behavior.AttributeAppender;import org.apache.wicket.markup.html.WebMarkupContainer;import org.apache.wicket.markup.html.basic.Label;@@ -28,7 +30,7 @@ class PullRequestChangePanel extends Panel {add(new UserIdentPanel("avatar", change.getUser(), Mode.AVATAR));add(new Label("name", change.getUser().getDisplayName()));- add(new Label("description", change.getData().getActivity()));+ add(new Label("description", _T("action:" + change.getData().getActivity())));add(new Label("age", DateUtils.formatAge(change.getDate())).add(new AttributeAppender("title", DateUtils.formatDateTime(change.getDate()))));diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestCommentPanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestCommentPanel.htmlindex cce72ac0f8..2292942414 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestCommentPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/activities/activity/PullRequestCommentPanel.html@@ -5,8 +5,8 @@</div><div class="detail flex-grow-1"><div class="head mb-3">- <span wicket:id="name"></span> commented <span wicket:id="age"></span>- <a wicket:id="changes" title="Changes since this comment" class="since-changes ml-2"><wicket:svg href="diff" class="icon"></wicket:svg></a>+ <wicket:t><span wicket:id="name"></span> commented <span wicket:id="age"></span></wicket:t>+ <a wicket:id="changes" t:data-tippy-content="Changes since this comment" class="since-changes ml-2"><wicket:svg href="diff" class="icon"></wicket:svg></a><a wicket:id="anchor" class="activity-anchor ml-2"><wicket:svg href="link" class="icon rotate-45"/></a></div><div wicket:id="body" class="body"></div>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/changes/PullRequestChangesPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/changes/PullRequestChangesPage.htmlindex c65f94ec89..1ebbf3bff2 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/changes/PullRequestChangesPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/changes/PullRequestChangesPage.html@@ -3,13 +3,13 @@<wicket:fragment wicket:id="changesFrag"><div wicket:id="changesHead" class="head"><div class="btn-group btn-block mb-4">- <button wicket:id="prevCommitLink" class="btn btn-light btn-hover-primary btn-icon flex-grow-0 flex-shrink-0" title="Previous commit"><wicket:svg href="arrow" class="icon rotate-180"></wicket:svg></button>+ <button wicket:id="prevCommitLink" class="btn btn-light btn-hover-primary btn-icon flex-grow-0 flex-shrink-0" t:data-tippy-content="Previous commit"><wicket:svg href="arrow" class="icon rotate-180"></wicket:svg></button><button wicket:id="comparingCommits" class="btn btn-light btn-hover-primary"><span wicket:id="label"></span> <wicket:svg href="arrow" class="ml-1 icon rotate-90"></wicket:svg></button>- <button wicket:id="nextCommitLink" class="btn btn-light btn-hover-primary btn-icon flex-grow-0 flex-shrink-0" title="Next commit"><wicket:svg href="arrow" class="icon"></wicket:svg></button>+ <button wicket:id="nextCommitLink" class="btn btn-light btn-hover-primary btn-icon flex-grow-0 flex-shrink-0" t:data-tippy-content="Next commit"><wicket:svg href="arrow" class="icon"></wicket:svg></button></div><wicket:enclosure child="fullChanges"><div class="alert alert-notice alert-light-warning mb-4">- You are viewing a subset of all changes. <a wicket:id="fullChanges" class="link-primary ml-2">show all changes</a>+ <wicket:t>You are viewing a subset of all changes. <a wicket:id="fullChanges" class="link-primary ml-2">show all changes</a></wicket:t></div></wicket:enclosure></div>@@ -18,8 +18,8 @@<wicket:fragment wicket:id="commitsFrag"><div class="commits-selector noselect p-4"><div class="links mb-3">- <a wicket:id="allChanges" class="btn btn-light btn-sm mr-2">All changes</a>- <a wicket:id="changesSinceLastReview" class="btn btn-light btn-sm mr-2">Changes since last review</a>+ <a wicket:id="allChanges" class="btn btn-light btn-sm mr-2"><wicket:t>All changes</wicket:t></a>+ <a wicket:id="changesSinceLastReview" class="btn btn-light btn-sm mr-2"><wicket:t>Changes since last review</wicket:t></a></div><ul class="list-unstyled autosuit mb-0"><li wicket:id="commits">@@ -31,11 +31,11 @@</li></ul><div class="mt-3 text-muted d-flex align-items-center">- <wicket:svg href="bulb" class="icon mr-2"/> Click to select a commit, or shift-click to select multiple commit+ <wicket:svg href="bulb" class="icon mr-2"/> <wicket:t>Click to select a commit, or shift-click to select multiple commit</wicket:t></div></div></wicket:fragment><wicket:fragment wicket:id="waitingFrag">- <div class="alert alert-notice alert-light-warning">Please waiting...</div>+ <div class="alert alert-notice alert-light-warning"><wicket:t>Please waiting...</wicket:t></div></wicket:fragment></wicket:extend>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/changes/PullRequestChangesPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/changes/PullRequestChangesPage.javaindex 5aa1af4304..2e1f54d735 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/changes/PullRequestChangesPage.java+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/changes/PullRequestChangesPage.java@@ -58,6 +58,7 @@ import javax.annotation.Nullable;import java.io.Serializable;import java.util.*;+import static io.onedev.server.web.translation.Translation._T;import static org.apache.wicket.ajax.attributes.CallbackParameter.explicit;public class PullRequestChangesPage extends PullRequestDetailPage implements RevisionAnnotationSupport, EditParamsAware {@@ -483,7 +484,7 @@ public class PullRequestChangesPage extends PullRequestDetailPage implements RevRevCommit commit = item.getModelObject();if (!getPullRequest().getPendingCommits().contains(commit)) {item.add(AttributeAppender.append("class", "rebased"));- item.add(AttributeAppender.append("title", "This commit is rebased"));+ item.add(AttributeAppender.append("title", _T("This commit is rebased")));}item.add(AttributeAppender.append("data-hash", commit.name()));item.add(new Label("hash", GitUtils.abbreviateSHA(commit.name())));@@ -500,13 +501,13 @@ public class PullRequestChangesPage extends PullRequestDetailPage implements Revpublic String getObject() {String oldName;if (state.oldCommitHash.equals(getPullRequest().getBaseCommitHash()))- oldName = "base";+ oldName = _T("base");elseoldName = GitUtils.abbreviateSHA(state.oldCommitHash);String newName;if (state.newCommitHash.equals(getPullRequest().getLatestUpdate().getHeadCommitHash())) {- newName = "head";+ newName = _T("head");} else {newName = GitUtils.abbreviateSHA(state.newCommitHash);}diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/operationdlg/ObsoleteUpdateAwarePanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/operationdlg/ObsoleteUpdateAwarePanel.htmlindex d760838f8a..7bc952cfe7 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/operationdlg/ObsoleteUpdateAwarePanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/operationdlg/ObsoleteUpdateAwarePanel.html@@ -2,7 +2,7 @@<div class="obsolete-update-aware"><form wicket:id="form" class="leave-confirm"><div class="modal-header">- <h5 wicket:id="title" id="modal-title" class="modal-title">Please Confirm</h5>+ <h5 wicket:id="title" id="modal-title" class="modal-title"><wicket:t>Please Confirm</wicket:t></h5><button wicket:id="close" type="button" class="close"><wicket:svg href="times" class="icon"/></button></div><div class="modal-body">@@ -11,7 +11,7 @@</div><div class="modal-footer"><input wicket:id="ok" type="submit" class="btn btn-primary" t:value="Ok">- <a wicket:id="cancel" class="btn btn-secondary">Cancel</a>+ <a wicket:id="cancel" class="btn btn-secondary"><wicket:t>Cancel</wicket:t></a></div></form></div>diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/setting/build/JobSecretsPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/setting/build/JobSecretsPage.htmlindex ab07c9b865..56a6b87c94 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/setting/build/JobSecretsPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/setting/build/JobSecretsPage.html@@ -14,7 +14,7 @@<span wicket:id="archived" class="badge badge-sm badge-info ml-1">archived</span></wicket:fragment><wicket:fragment wicket:id="actionFrag">- <a wicket:id="edit" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" title="Edit this secret"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-icon btn-xs btn-light btn-hover-danger" title="Delete this secret"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" class="btn btn-icon btn-xs btn-light btn-hover-primary mr-1" t:data-tippy-content="Edit this secret"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-icon btn-xs btn-light btn-hover-danger" t:data-tippy-content="Delete this secret"><wicket:svg href="trash" class="icon"></wicket:svg></a></wicket:fragment></wicket:extend>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/project/setting/code/branchprotection/BranchProtectionPanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/setting/code/branchprotection/BranchProtectionPanel.htmlindex 8304c336db..f148a17b6d 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/setting/code/branchprotection/BranchProtectionPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/setting/code/branchprotection/BranchProtectionPanel.html@@ -5,8 +5,8 @@<a class="toggle" onclick="$(this).closest('.branch-protection').toggleClass('expanded');"><wicket:svg href="arrow4" class="icon rotate-270"/></a><span class="drag-indicator"><wicket:svg href="grip" class="icon icon-lg mr-2"/></span><span wicket:id="branches" class="mr-3"></span>- <a wicket:id="edit" onclick="$(this).closest('.branch-protection').addClass('expanded');" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-2" title="Edit this rule"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger mr-4" title="Delete this rule"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" onclick="$(this).closest('.branch-protection').addClass('expanded');" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-2" t:data-tippy-content="Edit this rule"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger mr-4" t:data-tippy-content="Delete this rule"><wicket:svg href="trash" class="icon"></wicket:svg></a><span wicket:id="disabled" class="badge badge-warning">Disabled</span></div><div class="card-toolbar">diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/setting/code/tagprotection/TagProtectionPanel.html b/server-core/src/main/java/io/onedev/server/web/page/project/setting/code/tagprotection/TagProtectionPanel.htmlindex 78c4b90b6e..87ad927f9f 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/setting/code/tagprotection/TagProtectionPanel.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/setting/code/tagprotection/TagProtectionPanel.html@@ -5,8 +5,8 @@<a class="toggle" onclick="$(this).closest('.tag-protection').toggleClass('expanded');"><wicket:svg href="arrow4" class="icon rotate-270"/></a><span class="drag-indicator"><wicket:svg href="grip" class="icon mr-2"/></span><span wicket:id="tags" class="mr-3"></span>- <a wicket:id="edit" onclick="$(this).closest('.tag-protection').addClass('expanded');" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-2" title="Edit this rule"><wicket:svg href="edit" class="icon"></wicket:svg></a>- <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger mr-4" title="Delete this rule"><wicket:svg href="trash" class="icon"></wicket:svg></a>+ <a wicket:id="edit" onclick="$(this).closest('.tag-protection').addClass('expanded');" class="btn btn-xs btn-icon btn-light btn-hover-primary mr-2" t:data-tippy-content="Edit this rule"><wicket:svg href="edit" class="icon"></wicket:svg></a>+ <a wicket:id="delete" class="btn btn-xs btn-icon btn-light btn-hover-danger mr-4" t:data-tippy-content="Delete this rule"><wicket:svg href="trash" class="icon"></wicket:svg></a><span wicket:id="disabled" class="badge badge-warning">Disabled</span></div><div class="card-toolbar">diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/stats/buildmetric/BuildMetricStatsPage.html b/server-core/src/main/java/io/onedev/server/web/page/project/stats/buildmetric/BuildMetricStatsPage.htmlindex 2129bec360..562e4c053d 100644--- a/server-core/src/main/java/io/onedev/server/web/page/project/stats/buildmetric/BuildMetricStatsPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/project/stats/buildmetric/BuildMetricStatsPage.html@@ -7,7 +7,7 @@<div class="input-group"><input wicket:id="input" class="form-control" spellcheck="false" autocomplete="off" t:placeholder="Filter..."><span class="input-group-append">- <button wicket:id="submit" title="Filter" class="btn btn-icon bg-white btn-outline-secondary btn-hover-primary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" t:data-tippy-content="Filter" class="btn btn-icon bg-white btn-outline-secondary btn-hover-primary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></div>diff --git a/server-core/src/main/java/io/onedev/server/web/page/simple/error/GeneralErrorPage.html b/server-core/src/main/java/io/onedev/server/web/page/simple/error/GeneralErrorPage.htmlindex df294b916d..9548e3d09f 100644--- a/server-core/src/main/java/io/onedev/server/web/page/simple/error/GeneralErrorPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/simple/error/GeneralErrorPage.html@@ -8,6 +8,6 @@</div><wicket:fragment wicket:id="errorDetailFrag"><div wicket:id="content" class="error-detail alert alert-light"></div>- <span class="position-absolute copy"><a wicket:id="copy" title="Copy"><wicket:svg href="copy" class="icon"/></a></span>+ <span class="position-absolute copy"><a wicket:id="copy" t:data-tippy-content="Copy"><wicket:svg href="copy" class="icon"/></a></span></wicket:fragment></wicket:extend>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/user/sshkeys/UserSshKeysPage.html b/server-core/src/main/java/io/onedev/server/web/page/user/sshkeys/UserSshKeysPage.htmlindex eb5a972cc6..bc73fa3f0a 100644--- a/server-core/src/main/java/io/onedev/server/web/page/user/sshkeys/UserSshKeysPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/user/sshkeys/UserSshKeysPage.html@@ -1,6 +1,6 @@<wicket:extend><div class="user-ssh-key-list">- <a class="add-new btn-icon btn btn-primary mb-4" title="Add SSH key" wicket:id="newKey"><wicket:svg href="plus" class="icon"></wicket:svg></a>+ <a class="add-new btn-icon btn btn-primary mb-4" t:data-tippy-content="Add SSH key" wicket:id="newKey"><wicket:svg href="plus" class="icon"></wicket:svg></a><div wicket:id="keyList"></div></div></wicket:extend>diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation.javaindex f14e009206..6af285fcd4 100644--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation.java+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation.java@@ -7,6 +7,7 @@ import java.util.Map;import java.util.concurrent.atomic.AtomicBoolean;import java.util.concurrent.atomic.AtomicLong;+import org.apache.wicket.Application;import org.apache.wicket.Localizer;import org.slf4j.Logger;import org.slf4j.LoggerFactory;@@ -20,7 +21,10 @@ public class Translation extends TranslationResourceBundle {private static final Map<String, String> m = new HashMap<>();public static String _T(String key) {- return Localizer.get().getString("t: " + key, null);+ if (Application.exists())+ return Localizer.get().getString("t: " + key, null);+ else+ return key;}public static void watchUpdate(Class<? extends TranslationResourceBundle> translationClass, Runnable onUpdate) {diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh_CN.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh_CN.javaindex d3fdc0d737..7b3fc84a86 100644--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh_CN.java+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh_CN.java@@ -18,6 +18,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.clear();// Extracted keys+ m.put(" Project path can be omitted if reference from current project", "如果从当前项目引用,则可以省略项目路径");m.put("'..' is not allowed in the directory", "'..' 不允许在目录中使用");m.put("(on behalf of <b>{0}</b>)", "(代表 <b>{0}</b>)");m.put("1w 1d 1h 1m", "1w 1d 1h 1m");@@ -75,25 +76,45 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Add New", "添加");m.put("Add New Email Address", "添加新电子邮件地址");m.put("Add SSH key", "添加 SSH 密钥");+ m.put("Add SSO provider", "添加 SSO 提供者");m.put("Add Spent Time", "添加已用时间");m.put("Add a GPG Public Key", "添加一个 GPG 公钥");m.put("Add a SSH Key", "添加 SSH 密钥");m.put("Add after", "添加到后面");+ m.put("Add agent", "添加代理");+ m.put("Add all cards to specified iteration", "将所有卡片添加到指定迭代");m.put("Add assignee...", "添加分配人员...");m.put("Add before", "添加到前面");m.put("Add child project", "添加子项目");m.put("Add comment on this selection", "在此选择上添加注释");+ m.put("Add custom field", "添加自定义字段");m.put("Add dashboard", "添加仪表板");+ m.put("Add default issue board", "添加默认工单看板");+ m.put("Add files to current directory", "添加文件到当前目录");m.put("Add files via upload", "通过上传添加文件");+ m.put("Add groovy script", "添加 Groovy 脚本");+ m.put("Add issue description template", "添加工单描述模板");+ m.put("Add issue link", "添加工单链接");+ m.put("Add issue state", "添加工单状态");+ m.put("Add issue state transition", "添加工单状态转换");m.put("Add link", "添加链接");m.put("Add member...", "添加成员...");m.put("Add new", "添加");+ m.put("Add new card to this column", "在此列添加新卡片");m.put("Add new file", "添加新文件");m.put("Add new import", "添加新导入");+ m.put("Add new issue creation setting", "添加新工单创建设置");+ m.put("Add new job dependency", "添加新任务依赖");+ m.put("Add new param", "添加新参数");+ m.put("Add new post-build action", "添加新构建后操作");+ m.put("Add new project dependency", "添加新项目依赖");+ m.put("Add new step", "添加新步骤");+ m.put("Add new trigger", "添加新触发器");m.put("Add project", "添加项目");m.put("Add reviewer...", "添加审查人员...");m.put("Add to batch to commit with other suggestions later", "稍后与其他建议一起提交");m.put("Add to group...", "添加到组...");+ m.put("Add value", "添加值");m.put("Add {0}", "添加 {0}");m.put("Added commit \"{0}\" (<i class='text-danger'>missing in repository</i>)", "代码提交 \"{0}\"(<i class='text-danger'>仓库中不存在</i>)");m.put("Added commit \"{0}\" ({1})", "代码提交 \"{0}\"({1})");@@ -101,6 +122,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Administration", "管理");m.put("Administrative permission over a project", "项目的管理权限");m.put("Advanced Search", "高级搜索");+ m.put("After modification", "修改后");m.put("Agent", "代理");m.put("Agent Attribute", "代理属性");m.put("Agent Edit Bean", "代理编辑Bean");@@ -114,12 +136,14 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("All", "全部");m.put("All accessible", "所有可访问的");m.put("All builds", "所有构建");+ m.put("All changes", "所有更改");m.put("All except", "除外所有");m.put("All files", "所有文件");m.put("All groups", "所有分组");m.put("All issues", "所有工单");m.put("All platforms in OCI layout", "所有 OCI 布局的平台");m.put("All platforms in image", "所有镜像中的平台");+ m.put("All possible classes", "所有可能的类");m.put("All projects", "所有项目");m.put("All projects with code read permission", "所有具有代码读取权限的项目");m.put("All pull requests", "所有合并请求");@@ -132,6 +156,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Always", "总是");m.put("Always Pull Image", "始终拉取镜像");m.put("An issue already linked for {0}. Unlink it first", "已链接到 {0}。先取消链接");+ m.put("Another pull request already open for this change", "另一个合并请求已为此更改打开");m.put("Any agent", "任何代理");m.put("Any branch", "任何分支");m.put("Any domain", "任何域");@@ -163,6 +188,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Application (client) ID", "应用(客户端)ID");m.put("Apply suggested change from code comment", "从代码评论应用建议的更改");m.put("Apply suggested changes from code comments", "从代码评论应用建议的更改");+ m.put("Approve", "批准");m.put("Approved", "已批准");m.put("Approved pull request \"{0}\" ({1})", "批准合并请求 \"{0}\"({1})");m.put("Arbitrary scope", "任意范围");@@ -174,6 +200,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Ascending", "升序");m.put("Assignees", "分配给");m.put("Assignees Issue Field", "受让人工单字段");+ m.put("Assignees are expected to merge the pull request", "合并请求的负责人应合并合并请求");m.put("Assignees have code write permission and will be responsible for merging the pull request","分配人员具有代码写入权限,并负责合并合并请求");m.put("Asymmetric", "非对称");@@ -209,6 +236,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Authorizations", "授权项");m.put("Authorized Projects", "已授权项目");m.put("Authorized Roles", "已授权角色");+ m.put("Auto Merge", "自动合并");m.put("Auto Spec", "自动规范");m.put("Auto update check is performed by requesting an image in your browser from onedev.io indicating new version availability, with color indicating severity of the update. It works the same way as how gravatar requests avatar images. If disabled, you are highly recommended to check update manually from time to time (can be done via help menu on left bottom of the screen) to see if there are any security/critical fixes","自动更新检查通过从 onedev.io 请求一个图像来完成,该图像会指示新版本的可用性,颜色表示更新的严重程度。其工作方式与 gravatar 请求头像图片相同。如果禁用,强烈建议你定期手动检查更新(可通过屏幕左下角的帮助菜单执行),以确保获得安全/关键修复");@@ -229,6 +257,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Base64 encoded PEM format, starting with -----BEGIN CERTIFICATE----- and ending with -----END CERTIFICATE-----","Base64 编码的 PEM 格式,以 -----BEGIN CERTIFICATE----- 开头,以 -----END CERTIFICATE----- 结尾");m.put("Batched suggestions", "批量建议");+ m.put("Before modification", "修改前");m.put("Belonging Groups", "所属组");m.put("Below are some common criterias. Type in search box above to view the complete list and available combinations.","以下是一些常见的条件。在搜索框中输入以查看完整列表和可用组合。");@@ -253,6 +282,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Blob unknown", "未知Blob");m.put("Blob upload invalid", "Blob上传无效");m.put("Blob upload unknown", "Blob上传未知错误");+ m.put("Board", "看板");m.put("Board Columns", "看板列");m.put("Board Spec", "看板规范");m.put("Boards", "看板");@@ -330,6 +360,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("CORS Allowed Origins", "CORS 允许的来源");m.put("CPD Report", "CPD 报告");m.put("CPU Intensive Task Concurrency", "CPU 密集型任务并发数");+ m.put("CPU capability in millis. This is normally (CPU cores)*1000", "CPU 能力(毫秒)。通常为 (CPU 核心数)*1000");m.put("Cache Key", "缓存键");m.put("Cache Management", "缓存管理");m.put("Cache Paths", "缓存路径");@@ -345,18 +376,26 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Can not disable root account", "不能禁用根账户");m.put("Can not disable yourself", "不能禁用自己");m.put("Can not link to self", "不能链接到自己");+ m.put("Can not perform this operation now", "当前无法执行此操作");m.put("Can not save malformed query", "无法保存格式错误的查询");+ m.put("Can only compare with common ancestor when different projects are involved", "跨项目比较时只能使用共同祖先");m.put("Cancel", "取消");m.put("Cancel invitation", "取消邀请");+ m.put("Cancel this build", "取消此构建");m.put("Cancelled", "已取消");m.put("Certificates to Trust", "信任的证书");m.put("Change", "更改");m.put("Change Detection Excludes", "变更检测排除项");m.put("Change My Password", "更改我的密码");+ m.put("Change already merged", "更改已合并");+ m.put("Change not updated yet", "更改尚未更新");m.put("Change to another field", "更改为其他字段");m.put("Change to another state", "更改为其他状态");m.put("Change to another value", "更改为其他值");+ m.put("Changes since last review", "上次审查后的更改");m.put("Changes since last visit", "自上次访问以来的更改");+ m.put("Changes since this action", "此操作后的变更");+ m.put("Changes since this comment", "此评论后的变更");m.put("Channel Notification", "频道通知");m.put("Check <a href=\"https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification#gpg-commit-signature-verification\" target=\"_blank\">GitHub's guide</a> on how to generate and use GPG keys to sign your commits","检查 <a href=\"https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification#gpg-commit-signature-verification\" target=\"_blank\">GitHub 的指南</a> 如何生成和使用 GPG 密钥来签署您的提交");@@ -364,6 +403,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Check Incoming Email", "检查接收的电子邮件");m.put("Check Update", "检查更新");m.put("Check Workflow Integrity", "检查工作流完整性");+ m.put("Check out to local workspace", "Checkout 到本地");+ m.put("Check this to compare right side with common ancestor of left and right", "勾选此项以将右侧与左右两侧的共同祖先进行比较");m.put("Check this to enforce two-factor authentication for all users in the system", "勾选此项以强制系统中所有用户启用两阶段身份验证");m.put("Check this to enforce two-factor authentication for all users in this group", "勾选此项以强制本组所有用户启用两阶段身份验证");m.put("Check this to prevent branch creation", "勾选此项以禁止创建分支");@@ -379,6 +420,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Checkbox", "复选框");m.put("Checkout Code", "签出代码");m.put("Checkout Path", "签出路径");+ m.put("Checkout Pull Request Head", "检出合并请求的头部提交");+ m.put("Checkout Pull Request Merge Preview", "检出合并请求的预览提交");m.put("Checkstyle Report", "Checkstyle 报告");m.put("Cherry-Pick", "cherry-pick");m.put("Cherry-picked successfully", "cherry-pick 成功");@@ -392,7 +435,9 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Choose issue...", "选择工单...");m.put("Choose iterations...", "选择迭代...");m.put("Choose...", "选择...");+ m.put("Click to select a commit, or shift-click to select multiple commit", "点击选择一个提交,或按住 Shift 点击选择多个提交");m.put("Click to show comment of marked text", "点击显示标记文本的评论");+ m.put("Click to show issue details", "点击显示工单详情");m.put("Client ID of this OneDev instance registered in Google cloud", "在 Google Cloud 注册的本 OneDev 实例的客户端 ID");m.put("Client Id", "客户端 ID");m.put("Client Secret", "客户端密钥");@@ -405,6 +450,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Clone in VSCode", "在 VSCode 中克隆");m.put("Close", "关闭");m.put("Close Iteration", "关闭迭代");+ m.put("Close this iteration", "关闭此迭代");m.put("Closed Issue State", "已关闭的工单状态");m.put("Closest due date", "最近的截止日期");m.put("Clover Coverage Report", "Clover 覆盖率报告");@@ -422,6 +468,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Code Management", "代码管理");m.put("Code Privilege", "代码权限");m.put("Code Search", "代码搜索");+ m.put("Code clone or download", "克隆或下载代码");m.put("Code comment", "代码评论");m.put("Code comment administrative permission inside a project, including batch operations over multiple code comments","项目内的代码评论管理权限,包括对多个代码评论的批量操作");@@ -441,6 +488,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Commented on file \"{0}\" in project \"{1}\"", "在项目 \"{1}\" 的文件 \"{0}\" 上评论");m.put("Commented on issue \"{0}\" ({1})", "在工单 \"{0}\" 上评论({1})");m.put("Commented on pull request \"{0}\" ({1})", "在合并请求 \"{0}\" 上评论({1})");+ m.put("Comments", "评论");m.put("Commit", "提交");m.put("Commit & Insert", "提交并插入");m.put("Commit Batched Suggestions", "提交批量建议");@@ -457,22 +505,35 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Commit Your Change", "提交您的更改");m.put("Commit date", "提交日期");m.put("Commit hash", "提交哈希");+ m.put("Commit history of current path", "当前路径的提交历史");m.put("Commit index version", "提交索引版本");m.put("Commit not exist or access denied", "提交不存在或访问被拒绝");m.put("Commit signature required but no GPG signing key specified", "提交签名需要但未指定 GPG 签名密钥");m.put("Commit suggestion", "提交建议");m.put("Commits", "提交");m.put("Commits are taken from default branch of non-forked repositories", "代码提交取自非分叉仓库的默认分支");+ m.put("Commits were merged into target branch", "提交已合并到目标分支");+ m.put("Commits were merged into target branch outside of this pull request", "提交已合并到目标分支,但不在当前合并请求中");+ m.put("Commits were rebased onto target branch", "提交已 rebase 到目标分支");+ m.put("Commits were squashed into a single commit on target branch", "提交已 squash 到目标分支");m.put("Committed After", "提交后");m.put("Committed Before", "提交前");m.put("Committed By", "提交者");m.put("Committer", "提交者");+ m.put("Compare", "比较");m.put("Compare with base revision", "与基线版本比较");+ m.put("Compare with this parent", "与此父节点比较");m.put("Concurrency", "并发");m.put("Condition", "条件");m.put("Confidential", "保密");m.put("Config File", "配置文件");m.put("Configuration Discovery Url", "配置发现 URL");+ m.put("Confirm Approve", "确认批准");+ m.put("Confirm Delete Source Branch", "确认删除源分支");+ m.put("Confirm Discard", "确认放弃");+ m.put("Confirm Reopen", "确认重新打开");+ m.put("Confirm Request For Changes", "确认请求修改");+ m.put("Confirm Restore Source Branch", "确认恢复源分支");m.put("Confirm password here", "在此确认密码");m.put("Confirm your action", "确认你的操作");m.put("Connector", "连接器");@@ -484,6 +545,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Copy", "复制");m.put("Copy Files with SCP", "使用 SCP 复制文件");m.put("Copy dashboard", "复制仪表板");+ m.put("Copy issue number and title", "复制工单编号和标题");+ m.put("Copy public key", "复制公钥");m.put("Copy selected text to clipboard", "复制选中的文本到剪贴板");m.put("Copy to clipboard", "复制到剪贴板");m.put("Count", "数量");@@ -501,6 +564,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Create New", "新建");m.put("Create New File", "创建新文件");m.put("Create Pull Request", "创建合并请求");+ m.put("Create Pull Request for This Change", "为此变更创建合并请求");m.put("Create Tag", "创建标签");m.put("Create Tag Bean", "创建标签 Bean");m.put("Create Tag Bean With Revision", "带版本的创建标签 Bean");@@ -511,6 +575,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Create issue", "创建工单");m.put("Create merge commit", "创建合并提交");m.put("Create merge commit if necessary", "如有必要,创建合并提交");+ m.put("Create new issue", "创建新工单");m.put("Create tag", "创建标签");m.put("Create tag <b>{0}</b> from {1}", "创建标签 <b>{0}</b>(基于 {1})");m.put("Created At", "创建于");@@ -520,6 +585,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Cron schedule", "Cron 调度");m.put("Curl Location", "Curl 路径");m.put("Current Iteration", "当前迭代");+ m.put("Current Value", "现值");m.put("Current avatar", "当前头像");m.put("Current context is different from the context when this comment is added, click to show the comment context","当前上下文与添加此评论时的上下文不同,点击显示评论上下文");@@ -561,16 +627,21 @@ public class Translation_zh_CN extends TranslationResourceBundle {"首次重试的延迟时间(秒)。后续重试的延迟时间将基于该值进行指数退避计算");m.put("Delete", "删除");m.put("Delete All", "删除所有");- m.put("Delete All Queried Memberships", "删除所有查询的成员");- m.put("Delete All Queried Projects", "删除所有查询的项目");- m.put("Delete All Queried Pull Requests", "删除所有查询的合并请求");- m.put("Delete All Queried Users", "删除所有查询的用户");+ m.put("Delete All Queried Builds", "删除所有查询到的构建");+ m.put("Delete All Queried Comments", "删除所有查询到的评论");+ m.put("Delete All Queried Issues", "删除所有查询到的工单");+ m.put("Delete All Queried Memberships", "删除所有查询到的成员");+ m.put("Delete All Queried Packages", "删除所有查询到的包");+ m.put("Delete All Queried Projects", "删除所有查询到的项目");+ m.put("Delete All Queried Pull Requests", "删除所有查询到的合并请求");+ m.put("Delete All Queried Users", "删除所有查询到的用户");m.put("Delete Selected", "删除选中的");m.put("Delete Selected Comments", "删除选中的评论");m.put("Delete Selected Memberships", "删除选定的成员");m.put("Delete Selected Projects", "删除选中的项目");m.put("Delete Selected Pull Requests", "删除选定的合并请求");m.put("Delete Selected Users", "删除选定的用户");+ m.put("Delete Source Branch", "删除源分支");m.put("Delete Source Branch After Merge", "合并后删除源分支");m.put("Delete dashboard", "删除仪表板");m.put("Delete from branch {0}", "从分支 {0} 删除");@@ -578,13 +649,20 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Delete this GPG key", "删除此 GPG 密钥");m.put("Delete this access token", "删除此访问令牌");m.put("Delete this branch", "删除此分支");+ m.put("Delete this executor", "删除此执行器");m.put("Delete this field", "删除该字段");m.put("Delete this group", "删除此组");m.put("Delete this import", "删除此导入");+ m.put("Delete this iteration", "删除此迭代");m.put("Delete this key", "删除此密钥");+ m.put("Delete this link", "删除此链接");+ m.put("Delete this role", "删除此角色");+ m.put("Delete this rule", "删除此规则");+ m.put("Delete this secret", "删除此密钥");m.put("Delete this state", "删除该状态");m.put("Delete this tag", "删除此标签");m.put("Delete this value", "删除该值");+ m.put("Deleted source branch", "已删除源分支");m.put("Deletion not allowed due to branch protection rule", "由于分支保护规则,不允许删除此分支");m.put("Deletion not allowed due to tag protection rule", "由于标签保护规则,删除不允许");m.put("Deletions", "删除数");@@ -630,6 +708,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Do not retrieve", "不检索");m.put("Do not retrieve groups", "不检索组");m.put("Do you really want to cancel invitation to \"{0}\"?", "您真的要取消邀请 \"{0}\" 吗?");+ m.put("Do you really want to change target branch to {0}?", "确定要将目标分支更改为 {0} 吗?");m.put("Do you really want to delete \"{0}\"?", "您真的要删除 \"{0}\" 吗?");m.put("Do you really want to delete group \"{0}\"?", "您真的要删除组 \"{0}\" 吗?");m.put("Do you really want to delete role \"{0}\"?", "确定要删除角色 \"{0}\" 吗?");@@ -642,6 +721,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Do you really want to delete this code comment?", "您真的要删除此代码评论吗?");m.put("Do you really want to delete this email address?", "您真的要删除这个电子邮件地址吗?");m.put("Do you really want to delete this privilege?", "确定要删除此权限吗?");+ m.put("Do you really want to delete this pull request?", "确定要删除此合并请求吗?");m.put("Do you really want to delete this reply?", "您真的要删除此回复吗?");m.put("Do you really want to discard batched suggestions?", "您真的要丢弃批量建议吗?");m.put("Do you really want to enable this account?", "您真的要启用此账户吗?");@@ -657,6 +737,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Don't have an account yet?", "没有账户?");m.put("Download", "下载");m.put("Download archive of this branch", "下载此分支的归档");+ m.put("Download full log", "下载完整日志");+ m.put("Download log", "下载日志");m.put("Download tag archive", "下载标签归档");m.put("Dry Run", "试运行");m.put("Due Date", "截止日期");@@ -672,11 +754,18 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Edit Timesheet", "编辑工时表");m.put("Edit dashboard", "编辑仪表板");m.put("Edit issue title", "编辑工单标题");+ m.put("Edit job", "编辑任务");m.put("Edit on branch {0}", "在分支 {0} 编辑");m.put("Edit on source branch", "在源分支上编辑");m.put("Edit plain", "编辑纯文本");m.put("Edit saved queries", "编辑保存的查询");m.put("Edit this access token", "编辑此访问令牌");+ m.put("Edit this executor", "编辑此执行器");+ m.put("Edit this iteration", "编辑此迭代");+ m.put("Edit this rule", "编辑此规则");+ m.put("Edit this secret", "编辑此密钥");+ m.put("Edit this state", "编辑此状态");+ m.put("Edit title", "编辑标题");m.put("Edit {0}", "编辑 {0}");m.put("Editable Issue Fields", "可编辑的工单字段");m.put("Editable Issue Links", "可编辑的工单链接");@@ -712,6 +801,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Enable if visibility of this field depends on other fields", "如果字段的可见性取决于其他字段,则启用");m.put("Enable if visibility of this param depends on other params", "如果参数的可见性取决于其他参数,则启用");m.put("Enable this if the access token has same permissions as the owner", "如果访问令牌具有与所有者相同的权限,则启用");+ m.put("Enable this option to merge the pull request automatically when ready (all reviewers approved, all required jobs passed etc.)",+ "启用此选项以在准备好时自动合并合并请求(所有审查者批准,所有必需的任务通过等)");m.put("Enable this to allow to run html report publish step. To avoid XSS attach, make sure this executor can only be used by trusted jobs","启用此选项以允许运行 HTML 报告发布步骤。为避免 XSS 附件,请确保此执行器只能由受信任的任务使用");m.put("Enable this to allow to run site publish step. OneDev will serve project site files as is. To avoid XSS attack, make sure this executor can only be used by trusted jobs",@@ -742,9 +833,14 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Error parsing build spec", "解析构建规范时出错");m.put("Error reverting on {0}: Merge conflicts detected", "revert 到 {0} 时出错:合并冲突检测到");m.put("Error reverting on {0}: {1}", "revert 到 {0} 时出错:{1}");+ m.put("Error validating auto merge commit message: {0}", "验证自动合并提交信息时出错:{0}");+ m.put("Error validating commit message of \"{0}\": {1}", "验证提交信息 \"{0}\" 时出错:{1}");+ m.put("Error validating commit message of <a href=\"{0}\" class='text-monospace font-size-sm'>{1}</a>: {2}",+ "验证提交信息 <a href=\"{0}\" class='text-monospace font-size-sm'>{1}</a> 时出错:{2}");m.put("Estimated Time", "预计时间");m.put("Estimated Time Edit Bean", "预计时间编辑 Bean");m.put("Estimated Time Issue Field", "预计时间工单字段");+ m.put("Estimated/Spent time. Click for details", "预计/已用时间。点击查看详情");m.put("Evaluate script to get choices", "运行脚本以获取选项");m.put("Evaluate script to get default value", "运行脚本以获取默认值");m.put("Evaluate script to get value or secret", "运行脚本以获取值或密钥");@@ -804,6 +900,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Filter by name...", "按名称过滤...");m.put("Filter by path", "按路径过滤");m.put("Filter by test suite", "按测试套件筛选");+ m.put("Filter roles", "过滤角色");m.put("Filter tags...", "过滤标签...");m.put("Filter targets", "筛选目标");m.put("Filter...", "筛选...");@@ -830,6 +927,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {"对于 docker 感知执行器,此路径在容器内,并接受绝对路径和相对路径(相对于 <a href='https://docs.onedev.io/concepts#job-workspace' target='_blank'>job workspace</a>)。对于直接在主机机器上运行的 shell 相关执行器,只接受相对路径");m.put("Force", "强制");m.put("Forgot Password?", "忘记密码?");+ m.put("Fork now", "立即分叉");m.put("Forks Of", "分叉");m.put("Frequencies", "频率");m.put("From Directory", "从目录");@@ -936,10 +1034,12 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("HTTP(S) Clone URL", "HTTP(S) 克隆 URL");m.put("Has Owner Permissions", "有所有者权限");m.put("Help", "帮助");+ m.put("Hide", "隐藏");m.put("Hide comment", "隐藏注释");m.put("Hide saved queries", "隐藏保存的查询");m.put("High", "高");m.put("History", "历史");+ m.put("History of comparing revisions is unrelated", "比较的版本历史不相关");m.put("History of target branch and source branch is unrelated", "目标分支和源分支的历史记录不相关");m.put("Host name or ip address of remote machine to run commands via SSH", "远程机器的名称或 IP 地址,用于通过 SSH 运行命令");m.put("Hours Per Day", "每天小时数");@@ -966,6 +1066,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {"如果勾选,此组将能够在启用了工时跟踪的情况下编辑相应工单的预计工时");m.put("Ignore", "忽略");m.put("Ignore File", "忽略文件");+ m.put("Ignore activities irrelevant to me", "忽略与我无关的活动");m.put("Ignore all", "忽略所有");m.put("Ignore change", "忽略更改");m.put("Ignore leading", "忽略前缀");@@ -1006,6 +1107,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {"如果缓存未通过上述密钥命中,OneDev 将按顺序遍历此处定义的加载密钥,直到在项目层次结构中找到匹配的缓存。如果多个缓存匹配,将返回最新的缓存。");m.put("In case cache needs to be uploaded, this property specifies target project for the upload. Leave empty for current project","如果需要上传缓存,此属性指定上传的目标项目。留空表示当前项目");+ m.put("In case the pull request status is out of sync with underlying repository, you may synchronize them manually here",+ "如果合并请求状态与底层仓库不同步,您可以在此手动同步");m.put("In case user group membership maintained at group side, this property specifies base node for group search. For example: <i>ou=groups, dc=example, dc=com</i>","如果用户组在组侧维护,此属性指定组搜索的基础节点。例如:<i>ou=groups, dc=example, dc=com</i>");m.put("In case user group relationship maintained at group side, this filter is used to determine belonging groups of current user. For example: <i>(&(uniqueMember={0})(objectclass=groupOfUniqueNames))</i>. In this example, <i>{0}</i> represents DN of current user",@@ -1037,6 +1140,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Invalid credentials", "无效的凭据");m.put("Invalid date range, expecting \"yyyy-MM-dd to yyyy-MM-dd\"", "无效的日期范围,期望 \"yyyy-MM-dd to yyyy-MM-dd\"");m.put("Invalid email address: {0}", "无效的电子邮件地址: {0}");+ m.put("Invalid pull request number: {0}", "无效的合并请求编号:{0}");m.put("Invalid request path", "无效的请求路径");m.put("Invalid selection, click for details", "无效的选择,点击查看详情");m.put("Invitation sent to \"{0}\"", "邀请已发送至 \"{0}\"");@@ -1146,6 +1250,10 @@ public class Translation_zh_CN extends TranslationResourceBundle {"任务将在代码提交时运行。<b class='text-info'>注意:</b>此触发器将忽略包含 <code>[skip ci]</code>、<code>[ci skip]</code>、<code>[no ci]</code>、<code>[skip job]</code>、<code>[job skip]</code> 或 <code>[no job]</code> 的消息的提交");m.put("Job workspace", "任务工作区");m.put("Jobs", "任务");+ m.put("Jobs marked with <span class=\"text-danger\">*</span> are required to be successful",+ "标记为 <span class=\"text-danger\">*</span> 的任务需要成功");+ m.put("Jobs required to be successful on merge commit: ", "合并提交时需要成功的任务:");+ m.put("Jobs required to be successful: ", "需要成功的任务:");m.put("Jobs with same sequential group and executor will be executed sequentially. For instance you may specify this property as <tt>@project_path@:prod</tt> for jobs executing by same executor and deploying to prod environment of current project to avoid conflicting deployments","具有相同顺序组和执行器的任务将按顺序执行。例如,您可以为此属性指定 <tt>@project_path@:prod</tt> 用于执行相同执行器并在当前项目的 prod 环境中部署任务以避免冲突的部署");m.put("Key Secret", "密钥密钥");@@ -1193,7 +1301,9 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Loading emojis...", "加载表情符号...");m.put("Loading...", "加载...");m.put("Log Work", "记录工作");+ m.put("Log work", "记录工作");m.put("Login Name", "登录名称");+ m.put("Login and generate refresh token", "登录并生成刷新令牌");m.put("Login name already used by another account", "登录名已被另一个账户使用");m.put("Login name or email", "登录名或电子邮件");m.put("Login name or email address", "登录名或电子邮件地址");@@ -1244,9 +1354,15 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Memory Request", "内存请求");m.put("Mention Someone", "提及某人");m.put("Mention someone", "提及某人");+ m.put("Merge", "合并");m.put("Merge Strategy", "合并策略");+ m.put("Merge Target Branch into Source Branch", "将目标分支合并到源分支");+ m.put("Merge branch \"{0}\" into branch \"{1}\"", "将分支 \"{0}\" 合并到分支 \"{1}\"");+ m.put("Merge branch \"{0}\" of project \"{1}\" into branch \"{2}\"", "将项目 \"{1}\" 的分支 \"{0}\" 合并到分支 \"{2}\"");+ m.put("Merge preview not calculated yet", "合并预览尚未计算完成");m.put("Merged", "合并");m.put("Merged pull request \"{0}\" ({1})", "合并合并请求 \"{0}\"({1})");+ m.put("Merges pull request", "合并请求");m.put("Meta", "元");m.put("Microsoft 365", "Microsoft 365");m.put("Microsoft Entra ID", "Microsoft Entra ID");@@ -1259,6 +1375,9 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("More Options", "更多选项");m.put("More Settings", "更多设置");m.put("More commits", "更多提交");+ m.put("More info", "更多信息");+ m.put("More info about this property", "关于此属性的更多信息");+ m.put("More operations", "更多操作");m.put("Most branch coverage", "最小的分支覆盖率");m.put("Most line coverage", "最小的行覆盖率");m.put("Mount Docker Sock", "挂载 Docker Sock");@@ -1319,6 +1438,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("New version available. Red for security/critical update, yellow for bug fix, blue for feature update. Click to show changes. Disable in system setting","新版本可用。红色表示安全/关键更新,黄色表示错误修复,蓝色表示功能更新。点击查看更改。可在系统设置中禁用");m.put("Next", "下一步");+ m.put("Next commit", "下一个提交");+ m.put("Next {0}", "后一个{0}");m.put("No", "否");m.put("No Activity Days", "无活动天数");m.put("No SSH keys configured in your account. You may <a wicket:id=\"sshKeys\" class=\"link-primary\">add a key</a> or switch to <a wicket:id=\"useHttp\" class=\"link-primary\">HTTP(S)</a> url",@@ -1333,6 +1454,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("No branches Found", "未找到分支");m.put("No branches found", "未找到分支");m.put("No comment", "无评论");+ m.put("No comments to delete", "没有要删除的评论");+ m.put("No comments to set as read", "没有要设置为已读的评论");m.put("No comments to set resolved", "没有评论可以设置为已解决");m.put("No comments to set unresolved", "没有评论可以设置为未解决");m.put("No config file", "无配置文件");@@ -1373,6 +1496,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("No users to delete", "没有要删除的用户");m.put("No users to disable", "没有要禁用的用户");m.put("No users to enable", "没有要启用的用户");+ m.put("No valid signature for head commit", "头部提交没有有效的签名");+ m.put("No valid signature for head commit of target branch", "目标分支的最新提交没有有效签名");m.put("No verified primary email address", "没有验证的主电子邮件地址");m.put("Node Selector", "节点选择器");m.put("Node Selector Entry", "节点选择器条目");@@ -1421,6 +1546,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Only projects manageable by access token owner can be authorized", "只有受访问令牌所有者管理的项目才能被授权");m.put("Open", "打开");m.put("Open new pull request", "创建新的合并请求");+ m.put("Open terminal of current running step", "打开当前运行步骤的终端");m.put("OpenID", "OpenID");m.put("OpenID client identification will be assigned by your OpenID provider when registering this OneDev instance as client application","OpenID 客户端标识将在注册此 OneDev 实例作为客户端应用程序时由您的 OpenID 提供商分配");@@ -1740,20 +1866,27 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Performance Settings", "性能设置");m.put("Performing fuzzy query. Enclosing search text with '~' to add more conditions, for instance: ~text to search~ and open","执行模糊查询。使用 '~' 包围搜索文本以添加更多条件,例如:~text to search~ and open");+ m.put("Performing fuzzy query. Enclosing search text with '~' to add more conditions, for instance: ~text to search~ and unresolved",+ "执行模糊查询。在搜索文本周围使用 '~' 添加更多条件,例如:~text to search~ 和 unresolved");m.put("Performing fuzzy query. Enclosing search text with '~' to add more conditions, for instance: ~text to search~ author(robin)","执行模糊查询。使用 '~' 包围搜索文本以添加更多条件,例如:~text to search~ author(robin)");m.put("Permanent link", "永久链接");m.put("Permanent link of this selection", "此选择的永久链接");+ m.put("Physical memory in mega bytes", "物理内存(兆字节)");m.put("Pick Existing", "选择现有");+ m.put("Pin this issue", "置顶此工单");m.put("Plain text expected", "需要纯文本");m.put("Platform", "平台");m.put("Platforms", "平台");m.put("Please <a wicket:id=\"download\" class=\"font-weight-bolder\">download</a> recovery codes below and keep them secret. These codes can be used to provide one-time access to your account in case you can not access the authentication application. They will <b>NOT</b> be displayed again","请<a wicket:id=\"download\" class=\"font-weight-bolder\">下载</a>下方的恢复代码并妥善保管。这些代码可用于在您无法访问认证应用程序时提供一次性账户访问权限。它们<b>不会</b>再次显示");+ m.put("Please Confirm", "请确认");m.put("Please choose revision to create branch from", "请选择要从中创建分支的版本");m.put("Please configure <a wicket:id=\"mailSetting\">mail setting</a> first", "请先配置 <a wicket:id=\"mailSetting\">邮件设置</a>");m.put("Please confirm", "请确认");m.put("Please confirm the password.", "请确认密码。");+ m.put("Please follow <a wicket:id=\"resolveInstructions\" class=\"link-primary\" href=\"javascript:void(0);\">this instruction</a> to resolve the conflicts",+ "请遵循 <a wicket:id=\"resolveInstructions\" class=\"link-primary\" href=\"javascript:void(0);\">此说明</a> 以解决冲突");m.put("Please input one of your recovery codes saved when enable two-factor authentication","请输入在启用两阶段验证时保存的恢复代码");m.put("Please login to perform this operation", "请登录才能执行此操作");@@ -1768,10 +1901,12 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Please select pull requests to watch/unwatch", "请选择要监视/取消监视的合并请求");m.put("Please select query watches to delete", "请选择要删除的查询订阅");m.put("Please select revision to create tag from", "请选择要从中创建标签的版本");+ m.put("Please select revisions to compare", "请选择要比较的版本");m.put("Please select users to disable", "请选择要禁用的用户");m.put("Please select users to enable", "请选择要启用的用户");m.put("Please specify file name above before editing content", "请在编辑内容之前指定文件名");m.put("Please wait...", "请稍候...");+ m.put("Please waiting...", "请稍候...");m.put("Poll Interval", "轮询间隔");m.put("Populate Tag Mappings", "填充标签映射");m.put("Port", "端口");@@ -1784,6 +1919,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Prefix Pattern", "前缀模式");m.put("Prepend", "前缀");m.put("Preserve Days", "保留天数");+ m.put("Preset Commit Message", "预设提交信息");+ m.put("Preset commit message updated", "预设提交信息已更新");m.put("Press 'y' to get permalink", "按 'y' 获取永久链接");m.put("Prevent Creation", "防止创建");m.put("Prevent Deletion", "防止删除");@@ -1791,6 +1928,9 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Prevent Update", "防止更新");m.put("Preview", "预览");m.put("Previous", "上一步");+ m.put("Previous Value", "前值");+ m.put("Previous commit", "上一个提交");+ m.put("Previous {0}", "前一个{0}");m.put("Primary", "主要");m.put("Primary <a wicket:id=\"noPrimaryAddressLink\">email address</a> not specified", "未指定主 <a wicket:id=\"noPrimaryAddressLink\">电子邮件地址</a>");m.put("Primary Email", "主电子邮件");@@ -1830,6 +1970,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Project path", "项目路径");m.put("Projects", "项目");m.put("Projects Bean", "项目 Bean");+ m.put("Promotions", "晋升");m.put("Prompt Fields", "提示字段");m.put("Properties", "属性");m.put("Provide server id (guild id) to restrict access only to server members", "提供服务器 ID(公会 ID)以仅限制对服务器成员的访问");@@ -1857,25 +1998,46 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Pull from Remote", "从远程拉取");m.put("Pull request", "合并请求");m.put("Pull request #{0} already closed", "合并请求 #{0} 已关闭");+ m.put("Pull request #{0} deleted", "合并请求 #{0} 已删除");m.put("Pull request administrative permission inside a project, including batch operations over multiple pull requests","在项目中对多个合并请求进行批量操作的权限");+ m.put("Pull request already closed", "合并请求已关闭");+ m.put("Pull request already opened", "合并请求已打开");m.put("Pull request and code review", "合并请求和代码评审");+ m.put("Pull request can not be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not finished yet",+ "合并请求现在无法合并,因为<a class=\"more-info d-inline link-primary\">一些必需的构建</a>尚未完成");+ m.put("Pull request can not be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not successful",+ "合并请求现在无法合并,因为<a class=\"more-info d-inline link-primary\">一些必需的构建</a>不成功");+ m.put("Pull request can not be merged now as it is <a class=\"more-info d-inline link-primary\">pending review</a>",+ "合并请求现在无法合并,因为它正<a class=\"more-info d-inline link-primary\">等待审查</a>");+ m.put("Pull request can not be merged now as it was <a class=\"more-info d-inline link-primary\">requested for changes</a>",+ "合并请求现在无法合并,因为它<a class=\"more-info d-inline link-primary\">请求了更改</a>");+ m.put("Pull request can not be merged now as valid signature is required for head commit",+ "合并请求现在无法合并,因为头部提交需要有效的签名");m.put("Pull request can only be merged after getting approvals from all reviewers", "合并请求只能在获得所有审查人员的批准后合并");+ m.put("Pull request can only be merged by users with code write permission", "合并请求只能由具有代码写入权限的用户合并");m.put("Pull request discard", "合并请求丢弃");m.put("Pull request duration statistics", "合并请求持续时间统计");m.put("Pull request frequency statistics", "合并请求频率统计");m.put("Pull request is discarded", "合并请求被丢弃");+ m.put("Pull request is in error: {0}", "合并请求处于错误状态: {0}");m.put("Pull request is merged", "合并请求被合并");m.put("Pull request is opened", "合并请求被打开");m.put("Pull request list", "合并请求列表");m.put("Pull request merge", "合并请求合并");m.put("Pull request not exist or access denied", "合并请求不存在或访问被拒绝");+ m.put("Pull request not merged", "合并请求未合并");m.put("Pull request number", "合并请求编号");m.put("Pull request open or update", "合并请求打开或更新");m.put("Pull request query watch only affects new pull requests. To manage watch status of existing pull requests in batch, filter pull requests by watch status in pull requests page, and then take appropriate action","合并请求查询订阅仅影响新合并请求。要批量管理现有合并请求的订阅状态,请在合并请求页面中按订阅状态过滤合并请求,然后采取适当行动");m.put("Pull request statistics is an enterprise feature. <a href='https://onedev.io/pricing' target='_blank'>Try free</a> for 30 days","合并请求统计是企业版功能。<a href='https://onedev.io/pricing' target='_blank'>免费试用</a> 30 天");+ m.put("Pull request synchronization submitted", "合并请求同步已提交");+ m.put("Pull request will be merged automatically when ready. This option will be disabled upon adding new commits, changing merge strategy, or switching target branch",+ "合并请求将在准备好时自动合并。此选项将在添加新提交、更改合并策略或切换目标分支时禁用");+ m.put("Pull request will be merged automatically with a preset <a wicket:id=\"commitMessage\">commit message</a> when ready. This option will be disabled upon adding new commits, changing merge strategy, or switching target branch",+ "合并请求将在准备好时自动合并,并使用预设的<a wicket:id=\"commitMessage\">提交消息</a>。此选项将在添加新提交、更改合并策略或切换目标分支时禁用");m.put("Push Image", "推送镜像");m.put("Push docker image from OCI layout via crane. This step needs to be executed by server docker executor, remote docker executor, or Kubernetes executor","此步骤需要由服务器 docker 执行器、远程 docker 执行器或 Kubernetes 执行器执行");@@ -1898,9 +2060,11 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Quick Search", "快速搜索");m.put("Quote", "引用");m.put("RESTful API", "RESTful API");+ m.put("Re-run this build", "重新运行此构建");m.put("Read", "读取");m.put("Read body", "读取正文");m.put("Readiness Check Command", "准备检查命令");+ m.put("Rebase", "变基");m.put("Rebase source branch commits", "Rebase 源分支上的提交");m.put("Receive Posted Email", "接收已发布邮件");m.put("Receivers", "接收者");@@ -1913,11 +2077,14 @@ public class Translation_zh_CN extends TranslationResourceBundle {"参考此<a href='https://docs.onedev.io/tutorials/security/sso-with-github' target='_blank'>教程</a>获取示例设置");m.put("Refer to this <a href='https://docs.onedev.io/tutorials/security/sso-with-okta' target='_blank'>tutorial</a> for an example setup","参考此<a href='https://docs.onedev.io/tutorials/security/sso-with-okta' target='_blank'>教程</a>获取示例设置");+ m.put("Reference", "引用");m.put("Reference Build", "引用构建");m.put("Reference Issue", "引用工单");m.put("Reference Pull Request", "引用合并请求");+ m.put("Reference this {0} in markdown or commit message via below string.", "在 markdown 或提交信息中可通过以下字符串来引用该{0}。");m.put("Refresh Token", "刷新令牌");m.put("Refs", "引用");+ m.put("Regenerate", "重新生成");m.put("Regenerate this access token", "重新生成此访问令牌");m.put("Registry Login", "注册登录");m.put("Registry Logins", "注册登录");@@ -1932,18 +2099,28 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Remove Fields", "删除字段");m.put("Remove From Current Iteration", "从当前迭代中删除");m.put("Remove from batch", "从批量中删除");+ m.put("Remove issue from this iteration", "从此迭代中移除工单");+ m.put("Remove this assignee", "移除此指派人");+ m.put("Remove this external participant from issue", "从工单中移除此外部参与者");m.put("Remove this file", "删除此文件");m.put("Remove this image", "删除此图片");+ m.put("Remove this reviewer", "移除此审查者");m.put("Rename {0}", "重命名 {0}");m.put("Renovate CLI Options", "Renovate CLI 选项");m.put("Renovate JavaScript Config", "Renovate JavaScript 配置");+ m.put("Reopen", "重新打开");+ m.put("Reopen this iteration", "重新打开此迭代");m.put("Reopened pull request \"{0}\" ({1})", "重新打开合并请求 \"{0}\"({1})");m.put("Replace With", "替换为");m.put("Replica Count", "副本数量");m.put("Replied to comment on file \"{0}\" in project \"{1}\"", "在项目 \"{1}\" 的文件 \"{0}\" 上回复评论");m.put("Reply", "回复");m.put("Report Name", "报告名称");+ m.put("Request For Changes", "请求更改");m.put("Request Scopes", "请求范围");+ m.put("Request review", "请求审查");+ m.put("Request to sync", "请求同步");+ m.put("Requested For changes", "请求修改");m.put("Requested changes to pull request \"{0}\" ({1})", "请求更改合并请求 \"{0}\"({1})");m.put("Requested for changes", "请求更改");m.put("Require Autentication", "要求认证");@@ -1957,6 +2134,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Resolved", "已解决");m.put("Resolved comment on file \"{0}\" in project \"{1}\"", "将项目 \"{1}\" 的文件 \"{0}\" 上的评论标记为已解决");m.put("Resource Settings", "资源设置");+ m.put("Restore Source Branch", "恢复源分支");+ m.put("Restored source branch", "已恢复源分支");m.put("Retrieve Groups", "检索组");m.put("Retrieve LFS Files", "检索 LFS 文件");m.put("Retrieve Submodules", "检索子模块");@@ -2038,6 +2217,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Search", "搜索");m.put("Search Groups Using Filter", "使用过滤器搜索组");m.put("Search branch", "搜索分支");+ m.put("Search files, symbols and texts", "搜索文件、符号和文本");m.put("Search for", "搜索");m.put("Search is too general", "搜索过于笼统");m.put("Search job", "搜索任务");@@ -2094,6 +2274,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Services", "服务");m.put("Set", "设置");m.put("Set All Queried As Root Projects", "设置所有查询的项目为根项目");+ m.put("Set All Queried Comments as Read", "将所有查询的评论设置为已读");m.put("Set All Queried Comments as Resolved", "设置所有选中的评论为已解决");m.put("Set All Queried Comments as Unresolved", "设置所有选中的评论为未解决");m.put("Set All Queried Pull Requests as Read", "设置所有查询的合并请求为已读");@@ -2141,10 +2322,19 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Show Pull Request Stats", "显示合并请求统计");m.put("Show Saved Queries", "显示保存的查询");m.put("Show Works Of", "显示工作量");+ m.put("Show changes", "显示变更");m.put("Show commented code snippet", "显示注释的代码片段");+ m.put("Show commit of this parent", "显示此父节点的提交");m.put("Show emojis", "显示表情符号");m.put("Show in build list", "在构建列表中显示");+ m.put("Show issues in list", "在列表中显示工单");+ m.put("Show issues not scheduled into current iteration", "显示未安排到当前迭代的工单");+ m.put("Show matching agents", "显示匹配的代理");m.put("Show more lines", "显示更多行");+ m.put("Show next match", "显示下一个匹配");+ m.put("Show previous match", "显示上一个匹配");+ m.put("Show test cases of this test suite", "显示此测试套件的测试用例");+ m.put("Show total estimated/spent time", "显示总预计/已用时间");m.put("Showing first {0} files as there are too many", "显示前 {0} 个文件,因为文件太多");m.put("Sign In", "登录");m.put("Sign In To", "登录到");@@ -2164,10 +2354,20 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Slack Notifications", "Slack 通知");m.put("Smtp Ssl Setting", "SMTP SSL 设置");m.put("Smtp With Ssl", "SMTP SSL");+ m.put("Some jobs are hidden due to permission policy", "由于权限策略,部分任务被隐藏");m.put("Some one changed the content you are editing. Reload the page and try again.", "有人修改了您正在编辑的内容。重新加载页面并重试。");+ m.put("Some other pull requests are opening to this branch", "其他合并请求正在打开此分支");+ m.put("Some required builds not passed", "一些必需的构建未通过");m.put("Source", "源");m.put("Source Docker Image", "Docker 镜像源");m.put("Source Path", "源路径");+ m.put("Source branch already exists", "源分支已存在");+ m.put("Source branch already merged into target branch", "源分支已合并到目标分支");+ m.put("Source branch is default branch", "源分支是默认分支");+ m.put("Source branch is outdated", "源分支已过时");+ m.put("Source branch no longer exists", "源分支不再存在");+ m.put("Source branch updated successfully", "源分支更新成功");+ m.put("Source project no longer exists", "源项目不再存在");m.put("Specified Value", "指定值");m.put("Specified choices", "指定选项");m.put("Specified default value", "指定默认值");@@ -2516,6 +2716,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Start At", "开始于");m.put("Start Date", "开始日期");m.put("Start Page", "起始页面");+ m.put("Start to watch once I am involved", "一旦我参与,开始观察");+ m.put("Start work", "开始工作");m.put("State", "状态");m.put("State Spec", "状态规范");m.put("State Transitions", "状态转换");@@ -2531,12 +2733,14 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Steps", "步骤");m.put("Steps will be executed serially on same node, sharing the same <a href='https://docs.onedev.io/concepts#job-workspace'>job workspace</a>","步骤将在同一节点上按顺序执行,共享同一 <a href='https://docs.onedev.io/concepts#job-workspace'>任务工作空间</a>");+ m.put("Stop work", "停止工作");m.put("Stopwatch Overdue", "秒表逾期");m.put("Storage Setting", "存储设置");m.put("Storage file missing", "存储文件缺失");m.put("Storage not found", "未找到存储");m.put("Stored with Git LFS", "使用 Git LFS 存储");m.put("Subject", "主题");+ m.put("Submitter", "提交者");m.put("Subscription Key", "订阅密钥");m.put("Subscription data", "订阅数据");m.put("Successful", "成功");@@ -2544,6 +2748,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Suggest changes", "建议更改");m.put("Suggested change", "建议更改");m.put("Suggestion is outdated either due to code change or pull request close", "建议由于代码更改或合并请求关闭而过时");+ m.put("Suggestions", "建议");m.put("Support & Bug Report", "技术支持与错误报告");m.put("Support Request", "支持请求");m.put("Swap", "交换");@@ -2552,6 +2757,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Symbol name", "符号名称");m.put("Symbols", "符号");m.put("Sync Repository", "同步仓库");+ m.put("Synchronize", "同步");m.put("System", "系统");m.put("System Alert", "系统提醒");m.put("System Email Address", "系统电子邮件地址");@@ -2578,6 +2784,9 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Target File", "目标文件");m.put("Target Path", "目标路径");m.put("Target Project", "目标项目");+ m.put("Target branch no longer exists", "目标分支不再存在");+ m.put("Target branch was fast-forwarded to source branch", "目标分支已 fast-forward 到源分支");+ m.put("Target or source branch is updated. Please try again", "目标或源分支已更新,请重试");m.put("Task List", "任务列表");m.put("Task list", "任务列表");m.put("Template Name", "模板名称");@@ -2599,6 +2808,8 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Then enter the passcode shown in the TOTP authenticator to verify", "然后输入 TOTP 认证器中显示的验证码进行验证");m.put("There are <a wicket:id=\"openRequests\">open pull requests</a> against branch <span wicket:id=\"branch\"></span>. These pull requests will be discarded if the branch is deleted.","分支 <span wicket:id=\"branch\"></span> 有 <a wicket:id=\"openRequests\">打开的合并请求</a>。如果分支被删除,这些合并请求将被丢弃。");+ m.put("There are merge conflicts", "存在合并冲突");+ m.put("There are merge conflicts.", "有合并冲突。");m.put("There are merge conflicts. You can still create the pull request though", "有合并冲突。您仍然可以创建合并请求");m.put("There are unsaved changes, discard and continue?", "有未保存的更改,是否丢弃并继续?");m.put("These authenticators normally run on your mobile phone, some examples are Google Authenticator, Microsoft Authenticator, Authy, 1Password etc.",@@ -2610,8 +2821,11 @@ public class Translation_zh_CN extends TranslationResourceBundle {"此地址应在 SendGrid 中为 <code>已验证的发送者</code>,将用作各种电子邮件通知的发送者地址。如果下面启用了 <code>接收已发布电子邮件</code> 选项,用户也可以回复此地址以发布工单或合并请求评论");m.put("This address will be used as sender address of various email notifications. User can also reply to this address to post issue or pull request comments via email if <code>Check Incoming Email</code> option is enabled below","此地址将用作各种电子邮件通知的发送者地址。如果下面启用了 <code>检查接收电子邮件</code> 选项,用户也可以通过电子邮件回复此地址以发布工单或合并请求评论");+ m.put("This change is already opened for merge by pull request {0}", "此变更已有合并请求 {0}");m.put("This change is squashed/rebased onto base branch via a pull request", "此更改已通过合并请求压缩/重定基到基础分支");+ m.put("This change is squashed/rebased onto base branch via pull request {0}", "此变更已通过合并请求 {0} squash/rebase 到基准分支");m.put("This change needs to be verified by some jobs. Submit pull request instead", "此更改需要由某些任务验证。请提交合并请求");+ m.put("This commit is rebased", "此提交已变基");m.put("This email address is being used", "此电子邮件地址正在使用");m.put("This executor runs build jobs as docker containers on OneDev server", "此执行器在 OneDev 服务器上以 Docker 容器运行构建任务");m.put("This executor runs build jobs as docker containers on remote machines via <a href='/~administration/agents' target='_blank'>agents</a>",@@ -2644,6 +2858,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("This permission enables one to access confidential issues", "此权限允许访问机密工单");m.put("This permission enables one to schedule issues into iterations", "此权限允许将工单调度到迭代中");m.put("This property is imported from {0}", "此属性是从 {0} 导入的");+ m.put("This pull request has been discarded", "此合并请求已丢弃");m.put("This report will be displayed in pull request overview page if build is triggered by pull request","如果构建由合并请求触发,此报告将显示在合并请求概览页面中");m.put("This shows average duration of merged pull requests over time", "此图表显示合并请求的平均持续时间");@@ -2682,8 +2897,10 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Toggle comments", "切换评论");m.put("Toggle commits", "切换提交");m.put("Toggle dark mode", "切换暗模式");+ m.put("Toggle detail message", "切换详细信息");m.put("Toggle fixed width font", "切换固定宽度字体");m.put("Toggle full screen", "切换全屏");+ m.put("Toggle matched contents", "切换匹配内容");m.put("Toggle navigation", "切换导航");m.put("Toggle work log", "切换工作日志");m.put("Too many commits to load", "加载的提交太多");@@ -2713,6 +2930,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Type", "类型");m.put("Type <code>yes</code> below to confirm deleting all queried users", "在下方输入 <code>yes</code> 确认删除所有查询的用户");m.put("Type <code>yes</code> below to confirm deleting selected users", "在下方输入 <code>yes</code> 确认删除选定的用户");+ m.put("Type <code>yes</code> below to delete all queried comments", "在下面输入 <code>yes</code> 以删除所有查询的评论");m.put("Type <code>yes</code> below to delete all queried memberships", "在下方输入 <code>yes</code> 删除所有查询的成员");m.put("Type <code>yes</code> below to delete all queried pull requests", "在下方输入 <code>yes</code> 以删除所有查询的合并请求");m.put("Type <code>yes</code> below to delete selected comments", "在下方输入 <code>yes</code> 以删除选中的评论");@@ -2731,8 +2949,10 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Unable to create protected tag", "无法创建受保护的标签");m.put("Unable to diff as some line is too long.", "无法比较,因为某些行太长");m.put("Unable to diff as the file is too large.", "无法比较,因为文件太大");+ m.put("Unable to find pull request #{0} in project {1}", "在项目 {1} 中找不到合并请求 #{0}");m.put("Unable to notify user as mail service is not configured", "无法通知用户,因为邮件服务未配置");m.put("Unable to send verification email as mail service is not configured yet", "无法发送验证电子邮件,因为邮件服务未配置");+ m.put("Unauthorize this user", "取消此用户的授权");m.put("Unauthorized", "未授权");m.put("Undefined Field Resolution", "未定义字段解析");m.put("Undefined Field Value Resolution", "未定义字段值解析");@@ -2744,14 +2964,17 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Unlink this issue", "取消链接此工单");m.put("Unordered List", "无序列表");m.put("Unordered list", "无序列表");+ m.put("Unpin this issue", "取消置顶此工单");m.put("Unresolved", "未解决");m.put("Unresolved comment on file \"{0}\" in project \"{1}\"", "将项目 \"{1}\" 的文件 \"{0}\" 上的评论标记为未解决");m.put("Unspecified", "未指定");m.put("Unsupported", "不支持");m.put("Unverified", "未验证");m.put("Unverified email address is <b>NOT</b> applicable for above functionalities", "未验证的电子邮件地址不适用于上述功能");+ m.put("Unwatched. Click to watch", "未关注。点击关注");m.put("Update", "更新");m.put("Update Dependencies via Renovate", "通过 Renovate 更新依赖");+ m.put("Update Source Branch", "更新源分支");m.put("Update body", "更新主体");m.put("Upload", "上传");m.put("Upload Access Token Secret", "上传访问令牌密钥");@@ -2823,15 +3046,23 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Verify", "验证");m.put("View", "查看");m.put("View Source", "查看源码");+ m.put("View source", "查看源代码");+ m.put("View statistics", "查看统计信息");m.put("Viewer", "查看者");m.put("Volume Mount", "卷挂载");m.put("Volume Mounts", "卷挂载");+ m.put("Votes", "投票");m.put("Waiting", "等待");+ m.put("Waiting for approvals", "等待审批");m.put("Watch", "观察");m.put("Watch Status", "订阅状态");+ m.put("Watch if involved", "若参与则观察");+ m.put("Watch if involved (default)", "若参与则观察(默认)");m.put("Watch status changed", "监视状态已更改");m.put("Watch/Unwatch All Queried Pull Requests", "监视/取消监视所有查询的合并请求");m.put("Watch/Unwatch Selected Pull Requests", "监视/取消监视选定的合并请求");+ m.put("Watched. Click to unwatch", "已关注。点击取消关注");+ m.put("Watchers", "观察者");m.put("Web Hook", "Web Hook");m.put("Web Hooks", "Web Hooks");m.put("Web Hooks Bean", "Web Hooks Bean");@@ -2912,11 +3143,15 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Window Memory", "窗口内存");m.put("Working Directory", "工作目录");m.put("Write", "写入");+ m.put("You are rebasing source branch on top of target branch", "您正在将源分支 rebase 到目标分支之上");+ m.put("You are viewing a subset of all changes. <a wicket:id=\"fullChanges\" class=\"link-primary ml-2\">show all changes</a>",+ "您正在查看部分更改。<a wicket:id=\"fullChanges\" class=\"link-primary ml-2\">显示所有更改</a>");m.put("You have unverified <a wicket:id=\"hasUnverifiedLink\">email addresses</a>", "您有未验证的 <a wicket:id=\"hasUnverifiedLink\">电子邮件地址</a>");m.put("You may also drop file/image to the input box, or paste image from clipboard", "您也可以将文件/图像拖到输入框中,或从剪贴板粘贴图像");m.put("You may initialize the project by <a wicket:id=\"addFiles\" class=\"link-primary\">adding files</a>, <a wicket:id=\"setupBuildSpec\" class=\"link-primary\">setting up build spec</a>, or <a wicket:id=\"pushInstructions\" class=\"link-primary\">pushing an existing repository</a>","您可以通过 <a wicket:id=\"addFiles\" class=\"link-primary\">添加文件</a>、<a wicket:id=\"setupBuildSpec\" class=\"link-primary\">定义构建规范</a> 或 <a wicket:id=\"pushInstructions\" class=\"link-primary\">推送现有仓库</a> 来初始化项目");m.put("You selected to delete branch \"{0}\"", "您选择删除分支 \"{0}\"");+ m.put("You will be notified of any activities", "您将收到任何活动的通知");m.put("You've been logged out", "您已登出");m.put("YouTrack API URL", "YouTrack API URL");m.put("YouTrack Issue Field", "YouTrack 工单字段");@@ -2929,14 +3164,18 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("YouTrack Projects to Import", "要导入的 YouTrack 项目");m.put("[Reset Password] Please Reset Your OneDev Password", "[重置密码] 请重置您的 OneDev 密码");m.put("access [{0}]", "访问 [{0}]");+ m.put("and more", "更多");m.put("artifacts", "制品");m.put("assign to me", "分配给我");+ m.put("base", "基准");m.put("branches", "分支");m.put("builds", "构建");m.put("choose a color for this state", "选择一个颜色");m.put("cmd-k to show command palette", "cmd-k 显示命令面板");m.put("common", "公共");+ m.put("common ancestor", "共同祖先");m.put("container-image", "容器镜像");+ m.put("copy", "复制");m.put("ctrl-k to show command palette", "ctrl-k 显示命令面板");m.put("curl Command Line", "curl 命令行");m.put("curl Path", "curl 路径");@@ -2956,6 +3195,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("found {0} pull requests", "找到 {0} 个合并请求");m.put("found {0} users", "找到 {0} 个用户");m.put("has any value of", "具有下列任何值");+ m.put("head", "头部");m.put("ineffective", "无效");m.put("is empty", "为空");m.put("is not empty", "不为空");@@ -3008,6 +3248,7 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("week.Wed", "周三");m.put("{0} Month(s)", "{0} 个月");m.put("{0} activities on {1}", "{1} 有 {0} 个活动");+ m.put("{0} additions & {1} deletions", "{0} 个添加,{1} 个删除");m.put("{0} ahead", "{0} 领先");m.put("{0} behind", "{0} 落后");m.put("{0} branches", "{0} 个分支");@@ -3026,7 +3267,10 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("{javax.validation.constraints.NotEmpty.message}", "不能为空");m.put("{javax.validation.constraints.NotNull.message}", "不能为空");m.put("{javax.validation.constraints.Size.message}", "至少需要指定一个值");- m.put("Filter roles", "过滤角色");+ m.put("<span wicket:id=\"name\"></span> <span wicket:id=\"description\"></span> <span wicket:id=\"age\"></span>",+ "<span wicket:id=\"name\"></span> 于 <span wicket:id=\"age\"></span> <span wicket:id=\"description\"></span>");+ m.put("<span wicket:id=\"name\"></span> commented <span wicket:id=\"age\"></span>",+ "<span wicket:id=\"name\"></span> 于 <span wicket:id=\"age\"></span> 评论");// Manually added keysm.put("Create Administrator Account", "创建管理员账户");@@ -3075,6 +3319,9 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Tell user to reset password", "告诉用户重置密码");m.put("Commits are taken from default branch of non-forked repositories", "代码提交取自非分叉仓库的默认分支");m.put("issue", "工单");+ m.put("pull request", "合并请求");+ m.put("build", "构建");+ m.put("pack", "包");m.put("code commit", "代码提交");m.put("pull request and code review", "合并请求和代码评审");m.put("Filter pull requests", "过滤合并请求");@@ -3084,11 +3331,27 @@ public class Translation_zh_CN extends TranslationResourceBundle {m.put("Only create merge commit if target branch can not be fast-forwarded to source branch", "仅当目标分支不能 fast-forward 到源分支时才创建合并提交");m.put("Squash all commits from source branch into a single commit in target branch", "将源分支的所有提交压缩成一个提交,并添加到目标分支");m.put("Rebase all commits from source branch onto target branch", "将源分支的所有提交 Rebase 到目标分支");+ m.put("action:changed merge strategy", "更改了合并策略");+ m.put("action:changed title", "更改了标题");+ m.put("action:enabled auto merge", "启用了自动合并");+ m.put("action:disabled auto merge", "禁用了自动合并");+ m.put("action:removed comment", "移除了评论");+ m.put("action:approved", "批准");+ m.put("action:discarded", "放弃");+ m.put("action:merged", "合并");+ m.put("action:referenced from code comment", "引用自代码评论");+ m.put("action:referenced from issue", "引用自工单");+ m.put("action:referenced from other pull request", "引用自其他合并请求");+ m.put("action:reopened", "重新打开");+ m.put("action:requested for changes", "请求了更改");+ m.put("action:deleted source branch", "删除了源分支");+ m.put("action:restored source branch", "恢复了源分支");+ m.put("action:changed target branch", "更改了目标分支");}-+@Overrideprotected Map<String, String> getContents() {- return m;+ return m;}}diff --git a/server-ee b/server-eeindex 63bdbc9603..1c81da9370 160000--- a/server-ee+++ b/server-ee@@ -1 +1 @@-Subproject commit 63bdbc96034dcc7388e2aacb4c078af648331812+Subproject commit 1c81da93706c864235347d502499ebcb29dabde1diff --git a/server-plugin/server-plugin-report-coverage/src/main/java/io/onedev/server/plugin/report/coverage/CoverageReportPage.html b/server-plugin/server-plugin-report-coverage/src/main/java/io/onedev/server/plugin/report/coverage/CoverageReportPage.htmlindex e12134d0f0..bebb7b5879 100644--- a/server-plugin/server-plugin-report-coverage/src/main/java/io/onedev/server/plugin/report/coverage/CoverageReportPage.html+++ b/server-plugin/server-plugin-report-coverage/src/main/java/io/onedev/server/plugin/report/coverage/CoverageReportPage.html@@ -11,7 +11,7 @@<div class="input-group"><input wicket:id="input" class="form-control" spellcheck="false" autocomplete="off"><span class="input-group-append">- <button wicket:id="submit" title="Filter" class="btn btn-icon btn-outline-secondary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" t:data-tippy-content="Filter" class="btn btn-icon btn-outline-secondary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></div>diff --git a/server-plugin/server-plugin-report-problem/src/main/java/io/onedev/server/plugin/report/problem/ProblemReportPage.html b/server-plugin/server-plugin-report-problem/src/main/java/io/onedev/server/plugin/report/problem/ProblemReportPage.htmlindex 6fd225ee6b..49b1c6696f 100644--- a/server-plugin/server-plugin-report-problem/src/main/java/io/onedev/server/plugin/report/problem/ProblemReportPage.html+++ b/server-plugin/server-plugin-report-problem/src/main/java/io/onedev/server/plugin/report/problem/ProblemReportPage.html@@ -6,7 +6,7 @@<div class="input-group"><input wicket:id="input" class="form-control" spellcheck="false" autocomplete="off" t:placeholder="Filter targets"><span class="input-group-append">- <button wicket:id="submit" title="Filter" class="btn btn-icon btn-outline-secondary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" t:data-tippy-content="Filter" class="btn btn-icon btn-outline-secondary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></div>@@ -20,7 +20,7 @@<a wicket:id="toggle" class="name mr-2"><wicket:svg href="arrow" class="icon"/><span wicket:id="key"></span></a>- <a wicket:id="view" title="View source" class="mr-auto"><wicket:svg href="file" class="icon"/></a>+ <a wicket:id="view" t:data-tippy-content="View source" class="mr-auto"><wicket:svg href="file" class="icon"/></a></div><wicket:enclosure child="problems"><div class="problems mt-2">diff --git a/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestCasesPage.html b/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestCasesPage.htmlindex 28bb964346..67f529ceb2 100644--- a/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestCasesPage.html+++ b/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestCasesPage.html@@ -7,7 +7,7 @@<div class="input-group"><input wicket:id="input" class="form-control" spellcheck="false" autocomplete="off" t:placeholder="Filter by name"><span class="input-group-append">- <button wicket:id="submit" title="Filter" class="btn btn-icon btn-outline-secondary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" t:data-tippy-content="Filter" class="btn btn-icon btn-outline-secondary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></div>@@ -18,7 +18,7 @@<div class="input-group"><input wicket:id="input" class="form-control" spellcheck="false" autocomplete="off" t:placeholder="Filter by test suite"><span class="input-group-append">- <button wicket:id="submit" title="Filter" class="btn btn-icon btn-outline-secondary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" t:data-tippy-content="Filter" class="btn btn-icon btn-outline-secondary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></div>diff --git a/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestSuitesPage.html b/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestSuitesPage.htmlindex c699b4a47d..ae0e5c6caa 100644--- a/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestSuitesPage.html+++ b/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestSuitesPage.html@@ -6,7 +6,7 @@<div class="input-group"><input wicket:id="name" class="form-control" spellcheck="false" autocomplete="off" t:placeholder="Filter by name"><span class="input-group-append">- <button wicket:id="submit" title="Filter" class="btn btn-icon btn-outline-secondary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button>+ <button wicket:id="submit" t:data-tippy-content="Filter" class="btn btn-icon btn-outline-secondary" type="submit"><wicket:svg href="magnify" class="icon"></wicket:svg></button></span></div></div>@@ -28,7 +28,7 @@<div class="d-flex align-items-start"><span wicket:id="status" class="mr-3"></span><span class="mr-4">- <a wicket:id="testCases" class="text-break" title="Show test cases of this test suite"><span wicket:id="label"></span></a>+ <a wicket:id="testCases" class="text-break" t:data-tippy-content="Show test cases of this test suite"><span wicket:id="label"></span></a></span><span wicket:id="duration" class="ml-auto"></span></div>