How to translate the text in file qml on bb 10

Source:

http://BlackBerry.github.com/Qt-Cascades-examples-private/Qt-examples/docs/HTML/tools-i18n.html

Hello

Make sure that the TS file is saved in UTF8 format, not ANSI standard. This could be the cause of the compile error

See you soon

Swann

Tags: BlackBerry Developers

Similar Questions

  • How to translate the text of 'log out' (Apex 5.0)

    Hello

    Wanted for the last few hours how to translate "correctly" the text "logout" in the new universal theme.   (Look like this in html: span class = "t-button-label" Log Out/Span)

    Also a few trivial questions.   Is it possible to directly change a page navigation?  4.2.6 and slot, you simply found the wire of Ariane/nav entries/lists on the right-hand side, double clicked on it and you could change it.   Now, I have to browse the shared components and find it there.   Been using this great product for HtmlDB, still getting used to the new interface, just work out a few kinks.

    Thank you

    Oli

    Hi Oli,

    Cannot find the text hardcoded 'Log Out' in the universal theme. This text should normally be part of the Navigation bar. Can take you a look at->-> list of Navigation bar Navigation, shared components / Navigation bar classic if you see this text. Otherwise, please download your application at apex.oracle.com and I can take a look.

    Is it possible to directly change a page navigation?

    No page designer. The reasoning was that the Navigation bar is very static and not changed on a daily basis and it is not related to a particular page. That's why we wanted to remove the Page Designer to remove the complexity of the display of the amount of data.

    Concerning

    Patrick

    Member of the APEX development team

  • How to get the text of a SystemPrompt (Cascades)

    Hello

    I've been struggling with this for a few hours now. I followed the example of "dialogues" on github, so I have successfully created a SystemPrompt (the dialog box that allows the user to enter text and accept / reject). Curiously, in this example there is no use of user text input. Do you know how to get the text in my QML? Here you have an example of code that I use:

    My QML:

    // Default empty project template
    import bb.cascades 1.0
    import bb.system 1.0
    
    // creates one page with a label
    NavigationPane {
        id: navigationPane
        Page {
            attachedObjects: [
                SystemPrompt {
                    id: prompt
                    title: qsTr("Enter a text for the label")
                    modality: SystemUiModality.Application
                    inputField.inputMode: SystemUiInputMode.Default
                    inputField.emptyText: "Label text..."
                    confirmButton.label: qsTr("Ok")
                    confirmButton.enabled: true
                    cancelButton.label: qsTr("Cancel")
                    cancelButton.enabled: true
                    onFinished: {
                        if (result == SystemUiResult.ConfirmButtonSelection) {
                            lab1.text = ????? // Here is where I don't know what to do
                        }
                    }
                }
            ]
    
            Container {
                layout: StackLayout {}
    
                Label {
                            id: lab1              text: "Label text"
                    objectName: "lab1"
                    textStyle.base: SystemDefaults.TextStyles.TitleText
                    horizontalAlignment: HorizontalAlignment.Center
                }
    
                Button {
                    text: "Update label"
                    horizontalAlignment: HorizontalAlignment.Center
                    topMargin: 150.0
                    onClicked: {
                        //_appUi.editLabel();
                        prompt.show();
                    }
                }
            }
        }
    }
    

    Be sure to add this in your .cpp file or all of app:

    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    

    and don't forget to include them in your app .cpp file (probably not all are needed, but just in case I leave here for the moment):

    qmlRegisterType("bb.system", 1, 0, "SystemUiButton");
        qmlRegisterType("bb.system", 1, 0, "SystemUiInputField");
        qmlRegisterType("bb.system", 1, 0, "SystemToast");
        qmlRegisterType("bb.system", 1, 0, "SystemPrompt");
        qmlRegisterType("bb.system", 1, 0, "SystemCredentialsPrompt");
        qmlRegisterType("bb.system", 1, 0, "SystemDialog");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiError", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiResult", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiPosition", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiInputMode", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiModality", "");
        qRegisterMetaType("bb::system::SystemUiResult::Type");
    

    Thank you very much

    If you look very carefully by the docs, you'll trip over https://developer.blackberry.com/cascades/reference/bb__system__systemprompt.html#inputfieldtextentr...

    So, replace your? with inputFieldTextEntry() and you will get the text you need.

  • How to write the text file in Shockwave?

    Someone knows how to write the text file in Shockwave on the disc of the user?

    Thanks in advance.

    These Xtras can cause a lot of havoc when used with the intent to hurt.
    What you can do is to write with setpref and store a list of backups and the
    registers itself separately. Next, you need to build your own save/open
    dialog box for the user:
    * Choose a previously saved file to load or replace
    to create a user type the name of a new file to be saved.

    The only thing that remains is that the user can't decide where files
    are saved.

    Manno

    SiuLinda wrote:
    > Thanks a lot for your answer.
    > Yes, cookies is good, but I have to write a program to save the text file in
    > When the user wants, the user can open these files later if they like as, using
    > Filextra and Fileio, but I found that all these Xtra extensions seem to be not supported by
    > shockwave.
    >

    --
    ----------
    Manno Bult
    [email protected]

  • How to set the text back in webview?

    Hello

    Someone knows how to put the text in full screen according to the 2 screen capture?

    Code

    import bb.cascades 1.0
    
    Page {
        Container {
            //Todo: fill me with QML
            ScrollView {
                id: scrollView
                scrollViewProperties {
                    scrollMode: ScrollMode.Both
                    minContentScale: 2
                }
                WebView {
                    id: webView_Condiciones
                    url: "local://assets/html/copy_Right.html"
                }
            }
        }
    }
    

    screenshot 1 (I got the result as below)

    Screen Shot 2 (need to result as below)

    So let me know what I did wrong?

    Hello

    I think your problem is

     minContentScale: 2
    

    Ask yourself the ScrollView to zoom in on your web pages display... Zoom will make wider and higher...

    If you just want more large print, try something like this:

    import bb.cascades 1.2
    
    Page {
        Container {
            //Todo: fill me with QML
            ScrollView {
                id: scrollView
                scrollViewProperties {
                    scrollMode: ScrollMode.Both
                }
                WebView {
                    id: webView_Condiciones
                    url: "local:///assets/index.html"
                    settings.defaultFontSize: 32
                }
            }
        }
    }
    

    With this HTML code:

    
    
    
    Hey There
    • Lorem ipsum dolor sit amet, consectetur adipiscing . . . . . . . . . ---8<-- SNIP -->8--

    I see:

  • How to translate the message "ERR-3331 this page had already been provided.

    It must be a recurring issue

    But how to translate the ERR-3331 this page had already been provided ?

    I am looking for the list of messages in the documentation: https://docs.oracle.com/cd/E59726_01/doc.50/e39147/global_messages.htm#BABHCHAF

    but could not find the list of messages of ERR-xxxx.

    Rgrds Paavo

    Hi Paavo,

    Yes, this message is missing from the documentation. The text message ID is APEX. PAGE. DUPLICATE_SUBMIT and I produced it to the bug 21871965 to get added to the documentation.

    Please let us know!

    Concerning

    Patrick

  • How to restore the text bar with: Code, design, Split

    Question, how to restore the text bar that had: Code, design, Split. I have Dreamweaver CC 2014 and windows 7

    In the latest version of DW, Design and fashion Live view are now a menu drop down, there are nearby. In addition, if you use fluid grid Layouts, Design view is no longer available.

    If that's what you're talking about, you can get the design view option is back with a little work around. First of all, cloise all other files open, then add the X appearing here in the grid of your fluid .css file...

    /*

    Properties Grid Dreamweaver fluid

    ----------------------------------

    DW-num-CLO-mobile: X 4;

    DW-num-CLO-Tablet: 8;

    DW-num-OCOL-Office: 12;

    DW-gutter-percentage: 25;

    =====================================

    Then save the file, close it and restart DW. From here out, DW should no longer recognize the nature of the fluid grid of your page and allow you to use Design view.

  • How to get the text have the same effect as the video?

    Hello

    For the first time post here, but I wonder how to get the text of the titles have the same effect as the video behind her.

    For my video, I use 'bad tv' and other effects such as Gaussian that obviously changes the appearance of video, creating the look of VHS. However, I then inserted text via the title, but it normally appears. How can I make this text have the same effects as the video behind it?

    A friend told me I might need to add text to the video first, then do the effects, I have not tried, but wonder if there is an easier way, as this would require me to restart.

    EDIT: That's what I'm looking for. https://youtu.be/7_2PHQI89dI?t=24s The text has the same effect as the video.

    Thank you

    One way is to create a clip made up based on the title and the original clip. Then apply the effect.

    Another way is to use an adjustment layer.

    Good luck.

    Russ

  • How to make the text bigger in youtube! Cubs in youtube!

    I made the largest text where google search arrives! But when I go on youtube the text is much tinier and I 65 to cataract and I can't read the text at right! How to make the text bigger in youtube? Thank you very much! I tried everything, but nothing changes the size!

    When you view this page hit {Ctrl + 0} < is a zero number -to reset the zoom level for this area.

    https://support.Mozilla.com/en-us/KB/page+zoom

    If you move the scroll wheel, and are now the CTRL key, you can change the zoom level of the page that is viewed - both in & out.

  • How to make the text darker or bolder

    How to make the text darker or bolder in safari

    shutterbox-

    I'm with you.  Cataract surgery, it will take longer, and the thin, plugged in my humble OPINION, typeface they chose is really for less than 40 eyes.

    The same "BOLD" of the police system capacity would be so appreciated.

    There are 3rd party apps that can change system fonts, and I saw messages claiming success, but I'm a purist to try.

    Small fonts (to us) make it very painful to be here.  I just hope they realize that our needs must be met, as well.

  • How to Flash the text Message text in CVI

    Hi, anyone know how to Flash the text in a text control in CVI.

    Thanks for any help

    Unfortunately, there is no such simple method for flashing text.

    You must code explicitly.

  • How to change the text in the paint once I clicked outside of the text box?

    How to change the text in the paint once I clicked outside of the text box?

    How to change the text in the paint once I clicked outside of the text box?

    ====================================
    I guess you could go to... Change / Cancel... then again...

    FWIW... the free Picasa software has tools to add text to photos.

    Picasa
    http://Picasa.Google.com/

    How to add text to your Photos using
    Google Picasa 3
    http://www.ehow.com/how_4599330_text-photos-using-Googles-Picasa.html John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How to block the registration of files with a windows xp-specific extension

    How to block the registration of files in windows xp with a specific extension, example the user cannot save a file with the extension exe or mp3 or another, as management on the filtering of files, windows 2003 server, I can't find the steps for the blocking process I mean in windows xp prof

    Windows cannot do natively.  A file name is simply a file name and you can not prevent the registration of a file based on its extension.

    You can change file associations, such as a double click on a file with a particular extension will not automatically launch an application given, however, but that's not what you asked.
    You may also schedule a program to run from time to time which will erase all files with a given as well.  but until this program is executed, such a file might exist on your disk.

    HTH,
    JW

  • How to upgrade the already encrypted files on the USB HDD with new XP Recovery certificate

    I backed up the files encrypted in My Documents on a USB drive on which these files are also encrypted state. My computer crashed so I reinstalled the operating system. I wanted to send records encrypted USB HD to my computer or tried to copy projecteurDu and paste them into My Documents. I could not do this because I got "an error occurred in the application...". access privilegesDo i., access is denied. "I created a new recovery certificate and put in place a recovery agent. From there how I update the previously encrypted files on th USB HDD with the new recovery certificate? I'd appreciate a step by step procedure. Can I select the USB drive in the command line and run cipher/u on this drive or make the command/u of encryption on the computer without connecting to the USB HDD

    Sorry to say that my bet is that you never gain access to these files again.

    When you created the files encrypted, Windows creates a key for decryption to access these files and stored, encrypted in your certificate store.  When your system crashed, the decryption key has crashed with it.  Without this key, you will never have access to your encrypted files.  If you have recovered from a backup image-style, you should be able to access these files.  If you've recovered by installing Windows from the installation disc, then you have created a new and different installation with different Secure ID (SID) and a certificate store empty.  A recovery agent will only retrieve encrypted files that were created after that recovery agent was in place - as a new certificate.  What you really need to do, it's your old certificate to restore the backup that you created when you started using EFS.  The following article is mandatory for anyone using the EFS file system.  Special attention to the paragraph entitled "why you should back up your certificates.

    "Best Practices for encrypting file system"
     <>http://support.Microsoft.com/kb/223316 >

    If you do not have a return to the top of your certificate, then things look dark.  There is a program called "AEFSDR' whose 'professional' version comes through what has not been overwritten on your hard drive in search of remains of certificates that could be delivered together to recover.

    Good luck
    HTH,
    JW

  • How to remove the recovery disc files D?

    Original title: drive D

    How to remove the recovery disc files D?

    Hello

    It is not recommended to delete the files in the recovery partition.  Recovery partition contains the Windows information to retrieve the computer crashing. I would ask you to contact the manufacturer of the computer on it.

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for