Documentation ¶
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 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 { ReleaseNotes string NotEnoughSpace string DiffTitle string LogTitle string FilesTitle string BranchesTitle string CommitsTitle string StashTitle string UnstagedChanges string StagedChanges string PatchBuildingMainTitle string MergingMainTitle string MainTitle string StagingTitle string MergingTitle string NormalTitle string CommitMessage string CredentialsUsername string CredentialsPassword string PassUnameWrong string CommitChanges string AmendLastCommit string SureToAmend string NoCommitToAmend string CommitChangesWithEditor string StatusTitle string GlobalTitle string LcMenu string LcExecute string LcOpen string LcIgnore string LcDelete string LcToggleStaged string LcToggleStagedAll string LcRefresh string LcPush string LcPull string LcEdit string LcScroll string LcAbortMerge string LcResolveMergeConflicts string MergeConflictsTitle string LcCheckout string NoChangedFiles string FileHasNoUnstagedChanges string CannotGitAdd string NoFilesDisplay string NotAFile string PullWait string PushWait string FetchWait string FileNoMergeCons string LcSoftReset string SureTo string AlreadyCheckedOutBranch string SureForceCheckout string ForceCheckoutBranch string BranchName string NewBranchNameBranchOff string CantDeleteCheckOutBranch string DeleteBranch string DeleteBranchMessage string ForceDeleteBranchMessage string LcRebaseBranch string CantRebaseOntoSelf string CantMergeBranchIntoItself string LcForceCheckout string LcMerge string LcCheckoutByName string LcNewBranch string LcDeleteBranch string LcForceDeleteBranch string NoBranchesThisRepo string NoTrackingThisBranch string CommitMessageConfirm string CommitWithoutMessageErr string CloseConfirm string LcClose string LcQuit string SureResetThisCommit string ResetToCommit string LcSquashDown string LcRename string LcResetToThisCommit string LcFixupCommit string OnlySquashTopmostCommit string YouNoCommitsToSquash string CantFixupWhileUnstagedChanges string Fixup string SureFixupThisCommit string SureSquashThisCommit string Squash string LcPickCommit string LcRevertCommit string OnlyRenameTopCommit string LcRenameCommit string LcDeleteCommit string LcMoveDownCommit string LcMoveUpCommit string LcEditCommit string LcAmendToCommit string LcRenameCommitEditor string PotentialErrInGetselectedCommit string NoCommitsThisBranch string Error string RunningSubprocess string LcSelectHunk string LcPickHunk string LcPickBothHunks string LcUndo string LcUndoReflog string LcRedoReflog string LcPop string LcDrop string LcApply string NoStashEntries string StashDrop string SureDropStashEntry string StashPop string SurePopStashEntry string StashApply string SureApplyStashEntry string NoStashTo string NoTrackedStagedFilesStash string StashChanges string IssntListOfViews string LcNewFocusedViewIs string MergeAborted string OpenConfig string EditConfig string ForcePush string ForcePushPrompt string ForcePushDisabled string UpdatesRejectedAndForcePushDisabled string LcCheckForUpdate string CheckingForUpdates string OnLatestVersionErr string MajorVersionErr string CouldNotFindBinaryErr string AnonymousReportingTitle string AnonymousReportingPrompt string IntroPopupMessage string GitconfigParseErr string LcEditFile string LcOpenFile string LcIgnoreFile string LcRefreshFiles string LcMergeIntoCurrentBranch string ConfirmQuit string SwitchRepo string UnsupportedGitService string LcCreatePullRequest string NoBranchOnRemote string LcFetch string NoAutomaticGitFetchTitle string NoAutomaticGitFetchBody string StageLines string FileStagingRequirements string SelectHunk string StageSelection string ResetSelection string ToggleDragSelect string ToggleSelectHunk string ToggleSelectionForPatch string TogglePanel string CantStageStaged string ReturnToFilesPanel string CantFindHunks string CantFindHunk string FastForward string Fetching string FoundConflicts string FoundConflictsTitle string Undo string PickHunk string PickBothHunks string ViewMergeRebaseOptions string NotMergingOrRebasing string RecentRepos string MergeOptionsTitle string RebaseOptionsTitle string CommitMessageTitle string LocalBranchesTitle string SearchTitle string TagsTitle string BranchCommitsTitle string MenuTitle string RemotesTitle string CredentialsTitle string RemoteBranchesTitle string PatchBuildingTitle string InformationTitle string SecondaryTitle string ReflogCommitsTitle string Title string ConflictsResolved string RebasingTitle string ConfirmRebase string ConfirmMerge string FwdNoUpstream string FwdCommitsToPush string ErrorOccurred string NoRoom string YouAreHere string LcRewordNotSupported string LcCherryPickCopy string LcCherryPickCopyRange string LcPasteCommits string SureCherryPick string CherryPick string CannotRebaseOntoFirstCommit string CannotSquashOntoSecondCommit string Donate string PrevLine string NextLine string PrevHunk string NextHunk string PrevConflict string NextConflict string SelectTop string SelectBottom string ScrollDown string ScrollUp string LcScrollUpMainPanel string LcScrollDownMainPanel string AmendCommitTitle string AmendCommitPrompt string DeleteCommitTitle string DeleteCommitPrompt string SquashingStatus string FixingStatus string DeletingStatus string MovingStatus string RebasingStatus string AmendingStatus string CherryPickingStatus string UndoingStatus string RedoingStatus string CheckingOutStatus string CommitFiles string LcViewCommitFiles string CommitFilesTitle string LcGoBack string NoCommiteFiles string LcCheckoutCommitFile string LcDiscardOldFileChange string DiscardFileChangesTitle string DiscardFileChangesPrompt string DisabledForGPG string CreateRepo string AutoStashTitle string AutoStashPrompt string StashPrefix string LcViewDiscardOptions string LcCancel string LcDiscardAllChanges string LcDiscardUnstagedChanges string LcDiscardAllChangesToAllFiles string LcDiscardAnyUnstagedChanges string LcDiscardUntrackedFiles string LcHardReset string LcHardResetUpstream string LcViewResetOptions string LcCreateFixupCommit string LcSquashAboveCommits string SquashAboveCommits string SureSquashAboveCommits string CreateFixupCommit string SureCreateFixupCommit string LcExecuteCustomCommand string CustomCommand string LcCommitChangesWithoutHook string SkipHookPrefixNotConfigured string LcResetTo string PressEnterToReturn string LcViewStashOptions string LcStashAllChanges string LcStashStagedChanges string LcStashOptions string NotARepository string LcJump string DiscardPatch string DiscardPatchConfirm string CantPatchWhileRebasingError string LcToggleAddToPatch string ViewPatchOptions string PatchOptionsTitle string NoPatchError string LcEnterFile string ExitLineByLineMode string EnterUpstream string EnterUpstreamWithSlash string LcNotTrackingRemote string ReturnToRemotesList string LcAddNewRemote string LcNewRemoteName string LcNewRemoteUrl string LcEditRemoteName string LcEditRemoteUrl string LcRemoveRemote string LcRemoveRemotePrompt string DeleteRemoteBranch string DeleteRemoteBranchMessage string LcSetUpstream string SetUpstreamTitle string SetUpstreamMessage string LcEditRemote string LcTagCommit string TagNameTitle string LcDeleteTag string DeleteTagTitle string DeleteTagPrompt string PushTagTitle string LcPushTag string LcCreateTag string CreateTagTitle string LcFetchRemote string FetchingRemoteStatus string LcCheckoutCommit string SureCheckoutThisCommit string LcGitFlowOptions string NotAGitFlowBranch string NewBranchNamePrompt string IgnoreTracked string IgnoreTrackedPrompt string LcViewResetToUpstreamOptions string LcNextScreenMode string LcPrevScreenMode string LcStartSearch string Panel string Keybindings string LcRenameBranch string NewGitFlowBranchPrompt string RenameBranchWarning string LcOpenMenu string LcCloseMenu string LcResetCherryPick string LcNextTab string LcPrevTab string LcCantUndoWhileRebasing string LcCantRedoWhileRebasing string MustStashWarning string MustStashTitle string ConfirmationTitle string LcPrevPage string LcNextPage string LcGotoTop string LcGotoBottom string LcFilteringBy string ResetInParentheses string LcOpenScopingMenu string LcFilterBy string LcExitFilterMode string LcFilterPathOption string LcEnterFileName string FilteringMenuTitle string MustExitFilterModeTitle string MustExitFilterModePrompt string LcDiff string LcEnterRefToDiff string LcEnteRefName string LcExitDiffMode string DiffingMenuTitle string LcSwapDiff string LcOpenDiffingMenu string LcShowingGitDiff string LcCopyCommitShaToClipboard string LcCopyBranchNameToClipboard string LcCopyFileNameToClipboard string LcCopyCommitFileNameToClipboard string LcCommitPrefixPatternError string NoFilesStagedTitle string NoFilesStagedPrompt string BranchNotFoundTitle string BranchNotFoundPrompt string UnstageLinesTitle string UnstageLinesPrompt string LcCreateNewBranchFromCommit string LcViewStashFiles string LcBuildingPatch string LcViewCommits string MinGitVersionError string LcRunningCustomCommandStatus string LcSubmoduleStashAndReset string LcAndResetSubmodules string LcEnterSubmodule string LcCopySubmoduleNameToClipboard string RemoveSubmodule string LcRemoveSubmodule string RemoveSubmodulePrompt string LcResettingSubmoduleStatus string LcNewSubmoduleName string LcNewSubmoduleUrl string LcNewSubmodulePath string LcAddSubmodule string LcAddingSubmoduleStatus string LcUpdateSubmoduleUrl string LcUpdatingSubmoduleUrlStatus string LcEditSubmoduleUrl string LcInitializingSubmoduleStatus string LcInitSubmodule string LcViewResetAndRemoveOptions string LcSubmoduleUpdate string LcUpdatingSubmoduleStatus string LcBulkInitSubmodules string LcBulkUpdateSubmodules string LcBulkDeinitSubmodules string LcViewBulkSubmoduleOptions string LcBulkSubmoduleOptions string LcRunningCommand string SubCommitsTitle string SubmodulesTitle string }
func NewTranslationSet ¶ added in v0.23.1
func NewTranslationSet(log *logrus.Entry) *TranslationSet
NewTranslationSet creates a new Localizer
Click to show internal directories.
Click to hide internal directories.