diff --git a/OSCCollar/ConsoleOutput.cs b/OSCCollar/ConsoleOutput.cs index 155928a..4f6c165 100644 --- a/OSCCollar/ConsoleOutput.cs +++ b/OSCCollar/ConsoleOutput.cs @@ -25,8 +25,8 @@ public partial class OSCCollar configTable.AddRow("HTTP-Port", this.OscQueryService?.TcpPort.ToString() ?? ""); configTable.AddRow("CalibrationX", $"{this._config.CalibrationX}"); configTable.AddRow("CalibrationY", $"{this._config.CalibrationY}"); - configTable.AddRow("Stretch Deadzone", $"{this._config.WalkStretchDeadzone}"); - configTable.AddRow("Run Stretch", $"{this._config.RunStretch}"); + configTable.AddRow(Resources.OSCCollar_ConsoleOutput_StretchDeadzone, $"{this._config.WalkStretchDeadzone}"); + configTable.AddRow(Resources.OSCCollar_ConsoleOutput_RunStretch, $"{this._config.RunStretch}"); Table variableTable = new Table(); variableTable.AddColumn("OscVar"); @@ -41,9 +41,9 @@ public partial class OSCCollar variableTable.AddRow("GPS 1", ""); variableTable.AddRow("GPS 2", ""); variableTable.AddRow("GPS 3", ""); - variableTable.AddRow("Position Vector", ""); - variableTable.AddRow("Leash Stretch", ""); - variableTable.AddRow("Movement Vector", ""); + variableTable.AddRow(Resources.OSCCollar_ConsoleOutput_PositionVector, ""); + variableTable.AddRow(Resources.OSCCollar_ConsoleOutput_LeashStretch, ""); + variableTable.AddRow(Resources.OSCCollar_ConsoleOutput_MovementVector, ""); variableTable.AddRow("CalibrationX", ""); variableTable.AddRow("CalibrationY", ""); @@ -51,7 +51,7 @@ public partial class OSCCollar { while (true) { - variableTable.Rows.Update(0, 1, new Text($"{(_allowMoving ? "enabled" : "disabled")}")); + variableTable.Rows.Update(0, 1, new Text($"{(_allowMoving ? Resources.OSCCollar_ConsoleOutput_StatusEnabled : Resources.OSCCollar_ConsoleOutput_StatusDisabled)}")); variableTable.Rows.Update(1, 1, new Text($"{_gps1.Distance:00.00000}")); variableTable.Rows.Update(2, 1, new Text($"{_gps2.Distance:00.00000}")); variableTable.Rows.Update(3, 1, new Text($"{_gps3.Distance:00.00000}")); diff --git a/OSCCollar/OSCCollar.cs b/OSCCollar/OSCCollar.cs index f7ed980..6e02168 100644 --- a/OSCCollar/OSCCollar.cs +++ b/OSCCollar/OSCCollar.cs @@ -58,11 +58,11 @@ public partial class OSCCollar this.SetupGPSVars(); if (!skipSetup) { - Console.WriteLine("Position your GPS receivers:"); - Console.WriteLine($"GPS 1 x: {_gps1.X} y: {_gps1.Y}"); - Console.WriteLine($"GPS 2 x: {_gps2.X} y: {_gps2.Y}"); - Console.WriteLine($"GPS 3 x: {_gps3.X} y: {_gps3.Y}"); - Console.WriteLine($"Radius of each receiver (sphere): {this._config.Radius * 2}"); + Console.WriteLine(Resources.OSCCollar_OSCCollar_Position_your_GPS_receivers_); + Console.WriteLine(Resources.OSCCollar_OSCCollar_GPS_1_position, _gps1.X, _gps1.Y); + Console.WriteLine(Resources.OSCCollar_OSCCollar_GPS_2_position, _gps2.X, _gps2.Y); + Console.WriteLine(Resources.OSCCollar_OSCCollar_GPS_3_position, _gps3.X, _gps3.Y); + Console.WriteLine(Resources.OSCCollar_OSCCollar_Radius_of_each_receiver__sphere, this._config.Radius * 2); Console.ReadKey(); } diff --git a/OSCCollar/OSCCollar.csproj.DotSettings.user b/OSCCollar/OSCCollar.csproj.DotSettings.user new file mode 100644 index 0000000..e098093 --- /dev/null +++ b/OSCCollar/OSCCollar.csproj.DotSettings.user @@ -0,0 +1,2 @@ + + 1D3DEA0F-4D6A-473D-AD77-834F4BC6FB02/f:Resources.resx \ No newline at end of file diff --git a/OSCCollar/Resources.Designer.cs b/OSCCollar/Resources.Designer.cs index 5add5e3..3565696 100644 --- a/OSCCollar/Resources.Designer.cs +++ b/OSCCollar/Resources.Designer.cs @@ -100,5 +100,122 @@ namespace VRC_Console { return ResourceManager.GetString("alligatorFont", resourceCulture); } } + + /// + /// Looks up a localized string similar to Leash Stretch. + /// + internal static string OSCCollar_ConsoleOutput_LeashStretch { + get { + return ResourceManager.GetString("OSCCollar_ConsoleOutput_LeashStretch", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Movement Vector. + /// + internal static string OSCCollar_ConsoleOutput_MovementVector { + get { + return ResourceManager.GetString("OSCCollar_ConsoleOutput_MovementVector", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Position Vector. + /// + internal static string OSCCollar_ConsoleOutput_PositionVector { + get { + return ResourceManager.GetString("OSCCollar_ConsoleOutput_PositionVector", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Run Stretch. + /// + internal static string OSCCollar_ConsoleOutput_RunStretch { + get { + return ResourceManager.GetString("OSCCollar_ConsoleOutput_RunStretch", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Status. + /// + internal static string OSCCollar_ConsoleOutput_Status { + get { + return ResourceManager.GetString("OSCCollar_ConsoleOutput_Status", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to disabled. + /// + internal static string OSCCollar_ConsoleOutput_StatusDisabled { + get { + return ResourceManager.GetString("OSCCollar_ConsoleOutput_StatusDisabled", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to enabled. + /// + internal static string OSCCollar_ConsoleOutput_StatusEnabled { + get { + return ResourceManager.GetString("OSCCollar_ConsoleOutput_StatusEnabled", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Stretch Deadzone. + /// + internal static string OSCCollar_ConsoleOutput_StretchDeadzone { + get { + return ResourceManager.GetString("OSCCollar_ConsoleOutput_StretchDeadzone", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to GPS 1 x: {0} y: {1}. + /// + internal static string OSCCollar_OSCCollar_GPS_1_position { + get { + return ResourceManager.GetString("OSCCollar_OSCCollar_GPS_1_position", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to GPS 2 x: {0} y: {1}. + /// + internal static string OSCCollar_OSCCollar_GPS_2_position { + get { + return ResourceManager.GetString("OSCCollar_OSCCollar_GPS_2_position", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to GPS 3 x: {0} y: {1}. + /// + internal static string OSCCollar_OSCCollar_GPS_3_position { + get { + return ResourceManager.GetString("OSCCollar_OSCCollar_GPS_3_position", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Position your GPS receivers:. + /// + internal static string OSCCollar_OSCCollar_Position_your_GPS_receivers_ { + get { + return ResourceManager.GetString("OSCCollar_OSCCollar_Position_your_GPS_receivers_", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Radius of each receiver (sphere): {0}. + /// + internal static string OSCCollar_OSCCollar_Radius_of_each_receiver__sphere { + get { + return ResourceManager.GetString("OSCCollar_OSCCollar_Radius_of_each_receiver__sphere", resourceCulture); + } + } } } diff --git a/OSCCollar/Resources.de.resx b/OSCCollar/Resources.de.resx new file mode 100644 index 0000000..6714192 --- /dev/null +++ b/OSCCollar/Resources.de.resx @@ -0,0 +1,53 @@ + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GPS 1 x: {0} y: {1} + + + GPS 2 x: {0} y: {1} + + + GPS 3 x: {0} y: {1} + + + Platziere GPS-Empfänger: + + + Radius der Empfänger: {0} + + + Dehnung Leine + + + Bewegungs Vektor + + + Positions Vektor + + + Dehnung Rennen + + + Status + + + aktiv + + + ausgeschaltet + + + Dehnung Untergrenze + + \ No newline at end of file diff --git a/OSCCollar/Resources.en.resx b/OSCCollar/Resources.en.resx new file mode 100644 index 0000000..8ca060b --- /dev/null +++ b/OSCCollar/Resources.en.resx @@ -0,0 +1,53 @@ + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Radius of each receiver (sphere): {0} + + + Position your GPS receivers: + + + GPS 3 x: {0} y: {1} + + + GPS 2 x: {0} y: {1} + + + GPS 1 x: {0} y: {1} + + + Leash Stretch + + + Position Vector + + + Movement Vector + + + Stretch Deadzone + + + Status + + + Run Stretch + + + disabled + + + enabled + + \ No newline at end of file diff --git a/OSCCollar/Resources.resx b/OSCCollar/Resources.resx index 6526475..763fced 100644 --- a/OSCCollar/Resources.resx +++ b/OSCCollar/Resources.resx @@ -21,4 +21,43 @@ Alligator.flf;System.String, mscorlib, Version=4.0.0.0, Culture=neutral + + Position your GPS receivers: + + + GPS 1 x: {0} y: {1} + + + GPS 2 x: {0} y: {1} + + + GPS 3 x: {0} y: {1} + + + Radius of each receiver (sphere): {0} + + + Movement Vector + + + Position Vector + + + Status + + + Stretch Deadzone + + + Run Stretch + + + Leash Stretch + + + enabled + + + disabled + \ No newline at end of file