×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    144

    Localization &EN,FR etc

    Dear Devs,

    I cannot get carbide to coop
    with the postings in this forum, regarding the building
    of language-specific packages.

    the line

    ;Language - standard language definitions
    &EN,FR,

    always gives a build error

    Expected , read }
    Unknown Carbide.c++ Build Problem
    unexpected text
    in the next line of the above code...

    any ideas?
    thanks!

  2. #2
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Localization &EN,FR etc

    Have you added component name for each supported languages ??? Like
    #{"HelloWorld-EN","HelloWorldr-FR"},(0x200125673),1,1,0

    Also remove comma after list of languages (&EN,FR,).

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Localization &EN,FR etc

    Note that you also need to take care for the Series60ProductID string.

    So an example .pkg file would go like this:

    Code:
    ;Language - standard language definitions
    &EN,FR
    
    ; standard SIS file header
    #{"Test","French"},(0xExxxxxxx),1,0,0
    
    ;Localised Vendor name
    %{"Vendor-EN","Vendor-FR"}
    
    ;Unique Vendor name
    :"Vendor"
    
    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID","Series60ProductID"}
    
    ...
    ...
    ...
    See the red highlighted parts.
    Nokia Developer Wiki Moderation team

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    144

    Re: Localization &EN,FR etc

    thanks guys
    no I build fine

    I also added
    {
    "$(EPOCROOT)Epoc32\data\z\resource\apps\myapp.r01"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\myapp.r02"
    }-"!:\resource\apps\myapp.rsc"

    , and removed the previous
    $(EPOCROOT)Epoc32\data\z\resource\apps\myapp.r01" -!:\resource\apps\myapp.r01"
    $(EPOCROOT)Epoc32\data\z\resource\apps\myapp.r02" -!:\resource\apps\myapp.r02"

    , and kept
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\myapp_reg.r01"-"!:\private\10003a3f\import\apps\myapp_reg.r01"

    have a couple of questions
    Q1: I dont get installation option for selecting an installation language
    Q2: How to build only a specific language? so that I offer language specific downloads?

    thanks!
    Stavros

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    144

    Re: Localization &EN,FR etc

    follow up

    Q3: from the localized example, it seems
    that a reg and mbm entry is needed for every language,
    even though files do not appear in project, right?

    "epoc32\data\z\private\10003a3f\apps\Localization_reg.r03" -"!:\private\10003a3f\import\apps\Localization_reg.r03"
    "epoc32\data\z\resource\apps\Localization_03.mbm" -"!:\resource\apps\Localization_03.mbm"

    S.

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

    Re: Localization &EN,FR etc

    Quote Originally Posted by stavrospapa View Post
    follow up

    Q3: from the localized example, it seems
    that a reg and mbm entry is needed for every language,
    even though files do not appear in project, right?

    "epoc32\data\z\private\10003a3f\apps\Localization_reg.r03" -"!:\private\10003a3f\import\apps\Localization_reg.r03"
    "epoc32\data\z\resource\apps\Localization_03.mbm" -"!:\resource\apps\Localization_03.mbm"

    S.
    *_reg.rss does not contain any localized resources so you don't need to have multiple versions of it in the installation file. It links however to a localized resource that holds the localized name and, optionally, localized icon. If you provide localized icons then you include it in the SIS, if not then you will only have the generic one.
    -- 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
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: Localization &EN,FR etc

    Quote Originally Posted by stavrospapa View Post
    thanks guys
    no I build fine

    I also added
    {
    "$(EPOCROOT)Epoc32\data\z\resource\apps\myapp.r01"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\myapp.r02"
    }-"!:\resource\apps\myapp.rsc"

    , and removed the previous
    $(EPOCROOT)Epoc32\data\z\resource\apps\myapp.r01" -!:\resource\apps\myapp.r01"
    $(EPOCROOT)Epoc32\data\z\resource\apps\myapp.r02" -!:\resource\apps\myapp.r02"

    , and kept
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\myapp_reg.r01"-"!:\private\10003a3f\import\apps\myapp_reg.r01"

    have a couple of questions
    Q1: I dont get installation option for selecting an installation language
    Q2: How to build only a specific language? so that I offer language specific downloads?

    thanks!
    Stavros
    A1) The installer selects automatically the language that matches the language currently in use on the phone. It is only if the selected language is not supported by your application (say the phone is currently set to use German) then you will be prompted to select one of the apps that the application supports (EN or FR).

    A2) It is enough to build the project once, it will generate all the language specific files. It is up to you to define custom *.pkg files that will include support for only one language or for various groups of languages, as you wish/need. Add them all to the build configuration and Carbide.c++ will package them all into SIS files and sign them.
    -- 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

  8. #8
    Registered User
    Join Date
    Sep 2008
    Posts
    144

    Re: Localization &EN,FR etc

    thanks guys
    crystal clear
    S.

Similar Threads

  1. Localization of Help files
    By dogbertrulez in forum Symbian
    Replies: 1
    Last Post: 2007-10-11, 22:51
  2. ListBox localization
    By AbuElElla in forum Symbian
    Replies: 9
    Last Post: 2007-06-20, 20:56
  3. About LOcalization file
    By pavan in forum Symbian
    Replies: 14
    Last Post: 2006-10-17, 15:36
  4. localization in run time like built-in applications
    By goncharov in forum Symbian User Interface
    Replies: 3
    Last Post: 2005-09-27, 11:15

Posting Permissions

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