How to get the language of the running InDesign?

Hi,
in my CS3 VB Script there is a a statement:
myParaStyle.KerningMethod = "Optical"
this code runs unter CS3 with English and German version of InDesign unchanged.
Now, with CS4, InDesign wants as parameter the strings "Optical" for Englissh, and "Optisch" for the German version.
How do I find out the language, InDesign is runnung?
P.S. Why is the parameter implementet as string and not as Identifier?
Thanks
Erwin

In JS you can use a locale-independent string:
myParaStyle.kerningMethod = "$ID/Optical"
Maybe it will work in VB...
@+
Marc
http://www.indiscripts.com

Similar Messages

  • How can I get the language of the user logged on using only DI API?

    Hello,
    how can I get the language of the user logged on using only DI API,
    without invoking the UI?
    Can I read the value from some table using sql?
    I could write to file the first user's connection to the language code in SAP and then use it from external program, but I do not like this solution ...
    I know only this possibility:
            '_SboCy ==> SAPbobsCOM.Company
            '_SboCys ==> SAPbobsCOM.CompanyService
            '_SboApp ==> SAPbouiCOM.Application
            CodLng Dim As String = ""
            Dim lng As SAPbobsCOM.UserLanguages _SboCy.GetBusinessObject = (BoObjectTypes.oUserLanguages)
            If lng.GetByKey (_SboApp.Language) Then
                codLng = lng.LanguageShortName
                'Etc. ..
            End If
            lng = Nothing
    Thanks

    Hi Enrico,
    The language settings are held on the user's Windows profile and not in the database. In SBO 2007A onwards there is an XML file that is created by the SBO client (previous versions stored the information in the registry). The file is called b1-current-user.xml and you'll find it in the temporary application data under the user's profile (by default this will be C:\Documents and Settings\<profile>\Local Settings\Application Data\SAP\SAP Business One for Windows XP). This XML file contains a node that looks like the following:
    <leaf kind="single" name="Language" type="String">
         <value>8</value>
    </leaf>
    where the value is the language id that should correspond to the same setting in the DI API. If your application will always run on a workstation where the SBO client is installed then you could read this XML file. Of course, this file may not exist for a particular Windows user if they have never opened the SBO client so you'd need to have a default setting.
    If you application will be installed on a workstation which doesn't have an SBO client installed on it then there is no way to tell what default language to use and you'll need to build this logic in to your own application (eg have a screen where the user can choose their preferred langauge and then store this as a config file in a similar way to how the SBO client works).
    Kind Regards,
    Owen

  • The language in the app store on my iPod touch is no longer English. How do I get English back?

    The language in the app store on my iPod touch is no longer English. How do I get English back?

    Do you have English selected in Settings>General>International>Language?
    What country's App/iTunes store are you using? Di y change it to other than to an English speaking country?
    To change
    How to Change Your App Store Account Location | eHow.com

  • I installed Firefox but get all my taskbars in Dutch (being based in Belgium, Europe), but I am used to work in English. How can I change the language of the browser? Thx

    All my action buttons on task & toolbars are in Dutch
    I would like to have them in English
    How to change the language of the browser?
    Thx

    You can download the english version here. [http://www.mozilla.org/en-US/firefox/all.html www.mozilla.org/en-US/firefox/all.html]

  • How to get boot camp in the emac

    how to get boot camp in the emac

    Furthermore, eMacs can only emulate the Windows environment, whereas Intel CPU Macs including the iMac you have running 10.6.8 can virtualize Windows.  Emulation is a poor man's solution, because software is used to replace functions that normally take place with hardware.  You can use the iMac to do any data conversion before it gets sent back to the eMac over a network.  See my FAQ* regarding Windows on the Mac:
    http://www.macmaps.com/macosxnative.html#WINTEL

  • How do you add the language of the dictionary in pages for the whole document?

    How do you add the language of the dictionary in pages for the whole document. When I add the british language it does not stay ON for the whole document. It goes back to "none"???? I am using pages 09 version 4.1 (923).

    This is a feature of Numbers.   If you repost on the iWork forum you may get more information.

  • How to get form input in the same portlet using pageflow

    Hi this is premkumar
    i created 2 portlet in a portal how to get form input in the sampe portlet using
    pageflow
    help as early as possible

    Do to the complexity of the program we need to run it with sequences.  This is because we need to aquire data with DAQ until it reaches a certain point and then stop collecting so that it can do its process (only once for all times criteria is met), and then loop around till again collecting after DAQ drops back below certain point looking to once again reach that point.  Another flat sequence is going outside of this where I want to put the prompt and have a user input to affect how many times that that the inner loop is run (No a For Loop instead of the while loop will not work either for other reasons). 
    I just want to know if after the program starts you can have a user input that will change the effect of the rest of the programs action based on the number inputed.

  • How can I change the language on the editor with "alt + shift"?

    Hi,
    I created a java JApplet, with a JTextPane inside.
    I want the user to be able to change the language using the
    combination keys "alt + shift",
    but when I'm pressing ALT I'm loosing the focus (to the browser),
    so it's not working.
    When I'm holding the ALT key, and than pressing the Shift key twice!, It is working.
    How can I fix it so it will work with regular "alt + shift"?
    Thanks,
    Maoz

    Hello
    This forum is for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows, and not related to Microsoft Office or your question in any way. If you have issues or questions about Office, it's probably best you post Office related questions on Microsoft's own forums for their Mac products.
    http://www.officeformac.com/productforums

  • ¿How can I change the language of the film I want to buy?

    Hi,
    So, I'm new to all the buying-on-iTunes experience and have a doubt regarding the language of the film I'd be about to buy. The thing is I live in Germany and was about to buy a film on iTunes —for the first time as currently stated— but I wouldn't like to have the film dubbed in german —which is how they normally have them here—, instead, I'd like to have it in its original language; english. ¿How could I do this? ¿Is it even possible to change the language even though I'm on the german store/live in Germany? Thanks in advance.
    SebastiánRojas

    HI there,
    Just bought an Apple TV from the France Apple store.  I've got a few films that I've purchased from the iTunes store too.  The ones I've purchased there are both in English and French.  Not all films are done in two languages but it seems that if the original version is in English, then it will have both. 
    As for switching between two languages, I just ran into that problem.  I sent the video from my laptop to the Apple TV.  On my computer it would play in English but played on the TV, it would play only in French. 
    Solution, you don't have a simple menu icon to click on, or button on the Apple TV remote.  You'll have to go into settings --> audio and video  -- >  Audio Language (or subtitle language if you are looking for that).
    If it is set to "Default" it chooses the language you hear.  I heard French probably because I bought the film in the French iTunes store.  When I chose "English" as the Audio Language, the film switched to English.
    I hope this helps you and others who run into the same question.

  • I am in pages, how do I change the language of the templates to english?

    How do you change the language of the templates to english in pages?

    You don't.
    They are templates.
    They use Latin (which frightens some people) so you don't get caught up with what it actually says.
    You simply select and replace it with your own material because they are placeholders.
    You learn a bit about how Pages works starting with the Pages09_UserGuide.pdf and Video Tutorials, both under the Help menu..
    Peter

  • How to get maximal value from the data/class for show in Map legend

    I make WAD report that using Map Web Item.
    I devide to four (4) classes for legend (Generate_Breaks).
    I want to change default value for the class by javascript and for this,
    I need to get maximal value from the class.
    How to get maximal value from the data/class.
    please give me solution for my problem.
    Many Thx
    Eddy Utomo

    use this to get the following End_date
    <?following-sibling::../END_DATE?>
    Try this
    <?for-each:/ROOT/ROW?>
    ==================
    Current StartDate <?START_DATE?>
    Current End Date <?END_DATE?>
    Next Start Date <?following-sibling::ROW/END_DATE?>
    Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
    ================
    <?end for-each?>
    o/p
    ==================
    Current StartDate 01-01-1980
    Current End Date 01-01-1988
    Next Start Date 01-01-1990
    Previous End Date
    ================
    ==================
    Current StartDate 01-01-1988
    Current End Date 01-01-1990
    Next Start Date 01-01-2005
    Previous End Date 01-01-1988
    ================
    ==================
    Current StartDate 01-01-2000
    Current End Date 01-01-2005
    Next Start Date
    Previous End Date 01

  • I deleted most visited, latest headlines, getting started, yahoo, youtube, apple in mozilla's folder,how to get it back like the first time i installed? thx

    i deleted most visited, latest headlines, getting started, yahoo, youtube, apple in mozilla's folder,how to get it back like the first time i installed? thx

    if you hid the menu bar and the navigation bar simply press the alt button, this will bring back the menu bar and form there you can right click and select which bars you want shown

  • How to get Open Balance for the year and Total Ending Balance?

    For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
    Is there any function module available? or should I read from some tables? Please advice.

    Hello Paul,
    You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
    BAPI_GL_GETGLACCBALANCE      
    BAPI_GL_GETGLACCCURRENTBALANCE
    BAPI_GL_ACC_GETBALANCE      
    BAPI_GL_ACC_GETCURRENTBALANCE
    BAPI_GL_ACC_GETPERIODBALANCES
    BAPI_COND_VAL_DECRE_BALANCES
    You might have to put in some of your own logic after the BAPI call to get what you want.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
    Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM

  • How can I change the language of the time and date and numbers?

    Hey
    I bought the iPhone 5 and when I setted the settings I chose the country where I live now but the time and date and other numbers because in the language of the country and not in the language that I chose which Is english
    so how can I change them?

    Go to settings >> general and checkout keyboard, international and date &amp; time.

  • How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)

    How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)

    Use a normal question, and do not add the score to the total score. That will give you a correct score at the end. But the total number of questions, that system variable will still take into account all questions. You'll need a user variable, and calculate its value by subtracting 1 from the system variable cpQuizInfoTotalQuestionsPerProject. Same for the progress indicator if you want to show it?
    Customized Progress Indicator - Captivate blog
    If you want to allow Review, you'll have to tweak as well. You didn't specify the version, and all those questions I now mentioned.
    And my approach, since you talk about only one question: create a custom question, because you'll have total control then.

  • Have a new PC desktop with 4 hard drives, new c, d and old c, d, My ipad library is in old c, how to get my itune open the right drive, it keeps on open in new c drive.

    Have a new PC desktop with 4 hard drives, new c, d and old c, d, My ipad library is in old c, how to get my itune open the right drive, it keeps on open in new c drive. It said my computer is not authorized. I want to move all the old c to the new c drive, or get the itune to open my old c drive when I log in.

    might be some help on one of these links.
    Windows - Change iPad default backup location
    http://apple-ipad-tablet-help.blogspot.com/2010/07/change-ipad-default-backup-lo cation.html
    Windows - Changing IPhone and iPad backup location
    http://goodstuff2share.wordpress.com/2011/05/22/changing-iphone-and-ipad-backup- location/
    Sync Your iOS Device with a New Computer Without Losing Data
    http://www.howtogeek.com/104298/sync-your-ios-device-with-a-new-computer-without -losing-data/
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    https://discussions.apple.com/docs/DOC-3141
     Cheers, Tom

Maybe you are looking for

  • Showmount: new-host: RPC: Program not registered

    I always have problem shutting down my solaris system, anytime i issue the shutdown command i always get this error "showmount: new-host: RPC: Program not registered" and the system dows not shutdown instead reboots. bash-3.00$ su Password: # shutdow

  • Oracle 8.1.7 for Linux

    Anyone know when Oracle 8.1.7 for Linux will be available for download or if it will fix the incompatibility problems with Red Hat 7? Philip Ross

  • Process dimensions and Applications after Restore

    We are using BPC 7.0MS.  We need to process dimensions and Applications after the database restore in case of any Optimization failures. It takes around 3 hours for us to do this process. Can we skip the BPC process by taking backup of Database and S

  • Unsupported image format with 3:2 or 16:9 aspect for Leica Digilux 3

    I can import RAW files just fine with my Leica Digilux 3 dslr, but when I import RAW images using 3:2 or 16:9 aspect formats, aperture comes up with unsupported image format. appreciate any feedback. as an fyi, it does it on a macbook pro and an imac

  • Garage band help does not work

    i installed ilife 11 because i wanted the new garage band features. when i open garage band help and type in a topic, i get nothing but an instruction to download garage band help. i click on that and the help window goes blank. what's up with that?