BB10: How to add location

Hi guys,.

I would really appreciate if anyone of you could help me with the addition of location of my application.

A few facts:

  1. I added the new language to bar - descriptor.xml of my project (in my case is Spanish)
  2. I have this in my file main.cpp:

    QTranslator translator;
    QString locale_string is QLocale () .name ();.
    QString file = .arg QString (MyApp_ '%1') (locale_string);
    If (translator.load (filename, "app/native/qm")) {}
    app.installTranslator (& translator);
    }

  3. I added the line msg = QObject::tr ("my String"); to my code.
  4. When I build my project the files Cinemark_v2_es.ts and Cinemark_v2_es.qm are created.
  5. The Cinemark_v2_es.ts file is not inside the tag of TS.

I think that it does not work. If you guys have any idea?

I read the documentation, but it is not clear and there is no samples in this topic.

Thank you!

include (... / MyAccount.pro)
{lupdate_inclusion}
SOURCES +=.
$$BASEDIR /... /SRC/GUI/PostpaidRegisterCCNR.cpp\
$$BASEDIR /... /SRC/GUI/PostpaidRegisterReview.cpp\
$$BASEDIR /... /SRC/GUI/PrepaidRegisterReview.cpp\
$$BASEDIR /... /SRC/GUI/PrepaidRegisterCCNR.cpp\
$$BASEDIR /... /SRC/GUI/PaymentReview.cpp\
$$BASEDIR /... /SRC/GUI/Bill.cpp\
$$BASEDIR /... /SRC/GUI/payment.cpp\
$$BASEDIR /... /SRC/GUI/TopupCreditCard.cpp\
$$BASEDIR /... /SRC/GUI/PostFavouriteNumber.cpp
}

My project is MyAccount. Find your .pro file in translations folder. Add the path to the .cpp file in it. Wish you success.

Tags: BlackBerry Developers

