QT_TR_NOOP() macro does not mark the string for the extraction of the .ts file

Hello

Because I want to put all the translatable texts in one place, I defined a separate category for that. The .h file similar to below:

#ifndef TEXTCONSTANTS_H_
#define TEXTCONSTANTS_H_

#include "qobject.h"

class TextConstants : public QObject {
    Q_OBJECT

public:
    static const char *SWITCH_APP;
};

#endif /* TEXTCONSTANTS_H_ */

And the .cpp file similar to below:

#include "TextConstants.h"

const char *TextConstants::SWITCH_APP = QT_TR_NOOP("Switch App");

Note that in the file above, I use QT_TR_NOOP() macro to mark the string given for extraction of the .ts file. This is mentioned in the documentation at https://developer.blackberry.com/native/documentation/cascades/device_platform/internationalization/....

I then called tr (TextConstants:WITCH_APP) in a different subclass of QObject. The problem is that the text "App switch" is not extracted from the .ts file, why? If I call tr() and skip the text "App Switch" like tr ("Switch App"), this text is extracted from the .ts file. Am I missing a few things to make it work? Thank you.

PS. I use® for QNX Momentics® IDE for BlackBerry® 10 native SDK, Version: 10.1.0, Build id: v201303191709

Hello.

I think you have misunderstood my suggestion.  I was only suggesting that you call the function tr() in your statement of constant ithat you posted nstead of QT_TR_NOOP(), not in other parts of your code, to see if the compiler accepts it and the chain gets extracted correctly.

If this does not work, I'll try to track down the code of the work for the purposes of comparison.

Sorry if I wasn't clear before.

Tags: BlackBerry Developers

