How to make my applicatio​n programmat​ically switch between English and Russian

Greetings from Colorado...
My application needs to be switchable between English and Russian.  Future languages to add are Spanish and Chinese.  The user selects a language
from a control before starting the program and then the program changes the Captions, Boolean Texts, Graph Labels, and Enum Type Strings to the
chosen language.  For Russian, this requires a different set of characters.  I have made substantial progress by:
Control Panels>Region and Language>Keyboards and Languages>Change Keyboards added Russian>Keyboard>Russian on my development
computer.
In the LabVIEW.ini file, I added UseUnicode=TRUE (thanks to a suggestion found in this forum)
Made property nodes for controls and used properties such as Interpret As Unicode (True for Russian, False for English), Text, Font Name, Font Size, etc.
I have used fonts Arial and Arial CYR for Russian and MS Sans Serif for English
Set the keyboard for Russian and enter Cyrillic characters into text constants that are set for Arial or Arial CYR font.  Sometimes one works and
sometimes the other works.  As long as I set the font name in the property node the same way the text went into the text constant, it generally
works.  I wish I could understand why one works sometimes and the other works other times!
I have had trouble with the Boolean Text going off-center when changing fonts and languages and it seems that by setting the Lock Text In Center
property to False and then True again, it seems to work.  Often changing Boolean texts between short and long texts causes some of the long text
to be non-displayed; I have remedied this by explicitly setting the width of the Boolean text in a property node.
Often, the Russian text appears as gibberish with strange right-angle characters, :s, =s, and tiny numbers.  I have been able to remedy this on my
development computer by ensuring that the text constant on the block diagram has the same size as the caption is supposed to have.  This
is not necessary for normal programming in English, but it seems to help here.  But it doesn't always solve the problem.
Sometimes the English text appears as Chinese gibberish in an Enum Type selection list or in a graph label.  On my development computer,
it seems that making the text the last property to change helps here.
By changing the sequences of assignments to a single property node with a long list of properties, I have been able to make some of these
controls to switch between languages without gibberish showing up.
A few hours ago, I had the Russian strings in the Enum Type control working, except that when selecting from the available items, only the first
word of the Russian string was displayed.  Two of the items start with the same word, so the user can't distinguish them.  
At that time the English strings were appearing as Chinese gibberish while the list during the selection process displayed in English.  As soon
as I changed the selection, future attempts to change the selection gave Chinese gibberish during the selection process, too.  But this was only
a problem in the executable version; the source-code version worked fine.
In an attempt to get rid of the Chinese gibberish, I made new constants and retyped the items into them.  This worked!  But then, the Russian
stopped working and gave gibberish angles and tiny numbers, even though I didn't touch any of the code that sets the properties in Russian mode.
After trying a few sequences of setting the properties for the graph X label on page 2 of my tab control, this label started working correctly for both
languages.  But the text of that label comes through on page 1 of the tab control, partly obscured by other controls on that page.  After the
program runs a few more seconds, these shadows disappear.
Most times I restart LabVIEW, I get an error message saying there was a crash due to fontmgr.cpp, line 7494.  But there actually wasn't a crash.
My computer has Windows 7 64-bit.  Deployment Computer has Windows 7 32-bit.  LabVIEW version is 8.5.  
I have probably 50 or 100 more controls and indicators to change to language programmability and figuring out all this stuff for each one is
terribly time-consuming and there is no assurance that all of them will ever work.  
At this point, I'm hoping that I am on an entirely wrong path and someone will send me a clue to get me on a path that is more predictable.
Thanks in advance to all who post ideas!
Cheers
Halden 

Hi All,
I've made a lot of progress on this translation, but it's been really hard.  There are lots of weird things going on that must be logical because they're in a computer, but I can't figure out what the logic is.  When changing a font on a caption using the front panel, it sometimes changes the font on the caption and sometimes doesn't although the indicator always indicates the new font.  Removing the first character of the unicode font string being sent to the caption seems to help...huh?  Anyway, tabs still can't change language programmatically, and niether can ring controls (some kinds will take the new list of strings, but when selecting, they only display the first word of the string!).  Boolean text can be reprogrammed, but only if the boolean text is set to be the same for both true and false states.  When reprogramming captions on a non-displayed page of a multi-page tab-controlled user interface, the new text appears on the current page until I change pages back and forth.  What a pain!
Sooo, NI....does LabVIEW 2011 have support for unicode fonts?  Or, is there anything else in the new control style that will support programmatic language changing?
Halden 

