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 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
LcIgnoreExcludeFile 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
CommitMessage 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
LcMenu string
LcExecute string
LcToggleStaged string
LcToggleStagedAll string
LcToggleTreeView string
LcOpenMergeTool string
LcRefresh string
LcPush string
LcPull string
LcScroll string
LcFileFilter string
FilterStagedFiles string
FilterUnstagedFiles string
ResetCommitFilterState string
MergeConflictsTitle string
LcCheckout string
NoChangedFiles string
PullWait string
PushWait string
FetchWait string
LcSoftReset 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
LcCheckoutByName string
LcNewBranch string
LcDeleteBranch string
NoBranchesThisRepo string
CommitMessageConfirm string
CommitWithoutMessageErr string
CloseConfirm string
LcClose string
LcQuit string
LcSquashDown string
LcFixupCommit string
YouNoCommitsToSquash string
Fixup string
SureFixupThisCommit string
SureSquashThisCommit string
Squash string
LcPickCommit string
LcRevertCommit string
LcRewordCommit string
LcDeleteCommit string
LcMoveDownCommit string
LcMoveUpCommit string
LcEditCommit string
LcAmendToCommit string
LcResetCommitAuthor string
SetAuthorPromptTitle string
SureResetCommitAuthor string
LcRenameCommitEditor string
NoCommitsThisBranch string
Error string
LcSelectHunk string
LcPickHunk string
LcPickAllHunks string
LcUndo string
LcUndoReflog string
LcRedoReflog string
UndoTooltip string
RedoTooltip string
LcPop string
LcDrop string
LcApply string
NoStashEntries string
StashDrop string
SureDropStashEntry string
StashPop string
SurePopStashEntry string
StashApply string
SureApplyStashEntry string
NoTrackedStagedFilesStash string
NoFilesToStash string
StashChanges string
LcRenameStash string
RenameStashPrompt string
OpenConfig string
EditConfig string
ForcePush string
ForcePushPrompt string
ForcePushDisabled string
UpdatesRejectedAndForcePushDisabled string
LcCheckForUpdate 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
GitconfigParseErr string
LcEditFile string
LcOpenFile string
LcIgnoreFile string
LcExcludeFile string
LcRefreshFiles string
LcMergeIntoCurrentBranch string
ConfirmQuit string
SwitchRepo string
LcAllBranchesLogGraph string
UnsupportedGitService string
LcCreatePullRequest string
LcCopyPullRequestURL string
NoBranchOnRemote string
LcFetch string
NoAutomaticGitFetchTitle string
NoAutomaticGitFetchBody string
FileEnter string
FileStagingRequirements string
StageSelection string
ResetSelection string
ToggleDragSelect string
ToggleSelectHunk string
ToggleSelectionForPatch string
EditHunk string
ToggleStagingPanel string
ReturnToFilesPanel string
FastForward string
Fetching string
FoundConflicts string
FoundConflictsTitle string
PickHunk string
PickAllHunks string
ViewMergeRebaseOptions string
NotMergingOrRebasing string
RecentRepos string
MergeOptionsTitle string
RebaseOptionsTitle string
CommitMessageTitle string
LocalBranchesTitle string
SearchTitle string
TagsTitle string
MenuTitle string
RemotesTitle string
RemoteBranchesTitle string
PatchBuildingTitle string
InformationTitle string
SecondaryTitle string
ReflogCommitsTitle string
ConflictsResolved string
RebasingTitle string
ConfirmRebase string
ConfirmMerge string
FwdNoUpstream string
FwdNoLocalUpstream string
FwdCommitsToPush string
ErrorOccurred string
NoRoom string
YouAreHere string
YouDied string
LcRewordNotSupported string
LcCherryPickCopy string
LcCherryPickCopyRange string
LcPasteCommits string
SureCherryPick string
CherryPick string
CannotRebaseOntoFirstCommit string
CannotSquashOntoSecondCommit 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
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
CommittingStatus string
CommitFiles string
SubCommitsDynamicTitle string
CommitFilesDynamicTitle string
RemoteBranchesDynamicTitle string
LcViewItemFiles string
CommitFilesTitle string
LcCheckoutCommitFile string
LcDiscardOldFileChange string
DiscardFileChangesTitle string
DiscardFileChangesPrompt string
DisabledForGPG string
CreateRepo string
BareRepo string
InitialBranch string
NoRecentRepositories string
IncorrectNotARepository string
AutoStashTitle string
AutoStashPrompt string
StashPrefix string
LcViewDiscardOptions string
LcCancel string
LcDiscardAllChanges string
LcDiscardUnstagedChanges string
LcDiscardAllChangesToAllFiles string
LcDiscardAnyUnstagedChanges string
LcDiscardUntrackedFiles string
LcDiscardStagedChanges string
LcHardReset 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
LcStashAllChangesKeepIndex string
LcStashUnstagedChanges string
LcStashIncludeUntrackedChanges string
LcStashOptions string
NotARepository string
LcJump string
LcScrollLeftRight string
LcScrollLeft string
LcScrollRight string
DiscardPatch string
DiscardPatchConfirm string
CantPatchWhileRebasingError string
LcToggleAddToPatch string
LcToggleAllInPatch string
LcUpdatingPatch string
ViewPatchOptions string
PatchOptionsTitle string
NoPatchError string
LcEnterFile string
ExitCustomPatchBuilder string
EnterUpstream string
InvalidUpstream string
ReturnToRemotesList string
LcAddNewRemote string
LcNewRemoteName string
LcNewRemoteUrl string
LcEditRemoteName string
LcEditRemoteUrl string
LcRemoveRemote string
LcRemoveRemotePrompt string
DeleteRemoteBranch string
DeleteRemoteBranchMessage string
LcSetAsUpstream string
LcSetUpstream string
LcUnsetUpstream string
SetUpstreamTitle string
SetUpstreamMessage string
LcEditRemote string
LcTagCommit string
TagMenuTitle string
TagNameTitle string
TagMessageTitle string
LcLightweightTag string
LcAnnotatedTag 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
ExcludeTracked string
IgnoreTrackedPrompt string
ExcludeTrackedPrompt string
LcViewResetToUpstreamOptions string
LcNextScreenMode string
LcPrevScreenMode string
LcStartSearch string
Panel string
Keybindings string
LcRenameBranch string
LcSetUnsetUpstream string
NewGitFlowBranchPrompt string
RenameBranchWarning string
LcOpenMenu 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
LcOpenFilteringMenu string
LcFilterBy string
LcExitFilterMode string
LcFilterPathOption string
EnterFileName string
FilteringMenuTitle string
MustExitFilterModeTitle string
MustExitFilterModePrompt string
LcDiff string
LcEnterRefToDiff string
LcEnteRefName string
LcExitDiffMode string
DiffingMenuTitle string
LcSwapDiff string
LcOpenDiffingMenu string
LcOpenExtrasMenu string
LcShowingGitDiff string
LcCommitDiff string
LcCopyCommitShaToClipboard string
LcCommitSha string
LcCommitURL string
LcCopyCommitMessageToClipboard string
LcCommitMessage string
LcCommitAuthor string
LcCopyCommitAttributeToClipboard string
LcCopyBranchNameToClipboard string
LcCopyFileNameToClipboard string
LcCopyCommitFileNameToClipboard string
LcCommitPrefixPatternError string
LcCopySelectedTexToClipboard string
NoFilesStagedTitle string
NoFilesStagedPrompt string
BranchNotFoundTitle string
BranchNotFoundPrompt string
LcBranchUnknown string
UnstageLinesTitle string
UnstageLinesPrompt string
LcCreateNewBranchFromCommit 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
LcSubmoduleUpdate string
LcUpdatingSubmoduleStatus string
LcBulkInitSubmodules string
LcBulkUpdateSubmodules string
LcBulkDeinitSubmodules string
LcViewBulkSubmoduleOptions string
LcBulkSubmoduleOptions string
LcRunningCommand 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
LcCopiedToClipboard string
ErrCannotEditDirectory string
ErrStageDirWithInlineMergeConflicts string
ErrRepositoryMovedOrDeleted string
CommandLog string
ToggleShowCommandLog string
FocusCommandLog string
CommandLogHeader string
RandomTip string
SelectParentCommitForMerge string
ToggleWhitespaceInDiffView string
IgnoringWhitespaceInDiffView string
ShowingWhitespaceInDiffView string
IncreaseContextInDiffView string
DecreaseContextInDiffView string
CreatePullRequestOptions string
LcCreatePullRequestOptions string
LcDefaultBranch string
LcSelectBranch string
CreatePullRequest string
SelectConfigFile string
NoConfigFileFoundErr string
LcLoadingFileSuggestions string
LcLoadingCommits string
MustSpecifyOriginError string
GitOutput string
GitCommandFailed string
AbortTitle string
AbortPrompt string
LcOpenLogMenu string
LogMenuTitle string
ToggleShowGitGraphAll string
ShowGitGraph string
SortCommits string
CantChangeContextSizeError string
LcOpenCommitInBrowser string
LcViewBisectOptions string
ConfirmRevertCommit string
RewordInEditorTitle string
RewordInEditorPrompt string
CheckoutPrompt string
HardResetAutostashPrompt string
UpstreamGone string
NukeDescription string
DiscardStagedChangesDescription string
EmptyOutput string
Patch string
CustomPatch string
LcCommitsCopied string
LcCommitCopied 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)
Click to show internal directories.
Click to hide internal directories.