Similar Questions

  • Does not mark the emails as unread - iOS 9.3 and Exchange account

    Hello

    It drives me crazy! I'm an iPhone user for many years since the first iPhone.

    I use the mail with exchange account application.

    Given that I have updated to iOS 9.3 I does not mark the emails as unread after they are read.

    The status "unread" is constantly reset to 'read '.

    I lose emails because of it!

    Who can help on this?

    Thank you

    Oded

    This isn't the behavior that I'm observing.

    Have you tried a simple Reset by pressing the Home and Power buttons until the Apple logo appears.

  • Hello - I have just brought a Panasonic Lumix FZ70 but CS5 does not recognize the raw file (.) RW2). but aid for raw files says that the Lumix FZ70 is supported. Help

    Hello - I have just brought a Panasonic Lumix FZ70 but CS5 does not recognize the raw file (.) RW2). but aid for raw files says that the Lumix FZ70 is supported. Help

    Need of this camera camera raw 8.2 or later. Cannot use this CS5 version. You will need to download the 9.1 free dng converter and convert your images to DNG version CS5 can handle.

    Using Photoshop | Digital Negative (DNG)

  • When I import my .wav and my .m2V files still accepts the .wav file but does not load the .m2V file.  I created movie DVD 5 discs - still accepted the .wav and for the four remaining groups .m2V files and created 4 DVD discs for

    When I import my .wav and my .m2V files still accepts the .wav file but does not load the .m2V file. I created movie DVD 5 discs - still accepted the .wav and for the four remaining groups .m2V files and created 4 DVD discs for these files. What can I do to be free from this error?

    OSstatus = error-37

    Note that this a Mac operating system error.

    http://forums.CreativeCOW.NET/thread/145/865447

    Error when importing the file: slash or other character in file name

    http://forums.Adobe.com/message/3729601

    The build error: slash or other character in file name

    http://forums.CreativeCOW.NET/thread/145/868994

    The build error: complete startup disk

  • Windows Media Player does not open the .tgz files

    Original title: codec .tgz files

    My Windows Media Player does not open the .tgz files

    Hello

    1. what happens when you try to open the .tgz files?

    2. what version of Windows Media Player do you use?

    .tgz file is not supported by Windows Media Player.

    You can use your favorite search engine to download and install the latest codec for Windows Media Player. Subsequently, check if you are able to read .tgz files.

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.


    Reference:
    information about the types of media files that supports Windows Media Player

    Package of Installation of codec

    Hope the helps of information.

  • Windows Media Player-does not recognize the mpeg4 files

    My media playes does not recognize the mpeg4 files

    I recently had to re - install windows vista, after that everything works well, but when I try to read a MPEG4 file, it gives me an error message that it can't play at this time of the fine.  It plays music, mpg3 files fine... I tried to do a 'quickfix' but it didn't work.

    Hello

    I suggest you to download and install the latest pack of codec for Windows Media Player. Make a search using your favorite for more information search engine.

    See also:
    http://Windows.Microsoft.com/en-us/Windows-Vista/codecs-frequently-asked-questions


    Note:
    software use of third parties, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • Movie Maker does not recognize the MPEG2 files that are created from my new video camera. What can I do?

    I bought a new video camera and Movie Maker on my computer does not recognize the MPEG2 files as video files. He brings only in the sound. Is there something I can do?

    I bought a new video camera and Movie Maker on my computer does not recognize the MPEG2 files as video files. He brings only in the sound. Is there something I can do?

    ======================================
    You run Vista Movie Maker 6? Might be interesting to try
    Convert MPEG files to WMV format before importing.

    Or... it may be interesting to try to install Windows Live Movie Maker...
    which could be compatible with the MPEG2 files.

    Windows Live Movie Maker
    http://explore.live.com/Windows-Live-Movie-Maker
    (There are other applications included in the download...
    Uncheck the ones you don't want)

    Good luck...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Error when you try to modify or to open a video (WLMP) using Windows Live Movie Maker: Movie maker does not support the selected file

    WLMP does not open on windows live movie maker?

    Well I made a video Windows live Director and saved it but when I try to open it to change some more it is said "Movie maker does not support the selected file" but he should not let me because I did in windows live Director please help!

    I'm having the same problem, but if I double click on the Window media player file appears help!

    ================================================
    Right-click the. WLMP file and try... Open with / Windows Live Movie Maker...

    See the following article

    Windows 7 - changing the programs that Windows uses by default
    http://Windows.Microsoft.com/en-us/Windows7/change-which-programs-Windows-uses-by-default

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • By double clicking on a file in Windows Explorer it only starts the program it does not open the actual file.

    By double clicking on a file in Windows Explorer it only starts the program it does not open the actual file.  1 program, all the others still work ok.

    This option is used to work, I installed a viewer of this program option (it's a based CAD program) and after that I uninstalled the viewer that he would not even start the program, he was trying to launch the viewr.  I noticed that the file association was still for the Viewer so I changed it back, but he now throws only program.  Under right click, properties, file Type: it is said the extension only where it used to say the name of the program.

    Thank you

    Sam

    Hey Sam,

    Default configuration program.

    http://Windows.Microsoft.com/en-us/Windows7/change-which-programs-Windows-uses-by-default

    If this does not work, then contact the Help Viewer support.

    All the best!

  • Elements 9 does not open the raw files from my new camera

    Have a panasonic DMC-GX85.  My 9 items does not open the raw file and I failed in upgrading to 9.03 and camera raw 6.5.  Y at - it solution or do I have the latest elements?

    There are essentially 4 different solutions to this common problem with the older PES software:

    (1) upgrade to the latest version 14;  It's not free.

    (2) the software should come with your camera and download pictures on your computer;

    (3) your operating system may have some updates to download images from your camera.

    (4) use Adobe DNG converter and it is still free.  The latest version is:

    Adobe - Adobe Camera Raw and DNG Converter: for Windows >

    He must also watch this video to learn how to use the DNG Converter:

    I hope this helps.

  • I bought a Canon 70 d. Photoshop CS5 extended does not load the CR2 files. I installed Camera Raw 0.2. Help

    I bought a Canon 70 d. Photoshop CS5 extended does not load the CR2 files. I installed Camera Raw 0.2. Help

    Photoshop CS5 is only compatible with Camera Raw to version 6.7. Photoshop CS5 is is no longer updated by Adobe. The best way to have the latest version of Photoshop is to his scribe for the package of creative photography of cloud. This would have the latest version of Photoshop and Lightroom. You will receive updates of these two programs through the creative cloud.

    If you don't want to upgrade your Photoshop you can download and use the DNG Converter last to create digital copies of (DNG) negatives of your raw images. You would be able to use these files with the software you already have. But you won't receive updates for the software you are currently using. Your new device photo, the 70 d, requires camera Raw 8.2 which is only compatible with Photoshop CS6. Camera Raw 9.2 is only compatible with Photoshop CC 2015, which is only available through the creative cloud. You might want to consider the purchase of 14 Photoshop elements as a complementary program to what you use.

  • 6 Lightroom does not recognize the raw files of Nikon D800

    I have a nikon D800 and Lightroom does not recognize the raw files yet of this camera.  I've updated the LR software to 6.1.1 yet still cannot import files.

    Can you help me

    Thank you

    Ruben

    The D800 has been supported since Lightroom 4.1.

    You use an earlier version of the Nikon software to transfer files from camera to computer? Older versions are known to make Raw files unreadable by Adobe software.

    Try to download a version update of Nikon. Or use a different card for example reader method.

  • Combine files to a single PDF does not recognize the .ai files. If this happens?

    Im working with .ai files and I was wondering if I were to convert before a meet in a single PDF file? When I "Combine files into a single PDF" the finder window does not display the .ai files. I was wondering if that is supposed to happen? It is absolutely necessary first convert them to PDF format?

    You can always store as .ai files and should. But create a PDF file for the feature of the combine. Just to be sure, have you tried to open a .ai file in Acrobat (not combine) and doing a job? I do not suspect. If this isn't the case, then it is clear that you must first create the PDF file for the graphic illustrator. Acrobat cannot convert automatically all types of files as PDF documents, but only selected application files. I'm not sure that the illustrator files are a selected application. You seem to assume that Acrobat should be able to open any file and it is not the case.

  • VCenter 4.1 does not see the sysprep files

    I have a brand new installation of ESX 4.1 and, of course, VCENTER 4.1. VCenter is installed on 2008 64-bit standard. I put the sysprep files in the virtualCenter\sysprep c:\programdata\vmware\vmware directory.  When I go to deploy a model and try to customize, he does not see the sysprep files. Any idea?

    It wasn't my question.  You have created a VMware for OS customization specification, you intend to sysprep?

    Home - Specifications of customization Manager.

  • Signature App, number of Folios error does not match the main file Folio

    Hi all;

    I have a standalone application of 250 pages that I'm trying to compile for the Apple Store. I've read through the forums and enabled "AppBuilderLoggingEnabled.cfg" in my home directory of the user to discuss the issue. Here is an excerpt of the newspaper which has been created which, to me, shows why the app is not signed.

    46386 codesign ERROR [main]. Signatory - failure during the signature

    java.lang.RuntimeException: invalid package, number of folios does not match the primary file (Folio.xml or Issue.xml) 251-250 folio

    at com.adobe.devtech.codesign.IPAOutputHelper.convertFolioProduceFormatToFolio (IPAOutputHelp er.java:272)

    at com.adobe.devtech.codesign.IPAOutputHelper.replacePlaceholderFolio (IPAOutputHelper.java:1 92)

    at com.adobe.devtech.codesign.IPAOutputHelper.execute(IPAOutputHelper.java:82)

    at com.adobe.devtech.codesign.Signer.sign(Signer.java:169)

    at com.adobe.devtech.codesign.Signer.processArgs(Signer.java:106)

    at com.adobe.devtech.codesign.Signer.main(Signer.java:46)

    46388 codesign ERROR [main]. Signatory - error: invalid package, number of folios does not match the master folio (Folio.xml or Issue.xml) 251-250

    I deleted special characters in the article titles and rebuilt the app only to deal with the same error. I have advanced and created a new AppID in the portal to Apple developers, created new files available, and the error remains. I am now to create a new folio and import the items into the new folio to see if that will solve the problem of "number of folios does not.

    Any help or idea would be amazing. Thanks to you all.

    -mat

    I created a new folio and all items imported again. After hitting "Create App" for this new folio, to about 10 pages in a 'PDF Export' error stopped the app creation process. I went in InDesign to update the layout for the 10 page to see that the PDF export issue kept me from updating the page layouts as well. Some thing in the InDesign file was not playing nice with the creation of folio, so I created two new InDesign files, deleted the article and built a new article from scratch. I was able to import the new page in a new article to the main folio and click on "Create App" again. This time he had no problems with the creative process. I have synced files available in App Builder and could sign the application code.

    I guess the moral of the story is to double and even triple check each item along the way to make sure there is no problem, is introduced into the process that eventually causes headaches during the phase of distribution of creating applications!

    -mat

Maybe you are looking for

  • Siri set timers or alarms or launch applications...

    I have a brand new 6 iPhone more and Siri cannot set timers or alarms! I have 'reset network settings' and it worked fine until I reconnected it to my wifi at home and then it stopped working again. To be clear, she can still give me time and make ca

  • Cannot see or download photos from my iphone to my MacBook

    When I plug my iPhone into my MacBook I can't put new photos on my Mac because he doesn't 'see' it in Photos.  He used to see and I would like to transfer photos.  It's not just my phone but all my other phones and iTouch.  She also does not come to

  • Remote PC to MAC support

    I have a Spec Ops of it support XP.  We have several MACs, and I need to know how to communicate with them via support remotely.  I now on LogMeIn as a great tool, but it is not authorized by our firm.  I need to know how to operate the helpline What

  • WRT610N after upd to 2.00.01 tab "Access Restrictions" disappeared

    Hello. I decided to update firmware 2.00.00 B05 to 2.00.01 wrt610n. After it - tab "Access Restrictions" had disappeared. Can I use this function on this version? If not where can I download firmware by 2.00.00 B05 version?

  • Phone Smartphones blackBerry frozen for hours

    My phone froze all day. The last two days, it was very slow, and then today it just completely froze. I tried battery pull approximately 6 times... same results. I don't know what to do. It does not connect to the Fund Manager. Can someone help me pl