Added multilanguage support 84/302184/3 accepted/tizen_unified_riscv accepted/tizen/unified/20231205.024715 accepted/tizen/unified/riscv/20231220.131727
authoramitpatel <amit.patel@samsung.com>
Fri, 1 Dec 2023 13:33:33 +0000 (19:03 +0530)
committeramitpatel <amit.patel@samsung.com>
Fri, 1 Dec 2023 14:12:33 +0000 (19:42 +0530)
Change-Id: Id21d8aa091765c858f4ebc48246e4fe2bcc336d3

Notifications/Common/MultiResourceManager.cs [new file with mode: 0644]
Notifications/Notifications.cs
Notifications/Notifications.csproj
Notifications/TextResources/Resources.Designer.cs [new file with mode: 0644]
Notifications/TextResources/Resources.en-US.resx [new file with mode: 0644]
Notifications/TextResources/Resources.ko-KR.resx [new file with mode: 0644]
Notifications/TextResources/Resources.resx [new file with mode: 0644]
Notifications/Views/BaseView.cs
Notifications/res/themes/dark.xaml
Notifications/res/themes/light.xaml
packaging/org.tizen.notifications-1.0.0.tpk

diff --git a/Notifications/Common/MultiResourceManager.cs b/Notifications/Common/MultiResourceManager.cs
new file mode 100644 (file)
index 0000000..d14121b
--- /dev/null
@@ -0,0 +1,26 @@
+using System.Globalization;
+using System.Reflection;
+using System.Resources;
+
+namespace Notifications.Common
+{
+    public class MultiResourceManager : ResourceManager
+    {
+        public MultiResourceManager(string baseName, Assembly assembly)
+            : base(baseName, assembly)
+        {
+        }
+
+        public override string GetString(string name)
+        {
+            return base.GetString(name)
+                ?? TextResources.Resources.ResourceManager.GetString(name);
+        }
+
+        public override string GetString(string name, CultureInfo culture)
+        {
+            return base.GetString(name, culture)
+                ?? TextResources.Resources.ResourceManager.GetString(name, culture);
+        }
+    }
+}
index 02c127fe700292e0ae5a257a5252be1f90543731..20fd0291fee190da6bb4f19efeb414ad352ce12a 100644 (file)
  * limitations under the License.
  */
 
+using System;
 using System.Collections.Generic;
+using System.Globalization;
 using Tizen.Applications;
 using Tizen.NUI;
 using Notifications.Common;
 
