1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    177
    Vote Rating
    9
    huberte will become famous soon enough

      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
    1,149
    Answers
    132
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    Maybe this thread will help you

  4. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    177
    Vote Rating
    9
    huberte will become famous soon enough

      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
    1,149
    Answers
    132
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      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
    177
    Vote Rating
    9
    huberte will become famous soon enough

      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
    177
    Vote Rating
    9
    huberte will become famous soon enough

      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
    714
    Answers
    41
    Vote Rating
    42
    ingo.hefti has a spectacular aura about 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
    177
    Vote Rating
    9
    huberte will become famous soon enough

      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
    587
    Answers
    34
    Vote Rating
    32
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      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
    177
    Vote Rating
    9
    huberte will become famous soon enough

      0  

    Default


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

    Sorry but how ?