-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathLoggingStrings.cs
More file actions
95 lines (67 loc) · 2.49 KB
/
LoggingStrings.cs
File metadata and controls
95 lines (67 loc) · 2.49 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
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
using PoGo.PokeMobBot.Logic.Common;
namespace PoGo.PokeMobBot.CLI.Models
{
public class LoggingStrings
{
private readonly ITranslation _translation;
internal string Attention;
internal string Berry;
internal string Debug;
internal string Egg;
internal string Error;
internal string Evolved;
internal string Farming;
internal string Info;
internal string Pkmn;
internal string Pokestop;
internal string Recycling;
internal string Transfered;
internal string Update;
public LoggingStrings(ITranslation translation)
{
_translation = translation;
}
internal void SetStrings()
{
Attention =
_translation?.GetTranslation(
TranslationString.LogEntryAttention) ?? "ATTENTION";
Berry =
_translation?.GetTranslation(
TranslationString.LogEntryBerry) ?? "BERRY";
Debug =
_translation?.GetTranslation(
TranslationString.LogEntryDebug) ?? "DEBUG";
Egg =
_translation?.GetTranslation(
TranslationString.LogEntryEgg) ?? "EGG";
Error =
_translation?.GetTranslation(
TranslationString.LogEntryError) ?? "ERROR";
Evolved =
_translation?.GetTranslation(
TranslationString.LogEntryEvolved) ?? "EVOLVED";
Farming =
_translation?.GetTranslation(
TranslationString.LogEntryFarming) ?? "FARMING";
Info =
_translation?.GetTranslation(
TranslationString.LogEntryInfo) ?? "INFO";
Pkmn =
_translation?.GetTranslation(
TranslationString.LogEntryPkmn) ?? "PKMN";
Pokestop =
_translation?.GetTranslation(
TranslationString.LogEntryPokestop) ?? "POKESTOP";
Recycling =
_translation?.GetTranslation(
TranslationString.LogEntryRecycling) ?? "RECYCLING";
Transfered =
_translation?.GetTranslation(
TranslationString.LogEntryTransfered) ?? "TRANSFERED";
Update =
_translation?.GetTranslation(
TranslationString.LogEntryUpdate) ?? "UPDATE";
}
}
}