×

Discussion Board

Results 1 to 5 of 5

Hybrid View

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    2

    Translations files with Smart Installer

    Hello guys,

    One question about smart installer. For example in my *.pro file I have the tag "TRANSLATIONS = translation_pt_br.ts" and when I generate my "smart installer file" my *qs files does not are placed together. How can I do that, I mean, how can I distribute my translation file with the installer file ?


    Best regards.

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

    Re: Translations files with Smart Installer

    Smart Installer has nothing to do with your content, the expectation is that by the time you use the smart installer you already have a fully working installation package for your application. Smart Installer will only ensure that said installation package will be installed on device after the needed dependencies are made available.

    As for your application, if you have translation files converted to *.qs format, use DEPLOYMENT statements in the pro file to add them to your *_termplate.pkg file.
    -- 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

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    2

    Re: Translations files with Smart Installer

    Thanks Itomuta, but can you show me some example ? For example in this moment my *.pro has this :

    symbian {
    TARGET.UID3 = 0xe8e00840
    # TARGET.CAPABILITY +=
    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = 0x020000 0x800000
    ICON = icon.svg
    }

    how can I add the translator_pt_br.qs in my *_template.pkg ? (Sorry I'm new developer)..

    Best regards.

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

    Re: Translations files with Smart Installer

    A search in the docs or in Forum Nokia wiki will return a solution in 99% of the cases.
    See http://wiki.forum.nokia.com/index.ph...t_package_file and http://doc.trolltech.com/latest/qmak...tml#deployment

    This would give you something like

    Code:
    symbian {
    TARGET.UID3 = 0xe8e00840
    # TARGET.CAPABILITY += 
    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = 0x020000 0x800000
    ICON = icon.svg
    
    myQsFiles.sources = *.qs
    DEPLOYMENT += myQsFiles
    
    
    }
    -- 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

  5. #5
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Translations files with Smart Installer

    In .pro file:
    Code:
    symbian: { 
    ...
        trFiles.sources = *.qm
        DEPLOYMENT += trFiles
    }
    in QApplication:
    Code:
    	QString fileName="TypeGun_%1";
    	fileName=fileName.arg(QLocale::system().name());
    	QTranslator *translator=new QTranslator();
    	translator->load(fileName, QDir::currentPath());
    	
    	this->installTranslator(translator);
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. smart installer fails with “Certificate error contact application supplier”.
    By jscurtis in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 2
    Last Post: 2011-01-16, 15:12
  2. problem with smart installer
    By xhsoldier in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 2
    Last Post: 2010-11-02, 11:19
  3. Smart installer server updated with Mobility 1.0.2
    By Jack Torrance in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 1
    Last Post: 2010-08-14, 11:13
  4. [moved] Smart Installer for application signed with a devcert
    By JohnAndy in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 2
    Last Post: 2010-07-19, 17:23
  5. Qt Smart Installer pkg and non-root sis files
    By tamhanna in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 4
    Last Post: 2010-03-08, 15:22

Posting Permissions

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