Skip to content

Commit b0cea34

Browse files
committed
Merge pull request #1310 from INOPIAE/translationSC
Translation
2 parents 5a8707e + a6ff22b commit b0cea34

10 files changed

+913
-34
lines changed

RetailCoder.VBE/Inspections/InspectionsUI.de.resx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
<value>Das Projekt hat den Standard-Projektnamen.</value>
140140
</data>
141141
<data name="EmptyStringLiteralInspection" xml:space="preserve">
142-
<value>Man sollte bevorzugt 'vbNullString' gegenüber eiem leeren String verwenden.</value>
142+
<value>Man sollte bevorzugt 'vbNullString' gegenüber einem leeren String verwenden.</value>
143143
</data>
144144
<data name="EmptyStringLiteralInspectionMeta" xml:space="preserve">
145145
<value>Die eingbaute Konstante 'vbNullString' ist ein Null String Zeiger, der 0 bytes Arbeitsspeicher benötigt. Dies ist das beabsichtigete Verhalten eines leeren Strings.</value>
@@ -199,7 +199,7 @@
199199
<value>Eine Variable, die im Modulkopf deklariert wurde aber nur in einer Prozedur verwendet wird, sollte in der Prozedur deklariert werden.</value>
200200
</data>
201201
<data name="MoveFieldCloserToUsageInspectionName" xml:space="preserve">
202-
<value>Die Größe der Varibale ist größer als benötigt.</value>
202+
<value>Die Größe der Variable ist größer als benötigt.</value>
203203
</data>
204204
<data name="MoveFieldCloserToUsageInspectionResultFormat" xml:space="preserve">
205205
<value>Veringere die Größe der Modulvariable '{0}'.</value>
@@ -247,7 +247,7 @@
247247
<value>Die 'REM'-Anweisung existiert aus Gründen der Abwärtskompatibilität. Sie kann gefahrlos durch ein einfaches Anführungszeichen ersetzt werden.</value>
248248
</data>
249249
<data name="ObsoleteCommentSyntaxInspectionName" xml:space="preserve">
250-
<value>Nutzung der 'REM'-anweisung</value>
250+
<value>Nutzung der 'REM'-Anweisung</value>
251251
</data>
252252
<data name="ObsoleteGlobalInspectionMeta" xml:space="preserve">
253253
<value>Das Schlüsselwort 'Global' existiert aus Gründen der Abwärtskompatibilität. Es kann gefahrlos mit 'Public' ersetzt werden.</value>
@@ -265,7 +265,7 @@
265265
<value>Die Verwendung der Typ-Buchstaben (z.B. $) existiert aus Gründen der Abwärtskompatibilität. Sie kann gefahrlos in der Deklaration durch 'as' ersetzt werden.</value>
266266
</data>
267267
<data name="ObsoleteTypeHintInspectionName" xml:space="preserve">
268-
<value>Verwendugshinweis für Typ</value>
268+
<value>Verwendungshinweis für Typ</value>
269269
</data>
270270
<data name="OptionBaseInspectionMeta" xml:space="preserve">
271271
<value>Arrays sind normalerweise null-basiert. Diese Option ändert die untere Standardgrenze für impliziert erzeugte Arrays. Dies kann einen 'off-by-one' Fehler erzeugen, wenn sie nicht sorgsam eingesetzt wird.</value>
@@ -277,7 +277,7 @@
277277
<value>Rubberduck kann keine Variablen auswerten, die nicht deklariert wurden. Nutze am besten 'Option Explicit' um fehleranfällige Programme zu erstellen.</value>
278278
</data>
279279
<data name="OptionExplicitInspectionName" xml:space="preserve">
280-
<value>'Option Expilicit' ist nicht angegeben.</value>
280+
<value>'Option Explicit' ist nicht angegeben.</value>
281281
</data>
282282
<data name="ParameterCanBeByValInspectionMeta" xml:space="preserve">
283283
<value>Ein Parameter der als Referenz übergeben wird, aber keine neue Wert- oder Referenzzuweisung erhält, sollte als Wert übergeben werden.</value>
@@ -332,13 +332,13 @@
332332
<value>Variable wurde deklariert aber nie genutzt.</value>
333333
</data>
334334
<data name="VariableNotUsedInspectionMeta" xml:space="preserve">
335-
<value>Eine Variable wurde deklariert und hat eine Wert-/Referenzzuweisung erhalten, allerdings wird diese Varibale nicht weitergenutzt.</value>
335+
<value>Eine Variable wurde deklariert und hat eine Wert-/Referenzzuweisung erhalten, allerdings wird diese Variable nicht weitergenutzt.</value>
336336
</data>
337337
<data name="VariableNotUsedInspectionName" xml:space="preserve">
338338
<value>Die Variable wird nicht referenziert.</value>
339339
</data>
340340
<data name="VariableTypeNotDeclaredInspectionMeta" xml:space="preserve">
341-
<value>Varibale, deren Typ nicht explizit deklariert wurde, erhält implizit den Typ 'Variant'. Überlege die Varibale explizit als 'Variant' zu defineren oder eine besseren Typ zu zuweisen.</value>
341+
<value>Variable, deren Typ nicht explizit deklariert wurde, erhält implizit den Typ 'Variant'. Überlege die Variable explizit als 'Variant' zu definieren oder eine besseren Typ zu zuweisen.</value>
342342
</data>
343343
<data name="VariableTypeNotDeclaredInspectionName" xml:space="preserve">
344344
<value>Variable ist implizit 'Variant'</value>

