×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    346

    MultiLanguage Support for Softkeys

    Hi is there a simple way to support multilanguage in SOFTKEYS?

    ex. When the phone language is set to Espanol, the Exit label will be translated to Espanol automatically.. same thing with CANCEL OK and other SOFTKEYS

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: MultiLanguage Support for Softkeys

    It would work just as with as with any other multilangual options, so you define your strings in separate localization files, and use the definition in your resource file. and if you use system defined softkey's then they'll be handled automatically according to the system language settings.

  3. #3
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    346

    Re: MultiLanguage Support for Softkeys

    Aside from what you mention, is there any other way?

    I want to support multilanguages for SOFTKEYS only, I thought it will automatically change by the app as long as it is not customized..

    Is there any other way like for example setting a flag or anything that will not require me to know the direct translation of a word

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    58

    Re: MultiLanguage Support for Softkeys

    Any softkey that you do not create yourself will be automically displayed in the phone language : if you use e.g. the system defined R_AVKON_SOFTKEYS_OPTIONS_EXIT, the softkeys Options and Exit will come in Spanish on a Spanish phone.

    It will NOT be the case if you define the softkeys yourself like here :

    Code:
    RESOURCE CBA R_MY_SOFTKEYS_OPTIONS_EXIT
    	{
    	buttons=
       		{
       		CBA_BUTTON
       			{
       			id = ECmdOptions ;
       			txt = "Options" ;
       			},
       		CBA_BUTTON
       			{
       			id = ECmdExit ;
       			txt = "Exit" ;
       			}
       		};
    	}

  5. #5
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    346

    Re: MultiLanguage Support for Softkeys

    Quote Originally Posted by kylom View Post
    Any softkey that you do not create yourself will be automically displayed in the phone language : if you use e.g. the system defined R_AVKON_SOFTKEYS_OPTIONS_EXIT, the softkeys Options and Exit will come in Spanish on a Spanish phone.

    It will NOT be the case if you define the softkeys yourself like here :

    Code:
    RESOURCE CBA R_MY_SOFTKEYS_OPTIONS_EXIT
    	{
    	buttons=
       		{
       		CBA_BUTTON
       			{
       			id = ECmdOptions ;
       			txt = "Options" ;
       			},
       		CBA_BUTTON
       			{
       			id = ECmdExit ;
       			txt = "Exit" ;
       			}
       		};
    	}

    This is what I expected. I used R_AVKON_SOFTKEYS_OPTIONS_EXIT but when i changed the language of an N80 phone to Espanol the button label remains Options and Exit..

    What should I do so that the app button label will automatically change?

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: MultiLanguage Support for Softkeys

    If you hardcode resource's txt as "Options" it will remain Options even if phone's language is changed to ... klingonian. Have you studied the localization example from the SDK? It has some interestingly looking *.l31 and *.l01 files ...
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  7. #7
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    346

    Re: MultiLanguage Support for Softkeys

    I didn't hardcode the label.. I used the generated code with R_AVKON_SOFTKEYS_OPTIONS_EXIT

  8. #8
    Registered User
    Join Date
    Mar 2003
    Posts
    58

    Re: MultiLanguage Support for Softkeys

    Does it make a difference if you re-install the application after you have changed the phone's language ?

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: MultiLanguage Support for Softkeys

    Check what happens in other applications - like the Menu for example (it also uses Options+Exit).

  10. #10
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    346

    Re: MultiLanguage Support for Softkeys

    The other applications (built-in like messaging) changes the menu label when changing language

  11. #11
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: MultiLanguage Support for Softkeys

    Try with a freshly generated code / an SDK example. It just works, that is all.
    Re-check everything especially if you happen to use the UI designer.

  12. #12
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    346

    Re: MultiLanguage Support for Softkeys

    I did try to create a fresh project, all is generated code. I installed and the labels of softkey still didn't change

  13. #13
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: MultiLanguage Support for Softkeys

    Hi,
    So you are saying that you used the Avkon label of R_AVKON_SOFTKEYS_OPTIONS_EXIT and when you changed the language it didnt reflect in the soft keys. Is that correct? Did you try the other approach where you define the strings yourself and also provide its corresponding localization file for the language??
    Maximus
    S60 Developer
    Impossible is nothing

  14. #14
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: MultiLanguage Support for Softkeys

    Though it is rather unlikely that such firmware problem exists, can you try it on some other device?

Similar Threads

  1. JSR-239, JSR-256 support thread
    By RemoL in forum Mobile Java General
    Replies: 4
    Last Post: 2008-08-28, 07:32
  2. TLS/STUN/outbound support
    By joby_13 in forum VoIP
    Replies: 1
    Last Post: 2008-06-23, 15:39
  3. Technical Support Engineer, Mobile, London
    By mobile2004 in forum Symbian
    Replies: 0
    Last Post: 2004-11-05, 09:40
  4. Technical Support Engineer, Mobile, London
    By mobile2004 in forum Symbian
    Replies: 0
    Last Post: 2004-11-05, 09:38
  5. Technical Support Engineer, Mobile, London
    By mobile2004 in forum Symbian
    Replies: 0
    Last Post: 2004-11-05, 09:33

Posting Permissions

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