Similar Messages

  • I don´t know how to make a phone call whit my ipad...and how to sent a message? is it possible?

    i don´t know how to make a phone call whit my ipad...and how to senSeleneGMt a message? What do i need? or is it impossible?

    You can't; not natively, anyway, since the iPad is not a phone. If you want to make a call, you'll need to use some third-party Voice-Over-IP service such as Skype.
    I'm not sure what you're asking when you ask about sending a message. If you mean a text message, you can either use iMessage, which can send messages to other users also running iMessage, or you can look in the iTunes Store for SMS apps, a few of which are available. They use separate services to actually send the message and so require an Internet connection, either WiFi or 3G.
    Regards.

  • How to quickly switch between straight and curly quotes?

    I've recently moved from a Windows XP machine with MS Office to a Mac Pro with Pages.
    For the kinds of documents I typically work on, sometimes I need to have straight quotes, and sometimes curly quotes. With MS Word, I was able to create a couple of macros that would switch these preferences for me. With these macros linked to an icon in the toolbar, switching between straight and curly quotes was as easy as clicking a button.
    Now I'm looking for a way to do this -- or something like it -- with Pages.
    I know how to switch back and forth using the preferences menu, of course, but I'm looking for something quicker and simpler, since I often have to make this change several times a day.
    Can Automator do something like this? Or is there another way?
    -- Eric

    Turn off the auto correction and you can type Curly quotes with:
    left single ‘ option ]
    right single ’ option shift ]
    left double “ option [
    right double ” option shift [
    If you want the French quotes « and » they are option and option shift |
    Peter

  • How do I disable the cube effect when switching between accounts?

    Hello, I have a friend who wants to turn off the animated cube effect that happens when they switch between theirs and their wife's accounts. After a lot of googling I am not having much luck finding out how to do it. Does anyone here know?
    Interestingly, you can see what a difference it makes by loading "Quartz Debug" and unchecking "Enable Quartz Extreme" - makes fast user switching really fast! But I don't want to permanently disable Quartz Extreme, I just want to turn off this one animation.

    You can't disable the animation, as it is a part of the system/account controller as far as I know.

  • Can iCal use both English and French languages or does the System software need to be either French or English?

    Can iCal use both English and French languages or does the System software need to be either French or English?

    joanfromardon wrote:
    Can iCal use both English and French languages or does the System software need to be either French or English?
    The calendar language is determined by system prefs/language & text/formats.
    The app language is determined by system prefs/language & text/language, or you can probably use
    http://www.tj-hd.co.uk/en-gb/languageswitcher/

  • A540 How do I switch between HDMI and PC inputs?

    When I have an HDMI source plugged into the A540, I haven't been able to figure out how to switch between HDMI and PC inputs. How is this accomplished?

    You can browse the other store but unless you have a credit card and billing address in the other country you will not be able to purchase.
    All prices are in the local currency of that country that you are browsing.
    MJ

  • How to switch between primary and secondary langua...

    Hi guys,
    I've got an e52 but the only way to type in sec. Language while writing a message is:
    Option-> Input Options-> writing language-> primary writing language (which must be changed to new one)
    so there is no use of second. lang. or at least I don't know how to switch quickly between primary and second language without going that path.
    ANY HELP WOULD BE APPRECIATE.
    Aram

    HI Everyone,
    not sure if this helps. My solution is more fo Singpore users.
    As i text between English and Chinese, I was unable to set my Secondary language to Chinese as there is no option to do so in the Writing language menu.
    By discovery, i first set my Primay language as Chinese. Then further down the Language menu there is this option Default input. Click on that and select the default using Text case and select Ok.
    When writing sms, you can switch between this 2 languages using the # key.
    Hope it helps.
    Have a pleasant day.
    Aram_ocp wrote:
    Hi guys,
    I've got an e52 but the only way to type in sec. Language while writing a message is:
    Option-> Input Options-> writing language-> primary writing language (which must be changed to new one)
    so there is no use of second. lang. or at least I don't know how to switch quickly between primary and second language without going that path.
    ANY HELP WOULD BE APPRECIATE.
    Aram

  • How can I make my iPhone sync with iCal on my Mac and not with iCloud?

    I live and travel in Africa and wi-fi is frequently a luxury.  iCloud syncing between Mac and my iPhones (a 3GS & 4) is not possible but when I turn iClod off, it deletes the calendar on my Mac.  In another forum it was suggested that you export your various calendars (personal, business etc) to the desktop, log out of iCloud and therefore have your iCal calendar deleted, re-boot to clear anything in the cache, import the calendars which are then on My Mac and sync.  It worked all the way until the last bit.  Syncing the iPhone is clunkingly slow and it only syncs one of my calendars which is the only one that appears in the info dialogue box in iTunes when the iPhone is connected.  Can anyone help?  iCloud is I am sure fine for those who have regular access to wi-fi but not me - I will be happy to go back to my time capsule which has done me well over the years.
    Some advice please

    Plug yr iPhone to your compu in the old fashioned way with cable.
    Just to cover yourself...select the iPhone in Devices of left pane of iTunes window, then on main pane, select radio button Back up to Computer. Right click on the iPhone in devices, do a backup. It shld then be on your compu'.
    Then, back in main windo, select Info 'tab' from top of the right pane, and tick the Sync iCal events.
    I'm sure this will help.
    If it all goes pear-shape, u have the backup to restore the pre-sync device.

  • How to Make a pdf that can be downloaded, filled in and saved and then emailed; Acrobat 9 Pro; Windows

    Hi,
    I hope this hasn't been asked before, but I really need to figure out how to do this.   We take forms in Word, convert them using the wizard, and then the only way I can figure how to make them fill in able and then saveable is to distribute through email.  This won't work for me, I need to put them on a website so they don't rely on me to get the forms.
    Any help is appreciated.   Here is a link to a state work site here in washington that has exactly what I need. if that help to clarify what I'm talking  about.
    Best, Mary

    Hi Mary,
    I have recently gone through this same experience.
    The first thing is to set the security.
    Go to Advanced/Security/2 Encrypt with password.  On this page go to Permissions and click on Restrict editing.
    You will need to add a password, choose the printing allowed, and changes allowed - this is where you allow the form
    to be filled out.
    When you have finished these steps, click ok.
    Then from the Advaned menu choose "Extend Features in Adobe Reader".  You will see what access the user has to the form.
    Your form should be ready to email or add to a website as a pdf form.
    Hope this helps.
    Debbie

  • How to make a cell in a JTable to be uneditable and handle events

    I tried many things but failed,How do you make a cell in a JTable to be uneditable and also be able to handle events>Anyone who knows this please help.Thanx

    Hello Klaas2001
    You can add KeyListener ,MouseListener
    Suppose you have set the value of cell using setValueAt()
    table.addKeyListener(this);
    public void keyTyped(KeyEvent src)
    String val="";
    int r= table.getEditingRow();
    int c= table.getEditingColumn();
    val=table.getValueAt(r,c).toString();
    if (r!=-1 && c!=-1)
    TableCellEditor tableCellEditor = table.getCellEditor(r, c);
    tableCellEditor.stopCellEditing();
    table.clearSelection();
    table.setValueAt(val,r,c);
    public void keyReleased(KeyEvent src)
    public void keyPressed(KeyEvent src)
    table.addMouseListener(this);
    public void mouseClicked(MouseEvent e)
    public void mouseEntered(MouseEvent e)
    public void mouseExited(MouseEvent e)
    public void mousePressed(MouseEvent e)
    public void mouseReleased(MouseEvent e)
    if(e.getClickCount()>=2)//Double Click
    table.clearSelection();
    int r= table.getEditingRow();
    int c= table.getEditingColumn();
    if (r!=-1 && c!=-1)
    TableCellEditor tableCellEditor = table.getCellEditor (
    r,c);
    tableCellEditor.stopCellEditing();
    table.clearSelection();
    table.setValueAt("",r,c);
    }//Mouse Released
    You can remove keyListener and Mouse Listener whenever You want to edit
    then add it later.
    Regarding handling events implement javax.swing.event.TableModelListener
    table.getModel().addTableModelListener(this);
    public void tableChanged(javax.swing.event.TableModelEvent source)
    TableModel tabMod = (TableModel)source.getSource();
         switch (source.getType())
    case TableModelEvent.UPDATE:
         break;
         }//Table Changed Method
    //This method gets fired after table cell value is changed.

  • How to make a keyboard navigating multiple choice list in Flash and control it through actionscript?

    i am making an rpg style game in actionscript 3.0 and i want to make a multiple choice list. I know how to make the list with buttons and how to control it. My question is, how do you make a list that can be navigated using the keyborad arrows? What i am after is being able to hit up, and down to highlight the buttons and enter to chose the button.

    You'll need to make the buttons as movieclips so that you can control which display state they are in (highlighted versus not).
    Then you need to set up a listener for the keyboard keys so that you can have the selected button change and the execute if the Enter is pressed.  Here is a basic setup for a keyboard listener that shows how to detect the three keys you mentioned...
    stage.addEventListener(KeyboardEvent.KEY_DOWN,keyIsDown);
    function keyIsDown(e:KeyboardEvent):void  {
             if (e.keyCode == Keyboard.DOWN) {
                     trace("DOWN");
             } else if (e.keyCode == Keyboard.UP) {
                     trace("UP");
             } else if (e.keyCode == Keyboard.ENTER) {
                     trace("ENTER");

  • How to make in a program periodical​ly switched relay.

    I have a FP-1000(rs 232 controlled) with FP-DO-400 module.
    I need to switch it on(off) periodically. Something like switching it on every 30 seconds for 1 second.
    I just do not know how to make using LabView 7.0. I can control it switching manually but I'd like to make it automatically. Can someone give a couple of hints how to do it?
    Thanks.

    Hi,
    Thanks for posting your question on the NI forem.
    I have attached an example to make switching a simple boolean led on every 10 seconds for 1 "Minute"
    Essentially you would need a while loop, ever 10 sec the virtual led lights up in front panel the select vi resets the shift register every 10 sec and the loop exist after 60 sec (minute)
    Hope this helps!
    Thanks,
    Kurt App.Eng.
    Attachments:
    226838.vi ‏19 KB

  • Does anyone know how to make Safari send e-mail? Mine won't and hasn't for some time.

    I have been having trouble for some time sending e-mails by Safari - no problems with Mail - Does anyone know how to make Safari send e-mails?

    When we first got our new iMac we were able to send e-mail through Safari - somewhere in the last 2-3 years it stopped and we got the failure to deliver message. We then sent e-mails through Mail - it works well and we have gotten used to doing this. However, every once in a while I retry send e-mails through Safari and we still get the  failure to deliver notice. This has also happened when we try to forward some e-mails we receive (not all; most get forwarded).

  • How Do I Quickly Switch between Fusion and the Mac Desktops?

    How do I quickly switch between the two desktops? Also, is there any benefit to quitting Windows before I get out of Fusion?
    Thanks,
    Jim

    Command Tab will switch between the two desktops. If you don't quit Windows beofre closing Fusion you are suspending Windows. IMHO this isn't as clean as closing it. I have found closing Windows before closing Fusion makes my system more stable.

  • How do I - with Swiss German Keyboard Layout - switch between several windows of the same application, what is the shortcut

    can anyone pls help me with this. plus anbody explain me how this very basic feature that millions of people are using billions of times every day can be that hard to find on a mac?? there is hundreds of posts about this, but nothing for the swiss german keyboard. and apple: can you please make this just that simple and great as all the rest. thank you so much.

    Hi Kappy,
    well what you are saying is obvious to me. This is not the point for me and not what I wanted to know. But I think you answered my question anyway: OS X is unable to switch between windows of the same application as I mentioned in my example.
    WHY NOT???
    Every other OS is able to differentiate between windows and not just applications.
    Another example: The Mail application and an Email editor window. When you are writing an Email and you want to switch to the main window of the Mail application to read something you must again use the mouse!
    I mean Apple seems to be "somehow" using FreeBSD in the background and even in FreeBSD's window manager it is possible to switch between windows of the same application.
    Well, in the Apple world it is always the pour user who is not intelligent enough to understand Apple's philosophy ;-(
    To me this is not modern, it is simply a weakness of the OS.
    Cheers
    Quartz84

Maybe you are looking for

  • Color management: Adobe RGB 1998 issues in print module

    When printing to a JPEG file from the Print Module, I've noticed that the "Adobe RGB" profile differs substantially from the "Adobe RGB (1998)" profile supplied with Windows. When viewed with Photoshop, the "Adobe RGB" images are much more saturated

  • Back to orginal facebook and email notifications

    How do I get my iphone back to showing me the emails and facebooks without having to go in to see them to read them.

  • Free goods with material type = ROH

    Hello, i would like to give free-goods for a particular finished goods sales. the free-goods' material type is equal to ROH. when i maintain the free goods from VBN1, system tells me that "xxx Material  is not defined for sales org xxxx with dist. ch

  • Error in  JMS Adapter  for MQ series

    We have configured a JMS Adpater to connect to  MQ Serries queue manager running on our local server. The XI Server is a remote server where JMS adapter is deployed. Upon deployment we see following string in JMS adapter log - Sender channel. Details

  • 2 Question How to set the page size and  full screen

    I am looking to find out how to set the page to be 1024 by 768 static and also how to force a browser window to go to full screen. Thanks