RetailCoder.VBE/UI/RubberduckUI.de.resx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,13 +1099,13 @@ Warnung: Alle eigenen Einstellungen gehen dabei verloren. Die Originaldatei wird
10991099
<value>Frühes Binden</value>
11001100
</data>
11011101
<data name="UnitTestSettings_IncludeTestMethodInitCleanupPrompt" xml:space="preserve">
1102-
<value>Testmethodeninitailisierung / Leeren</value>
1102+
<value>Testmethodeninitialisierung / Leeren</value>
11031103
</data>
11041104
<data name="UnitTestSettings_IncludeTestMethodStubWhenCreatingModulePrompt" xml:space="preserve">
11051105
<value>Einfügen eine Testmethodenstubs</value>
11061106
</data>
11071107
<data name="UnitTestSettings_IncludeTestModuleInitCleanupPrompt" xml:space="preserve">
1108-
<value>Testmodulinitialiesierung / Leeren</value>
1108+
<value>Testmodulinitialisierung / Leeren</value>
11091109
</data>
11101110
<data name="UnitTestSettings_LateBinding" xml:space="preserve">
11111111
<value>Spätes Binden</value>
@@ -1147,7 +1147,7 @@ Warnung: Alle eigenen Einstellungen gehen dabei verloren. Die Originaldatei wird
11471147
<value>Beschreibung</value>
11481148
</data>
11491149
<data name="GeneralSettings_HotkeyEnabled" xml:space="preserve">
1150-
<value>Freigegeben</value>
1150+
<value>Aktiv</value>
11511151
</data>
11521152
<data name="IndenterSettings_AlignCommentsWithCode" xml:space="preserve">
11531153
<value>Richte Kommentare am Code aus</value>
@@ -1165,7 +1165,7 @@ Warnung: Alle eigenen Einstellungen gehen dabei verloren. Die Originaldatei wird
11651165
<value>Optionen freigeben</value>
11661166
</data>
11671167
<data name="IndenterSettings_EnableUndo" xml:space="preserve">
1168-
<value>Rüchgängig freigeben</value>
1168+
<value>Rückgängig freigeben</value>
11691169
</data>
11701170
<data name="IndenterSettings_EndOfLineCommentStyle" xml:space="preserve">
11711171
<value>Zeilenende Kommentarstil:</value>
@@ -1180,7 +1180,7 @@ Warnung: Alle eigenen Einstellungen gehen dabei verloren. Die Originaldatei wird
11801180
<value>Ignoriere Operatoren</value>
11811181
</data>
11821182
<data name="IndenterSettings_IndentCase" xml:space="preserve">
1183-
<value>Rücke Fall ein</value>
1183+
<value>Rücke 'Case' ein</value>
11841184
</data>
11851185
<data name="IndenterSettings_IndentCompilerDirectives" xml:space="preserve">
11861186
<value>Rücke Kompilerdirektiven ein</value>

Rubberduck.SourceControl/GitProvider.cs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public GitProvider(VBProject project, IRepository repository, ICodePaneWrapperFa
3737
}
3838
catch (RepositoryNotFoundException ex)
3939
{
40-
throw new SourceControlException("Repository not found.", ex);
40+
throw new SourceControlException(SourceControlText.GitRepoNotFound, ex);
4141
}
4242
}
4343

