Skip to content

Commit

Permalink
Re-added OneItem translation
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoDjango committed Jan 14, 2023
1 parent 46121e7 commit d2fa0ba
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions BepInEx/plugins/StorageInfo/Languages/English.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ContainerEmpty": "empty",
"ContainerFull": "full",
"ContainerOneItem": "1 item (not full)",
"ContainerNonempty": "{0} items (not full)"
}
1 change: 1 addition & 0 deletions BepInEx/plugins/StorageInfo/Languages/French.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ContainerEmpty": "vide",
"ContainerFull": "plein",
"ContainerOneItem": "1 objet (pas plein)",
"ContainerNonempty": "{0} objets (pas plein)"
}
1 change: 1 addition & 0 deletions BepInEx/plugins/StorageInfo/Languages/German.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ContainerEmpty": "Leer",
"ContainerFull": "Voll",
"ContainerOneItem": "1 Gegenstand",
"ContainerNonempty": "{0} Gegenstände"
}
1 change: 1 addition & 0 deletions BepInEx/plugins/StorageInfo/Languages/Polish.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ContainerEmpty": "puste",
"ContainerFull": "pełne",
"ContainerOneItem": "1 przedmiot (nie pełne)",
"ContainerNonempty": "{0} przedmioty/ów (nie pełne)"
}
1 change: 1 addition & 0 deletions BepInEx/plugins/StorageInfo/Languages/Russian.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ContainerEmpty": "Пусто",
"ContainerFull": "Полностью заполнено",
"ContainerOneItem": "Заполнено 1 предметом",
"ContainerNonempty": "Заполнено {0} предметами"
}
Binary file modified BepInEx/plugins/StorageInfo/StorageInfo.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions HarmonyPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public static void SetCustomInteractText(ItemsContainer itemStorage)
customSubscriptText = "ContainerFull".Translate();
}

else if (itemStorage.count == 1)
{
customSubscriptText = "ContainerOneItem".Translate();
}

else
{
customSubscriptText = "ContainerNonempty".FormatTranslate(itemStorage.count.ToString());
Expand Down
2 changes: 1 addition & 1 deletion ModPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class ModPlugin : BaseUnityPlugin
{
private const string modGUID = "Dingo.SN.StorageInfo";
internal const string modName = "Storage Info";
private const string modVersion = "2.0.0";
private const string modVersion = "2.0.1";

internal static void LogMessage(string message)
{
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyVersion("2.0.1.0")]
[assembly: AssemblyFileVersion("2.0.1.0")]

0 comments on commit d2fa0ba

Please sign in to comment.