forked from gitextensions/gitextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTranslatedStrings.cs
273 lines (228 loc) · 18.3 KB
/
TranslatedStrings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
using System;
using GitCommands;
using ResourceManager;
namespace GitUI
{
internal sealed class TranslatedStrings : Translate
{
private readonly TranslationString _error = new("Error");
private readonly TranslationString _warning = new("Warning");
private readonly TranslationString _yes = new("Yes");
private readonly TranslationString _no = new("No");
private readonly TranslationString _okText = new("OK");
private readonly TranslationString _cancelText = new("Cancel");
private readonly TranslationString _closeText = new("Close");
private readonly TranslationString _dontShowAgain = new("&Don't show me this message again");
private readonly TranslationString _buttonCheckoutBranch = new("Checkout branch");
private readonly TranslationString _buttonContinue = new("Continue");
private readonly TranslationString _buttonCloseApp = new("Close application");
private readonly TranslationString _buttonCreateBranch = new("Create branch");
private readonly TranslationString _buttonIgnore = new("Ignore");
private readonly TranslationString _buttonPush = new("&Push");
private readonly TranslationString _buttonReportBug = new("Report bug!");
private readonly TranslationString _buttonViewDetails = new("View details");
private readonly TranslationString _containedInCurrentCommitText = new("'{0}' is contained in the currently selected commit");
private readonly TranslationString _containedInBranchesText = new("Contained in branches:");
private readonly TranslationString _containedInNoBranchText = new("Contained in no branch");
private readonly TranslationString _containedInTagsText = new("Contained in tags:");
private readonly TranslationString _containedInNoTagText = new("Contained in no tag");
private readonly TranslationString _invisibleCommitText = new("'{0}' is not currently visible");
private readonly TranslationString _viewPullRequest = new("View pull requests");
private readonly TranslationString _createPullRequest = new("Create pull request");
private readonly TranslationString _forkCloneRepo = new("Fork or clone a repository");
private readonly TranslationString _branchText = new("Branch");
private readonly TranslationString _branchesText = new("Branches");
private readonly TranslationString _remotesText = new("Remotes");
private readonly TranslationString _tagsText = new("Tags");
private readonly TranslationString _submodulesText = new("Submodules");
private readonly TranslationString _bodyNotLoaded = new("\n\nFull message text is not present in older commits.\nSelect this commit to populate the full message.");
private readonly TranslationString _searchingFor = new("Searching for: ");
private readonly TranslationString _loadingDataText = new("Loading data...");
private readonly TranslationString _uninterestingDiffOmitted = new("Uninteresting diff hunks are omitted.");
private readonly TranslationString _openReport = new("Open report");
private readonly TranslationString _noResultsFound = new("<No results found>");
private readonly TranslationString _local = new("Local");
private readonly TranslationString _tag = new("Tag");
private readonly TranslationString _remote = new("Remote");
private readonly TranslationString _openWithGitExtensions = new("&Open with Git Extensions");
private readonly TranslationString _openInVisualStudio = new("Open in &Visual Studio");
private readonly TranslationString _contScrollToNextFileOnlyWithAlt = new("Enable automatic continuous scroll (without ALT button)");
private readonly TranslationString _noRevision = new("No revision");
private readonly TranslationString _authored = new("authored");
private readonly TranslationString _committed = new("committed");
private readonly TranslationString _authoredAndCommitted = new("authored and committed");
private readonly TranslationString _markBisectAsGood = new("Marked as good in bisect");
private readonly TranslationString _markBisectAsBad = new("Marked as bad in bisect");
private readonly TranslationString _errorCaptionFailedDeleteFile = new("Failed to delete file");
private readonly TranslationString _errorCaptionFailedDeleteFolder = new("Failed to delete directory");
private readonly TranslationString _errorCaptionNotOnBranch = new("Not on a branch");
private readonly TranslationString _mainInstructionNotOnBranch = new("You are not working on a branch");
private readonly TranslationString _noBranch = new("no branch");
private readonly TranslationString _removeSelectedInvalidRepository = new("Remove the selected invalid repository");
private readonly TranslationString _removeAllInvalidRepositories = new("Remove all {0} invalid repositories");
private readonly TranslationString _open = new("Open");
private readonly TranslationString _directoryIsNotAValidRepository = new("The selected item is not a valid git repository.");
private readonly TranslationString _sortBy = new("&Sort by...");
private readonly TranslationString _sortOrder = new("&Sort order...");
private readonly TranslationString _diffSelectedWithRememberedFile = new("&Diff with \"{0}\"");
private readonly TranslationString _diffWithParent = new("Diff with A ");
private readonly TranslationString _diffBaseWith = new("Diff BASE with");
private readonly TranslationString _diffRange = new("Range diff");
private readonly TranslationString _combinedDiff = new("Combined diff");
private readonly TranslationString _showDiffForAllParentsText = new("Show file differences for all parents in browse dialog");
private readonly TranslationString _showDiffForAllParentsTooltip = new(@"Show all differences between the selected commits, not limiting to only one difference.
- For a single selected commit, show the difference with its parent commit.
- For a single selected merge commit, show the difference with all parents.
- For two selected commits with a common ancestor (BASE), show the difference
between the commits as well as the difference from BASE to the selected commits.
See documentation for more details about icons and range diffs.
- For multiple selected commits (up to four), show the difference for
all the first selected with the last selected commit.
- For more than four selected commits, show the difference from the first to
the last selected commit.");
private readonly TranslationString _stageSelectedLines = new("Stage selected line(s)");
private readonly TranslationString _unstageSelectedLines = new("Unstage selected line(s)");
private readonly TranslationString _resetSelectedLines = new("Reset selected line(s)");
private readonly TranslationString _resetSelectedLinesConfirmation = new("Are you sure you want to reset the changes to the selected lines?");
private readonly TranslationString _resetChangesCaption = new("Reset changes");
private readonly TranslationString _rotInactive = new("[ Inactive ]");
private readonly TranslationString _argumentsText = new("Arguments");
private readonly TranslationString _commandText = new("Command");
private readonly TranslationString _exitCodeText = new("Exit code");
private readonly TranslationString _workingDirectoryText = new("Working directory");
private readonly TranslationString _reportBugText = new("If you think this was caused by Git Extensions, you can report a bug for the team to investigate.");
private readonly TranslationString _filterFileInGrid = new("Filter file in &grid");
private readonly TranslationString _openInVisualStudioFailureText = new("Could not find this file in any open solution. Ensure you have a project containing this file open before trying again.");
private readonly TranslationString _openInVisualStudioFailureCaption = new("Unable to open file");
private readonly TranslationString _remoteInError = new("{0}\n\nRemote: {1}");
private readonly TranslationString _noChanges = new("No changes");
// FormRevisionFilter
private readonly TranslationString _since = new("Since");
private readonly TranslationString _until = new("Until");
private readonly TranslationString _author = new("Author");
private readonly TranslationString _committer = new("Committer");
private readonly TranslationString _message = new("Message");
private readonly TranslationString _limit = new("Limit");
private readonly TranslationString _ignoreCase = new("Ignore case");
private readonly TranslationString _pathFilter = new("Path filter");
private readonly TranslationString _simplifyByDecoration = new("Simplify by decoration");
// public only because of FormTranslate
public TranslatedStrings()
{
Translator.Translate(this, AppSettings.CurrentTranslation);
}
private static Lazy<TranslatedStrings> _instance = new();
public static void Reinitialize()
{
if (_instance.IsValueCreated)
{
_instance = new();
}
}
public static string Error => _instance.Value._error.Text;
public static string Warning => _instance.Value._warning.Text;
public static string Yes => _instance.Value._yes.Text;
public static string No => _instance.Value._no.Text;
public static string OK => _instance.Value._okText.Text;
public static string Cancel => _instance.Value._cancelText.Text;
public static string Close => _instance.Value._closeText.Text;
public static string DontShowAgain => _instance.Value._dontShowAgain.Text;
public static string ButtonContinue => _instance.Value._buttonContinue.Text;
public static string ButtonCheckoutBranch => _instance.Value._buttonCheckoutBranch.Text;
public static string ButtonCloseApp => _instance.Value._buttonCloseApp.Text;
public static string ButtonCreateBranch => _instance.Value._buttonCreateBranch.Text;
public static string ButtonIgnore => _instance.Value._buttonIgnore.Text;
public static string ButtonPush => _instance.Value._buttonPush.Text;
public static string ButtonReportBug => _instance.Value._buttonReportBug.Text;
public static string ButtonViewDetails => _instance.Value._buttonViewDetails.Text;
public static string ContainedInCurrentCommit => _instance.Value._containedInCurrentCommitText.Text;
public static string ContainedInBranches => _instance.Value._containedInBranchesText.Text;
public static string ContainedInNoBranch => _instance.Value._containedInNoBranchText.Text;
public static string ContainedInTags => _instance.Value._containedInTagsText.Text;
public static string ContainedInNoTag => _instance.Value._containedInNoTagText.Text;
public static string InvisibleCommit => _instance.Value._invisibleCommitText.Text;
public static string CreatePullRequest => _instance.Value._createPullRequest.Text;
public static string ForkCloneRepo => _instance.Value._forkCloneRepo.Text;
public static string ViewPullRequest => _instance.Value._viewPullRequest.Text;
public static string Branch => _instance.Value._branchText.Text;
public static string Branches => _instance.Value._branchesText.Text;
public static string Remotes => _instance.Value._remotesText.Text;
public static string Tags => _instance.Value._tagsText.Text;
public static string Submodules => _instance.Value._submodulesText.Text;
public static string BodyNotLoaded => _instance.Value._bodyNotLoaded.Text;
public static string SearchingFor => _instance.Value._searchingFor.Text;
public static string LoadingData => _instance.Value._loadingDataText.Text;
public static string UninterestingDiffOmitted => _instance.Value._uninterestingDiffOmitted.Text;
public static string NoResultsFound => _instance.Value._noResultsFound.Text;
public static string Local => _instance.Value._local.Text;
public static string Tag => _instance.Value._tag.Text;
public static string Remote => _instance.Value._remote.Text;
public static string OpenWithGitExtensions => _instance.Value._openWithGitExtensions.Text;
public static string FilterFileInGrid => _instance.Value._filterFileInGrid.Text;
public static string OpenInVisualStudio => _instance.Value._openInVisualStudio.Text;
public static string ContScrollToNextFileOnlyWithAlt => _instance.Value._contScrollToNextFileOnlyWithAlt.Text;
public static string NoRevision => _instance.Value._noRevision.Text;
public static string OpenReport => _instance.Value._openReport.Text;
public static string Authored => _instance.Value._authored.Text;
public static string Committed => _instance.Value._committed.Text;
public static string AuthoredAndCommitted => _instance.Value._authoredAndCommitted.Text;
public static string MarkBisectAsGood => _instance.Value._markBisectAsGood.Text;
public static string MarkBisectAsBad => _instance.Value._markBisectAsBad.Text;
public static string ErrorCaptionFailedDeleteFile => _instance.Value._errorCaptionFailedDeleteFile.Text;
public static string ErrorCaptionFailedDeleteFolder => _instance.Value._errorCaptionFailedDeleteFolder.Text;
public static string ErrorCaptionNotOnBranch => _instance.Value._errorCaptionNotOnBranch.Text;
public static string ErrorInstructionNotOnBranch => _instance.Value._mainInstructionNotOnBranch.Text;
public static string NoBranch => _instance.Value._noBranch.Text;
public static string RemoveSelectedInvalidRepository => _instance.Value._removeSelectedInvalidRepository.Text;
public static string RemoveAllInvalidRepositories => _instance.Value._removeAllInvalidRepositories.Text;
public static string Open => _instance.Value._open.Text;
public static string DirectoryInvalidRepository => _instance.Value._directoryIsNotAValidRepository.Text;
public static string SortBy => _instance.Value._sortBy.Text;
public static string SortOrder => _instance.Value._sortOrder.Text;
public static string DiffSelectedWithRememberedFile => _instance.Value._diffSelectedWithRememberedFile.Text;
public static string DiffWithParent => _instance.Value._diffWithParent.Text;
public static string DiffBaseWith => _instance.Value._diffBaseWith.Text;
public static string DiffRange => _instance.Value._diffRange.Text;
public static string CombinedDiff => _instance.Value._combinedDiff.Text;
public static string ShowDiffForAllParentsText => _instance.Value._showDiffForAllParentsText.Text;
public static string ShowDiffForAllParentsTooltip => _instance.Value._showDiffForAllParentsTooltip.Text;
public static string StageSelectedLines => _instance.Value._stageSelectedLines.Text;
public static string UnstageSelectedLines => _instance.Value._unstageSelectedLines.Text;
public static string ResetSelectedLines => _instance.Value._resetSelectedLines.Text;
public static string ResetSelectedLinesConfirmation => _instance.Value._resetSelectedLinesConfirmation.Text;
public static string ResetChangesCaption => _instance.Value._resetChangesCaption.Text;
public static string Inactive => _instance.Value._rotInactive.Text;
public static string Arguments => _instance.Value._argumentsText.Text;
public static string Command => _instance.Value._commandText.Text;
public static string ExitCode => _instance.Value._exitCodeText.Text;
public static string WorkingDirectory => _instance.Value._workingDirectoryText.Text;
public static string ReportBug => _instance.Value._reportBugText.Text;
public static string OpenInVisualStudioFailureText => _instance.Value._openInVisualStudioFailureText.Text;
public static string OpenInVisualStudioFailureCaption => _instance.Value._openInVisualStudioFailureCaption.Text;
public static string RemoteInError => _instance.Value._remoteInError.Text;
public static string NoChanges => _instance.Value._noChanges.Text;
public static string Since = _instance.Value._since.Text;
public static string Until = _instance.Value._until.Text;
public static string Author = _instance.Value._author.Text;
public static string Committer = _instance.Value._committer.Text;
public static string Message = _instance.Value._message.Text;
public static string Limit = _instance.Value._limit.Text;
public static string IgnoreCase = _instance.Value._ignoreCase.Text;
public static string PathFilter = _instance.Value._pathFilter.Text;
public static string SimplifyByDecoration = _instance.Value._simplifyByDecoration.Text;
#region Scripts
private readonly TranslationString _scriptConfirmExecuteText = new("Do you want to execute script");
private readonly TranslationString _scriptErrorCantFindText = new("Unable to find script");
private readonly TranslationString _scriptErrorFailedToExecuteText = new("Failed to execute script");
private readonly TranslationString _scriptErrorOptionWithoutRevisionGridText = new("option is only supported when invoked from the revision grid");
private readonly TranslationString _scriptErrorOptionWithoutRevisionText = new("A valid revision is required to substitute the argument options");
private readonly TranslationString _scriptText = new("Script");
public static string ScriptConfirmExecute => _instance.Value._scriptConfirmExecuteText.Text;
public static string ScriptErrorCantFind => _instance.Value._scriptErrorCantFindText.Text;
public static string ScriptErrorFailedToExecute => _instance.Value._scriptErrorFailedToExecuteText.Text;
public static string ScriptErrorOptionWithoutRevisionGridText => _instance.Value._scriptErrorOptionWithoutRevisionGridText.Text;
public static string ScriptErrorOptionWithoutRevisionText => _instance.Value._scriptErrorOptionWithoutRevisionText.Text;
public static string ScriptText => _instance.Value._scriptText.Text;
#endregion
}
}