Skip to content

Commit

Permalink
Moving more strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Apr 2, 2024
1 parent 138834f commit 37d6921
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 25 deletions.
50 changes: 25 additions & 25 deletions CS2Interface/CS/GameData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,31 +95,31 @@ private static async Task DoUpdate() {
internal static string? GetOriginName(uint origin) {
// https://raw.githubusercontent.com/SteamDatabase/SteamTracking/b5cba7a22ab899d6d423380cff21cec707b7c947/ItemSchema/CounterStrikeGlobalOffensive.json
return origin switch {
0 => "Timed Drop",
1 => "Achievement",
2 => "Purchased",
3 => "Traded",
4 => "Crafted",
5 => "Store Promotion",
6 => "Gifted",
7 => "Support Granted",
8 => "Found in Crate",
9 => "Earned",
10 => "Third-Party Promotion",
11 => "Wrapped Gift",
12 => "Halloween Drop",
13 => "Steam Purchase",
14 => "Foreign Item",
15 => "CD Key",
16 => "Collection Reward",
17 => "Preview Item",
18 => "Steam Workshop Contribution",
19 => "Periodic Score Reward",
20 => "Recycling",
21 => "Tournament Drop",
22 => "Stock Item",
23 => "Quest Reward",
24 => "Level Up Reward",
0 => Strings.ItemOrigin0, // Timed Drop
1 => Strings.ItemOrigin1, // Achievement
2 => Strings.ItemOrigin2, // Purchased
3 => Strings.ItemOrigin3, // Traded
4 => Strings.ItemOrigin4, // Crafted
5 => Strings.ItemOrigin5, // Store Promotion
6 => Strings.ItemOrigin6, // Gifted
7 => Strings.ItemOrigin7, // Support Granted
8 => Strings.ItemOrigin8, // Found in Crate
9 => Strings.ItemOrigin9, // Earned
10 => Strings.ItemOrigin10, // "Third-Party Promotion
11 => Strings.ItemOrigin11, // "Wrapped Gift
12 => Strings.ItemOrigin12, // "Halloween Drop
13 => Strings.ItemOrigin13, // "Steam Purchase
14 => Strings.ItemOrigin14, // "Foreign Item
15 => Strings.ItemOrigin15, // "CD Key
16 => Strings.ItemOrigin16, // "Collection Reward
17 => Strings.ItemOrigin17, // "Preview Item
18 => Strings.ItemOrigin18, // "Steam Workshop Contribution
19 => Strings.ItemOrigin19, // "Periodic Score Reward
20 => Strings.ItemOrigin20, // "Recycling
21 => Strings.ItemOrigin21, // "Tournament Drop
22 => Strings.ItemOrigin22, // "Stock Item
23 => Strings.ItemOrigin23, // "Quest Reward
24 => Strings.ItemOrigin24, // "Level Up Reward
_ => null
};
}
Expand Down
100 changes: 100 additions & 0 deletions CS2Interface/Localization/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -297,4 +297,104 @@
<value>No bots are available</value>
<comment/>
</data>
<data name="ItemOrigin0" xml:space="preserve">
<value>Timed Drop</value>
<comment/>
</data>
<data name="ItemOrigin1" xml:space="preserve">
<value>Achievement</value>
<comment/>
</data>
<data name="ItemOrigin2" xml:space="preserve">
<value>Purchased</value>
<comment/>
</data>
<data name="ItemOrigin3" xml:space="preserve">
<value>Traded</value>
<comment/>
</data>
<data name="ItemOrigin4" xml:space="preserve">
<value>Crafted</value>
<comment/>
</data>
<data name="ItemOrigin5" xml:space="preserve">
<value>Store Promotion</value>
<comment/>
</data>
<data name="ItemOrigin6" xml:space="preserve">
<value>Gifted</value>
<comment/>
</data>
<data name="ItemOrigin7" xml:space="preserve">
<value>Support Granted</value>
<comment/>
</data>
<data name="ItemOrigin8" xml:space="preserve">
<value>Found in Crate</value>
<comment/>
</data>
<data name="ItemOrigin9" xml:space="preserve">
<value>Earned</value>
<comment/>
</data>
<data name="ItemOrigin10" xml:space="preserve">
<value>Third-Party Promotion</value>
<comment/>
</data>
<data name="ItemOrigin11" xml:space="preserve">
<value>Wrapped Gift</value>
<comment/>
</data>
<data name="ItemOrigin12" xml:space="preserve">
<value>Halloween Drop</value>
<comment/>
</data>
<data name="ItemOrigin13" xml:space="preserve">
<value>Steam Purchase</value>
<comment/>
</data>
<data name="ItemOrigin14" xml:space="preserve">
<value>Foreign Item</value>
<comment/>
</data>
<data name="ItemOrigin15" xml:space="preserve">
<value>CD Key</value>
<comment/>
</data>
<data name="ItemOrigin16" xml:space="preserve">
<value>Collection Reward</value>
<comment/>
</data>
<data name="ItemOrigin17" xml:space="preserve">
<value>Preview Item</value>
<comment/>
</data>
<data name="ItemOrigin18" xml:space="preserve">
<value>Steam Workshop Contribution</value>
<comment/>
</data>
<data name="ItemOrigin19" xml:space="preserve">
<value>Periodic Score Reward</value>
<comment/>
</data>
<data name="ItemOrigin20" xml:space="preserve">
<value>Recycling</value>
<comment/>
</data>
<data name="ItemOrigin21" xml:space="preserve">
<value>Tournament Drop</value>
<comment/>
</data>
<data name="ItemOrigin22" xml:space="preserve">
<value>Stock Item</value>
<comment/>
</data>
<data name="ItemOrigin23" xml:space="preserve">
<value>Quest Reward</value>
<comment/>
</data>
<data name="ItemOrigin24" xml:space="preserve">
<value>Level Up Reward</value>
<comment/>
</data>
</root>

0 comments on commit 37d6921

Please sign in to comment.