[CLOSED] [1.6] Multicombo localization issue

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] [1.6] Multicombo localization issue

    Hello,
    I have an issue with a localized multicombo; a local resource file pattern for the specific page was adopted.

    the code:

    <ext:MultiCombo runat="server" ID="mcState">
      <Items>
          <ext:ListItem Text="text 1" Value="value text 1" meta:resourcekey="ListItem1Resource"/>
          <ext:ListItem Text="text 2" Value="value text 2" meta:resourcekey="ListItem2Resource"/>
          <ext:ListItem Text="text 3" Value="value text 3" meta:resourcekey="ListItem3Resource"/>
      </Items>
    </ext:MultiCombo>
    the issue:

    in the resx file, I had to declare both text and value for every resource key, otherwise the value is overriden by the localized text.

    further more, the first listitem's value is always overriden by the text value, even if value attribute is localized in the resource file.

    I checked the resx file and it looks ok...

    Many thanks
    Last edited by Baidaly; Feb 22, 2013 at 3:56 AM. Reason: [CLOSED]
  2. #2
    Can you check with standard DropDownList?
    <asp:DropDownList runat="server">
                <asp:ListItem Text="text 1" Value="value text 1" meta:resourcekey="ListItem1Resource"/>
                <asp:ListItem Text="text 2" Value="value text 2" meta:resourcekey="ListItem2Resource"/>
                <asp:ListItem Text="text 3" Value="value text 3" meta:resourcekey="ListItem3Resource"/>
            </asp:DropDownList>
  3. #3
    Hi Vladimir,

    I checked with a standard dropdownlist and it works, here is the rendered output:

    <select name="mcStato" id="mcdState">
    	<option value="value text 1">text 1 localized</option>
    	<option value="value text 2">text 2 localized</option>
    	<option value="value text 3">text 3 localized</option>
    </select>
    In the multicombo first item has value "text 1 localized" instead of "value text 1".
    if I omit Value localization all "Value" attribute take "Text" attribute values.
  4. #4
    Hello!

    Couldn't reproduce. Have tried the following:

    ExtNetTest.aspx

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <html>
    <head runat="server">
    </head>
    <body>
        <form id="Form1" runat="server">
            
        <ext:ResourceManager runat="server" />
            <ext:MultiCombo runat="server" ID="mcState">
              <Items>
                  <ext:ListItem Text="text 1" Value="value text 1" meta:resourcekey="ListItem1Resource"/>
                  <ext:ListItem Text="text 2" Value="value text 2" meta:resourcekey="ListItem2Resource"/>
                  <ext:ListItem Text="text 3" Value="value text 3" meta:resourcekey="ListItem3Resource"/>
              </Items>
            </ext:MultiCombo>
        </form>
    </body>
    </html>
    ~/App_LocalResources/ExtNetTest.aspx.resx

    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <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="ListItem1Resource.Text" xml:space="preserve">
        <value>test</value>
      </data>
      <data name="ListItem2Resource.Text" xml:space="preserve">
        <value>test2</value>
      </data>
      <data name="ListItem3Resource.Text" xml:space="preserve">
        <value>test3</value>
      </data>
    </root>
  5. #5
    Hi Baidaly,
    I tested your sample and it works; so after further investigating I found that the problem occurs when value and text strings are the same, as in my real code.
    You can try with your example, just modify the multicombo and resx file this way:

     <ext:MultiCombo runat="server" ID="mcState">
              <Items>
                  <ext:ListItem Text="In Compilazione" Value="In Compilazione" meta:resourcekey="ListItem1Resource"/>
                  <ext:ListItem Text="In Attesa" Value="In Attesa" meta:resourcekey="ListItem2Resource"/>
                  <ext:ListItem Text="Approvato" Value="Approvato" meta:resourcekey="ListItem3Resource"/>
              </Items>
            </ext:MultiCombo>
    In my project I have 3 resx files: one for it-IT language, one for en-US language, and the fallback resource, where localized strings are in english as well. If client has no italian or no en-US language selected, then fallback resource is used.

    your modified resx file should be like this:

    it-IT resx:

    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <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="ListItem1Resource.Text" xml:space="preserve">
        <value>In Compilazione</value>
      </data>
      <data name="ListItem2Resource.Text" xml:space="preserve">
        <value>In Attesa</value>
      </data>
      <data name="ListItem3Resource.Text" xml:space="preserve">
        <value>Approvato</value>
      </data>
    </root>
    en-US resx:

    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <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="ListItem1Resource.Text" xml:space="preserve">
        <value>Not Compiled</value>
      </data>
      <data name="ListItem2Resource.Text" xml:space="preserve">
        <value>In Approval</value>
      </data>
      <data name="ListItem3Resource.Text" xml:space="preserve">
        <value>Approved</value>
      </data>
    </root>
    fallback resx file is the same as en-US.
    When looking at the output code with client in en-US language, multicombo is rendered this way:


    <script type="text/javascript">
    	//<![CDATA[
    		Ext.net.ResourceMgr.init({id:"ResourceManager1",BLANK_IMAGE_URL:"/testextnet/WebResource.axd?d=mHns_zf9iA51vnwU4KqPOAmQneWZXn01TQCpnSzVe6oaTM52HCu6-K0zG1vTzEW5H79Ly_TtEKuZW9i3aS23MXP15X2uCClu0-d0M_ORfoA7_bIVn6GycJDX4zzx-9WnxVBFfqxJmxkXwa1BFh7A9s7CYFM1&amp;t=634916295103582958",aspForm:"form1",theme:"gray",appName:"testextnet"});Ext.onReady(function(){Ext.QuickTips.init();new Ext.net.MultiCombo({id:"mcState",renderTo:"mcState_Container",displayField:"text",hiddenName:"mcState_Value",mode:"local",queryDelay:10,triggerAction:"all",valueField:"value",store:new Ext.data.SimpleStore({fields:["text","value"],data :[["Not Compiled","Not Compiled"],["In Approval","In Approval"],["Approved","Approved"]]}),submitValue:true});});
    	//]]>
    	</script>
    As you can see, your resx file doesn't explicitly declare resource value for the "Value" attribute, and they are all overriden by the Text attribute.
    I still don't understand why, in my production code, even after explicitly declaring "Value" values in my resx files, the first listitem behaves this way (text string overrides value string).
    If it can point you to the right direction, the test with same values with the asp DropDownList, as suggested by Vladimir, works perfectly.
    Any idea? Thanks again!
    Last edited by lapix; Feb 20, 2013 at 5:57 PM.
  6. #6
    I couldn't reproduce. I've tried the following code:

    <%@ Page Language="C#" UICulture="en-US" Culture="en-US"  %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
        <title>Ext.NET Examples</title>
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:MultiCombo runat="server" ID="mcState">
             <Items>
                 <ext:ListItem Text="In Compilazione" Value="In Compilazione" meta:resourcekey="ListItem1Resource"/>
                 <ext:ListItem Text="In Attesa" Value="In Attesa" meta:resourcekey="ListItem2Resource"/>
                 <ext:ListItem Text="Approvato" Value="Approvato" meta:resourcekey="ListItem3Resource"/>
             </Items>
           </ext:MultiCombo>
        </form>
    </body>
    </html>
    ExtNetTest.aspx.resx
    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <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="ListItem1Resource.Text" xml:space="preserve">
        <value>test</value>
      </data>
      <data name="ListItem2Resource.Text" xml:space="preserve">
        <value>test2</value>
      </data>
      <data name="ListItem3Resource.Text" xml:space="preserve">
        <value>test3</value>
      </data>
    </root>
    ExtNetTest.aspx.it-IT.resx
    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <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="ListItem1Resource.Text" xml:space="preserve">
        <value>In Compilazione</value>
      </data>
      <data name="ListItem2Resource.Text" xml:space="preserve">
        <value>In Attesa</value>
      </data>
      <data name="ListItem3Resource.Text" xml:space="preserve">
        <value>Approvato</value>
      </data>
    </root>
    ExtNetTest.aspx.en-US.resx
    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <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="ListItem1Resource.Text" xml:space="preserve">
        <value>Not Compiled</value>
      </data>
      <data name="ListItem2Resource.Text" xml:space="preserve">
        <value>In Approval</value>
      </data>
      <data name="ListItem3Resource.Text" xml:space="preserve">
        <value>Approved</value>
      </data>
    </root>
  7. #7
    In my web.config I have this setting for globalization, I think that in your example culture is alwys set to en-US:

    <globalization culture="auto" uiCulture="auto" enableClientCulture="auto"/>
    Also your fallback resource file (the first one) should be same as en-US resx file, yours has different values:

    ExtNetTest.aspx.resx
    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <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="ListItem1Resource.Text" xml:space="preserve">
        <value>Not Compiled</value>
      </data>
      <data name="ListItem2Resource.Text" xml:space="preserve">
        <value>In Approval</value>
      </data>
      <data name="ListItem3Resource.Text" xml:space="preserve">
        <value>Approved</value>
      </data>
    </root>
    I made a test page exactly like yours with these resx files and I could reproduce the issue.
    I am using VS 2008 with .NET 3.5
    Last edited by lapix; Feb 20, 2013 at 11:33 PM.
  8. #8
    Quote Originally Posted by lapix View Post
    In my web.config I have this setting for globalization, I think that in your example culture is alwys set to en-US:

    <globalization culture="auto" uiCulture="auto" enableClientCulture="auto"/>
    I made a test page exactly like yours with these resx files and I could reproduce the issue.
    I am using VS 2008 with .NET 3.5
    Please, change the following config, according to http://msdn.microsoft.com/en-us/libr...=vs.90%29.aspx
    <globalization culture="auto" uiCulture="auto" enableClientCulture="auto"/>
    on
    <globalization culture="auto" uiCulture="auto" enableClientBasedCulture="true"/>

    and change file names from ExtNetTest.aspx.en-US.resx to ExtNetTest.aspx.en.resx and ExtNetTest.aspx.it-IT.resx to ExtNetTest.aspx.it.resx

    I've changed my browser language and it works.

    Quote Originally Posted by lapix View Post
    Also your fallback resource file (the first one) should be same as en-US resx file, yours has different values:
    I don't think that this can cause any problems, but I've tried and it works too.
  9. #9
    Quote Originally Posted by Baidaly View Post
    Please, change the following config, according to http://msdn.microsoft.com/en-us/libr...=vs.90%29.aspx
    <globalization culture="auto" uiCulture="auto" enableClientCulture="auto"/>
    on
    <globalization culture="auto" uiCulture="auto" enableClientBasedCulture="true"/>
    Sorry, my typo, enableClientBasedCulture is set to true.


    Running your example with the conditions I mentioned (same strings for Text and Value) shows the problem to me.
    With all the other ext.net controls everything works fine. I will try some workaround to resolve this issue.

    Please could you post your output code for the multicombo after switching language?

    Thanks
    Last edited by lapix; Feb 21, 2013 at 11:45 PM.
  10. #10
    Hello everybody,

    Seems I reproduced the problem.

    We committed the fix to SVN (branches/1). Please update and retest.
Page 1 of 2 12 LastLast

Similar Threads

  1. [OPEN] [#45] DateField Localization Issue
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 10
    Last Post: Jun 21, 2013, 10:51 AM
  2. Localization Issue
    By talha in forum 1.x Help
    Replies: 3
    Last Post: Jul 03, 2012, 6:56 AM
  3. [CLOSED] MultiCombo Example Issue
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 22, 2012, 2:38 PM
  4. [CLOSED] Localization issue with DateField
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 30, 2010, 5:52 PM
  5. [CLOSED] Localization small issue
    By methode in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 10, 2009, 4:20 AM

Tags for this Thread

Posting Permissions