From 5bf3fcfced5b36bc9bcf3ff9aa6c6ae1b23dec5a Mon Sep 17 00:00:00 2001 From: TagGodOnYT Date: Tue, 9 Jul 2024 12:13:24 -0500 Subject: [PATCH 1/2] added example translation --- Exiled.Example/Example.cs | 2 +- Exiled.Example/Translation.cs | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Exiled.Example/Translation.cs diff --git a/Exiled.Example/Example.cs b/Exiled.Example/Example.cs index d853da30b0..0f75995444 100644 --- a/Exiled.Example/Example.cs +++ b/Exiled.Example/Example.cs @@ -13,7 +13,7 @@ namespace Exiled.Example /// /// The example plugin. /// - public class Example : Plugin + public class Example : Plugin { /// /// Gets the only existing instance of this plugin. diff --git a/Exiled.Example/Translation.cs b/Exiled.Example/Translation.cs new file mode 100644 index 0000000000..0a17debc19 --- /dev/null +++ b/Exiled.Example/Translation.cs @@ -0,0 +1,20 @@ +// ----------------------------------------------------------------------- +// +// Copyright (c) Exiled Team. All rights reserved. +// Licensed under the CC BY-SA 3.0 license. +// +// ----------------------------------------------------------------------- + +namespace Exiled.Example +{ + using Exiled.API.Interfaces; + + /// + public sealed class Translation : ITranslation + { + /// + /// Some Text That Goes In Your Translations Configuration File. + /// + public string ExampleTranslation { get; set; } = "Example Translation Text"; + } +} \ No newline at end of file From c9c2e1e0dd53cfd9557d6d68dfc24fa1e3916948 Mon Sep 17 00:00:00 2001 From: TagGodOnYT <61746994+TagGodOnYT@users.noreply.github.com> Date: Thu, 11 Jul 2024 01:50:36 -0500 Subject: [PATCH 2/2] Fixed Error --- Exiled.Example/Translation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Exiled.Example/Translation.cs b/Exiled.Example/Translation.cs index 0a17debc19..b0bc70bdf7 100644 --- a/Exiled.Example/Translation.cs +++ b/Exiled.Example/Translation.cs @@ -13,8 +13,8 @@ namespace Exiled.Example public sealed class Translation : ITranslation { /// - /// Some Text That Goes In Your Translations Configuration File. + /// Gets or Sets Some Text That Goes In Your Translations Configuration File. /// public string ExampleTranslation { get; set; } = "Example Translation Text"; } -} \ No newline at end of file +}