[CLOSED] [#248] ext:DateField language problem

  1. #1

    [CLOSED] [#248] ext:DateField language problem

    ext:DateField lunguage is always English , how to set other language, such as Chinese?
    <ext:DateField ID="DateField1" Format="yyyy-MM-dd"   runat="server" InputWidth="90" LabelWidth="35"></ext:DateField>
    Last edited by Daniil; May 30, 2013 at 10:12 AM. Reason: [CLOSED]
  2. #2
    Hi @hdsoso,

    You can localize an entire page setting a ResourceManager's Locale property.
    <ext:ResourceManager runat="server" Locale="zh-CN" />
    It makes the big localization job. Though you might need to correct something.

    Or you can always use a DateField's properties to localize a specific component.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @hdsoso,

    You can localize an entire page setting a ResourceManager's Locale property.
    <ext:ResourceManager runat="server" Locale="zh-CN" />
    It makes the big localization job. Though you might need to correct something.

    Or you can always use a DateField's properties to localize a specific component.
    I have a try
    <ext:ResourceManager runat="server" Locale="zh-CN" ></ext:ResourceManager>
    or
    <ext:DateField ID="DateField1" Locale="zh-CN"   Format="yyyy-MM-dd"   runat="server" InputWidth="90" LabelWidth="35"></ext:DateField>
    but the week language is also English
    Click image for larger version. 

Name:	QQ截图20130524091813.png 
Views:	18 
Size:	7.7 KB 
ID:	6262
  4. #4
    I think this bug is reported here.
    http://www.sencha.com/forum/showthread.php?262900

    You can override it. Please see the script in the page's <head>.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    
        <script>
            Ext.onReady(function () {
                Ext.Date.dayNames = [ '1', '2', '3', '4', '5', '6', '7' ]; // specify the correct text here
                        
                Ext.picker.Date.override({
                    dayNames: Ext.Date.dayNames
                });
            });
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" Locale="zh-CN" />
                 
            <ext:DatePicker runat="server" />
            <ext:DateField runat="server" />
        </form>
    </body>
    </html>
    Created an Issue to track this defect.
    https://github.com/extnet/Ext.NET/issues/248
    Last edited by Daniil; May 24, 2013 at 4:51 AM.
  5. #5
    It has been fixed in SVN and will go to the next release (v2.2.1 or v2.3).

Similar Threads

  1. Problem with Datefield
    By xcream in forum 1.x Help
    Replies: 0
    Last Post: May 30, 2012, 8:14 AM
  2. DateField Problem
    By awar in forum 1.x Help
    Replies: 2
    Last Post: Aug 20, 2011, 3:57 AM
  3. [CLOSED] [1.0] Regional and Language Settings Problem
    By kemalyigit in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 08, 2010, 8:52 AM
  4. [0.8.2] Problem with datefield
    By plykkegaard in forum 1.x Help
    Replies: 0
    Last Post: Jan 20, 2010, 5:13 PM
  5. [CLOSED] Datefield - change language
    By Sharon in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 25, 2009, 6:59 AM

Posting Permissions