Results 1 to 6 of 6

Thread: The error occured to change the locale of EXT-JS 5.

  1. #1
    Sencha Premium User
    Join Date
    May 2014
    Posts
    21

    Default Answered: The error occured to change the locale of EXT-JS 5.

    I've got a problem while to change the locale of EXT-JS 5.

    To change EXT-JS 5 from English to Japanese,I added "ext-locale" in requires and also "locale":"ja".

    First of all,I create the project with command below.

    Code:
    D:\>sencha generate app -ext SpendingPortal spendingportal
    
    I tried to build the project.The results was fine.

    Code:
    D:\>cd spendingportal
    D:\spendingportal>sencha app build
    
    Next,I fixed the file "app.json" to change EXT-JS 5 to Japanese.

    I added a description in line 47.
    Code:
    "requires": [
    "ext-locale"
    ],
    "locale": "ja",
    


    And I tried to build project.The error occured.

    Code:
    D:\spendingportal>sencha app build
    
            Sencha Cmd v5.1.2.52
            [INF] Processing Build Descriptor : default
            [INF] Loading app json manifest...
            [INF] Appending content to D:\spendingportal/bootstrap.js
            [INF] Writing content to D:\spendingportal/bootstrap.json
            [INF] Compressing data with YuiJavascriptCompressor[ERR] C2009: YUI Parse Error (unterminated string literal =>             currencySign: '\',) -- unknown-file:119675:30
            [ERR] C2009: YUI Parse Error (syntax error =>             currencySign: '\',) -- unknown-file:119675:30
            [ERR] C2009: YUI Parse Error (syntax error =>             dateFormat: 'Y/m/d') -- unknown-file:119677:24
            [ERR] C2009: YUI Parse Error (syntax error =>         });) -- unknown-file:119678:10
            [ERR] C2009: YUI Parse Error (Compilation produced 4 syntax errors. => null) --unknown-file:2
            [ERR]
            [ERR] BUILD FAILED
            [ERR] com.sencha.exceptions.ExBuild: Failed to compress input
            [ERR]   at com.sencha.util
            [ERR] .ReflectionUtil.newInstance(ReflectionUtil.java:114)
            [ERR]
            [ERR] Total time: 29 seconds
            [ERR] The following error occurred while executing this line:
            D:\spendingportal\.sencha\app\build-impl.xml:266: The following error occurred while executing this line:
            D:\spendingportal\.sencha\app\js-impl.xml:71: com.sencha.exceptions.ExBuild: Failed to compress input
    


    so,I fixed a description in the file "ext\packages\ext-locale\overrides\ja\ext-locale-ja.js" in line 64.

    Code:
            [default]
            currencySign: '\u00a5',
            // Japanese Yen
            dateFormat: 'Y/m/d'
    
            [fixed]
            currencySign: 'u00a5',
            // Japanese Yen
            dateFormat: 'Y/m/d'
    


    After fixing the file "ext\packages\ext-locale\overrides\ja\ext-locale-ja.js" ,I tried to build the project again.
    The result was fine.
    But excluding the word "\" from the file "ext-locale-ja.js",the application builded by command above does not work at all.

    It seems that the error occured when the word "\" was inculuded in the currency Sign.

    Any idea to solve this problem?

    Thanks.



  2. I wonder if you're being affected by this bug:
    https://www.sencha.com/forum/showthread.php?298495

    Can you try with Cmd 5.1.3 to see if it fixes this issue for you?

  3. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Do you get any more information using the --debug flag? Are you using the charset needed for those characters?

  4. #3
    Sencha Premium User
    Join Date
    May 2014
    Posts
    21

    Default

    Thank you for reply,Gary.

    Here is the build log with --debug flag.
    Does it help to solve the problem?


    The file "ext\packages\ext-locale\overrides\ja\ext-locale-ja.js" default charaset is UTF-8,
    and I haven't ever set any other charaset to build the project.
    Attached Files Attached Files

  5. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    I wonder if you're being affected by this bug:
    https://www.sencha.com/forum/showthread.php?298495

    Can you try with Cmd 5.1.3 to see if it fixes this issue for you?

  6. #5
    Sencha Premium User
    Join Date
    May 2014
    Posts
    21

    Default

    I've tried with Cmd 5.1.3, and it fixed this issue.
    Thank you so much.

  7. #6
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Great news! Glad to hear you're up and running and that the issue is fixed.

Similar Threads

  1. [INFOREQ] Architect - An unexpected error occured
    By delp in forum Sencha Architect 2.x: Bugs
    Replies: 3
    Last Post: 21 Feb 2013, 8:25 AM
  2. Error occured while installing the update SA 2.0.0 Build 442
    By msinn in forum Sencha Architect 2.x: Bugs
    Replies: 1
    Last Post: 15 May 2012, 10:39 PM
  3. [FIXED-75] An Error has occured on line 20 in ext-complete.js
    By arnolem in forum Ext Designer: Bugs
    Replies: 1
    Last Post: 30 Mar 2010, 2:45 PM
  4. an error occured when i drag the node in 3.1.1 treegrid
    By xidianamoi in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Mar 2010, 5:05 PM
  5. Error occured while editing content in htmleditor
    By bhaskarv in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 10 Mar 2009, 7:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •