1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    150
    Vote Rating
    7
    huberte is on a distinguished road

      0  

    Default Answered: [solved]Nav view back button translation

    Answered: [solved]Nav view back button translation


    Should we translate ext-lang-en.js ? Is there a way to use this file in our native language (Back button for example)

  2. how about this
    Code:
    config: {
        title: 'Home',
        iconCls: 'home',
        defaultBackButtonText: 'Retour'
    }
    for the config of the navigation view?

  3. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    Answers
    84
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    Maybe this thread will help you

  4. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    150
    Vote Rating
    7
    huberte is on a distinguished road

      0  

    Default


    Thanks but I did not get it...

    Just want to have the back button in french, not mulitlanguage

    And as far as I undertstand, I can't touch those lines to build the application in index.html :
    Code:
     <!-- The line below must be kept intact for Sencha Command to build your application -->
        <script id="microloader" type="text/javascript" src="touch/microloader/development.js"></script>
    EDIt: i there an easy way (I searched a long time here) to chnage the back button via sass ? For example : no text, but this icon : reply.png.

    thanks
    Last edited by huberte; 3 Oct 2012 at 7:11 PM. Reason: customize back button

  5. #4
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    Answers
    84
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    You can customize a button to be an icon, or simply change the 'text' config property of the Ext.Button you create. Are you talking about the back button from the NavigationView? Can you explain your project more?

  6. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    150
    Vote Rating
    7
    huberte is on a distinguished road

      0  

    Default


    Quote Originally Posted by jerome76 View Post
    Are you talking about the back button from the NavigationView? Can you explain your project more?
    Yep

    Just want to

    1. Have another text in place of "back"
    2. or chosse another icon in place of the one from the navview

    I tried, but no luck in sass _buttons.scss

  7. #6
    Sencha User
    Join Date
    Jul 2012
    Posts
    150
    Vote Rating
    7
    huberte is on a distinguished road

      0  

    Default


    It has been almost a month I tried everything I knew...

  8. #7
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    581
    Vote Rating
    32
    Answers
    35
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      2  

    Default


    how about this
    Code:
    config: {
        title: 'Home',
        iconCls: 'home',
        defaultBackButtonText: 'Retour'
    }
    for the config of the navigation view?

  9. #8
    Sencha User
    Join Date
    Jul 2012
    Posts
    150
    Vote Rating
    7
    huberte is on a distinguished road

      0  

    Default


    Wow, thanks, did not read something about defaultBackButtonText. Where did you read about this ? In Architect ?

    In my project title and inconcls are useless, I can't change the icon.

  10. #9
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    245
    Vote Rating
    4
    Answers
    3
    Kurt001 is on a distinguished road

      0  

    Default


    iconCls:
    You need to have another Picto declared to make use of this.

    defaultBackButtonText:
    http://docs.sencha.com/touch/2-0/#!/...BackButtonText

  11. #10
    Sencha User
    Join Date
    Jul 2012
    Posts
    150
    Vote Rating
    7
    huberte is on a distinguished road

      0  

    Default


    [QUOTE=Kurt001;910029]iconCls:
    You need to have another Picto declared to make use of this.
    /QUOTE]

    Sorry but how ?