-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalizedStrings.cs
More file actions
61 lines (58 loc) · 2.7 KB
/
Copy pathLocalizedStrings.cs
File metadata and controls
61 lines (58 loc) · 2.7 KB
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
// <copyright company="Vermessungsamt Winterthur">
// Author: Edgar Butwilowski
// Copyright (c) 2021 Vermessungsamt Winterthur. All rights reserved.
// </copyright>
using Autodesk.AutoCAD.Runtime;
using System.Globalization;
namespace WIN.MULTIBLOCKREPLACE
{
class LocalizedStrings
{
internal const int enter_names_blocks_to_replace = 0;
internal const int blocks_will_be_replaced = 1;
internal const int enter_name_of_replace_block = 2;
internal const int successfully_completed = 3;
internal const int no_input_or_canceled_by_user = 4;
internal const int no_input = 5;
internal static string GetLocalizedStringFor(int stringCode)
{
CultureInfo cultureInfo = new CultureInfo(SystemObjects.DynamicLinker.ProductLcid);
if (cultureInfo.TwoLetterISOLanguageName == "de")
{
switch(stringCode)
{
case enter_names_blocks_to_replace:
return "Bitte geben Sie die Bezeichnung der zu ersetzenden Blöcke ein (* ist Wildcard).";
case blocks_will_be_replaced:
return "Blöcke werden ersetzt. Fortfahren (J/N)?";
case enter_name_of_replace_block:
return "Bitte geben Sie die Bezeichnung des Blocks ein, mit dem ersetzt werden soll.";
case successfully_completed:
return "Erfolgreich abgeschlossen.";
case no_input_or_canceled_by_user:
return "Keine Eingabe oder Kommando durch Benutzer abgebrochen. Kommando wird abgebrochen.";
case no_input:
return "Keine Eingabe. Kommando wird abgebrochen.";
}
} else
{
switch(stringCode)
{
case enter_names_blocks_to_replace:
return "Please enter the names of the blocks that shall be replaced (* is wildcard).";
case blocks_will_be_replaced:
return "blocks will be replaced. Procede (J/N)?";
case enter_name_of_replace_block:
return "Please enter the name of the block with which to replace.";
case successfully_completed:
return "Successfully Completed.";
case no_input_or_canceled_by_user:
return "No input or canceled by user. Command is aborted.";
case no_input:
return "No input. Command is aborted.";
}
}
return "";
}
}
}