+using Tizen.NUI.BaseComponents;
+
 namespace Notifications
 {
     class Program : NUIApplication
@@ -39,6 +43,8 @@ namespace Notifications
         void Initialize()
         {
             Tizen.Log.Info(AppConstants.LogTag, "Program OnCreate");
+            SetupLanguage();
+
             window = Window.Instance;
             window.SetTransparency(true);
             List<Window.WindowOrientation> list = new List<Window.WindowOrientation>
@@ -93,6 +99,27 @@ namespace Notifications
             UpdateWindowPosition();
         }
 
+        private void SetupLanguage()
+        {
+            void SetLanguage()
+            {
+                try
+                {
+                    string language = Tizen.System.SystemSettings.LocaleLanguage.Replace("_", "-");
+                    var culture = CultureInfo.CreateSpecificCulture(language);
+                    CultureInfo.CurrentCulture = culture;
+                    TextResources.Resources.Culture = culture;
+                }
+                catch (Exception e)
+                {
+                    Tizen.Log.Debug(AppConstants.LogTag, "Setting Language failed" + e.Message);
+                }
+            }
+
+            MultilingualResourceManager = new MultiResourceManager("Notifications.TextResources.Resources", typeof(Resources).Assembly);
+            Tizen.System.SystemSettings.LocaleLanguageChanged += (s, e) => SetLanguage();
+            SetLanguage();
+        }
         protected override void OnAppControlReceived(AppControlReceivedEventArgs e)
         {
             base.OnAppControlReceived(e);
index ba62547b8c71d748bb582d0d320b6586234db2b4..e9d83319ed6cd4be37413102453662464d8d9a8b 100644 (file)
     <PackageReference Include="Tizen.NET" Version="11.0.0.17918" />
   </ItemGroup>
 
+  <ItemGroup>
+    <Compile Update="TextResources\Resources.Designer.cs">
+      <DesignTime>True</DesignTime>
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+  </ItemGroup>
+
+  <ItemGroup>
+    <EmbeddedResource Update="TextResources\Resources.en-US.resx">
+      <Generator>PublicResXFileCodeGenerator</Generator>
+    </EmbeddedResource>
+    <EmbeddedResource Update="TextResources\Resources.ko-KR.resx">
+      <Generator>PublicResXFileCodeGenerator</Generator>
+    </EmbeddedResource>
+    <EmbeddedResource Update="TextResources\Resources.resx">
+      <Generator>PublicResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+    </EmbeddedResource>
+  </ItemGroup>
+
   <ItemGroup>
     <None Update="res\themes\dark.xaml">
       <Generator>MSBuild:Compile</Generator>
diff --git a/Notifications/TextResources/Resources.Designer.cs b/Notifications/TextResources/Resources.Designer.cs
new file mode 100644 (file)
index 0000000..eeb3c13
--- /dev/null
@@ -0,0 +1,90 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.42000
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Notifications.TextResources {
+    using System;
+    
+    
+    /// <summary>
+    ///   A strongly-typed resource class, for looking up localized strings, etc.
+    /// </summary>
+    // This class was auto-generated by the StronglyTypedResourceBuilder
+    // class via a tool like ResGen or Visual Studio.
+    // To add or remove a member, edit your .ResX file then rerun ResGen
+    // with the /str option, or rebuild your VS project.
+    [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() {
+        }
+        
+        /// <summary>
+        ///   Returns the cached ResourceManager instance used by this class.
+        /// </summary>
+        [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("Notifications.TextResources.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+        
+        /// <summary>
+        ///   Overrides the current thread's CurrentUICulture property for all
+        ///   resource lookups using this strongly typed resource class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        public static global::System.Globalization.CultureInfo Culture {
+            get {
+                return resourceCulture;
+            }
+            set {
+                resourceCulture = value;
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to You don&apos;t have notifications.
+        /// </summary>
+        public static string IDS_ST_BODY_NO_NOTIFICATIONS_MSG {
+            get {
+                return ResourceManager.GetString("IDS_ST_BODY_NO_NOTIFICATIONS_MSG", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Clear All.
+        /// </summary>
+        public static string IDS_ST_BUTTON_CLEAR_ALL {
+            get {
+                return ResourceManager.GetString("IDS_ST_BUTTON_CLEAR_ALL", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Notifications.
+        /// </summary>
+        public static string IDS_ST_HEADER_NOTIFICATIONS {
+            get {
+                return ResourceManager.GetString("IDS_ST_HEADER_NOTIFICATIONS", resourceCulture);
+            }
+        }
+    }
+}
diff --git a/Notifications/TextResources/Resources.en-US.resx b/Notifications/TextResources/Resources.en-US.resx
new file mode 100644 (file)
index 0000000..2e09afe
--- /dev/null
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="IDS_ST_BODY_NO_NOTIFICATIONS_MSG" xml:space="preserve">
+    <value>You don't have notifications</value>
+  </data>
+  <data name="IDS_ST_BUTTON_CLEAR_ALL" xml:space="preserve">
+    <value>Clear All</value>
+  </data>
+  <data name="IDS_ST_HEADER_NOTIFICATIONS" xml:space="preserve">
+    <value>Notifications</value>
+  </data>
+</root>
\ No newline at end of file
diff --git a/Notifications/TextResources/Resources.ko-KR.resx b/Notifications/TextResources/Resources.ko-KR.resx
new file mode 100644 (file)
index 0000000..f74ef5c
--- /dev/null
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="IDS_ST_BODY_NO_NOTIFICATIONS_MSG" xml:space="preserve">
+    <value>알림이 없습니다</value>
+  </data>
+  <data name="IDS_ST_BUTTON_CLEAR_ALL" xml:space="preserve">
+    <value>클리어 올</value>
+  </data>
+  <data name="IDS_ST_HEADER_NOTIFICATIONS" xml:space="preserve">
+    <value>알림</value>
+  </data>
+</root>
\ No newline at end of file
diff --git a/Notifications/TextResources/Resources.resx b/Notifications/TextResources/Resources.resx
new file mode 100644 (file)
index 0000000..2e09afe
--- /dev/null
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <data name="IDS_ST_BODY_NO_NOTIFICATIONS_MSG" xml:space="preserve">
+    <value>You don't have notifications</value>
+  </data>
+  <data name="IDS_ST_BUTTON_CLEAR_ALL" xml:space="preserve">
+    <value>Clear All</value>
+  </data>
+  <data name="IDS_ST_HEADER_NOTIFICATIONS" xml:space="preserve">
+    <value>Notifications</value>
+  </data>
+</root>
\ No newline at end of file
index 4ed00504ca2a80db4f6817c389f949c6043eb783..8c82e07b036a3083d8a4c810d48c18de556fb8a3 100644 (file)
@@ -134,7 +134,7 @@ namespace Notifications.Views
             titleText = new TextLabel()
             {
                 StyleName = "TitleText",
-                Text = "Notifications",
+                TranslatableText = "IDS_ST_HEADER_NOTIFICATIONS",
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 VerticalAlignment = VerticalAlignment.Center,
             };
@@ -192,6 +192,7 @@ namespace Notifications.Views
             if (clearAllButton == null)
             {
                 clearAllButton = new Button("ClearAllButton");
+                clearAllButton.TextLabel.TranslatableText = "IDS_ST_BUTTON_CLEAR_ALL";
                 RelativeLayout.SetVerticalAlignment(clearAllButton, RelativeLayout.Alignment.Center);
                 RelativeLayout.SetHorizontalAlignment(clearAllButton, RelativeLayout.Alignment.End);
                 clearAllButton.SetBinding(Control.CommandProperty, "ClearAllNotificationsCommand");
@@ -206,7 +207,7 @@ namespace Notifications.Views
                 noNotificationsText = new TextLabel()
                 {
                     StyleName = "TitleText",
-                    Text = "You don't have notifications",
+                    TranslatableText = "IDS_ST_BODY_NO_NOTIFICATIONS_MSG",
                     WidthSpecification = LayoutParamPolicies.MatchParent,
                     HeightSpecification = LayoutParamPolicies.MatchParent,
                     HorizontalAlignment = HorizontalAlignment.Center,
@@ -216,6 +217,8 @@ namespace Notifications.Views
             Add(noNotificationsText);
         }
 
+   
+
         private bool isContentAvailable;
         public bool IsContentAvailable
         {
index cc25f7871eaa1a510c8eda72f0409d510574e378..c36f331d3c6d7b20a9b805820d9d4140666339ed 100644 (file)
@@ -31,7 +31,7 @@ Id="DarkTheme">
 
     <c:ButtonStyle x:Key="ClearAllButton" ThemeChangeSensitive="true" Size="150sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
         <c:ButtonStyle.Text>
-            <TextLabelStyle  FontFamily="BreezeSans" TextColor="#FF8A00" Text="Clear All" VerticalAlignment="Center" HorizontalAlignment="Center"/>
+            <TextLabelStyle  FontFamily="BreezeSans" TextColor="#FF8A00" VerticalAlignment="Center" HorizontalAlignment="Center"/>
         </c:ButtonStyle.Text>
     </c:ButtonStyle>
 
index be3f645c42844df7cb6656a797149f9392e5a642..672c5b0df1ab26f9ea0bfb549eb9ddecf3f1de45 100644 (file)
@@ -31,7 +31,7 @@ Id="LightTheme">
 
     <c:ButtonStyle x:Key="ClearAllButton" ThemeChangeSensitive="true" Size="150sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
         <c:ButtonStyle.Text>
-            <TextLabelStyle  FontFamily="BreezeSans" TextColor="#FF6200" Text="Clear All" VerticalAlignment="Center" HorizontalAlignment="Center"/>
+            <TextLabelStyle  FontFamily="BreezeSans" TextColor="#FF6200" VerticalAlignment="Center" HorizontalAlignment="Center"/>
         </c:ButtonStyle.Text>
     </c:ButtonStyle>
 
index 8e47f9cd590a6b3f5a0c86406dcd1ca39b579c92..4fa35bb2c0f4f2586e9181fdc3dfe3a8ca98ee33 100644 (file)
Binary files a/packaging/org.tizen.notifications-1.0.0.tpk and b/packaging/org.tizen.notifications-1.0.0.tpk differ