@@ -114,7 +114,7 @@ public override IRepository Clone(string remotePathOrUrl, string workingDirector
114114
}
115115
catch (LibGit2SharpException ex)
116116
{
117-
throw new SourceControlException("Failed to clone remote repository.", ex);
117+
throw new SourceControlException(SourceControlText.GitRepoNotCloned, ex);
118118
}
119119
}
120120

@@ -130,7 +130,7 @@ public override IRepository Init(string directory, bool bare = false)
130130
}
131131
catch (LibGit2SharpException ex)
132132
{
133-
throw new SourceControlException("Unable to initialize repository.", ex);
133+
throw new SourceControlException(SourceControlText.GitNotInit, ex);
134134
}
135135
}
136136

@@ -162,7 +162,7 @@ public override IRepository InitVBAProject(string directory)
162162
}
163163
catch(LibGit2SharpException ex)
164164
{
165-
throw new SourceControlException("Unable to perform intial commit.", ex);
165+
throw new SourceControlException(SourceControlText.GitNoInitialCommit, ex);
166166
}
167167
}
168168

@@ -190,7 +190,7 @@ public override void Push()
190190
}
191191
catch (LibGit2SharpException ex)
192192
{
193-
throw new SourceControlException("Push Failed.", ex);
193+
throw new SourceControlException(SourceControlText.GitPushFailed, ex);
194194
}
195195
}
196196

@@ -218,7 +218,7 @@ public override void Fetch([Optional] string remoteName)
218218
}
219219
catch (LibGit2SharpException ex)
220220
{
221-
throw new SourceControlException("Fetch failed.", ex);
221+
throw new SourceControlException(SourceControlText.GitFetchFailed, ex);
222222
}
223223
}
224224

@@ -243,7 +243,7 @@ public override void Pull()
243243
}
244244
catch (LibGit2SharpException ex)
245245
{
246-
throw new SourceControlException("Pull Failed.", ex);
246+
throw new SourceControlException(SourceControlText.GitPullFailed, ex);
247247
}
248248
}
249249

@@ -258,7 +258,7 @@ public override void Commit(string message)
258258
}
259259
catch (LibGit2SharpException ex)
260260
{
261-
throw new SourceControlException("Commit Failed.", ex);
261+
throw new SourceControlException(SourceControlText.GitCommitFailed, ex);
262262
}
263263
}
264264

@@ -270,7 +270,7 @@ public override void Stage(string filePath)
270270
}
271271
catch (LibGit2SharpException ex)
272272
{
273-
throw new SourceControlException("Failed to stage file.", ex);
273+
throw new SourceControlException(SourceControlText.GitFileStageFailed, ex);
274274
}
275275
}
276276

@@ -282,7 +282,7 @@ public override void Stage(IEnumerable<string> filePaths)
282282
}
283283
catch (LibGit2SharpException ex)
284284
{
285-
throw new SourceControlException("Failed to stage file.", ex);
285+
throw new SourceControlException(SourceControlText.GitFileStageFailed, ex);
286286
}
287287
}
288288

@@ -320,7 +320,7 @@ public override void Checkout(string branch)
320320
}
321321
catch (LibGit2SharpException ex)
322322
{
323-
throw new SourceControlException("Checkout failed.", ex);
323+
throw new SourceControlException(SourceControlText.GitCheckoutFailed, ex);
324324
}
325325
}
326326

@@ -335,7 +335,7 @@ public override void CreateBranch(string branch)
335335
}
336336
catch (LibGit2SharpException ex)
337337
{
338-
throw new SourceControlException("Branch creation failed.", ex);
338+
throw new SourceControlException(SourceControlText.GitNewBranchFailed, ex);
339339
}
340340
}
341341

@@ -350,7 +350,7 @@ public override void CreateBranch(string sourceBranch, string branch)
350350
}
351351
catch (LibGit2SharpException ex)
352352
{
353-
throw new SourceControlException("Branch creation failed.", ex);
353+
throw new SourceControlException(SourceControlText.GitNewBranchFailed, ex);
354354
}
355355
}
356356