Similar Questions

  • How to add location α all photos in an album?

    How can I add a location α pictures in one album?  I can add one at a time, but not all at once.  With 14 000 + photos scanned from slides, it is very difficult to organize these photos.  I can't sort the master file by file name, to find as "slides" are almost impossible.

    It would be useful that I can change the date and the location of all the photos in a single album.

    Thank you!  -Andy

    You must update to El Capitan that it update the photos to be able to do.

    When you select all the photos you want to give a specific location also.  Open the window "information" (command - 'I') and inside of him, you'll see "Add location" and you can enter in where it was taken.

    You can be very specific if you know specific addresses of the place where they are taken.

    R

  • How to add the new column in existing table to our desired location?

    How to add the new column in existing table to our desired location?

    For example, I have to add the new column 'course' before the salary column in the emp table.

    I think the best way is to add the column at the end of the table and create a new view with the order of the columns...

    Another option...

    places the data into a temporary table and recreate the table with the correct order of the columns, and then insert data to the table from the temporary table

    Refer

    Add column (from table) in the desired position

    Example:

    CREATE TABLE temp_my_user LIKE)

    SELECT * FROM password);

    DROP TABLE password;

    (Password) CREATE TABLE

    userID NUMBER

    , first name VARCAHR2 (25)

    , middleInitial VARCHAR2 (1)

    (, name VARCHAR2 (25));

    INSERT INTO password (userID, firstName, lastName)

    (SELECT username

    first name

    lastName

    OF temp_my_user);

    DROP TABLE temp_user;

  • How to add the location of several pictures?

    I scanned a lot of old photos that I need to add a place to. Is there a way to make a batch add location?

    Select the photos you want and right-click - info and enter the location - it will be applied to all selected photos

    LN

  • How to add fields on a screen at a particular location where a domain manager is already added

    Hello

    Issue in the user Desiging interface...

    I have a screen where I use two HorizontalFieldManager covering first half and second half of the screen, now my qusetion is that I want to add a field to the second half of the screen but the field is added below the second half of the screen, I know why this is happening because the area of the screen is already filled by the two HorizontalFieldManager.

    So please suggest me how to add the field in the second half of the screen, which sector is already covered by HorizontalFieldManager.

    Here is my sample code...

    Top of HorizontalFieldManager = HorizontalFieldManager(NON_FOCUSABLE | nouveau FIELD_HCENTER |) FIELD_VCENTER);
    upper_part = new BitmapField (upper_bitmap);
    Upper.Add (upper_part);

    Low HorizontalFieldManager = new HorizontalFieldManager(NON_FOCUSABLE |) FIELD_HCENTER | FIELD_VCENTER);
    lower_part = new BitmapField (lower_bitmap);
    Lower.Add (lower_part);

    VerticalFieldManager body = new VerticalFieldManager(NON_FOCUSABLE |) FIELD_HCENTER | FIELD_VCENTER);
    Body.Add (Upper);
    Body.Add (Lower);
    Add (Body);

    Thanks a lot... :)

    Are you using the bitmap for horizontal substantive adding upper and lower field area manager

    If yes don't do that add background to the Manager of horizontal field like this:

    horizontalFieldManager.setBackground (BackgroundFactory.createBitmapBackground (bitmap));

  • Cannot add location for photo

    I can manually add locations to all my photos except one. The location field is absent.

    I tried to duplicate it but still no location field.

    The only difference I see is that the photo is a jpeg image and not a jpg file.

    How can I change the photo so that I can add the location?

    Thank you

    Try to export and then import again.

  • How to add a new language to the language and region of the Panel

    Hello
    Setting preferences in Mac OS X, I could ' t help noticing the huge amount of languages available in the Mac OS X El Capitan. Located in same languages like Klingon, Navajo and Latin - and of course, this looks like a great tribute to the rich diversity of languages in humanity. However, Mac OS X El Capitan still missing a language - my own. How can I add another language to the language and region of the Panel? How Klingon and Latin is?
    Of course, I have this Internet search, but nine out of ten results were some tutorials explaining how to add an EXISTING language to the ones I already have.

    Thank you.

    Rui Valente

    You just 'Add' a language. You would have to edit all applications to create strings of replacement for all menus, dialog messages, buttons, etc., that it doesn't translate from one language to the other. Each application has a list of strings mapped to the display string for each supported language. The localized string replaces the generic string in the user interface element.

    You can try to contact Apple and volunteer to locate the operating system, they would have confidence in you (unlikely) or hire a person to validate your work.

  • How to add elements to an array without crushing it?

    probably is can a repeated question, anyone tell how to add a new element to a table at the following location without deleting the other?

    Use the table construction and the old array of the wire to the first position and the new value to the next position. This will add while leaving the old array as it is.

  • How to add libraries and Outlook to Windows search

    Win 7 64 bit (fully updated)

    For a few days the Windows Indexing has been crashing. Newspapers reported the index have been corrupted soon after it was created. I tried to disable the indexing of power off of the search, the system restarts and to restart the two once again a number of times without success. Convenience store reported an issued but did not define what it was. I decided to cut the search locations, and then add them back one by one. This process seems to have solved the problem (so far), but I have two problems:

    (1) I don't see how to add Outlook to the windows search index locations (it existed)

    (2) above, when you search for files by using the search box I might look for *.mp3 (for example).

    This would produce a result filed under the title "Music" (the categorization is probably by library) that the search box has been filled.

    Now I search for *.mp3 and it lists FAR FAR fewer files as the search request is typed and those it lists are in the section "FILES" (they are not yet classified files in my library of music).

    If I click on "See more results" are lists all the mp3 files in a window (i.e. indexed, but are not displayed and is summarized as the search are requested).

    My guess is that this issue is the result of the libraries are not included in Index locations. If it is correct, how can I get my library back in indexed locations?

    Solved.

    The fixit 'difficulty Windows Desktop Search when it crashes or not show results"available here;

    http://support.Microsoft.com/FixIt/

    solved the problem of mp3 filese appearing as search results are typed and added Outlook on search locations.

    After execution, it is necessary to add search by default return locations.

    I have a very strong suspicion that CCleaner caused search crashing. If you have the problem, try to uncheck options related to the MS Search and traces of indexing on the Applications of CCleaner tab then repair search.

  • Add location of network problem

    'Create a new folder' is grayed out after you have specified the location of the web site.  How can I make a new forder?

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    • How you try to add a network location?
    • What place you are trying to add to the network?

    You can follow the link given below for reference on how to add a network location.

    Create a shortcut to (map) a network drive

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-shortcut-to-map-a-network-drive

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to add notes (stars) for comment in the layout of the Webapps list?

    How to add notes (stars) for comment in the layout of the Webapps list?

    Then... I've found a workaround. It's dirty and messy, and I don't know there's a better way, BUT using an Iframe in your list template that refers to your details page you CAN get the sides to work in list view.

    Here's what you do:

    1. place a comment form and the scoring module in your model detail page.

    2. place iframe in the list of your webapp template and point src = "detail_page_url".

    3. get this plugin to find the location of your scoring module in your details page: Page control - Chrome Web Store

    4. set the iframe scroll position so that when you view the list of your webapps it automatically queued upward at the position of the note on your details page module. Style the iframe using the attributes listed here: Scroll the IFRAME in a preset Position content

    So essentially of workaround reflects everything that happens in your detail page. Do not know if I explained that very well so if you need a clarification let me know.

  • How to add to a specific page in one document to another

    How to add to a specific page in another document

    When you add a bookmark, it takes by default the current page and the view (zoom, scrolling). If you want to link to a location in another document, after you have created the bookmark, select it, right-click, then select Properties, then select the Actions tab remove the default action and add a new type of "Go to a page view". When you are prompted with the dialog box "Create go to View", open the other document and go to page set the view (zoom, scrolling) you want and then click on the Set"" button. When you distribute the files, make sure that they retain the same folder structure. This is done much easier if all PDF files are in the same folder.

  • How to add a new virtual machine in VMPlayer inventory?

    People,

    Hello. I'm installing Oracle Database 11 g 2 RAC system using 2 nodes that are 2 Virtual Machines on top 3 VMPlayer.

    Their locations are C:\VM_RAC\rac1 and C:\VM_RAC\rac2.

    The original rac1 VM is created in VMPlayer 3 and works correctly.

    For the second rac2 VM, I simply copy all the files in the folder rac1 in rac2 folder. Then change its display name of "rac1' to 'rac2' in the rac2 configuration file.

    But rac2 in not visible in VMPlayer and cannot be turned on.

    To make rac2 in VMPlayer, we add rac2 in VMPlayer inventory. But I don't understand how to do it.

    Can any folk tell me how to add the new VM rac2 VMPlayer stock, so that it can be powered on?

    In the 'File' menu click 'Open Virtual Machine... "and select the .vmx file in the folder of the virtual machine.

    André

  • How to add the Norwegian language to my ipa file in Adobe Flash Professional and AIR settings

    Hello

    How to add languages Norwegian to my file API in Adobe Flash Professional and the parameters of AIR?

    Norwegian users get my apps in English rather than Norwegian. Desperately need help!

    Cordially Ylva

    If it's a question about location, then this thread: Re: how to locate the name of the application into an air ios app? discusses explains how to add the Danish language, which is not localized to be default.

  • How to add an image into multiple pages?

    Hello

    First, you should know that before this announcement, I dug into Google but couldn't find a solution.

    How to add an image in the footer of a PDF of size section, for example, 500pages? I won't add one by one in the same page, it is much too long.

    Is it possible to add it in the footer or any other alternative section, while I find myself with the same image in an exact position in all 500 pages?

    Thanks for your response

    Best,

    Eric

    In Acrobat 9, you can select "Document > add watermark ' or ' Document > Add Background" and select a file that has the image. You can adjust the location for your needs. It is available in other versions too, but I don't remember the exact menu items.

Maybe you are looking for