From: Wootak Jung Date: Thu, 29 Sep 2022 06:03:51 +0000 (+0900) Subject: Add multi language support X-Git-Tag: accepted/tizen/unified/20221005.090825~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d37d485dbcfd15eb6391951c132d2845ec76f5ad;p=profile%2Fiot%2Fapps%2Fdotnet%2Fsetting-bluetooth.git Add multi language support Change-Id: I853c6096330971fc4a8449fff0a4ed2e5cb1000a Signed-off-by: Wootak Jung --- diff --git a/SettingBluetooth/SettingBluetooth/WidgetSettingBluetooth.cs b/SettingBluetooth/SettingBluetooth/WidgetSettingBluetooth.cs index 57074cb..d227bc9 100644 --- a/SettingBluetooth/SettingBluetooth/WidgetSettingBluetooth.cs +++ b/SettingBluetooth/SettingBluetooth/WidgetSettingBluetooth.cs @@ -7,6 +7,7 @@ using Tizen.NUI.BaseComponents; using Tizen.NUI.Components; using Tizen.Network.Bluetooth; using Tizen; +using SettingBluetooth.res.locale; namespace SettingBluetooth { @@ -81,7 +82,7 @@ namespace SettingBluetooth }, }; - CreateItems(rootContent, "Bluetooth", null, false, true); + CreateItems(rootContent, Resources.IDS_BT_BODY_BLUETOOTH, null, false, true); try { diff --git a/SettingBluetooth/SettingBluetooth/res/locale/Resources.Designer.cs b/SettingBluetooth/SettingBluetooth/res/locale/Resources.Designer.cs new file mode 100644 index 0000000..2f205a5 --- /dev/null +++ b/SettingBluetooth/SettingBluetooth/res/locale/Resources.Designer.cs @@ -0,0 +1,108 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 도구를 사용하여 생성되었습니다. +// 런타임 버전:4.0.30319.42000 +// +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 +// 이러한 변경 내용이 손실됩니다. +// +//------------------------------------------------------------------------------ + +namespace SettingBluetooth.res.locale { + using System; + + + /// + /// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. + /// + // 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder + // 클래스에서 자동으로 생성되었습니다. + // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 ResGen을 + // 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SettingBluetooth.res.locale.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을 + /// 재정의합니다. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// 과(와) 유사한 지역화된 문자열을 찾습니다. + /// + public static string IDS_BT_BODY_AVAILABLE_DEVICES { + get { + return ResourceManager.GetString("IDS_BT_BODY_AVAILABLE_DEVICES", resourceCulture); + } + } + + /// + /// 과(와) 유사한 지역화된 문자열을 찾습니다. + /// + public static string IDS_BT_BODY_BLUETOOTH { + get { + return ResourceManager.GetString("IDS_BT_BODY_BLUETOOTH", resourceCulture); + } + } + + /// + /// 과(와) 유사한 지역화된 문자열을 찾습니다. + /// + public static string IDS_BT_BODY_SCANNING_FOR_DEVICES_ING { + get { + return ResourceManager.GetString("IDS_BT_BODY_SCANNING_FOR_DEVICES_ING", resourceCulture); + } + } + + /// + /// 과(와) 유사한 지역화된 문자열을 찾습니다. + /// + public static string IDS_BT_SK_SCAN { + get { + return ResourceManager.GetString("IDS_BT_SK_SCAN", resourceCulture); + } + } + + /// + /// 과(와) 유사한 지역화된 문자열을 찾습니다. + /// + public static string IDS_BT_SK_STOP { + get { + return ResourceManager.GetString("IDS_BT_SK_STOP", resourceCulture); + } + } + } +} diff --git a/SettingBluetooth/SettingBluetooth/res/locale/Resources.en.resx b/SettingBluetooth/SettingBluetooth/res/locale/Resources.en.resx new file mode 100644 index 0000000..df03170 --- /dev/null +++ b/SettingBluetooth/SettingBluetooth/res/locale/Resources.en.resx @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Available devices + + + Bluetooth + + + Scanning for devices... + + + Scan + + + Stop + + \ No newline at end of file diff --git a/SettingBluetooth/SettingBluetooth/res/locale/Resources.ko-KR.resx b/SettingBluetooth/SettingBluetooth/res/locale/Resources.ko-KR.resx new file mode 100644 index 0000000..5b425a5 --- /dev/null +++ b/SettingBluetooth/SettingBluetooth/res/locale/Resources.ko-KR.resx @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 연결 가능한 디바이스 + + + 블루투스 + + + 디바이스 찾는 중... + + + 찾기 + + + 중지 + + \ No newline at end of file diff --git a/SettingBluetooth/SettingBluetooth/res/locale/Resources.resx b/SettingBluetooth/SettingBluetooth/res/locale/Resources.resx new file mode 100644 index 0000000..7153687 --- /dev/null +++ b/SettingBluetooth/SettingBluetooth/res/locale/Resources.resx @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + + + + + + + + + + + + + \ No newline at end of file