@@ -374,7 +374,7 @@ public override void Publish(string branch)
374374
}
375375
catch (LibGit2SharpException ex)
376376
{
377-
throw new SourceControlException("Publish failed.", ex);
377+
throw new SourceControlException(SourceControlText.GitPublishFailed, ex);
378378
}
379379
}
380380

@@ -400,7 +400,7 @@ public override void Unpublish(string branch)
400400
}
401401
catch (LibGit2SharpException ex)
402402
{
403-
throw new SourceControlException("Unpublish failed.", ex);
403+
throw new SourceControlException(SourceControlText.GitUnpublishFailed, ex);
404404
}
405405
}
406406

@@ -412,14 +412,14 @@ public override void Revert()
412412

413413
if (results.Status == RevertStatus.Conflicts)
414414
{
415-
throw new SourceControlException("Revert resulted in conflicts. Revert failed.");
415+
throw new SourceControlException(SourceControlText.GitRevertConflict);
416416
}
417417

418418
base.Revert();
419419
}
420420
catch (LibGit2SharpException ex)
421421
{
422-
throw new SourceControlException("Revert failed.", ex);
422+
throw new SourceControlException(SourceControlText.GitRevertFailed, ex);
423423
}
424424
}
425425

@@ -432,7 +432,7 @@ public override void AddFile(string filePath)
432432
}
433433
catch (LibGit2SharpException ex)
434434
{
435-
throw new SourceControlException(string.Format("Failed to stage file {0}", filePath), ex);
435+
throw new SourceControlException(string.Format(SourceControlText.GitFileStageFailedMsg, filePath), ex);
436436
}
437437
}
438438

@@ -448,7 +448,7 @@ public override void RemoveFile(string filePath)
448448
}
449449
catch (LibGit2SharpException ex)
450450
{
451-
throw new SourceControlException(string.Format("Failed to remove file {0} from staging area.", filePath), ex);
451+
throw new SourceControlException(string.Format(SourceControlText.GitFileStageFailedMsg, filePath), ex);
452452
}
453453
}
454454

@@ -461,7 +461,7 @@ public override IEnumerable<IFileStatusEntry> Status()
461461
}
462462
catch (LibGit2SharpException ex)
463463
{
464-
throw new SourceControlException("Failed to retrieve repository status.", ex);
464+
throw new SourceControlException(SourceControlText.GitRepoStatusFailed, ex);
465465
}
466466
}
467467

@@ -476,7 +476,7 @@ public override void Undo(string filePath)
476476
}
477477
catch (LibGit2SharpException ex)
478478
{
479-
throw new SourceControlException("Undo failed.", ex);
479+
throw new SourceControlException(SourceControlText.GitUndoFailed, ex);
480480
}
481481
}
482482

@@ -507,7 +507,7 @@ public override void DeleteBranch(string branchName)
507507
}
508508
catch(LibGit2SharpException ex)
509509
{
510-
throw new SourceControlException("Branch deletion failed.", ex);
510+
throw new SourceControlException(SourceControlText.GitBranchDeleteFailed, ex);
511511
}
512512
}
513513

Rubberduck.SourceControl/Rubberduck.SourceControl.csproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@
6868
<Compile Include="Repository.cs" />
6969
<Compile Include="SourceControlException.cs" />
7070
<Compile Include="SourceControlProviderBase.cs" />
71+
<Compile Include="SourceControlText.Designer.cs">
72+
<AutoGen>True</AutoGen>
73+
<DesignTime>True</DesignTime>
74+
<DependentUpon>SourceControlText.resx</DependentUpon>
75+
</Compile>
7176
</ItemGroup>
7277
<ItemGroup>
7378
<None Include="packages.config" />
@@ -78,6 +83,14 @@
7883
<Name>Rubberduck.VBEditor</Name>
7984
</ProjectReference>
8085
</ItemGroup>
86+
<ItemGroup>
87+
<EmbeddedResource Include="SourceControlText.de.resx" />
88+
<EmbeddedResource Include="SourceControlText.fr.resx" />
89+
<EmbeddedResource Include="SourceControlText.resx">
90+
<Generator>ResXFileCodeGenerator</Generator>
91+
<LastGenOutput>SourceControlText.Designer.cs</LastGenOutput>
92+
</EmbeddedResource>
93+
</ItemGroup>
8194
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8295
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
8396
<PropertyGroup>

0 commit comments

Comments
 (0)