[CLOSED] Locale problem

  1. #1

    [CLOSED] Locale problem

    Hi,

    I set Locale of ResourceManager to vi-VN but text resource for "Loading..." is still in English. Could you please tell me how to use that attribute (Locale)

    Thank you very much.
    Last edited by geoffrey.mcgill; Jan 11, 2011 at 7:03 PM. Reason: [CLOSED]
  2. #2
  3. #3
    Quote Originally Posted by thchuong View Post
    Hi,

    I set Locale of ResourceManager to vi-VN but text resource for "Loading..." is still in English. Could you please tell me how to use that attribute (Locale)

    Thank you very much.
    Hi,

    Yes, the links that @csharpdev posted may help.

    Also please note that something you have to locale manually. I guess "Loading..." appears in a mask, so, it needs to set respective value of Msg property of this mask.
  4. #4
    Hi Guys,

    Thank you for your reply very much, but I disagree with Daniil about Mask message. I've checked out the Ext from SVN server and I see a lot of localization JavaScript files in folder Ext.Net\Build\Ext.Net\extjs\locale.

    In beta version of 1.0, when I was setting Locale to VN, it was loading the appropriate localization JavaScript file (ext-lang-vn.js) but I don't see it in the released version.

    Could you please investigate this phenomenon?

    Thank you very much.
  5. #5
    Oh, you are right, there is
    if(Ext.LoadMask){
        Ext.LoadMask.prototype.msg = "Đang tải...";
    }
    in ext-lang-vn.js.

    I thought it's absent there, sure, I had should check it.

    Now I have checked ext-lang-vn.js in released (RC1) and current versions of toolkit. It looks the same. There is the same
    if(Ext.LoadMask){
        Ext.LoadMask.prototype.msg = "Đang tải...";
    }
    in both version.

    But there is another issue on my side. I set Locale="vi-VN"
    <ext:ResourceManager runat="server" Locale="vi-VN" />
    but got
    <script type="text/javascript" src="/extjs/locale/ext-lang-vi-js/ext.axd?v=30671"></script>
    in page's source.

    Please note that there is
    /ext-lang-vi-js
    but should be
    /ext-lang-vn-js
    in the reason of name of localization script is ext-lang-vn.js (vn, not vi).

    It looks like a bug but I'm not sure at this moment.

    it was loading the appropriate localization JavaScript file (ext-lang-vn.js)
    Could you double check what file is in page source on your side when you set Locale="vi-VN"?
  6. #6
    Hi,

    Fixed in SVN (locale file is renamed to ext-lang-vi)
  7. #7
    Hi guys,

    Thank you very much. Daniil pointed out an error ( JavaScript file rendering mistake ) which I did not want to cover in previous reply because I didn't want to make more troubles.

    Thanks all of you.

Similar Threads

  1. Locale
    By flaviodamaia in forum 1.x Help
    Replies: 0
    Last Post: Jul 08, 2010, 12:25 PM
  2. Locale Greek!
    By tears in forum 1.x Help
    Replies: 0
    Last Post: Dec 03, 2009, 10:19 AM
  3. [CLOSED] Locale Issue
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 27, 2009, 4:49 AM
  4. ??????????coolite?locale???? ??……
    By navy1020 in forum 1.x Help
    Replies: 10
    Last Post: May 05, 2009, 11:24 PM
  5. No ScriptManager1.Locale !
    By Nime in forum 1.x Help
    Replies: 1
    Last Post: Feb 04, 2009, 10:16 AM

Posting Permissions