Documentation ¶
Overview ¶
繁體中文翻譯詞彙選擇主要依據下列來源: The selection of Traditional Chinese translation vocabulary is mainly based on the following sources:
GitLab: 其介面有相當完整的繁體中文翻譯,但缺少一些本地端功能的對照,例如 stash。
Pro Git: Git 的權威參考用書,可惜繁中部分翻譯僅約一半。 https://git-scm.com/book/zh-tw/v2
Microsoft 語言入口網站 (Visual Studio) https://www.microsoft.com/zh-tw/language/
### Glossary ###
譯文中括號內文字會依語境添加或省略。 Repository 版本庫 Amend 修正 Checkout 檢出 Cherry-pick 揀選 Diff 差異 Discard 捨棄 Drop [stash] 捨棄 Fast-forward 快進式 (Fast-forward) Fetch 擷取 Fixup 修復 (Fixup) Patch 補丁 Pop [stash] 還原 Rebase 變基 (Rebase) Reset 重設 Revert 還原 Reword 改寫 Squash 壓縮 (Squash) Stage 預存 (Stage) Stash 收藏 (Stash)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTranslationSets ¶ added in v0.23.1
func GetTranslationSets() map[string]TranslationSet
GetTranslationSets gets all the translation sets, keyed by language code
Types ¶
type Actions ¶ added in v0.32.1
type Actions struct { CheckoutCommit string CheckoutTag string CheckoutBranch string ForceCheckoutBranch string DeleteBranch string Merge string RebaseBranch string RenameBranch string SetUnsetUpstream string CreateBranch string FastForwardBranch string CherryPick string CheckoutFile string DiscardOldFileChange string SquashCommitDown string FixupCommit string RewordCommit string DropCommit string EditCommit string AmendCommit string ResetCommitAuthor string SetCommitAuthor string RevertCommit string CreateFixupCommit string SquashAllAboveFixupCommits string MoveCommitUp string MoveCommitDown string CopyCommitMessageToClipboard string CopyCommitDiffToClipboard string CopyCommitSHAToClipboard string CopyCommitURLToClipboard string CopyCommitAuthorToClipboard string CopyCommitAttributeToClipboard string CopyPatchToClipboard string CustomCommand string DiscardAllChangesInDirectory string DiscardUnstagedChangesInDirectory string DiscardAllChangesInFile string DiscardAllUnstagedChangesInFile string StageFile string StageResolvedFiles string UnstageFile string UnstageAllFiles string StageAllFiles string IgnoreExcludeFile string IgnoreFileErr string ExcludeFile string ExcludeFileErr string ExcludeGitIgnoreErr string Commit string EditFile string Push string Pull string OpenFile string StashAllChanges string StashAllChangesKeepIndex string StashStagedChanges string StashUnstagedChanges string StashIncludeUntrackedChanges string GitFlowFinish string GitFlowStart string CopyToClipboard string CopySelectedTextToClipboard string RemovePatchFromCommit string MovePatchToSelectedCommit string MovePatchIntoIndex string MovePatchIntoNewCommit string DeleteRemoteBranch string SetBranchUpstream string AddRemote string RemoveRemote string UpdateRemote string ApplyPatch string Stash string RenameStash string RemoveSubmodule string ResetSubmodule string AddSubmodule string UpdateSubmoduleUrl string InitialiseSubmodule string BulkInitialiseSubmodules string BulkUpdateSubmodules string BulkDeinitialiseSubmodules string UpdateSubmodule string CreateLightweightTag string CreateAnnotatedTag string DeleteTag string PushTag string NukeWorkingTree string DiscardUnstagedFileChanges string RemoveUntrackedFiles string RemoveStagedFiles string SoftReset string MixedReset string HardReset string Undo string Redo string CopyPullRequestURL string OpenMergeTool string OpenCommitInBrowser string OpenPullRequest string StartBisect string ResetBisect string BisectSkip string BisectMark string }
type Localizer ¶
type Localizer struct { Log *logrus.Entry S TranslationSet }
Localizer will translate a message into the user's language
type TranslationSet ¶ added in v0.23.1
type TranslationSet struct { NotEnoughSpace string DiffTitle string FilesTitle string BranchesTitle string CommitsTitle string StashTitle string SnakeTitle string EasterEgg string UnstagedChanges string StagedChanges string MainTitle string StagingTitle string MergingTitle string MergeConfirmTitle string NormalTitle string LogTitle string CommitSummary string CredentialsUsername string CredentialsPassword string CredentialsPassphrase string CredentialsPIN string PassUnameWrong string CommitChanges string AmendLastCommit string AmendLastCommitTitle string SureToAmend string NoCommitToAmend string CommitChangesWithEditor string StatusTitle string GlobalTitle string Menu string Execute string ToggleStaged string ToggleStagedAll string ToggleTreeView string OpenMergeTool string Refresh string Push string Pull string Scroll string FileFilter string FilterStagedFiles string FilterUnstagedFiles string ResetFilter string MergeConflictsTitle string Checkout string NoChangedFiles string PullWait string PushWait string FetchWait string SoftReset string AlreadyCheckedOutBranch string SureForceCheckout string ForceCheckoutBranch string BranchName string NewBranchNameBranchOff string CantDeleteCheckOutBranch string DeleteBranch string DeleteBranchMessage string ForceDeleteBranchMessage string RebaseBranch string CantRebaseOntoSelf string CantMergeBranchIntoItself string ForceCheckout string CheckoutByName string NewBranch string NoBranchesThisRepo string CommitWithoutMessageErr string Close string CloseCancel string Confirm string Quit string SquashDown string FixupCommit string CannotSquashOrFixupFirstCommit string Fixup string SureFixupThisCommit string SureSquashThisCommit string Squash string PickCommit string RevertCommit string RewordCommit string DeleteCommit string MoveDownCommit string MoveUpCommit string EditCommit string AmendToCommit string ResetAuthor string SetAuthor string SetResetCommitAuthor string SetAuthorPromptTitle string SureResetCommitAuthor string RenameCommitEditor string NoCommitsThisBranch string UpdateRefHere string Error string Undo string UndoReflog string RedoReflog string UndoTooltip string RedoTooltip string DiscardAllTooltip string DiscardUnstagedTooltip string Pop string Drop string Apply string NoStashEntries string StashDrop string SureDropStashEntry string StashPop string SurePopStashEntry string StashApply string SureApplyStashEntry string NoTrackedStagedFilesStash string NoFilesToStash string StashChanges string RenameStash string RenameStashPrompt string OpenConfig string EditConfig string ForcePush string ForcePushPrompt string ForcePushDisabled string UpdatesRejectedAndForcePushDisabled string CheckForUpdate string CheckingForUpdates string UpdateAvailableTitle string UpdateAvailable string UpdateInProgressWaitingStatus string UpdateCompletedTitle string UpdateCompleted string FailedToRetrieveLatestVersionErr string OnLatestVersionErr string MajorVersionErr string CouldNotFindBinaryErr string UpdateFailedErr string ConfirmQuitDuringUpdateTitle string ConfirmQuitDuringUpdate string MergeToolTitle string MergeToolPrompt string IntroPopupMessage string DeprecatedEditConfigWarning string GitconfigParseErr string EditFile string OpenFile string IgnoreFile string ExcludeFile string RefreshFiles string MergeIntoCurrentBranch string ConfirmQuit string SwitchRepo string AllBranchesLogGraph string UnsupportedGitService string CopyPullRequestURL string NoBranchOnRemote string Fetch string NoAutomaticGitFetchTitle string NoAutomaticGitFetchBody string FileEnter string FileStagingRequirements string StageSelection string DiscardSelection string ToggleDragSelect string ToggleSelectHunk string ToggleSelectionForPatch string EditHunk string ToggleStagingPanel string ReturnToFilesPanel string FastForward string Fetching string FoundConflictsTitle string ViewConflictsMenuItem string AbortMenuItem string PickHunk string PickAllHunks string ViewMergeRebaseOptions string NotMergingOrRebasing string AlreadyRebasing string RecentRepos string MergeOptionsTitle string RebaseOptionsTitle string CommitSummaryTitle string CommitDescriptionTitle string CommitDescriptionSubTitle string LocalBranchesTitle string SearchTitle string TagsTitle string MenuTitle string RemotesTitle string RemoteBranchesTitle string PatchBuildingTitle string InformationTitle string SecondaryTitle string ReflogCommitsTitle string ConflictsResolved string Continue string RebasingTitle string SimpleRebase string InteractiveRebase string InteractiveRebaseTooltip string ConfirmMerge string FwdNoUpstream string FwdNoLocalUpstream string FwdCommitsToPush string ErrorOccurred string NoRoom string YouAreHere string YouDied string RewordNotSupported string ChangingThisActionIsNotAllowed string CherryPickCopy string CherryPickCopyRange string PasteCommits string SureCherryPick string CherryPick string Donate string AskQuestion string PrevLine string NextLine string PrevHunk string NextHunk string PrevConflict string NextConflict string SelectPrevHunk string SelectNextHunk string ScrollDown string ScrollUp string ScrollUpMainPanel string ScrollDownMainPanel string AmendCommitTitle string AmendCommitPrompt string DeleteCommitTitle string DeleteCommitPrompt string SquashingStatus string FixingStatus string DeletingStatus string MovingStatus string RebasingStatus string MergingStatus string LowercaseRebasingStatus string LowercaseMergingStatus string AmendingStatus string CherryPickingStatus string UndoingStatus string RedoingStatus string CheckingOutStatus string CommittingStatus string CommitFiles string SubCommitsDynamicTitle string CommitFilesDynamicTitle string RemoteBranchesDynamicTitle string ViewItemFiles string CommitFilesTitle string CheckoutCommitFile string CanOnlyDiscardFromLocalCommits string DiscardOldFileChange string DiscardFileChangesTitle string DiscardFileChangesPrompt string DiscardAddedFileChangesPrompt string DiscardDeletedFileChangesPrompt string DiscardNotSupportedForDirectory string DisabledForGPG string CreateRepo string BareRepo string InitialBranch string NoRecentRepositories string IncorrectNotARepository string AutoStashTitle string AutoStashPrompt string StashPrefix string ViewDiscardOptions string Cancel string DiscardAllChanges string DiscardUnstagedChanges string DiscardAllChangesToAllFiles string DiscardAnyUnstagedChanges string DiscardUntrackedFiles string DiscardStagedChanges string HardReset string ViewResetOptions string CreateFixupCommit string CreateFixupCommitDescription string SquashAboveCommits string SureSquashAboveCommits string SureCreateFixupCommit string ExecuteCustomCommand string CustomCommand string CommitChangesWithoutHook string SkipHookPrefixNotConfigured string ResetTo string PressEnterToReturn string ViewStashOptions string StashAllChanges string StashStagedChanges string StashAllChangesKeepIndex string StashUnstagedChanges string StashIncludeUntrackedChanges string StashOptions string NotARepository string Jump string ScrollLeftRight string ScrollLeft string ScrollRight string DiscardPatch string DiscardPatchConfirm string CantPatchWhileRebasingError string ToggleAddToPatch string ToggleAllInPatch string UpdatingPatch string ViewPatchOptions string PatchOptionsTitle string NoPatchError string EnterFile string ExitCustomPatchBuilder string EnterUpstream string InvalidUpstream string ReturnToRemotesList string AddNewRemote string NewRemoteName string NewRemoteUrl string EditRemoteName string EditRemoteUrl string RemoveRemote string RemoveRemotePrompt string DeleteRemoteBranch string DeleteRemoteBranchMessage string SetAsUpstream string SetUpstream string UnsetUpstream string SetUpstreamTitle string SetUpstreamMessage string EditRemote string TagCommit string TagMenuTitle string TagNameTitle string TagMessageTitle string LightweightTag string AnnotatedTag string DeleteTag string DeleteTagTitle string DeleteTagPrompt string PushTagTitle string PushTag string CreateTag string CreatingTag string FetchRemote string FetchingRemoteStatus string CheckoutCommit string SureCheckoutThisCommit string GitFlowOptions string NotAGitFlowBranch string NewBranchNamePrompt string IgnoreTracked string ExcludeTracked string IgnoreTrackedPrompt string ExcludeTrackedPrompt string ViewResetToUpstreamOptions string NextScreenMode string PrevScreenMode string StartSearch string StartFilter string Panel string Keybindings string KeybindingsLegend string RenameBranch string SetUnsetUpstream string NewGitFlowBranchPrompt string RenameBranchWarning string OpenMenu string ResetCherryPick string NextTab string PrevTab string CantUndoWhileRebasing string CantRedoWhileRebasing string MustStashWarning string MustStashTitle string ConfirmationTitle string PrevPage string NextPage string GotoTop string GotoBottom string FilteringBy string ResetInParentheses string OpenFilteringMenu string FilterBy string ExitFilterMode string FilterPathOption string EnterFileName string FilteringMenuTitle string MustExitFilterModeTitle string MustExitFilterModePrompt string Diff string EnterRefToDiff string EnterRefName string ExitDiffMode string DiffingMenuTitle string SwapDiff string OpenDiffingMenu string OpenExtrasMenu string ShowingGitDiff string CommitDiff string CopyCommitShaToClipboard string CommitSha string CommitURL string CopyCommitMessageToClipboard string CommitMessage string CommitAuthor string CopyCommitAttributeToClipboard string CopyBranchNameToClipboard string CopyFileNameToClipboard string CopyCommitFileNameToClipboard string CommitPrefixPatternError string CopySelectedTexToClipboard string NoFilesStagedTitle string NoFilesStagedPrompt string BranchNotFoundTitle string BranchNotFoundPrompt string BranchUnknown string DiscardChangeTitle string DiscardChangePrompt string CreateNewBranchFromCommit string BuildingPatch string ViewCommits string MinGitVersionError string RunningCustomCommandStatus string SubmoduleStashAndReset string AndResetSubmodules string EnterSubmodule string CopySubmoduleNameToClipboard string RemoveSubmodule string RemoveSubmodulePrompt string ResettingSubmoduleStatus string NewSubmoduleName string NewSubmoduleUrl string NewSubmodulePath string AddSubmodule string AddingSubmoduleStatus string UpdateSubmoduleUrl string UpdatingSubmoduleUrlStatus string EditSubmoduleUrl string InitializingSubmoduleStatus string InitSubmodule string SubmoduleUpdate string UpdatingSubmoduleStatus string BulkInitSubmodules string BulkUpdateSubmodules string BulkDeinitSubmodules string ViewBulkSubmoduleOptions string BulkSubmoduleOptions string RunningCommand string SubCommitsTitle string SubmodulesTitle string SuggestionsCheatsheetTitle string // Unlike the cheatsheet title above, the real suggestions title has a little message saying press tab to focus SuggestionsTitle string ExtrasTitle string PushingTagStatus string PullRequestURLCopiedToClipboard string CommitDiffCopiedToClipboard string CommitSHACopiedToClipboard string CommitURLCopiedToClipboard string CommitMessageCopiedToClipboard string CommitAuthorCopiedToClipboard string PatchCopiedToClipboard string CopiedToClipboard string ErrCannotEditDirectory string ErrStageDirWithInlineMergeConflicts string ErrRepositoryMovedOrDeleted string CommandLog string ToggleShowCommandLog string FocusCommandLog string CommandLogHeader string RandomTip string SelectParentCommitForMerge string ToggleWhitespaceInDiffView string IgnoreWhitespaceDiffViewSubTitle string IgnoreWhitespaceNotSupportedHere string IncreaseContextInDiffView string DecreaseContextInDiffView string CreatePullRequestOptions string DefaultBranch string SelectBranch string CreatePullRequest string SelectConfigFile string NoConfigFileFoundErr string LoadingFileSuggestions string LoadingCommits string MustSpecifyOriginError string GitOutput string GitCommandFailed string AbortTitle string AbortPrompt string OpenLogMenu string LogMenuTitle string ToggleShowGitGraphAll string ShowGitGraph string SortCommits string CantChangeContextSizeError string OpenCommitInBrowser string ViewBisectOptions string ConfirmRevertCommit string RewordInEditorTitle string RewordInEditorPrompt string CheckoutPrompt string HardResetAutostashPrompt string UpstreamGone string NukeDescription string DiscardStagedChangesDescription string EmptyOutput string Patch string CustomPatch string CommitsCopied string CommitCopied string ResetPatch string ApplyPatch string ApplyPatchInReverse string RemovePatchFromOriginalCommit string MovePatchOutIntoIndex string MovePatchIntoNewCommit string MovePatchToSelectedCommit string CopyPatchToClipboard string NoMatchesFor string MatchesFor string SearchKeybindings string SearchPrefix string FilterPrefix string ExitSearchMode string ExitTextFilterMode string Actions Actions Bisect Bisect }
func EnglishTranslationSet ¶ added in v0.32.1
func EnglishTranslationSet() TranslationSet
exporting this so we can use it in tests
func NewTranslationSet ¶ added in v0.23.1
func NewTranslationSet(log *logrus.Entry, language string) *TranslationSet
func NewTranslationSetFromConfig ¶ added in v0.30.1
func NewTranslationSetFromConfig(log *logrus.Entry, configLanguage string) (*TranslationSet, error)
func RussianTranslationSet ¶ added in v0.39.0
func RussianTranslationSet() TranslationSet
exporting this so we can use it in tests
Click to show internal directories.
Click to hide internal directories.