Please assist in setting the NLS Language in ODI

Hi all
I am trying to execute this statement "begin apps.mo_global.int('CN') end;"
and i am getting error because of NLS Language,i ran the same statement in SQL Developer and it gave me error,then i went and change the NLS Language to american in SQL Developer and tried to execute the statement again and it went through successfully in sql developer,can you please assist urgently on how to do the same in ODI.
Regards
Donald

Hi,
A colleague came across a similar problem to do with character settings when importing from a MySQL source. To get around it he edited the LKM to add a new command prior to the creation of the temp table:
alter session set NLS_LENGTH_SEMANTICS='CHAR'
You could do something similar, only your command would be something like:
alter session set NLS_LANGUAGE= 'AMERICAN'
Hope this helps,
_Phil
Edited by: _Phil on Aug 9, 2011 3:24 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • To set the Default Language

    How to set the default language to any other language other than English.
    Say for example Chinese.

    If you want change the language for the session:
    alter session set nls_language = "SIMPLIFIED CHINESE"
    alter session set nls_language = "TRADITIONAL CHINESE"
    if you want modify the language from DDBB
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/applocaledata.htm#sthref1958
    Updates to the Oracle Language and Territory Definition Files
    Changes have been made to the content in some of the language and territory definition files in Oracle Database 10g. These updates are necessary to correct the legacy definitions which no longer meet the local conventions in some of the Oracle supported languages and territories. These changes include modifications to the currency symbols, month names, and group separators. One example is the local currency symbol for Brazil. This has been updated from Cr$ to R$ in Oracle Database 10g.
    Please refer to the "Oracle Language and Territory definition changes" table documented in the $ORACLE_HOME/nls/data/old/data_changes.html file for a detailed list of the changes.
    Oracle Database 10g customers should review their existing application code to make sure that the correct cultural conventions that are defined in Oracle Database 10g are being used. For customers who may not be able to make the necessary code changes to support their applications, Oracle offers Oracle9i locale definition files with Oracle Database 10g.
    To revert back to the Oracle9i language and territory behavior, perform the following:
    Shutdown the database.
    Run the script cr9idata.pl from the $ORACLE_HOME/nls/data/old directory.
    Set the ORA_NLS10 environment variable to the newly created $ORACLE_HOME/nls/data/9idata directory.
    Restart the database.
    Steps 2 and 3 will need to be repeated for all 10g database clients that need to revert back to the Oracle9i definition files.
    Oracle Corporation strongly recommends that customers use the Oracle Database 10g locale definition files; Oracle9i locale definition files will be desupported in a future release.

  • How to set the NLS in ADF for a session?

    Hello,
    Is there a built-in way to set the NLS parameters (Oracle-specific Date Format, Language..etc..) for the current DB session in ADF?
    thanks.

    Hi there,
    From your ViewController properties under Run you can add the following java option -Duser.timezone=CET. If you want to do it at the application level then you need to do the following:
    - In your AM override the prepareSession(Session session) method with custom code to set up your NLS
    - Create a class that implements the PagePhaseListener
    - Override beforePhase(PagePhaseEvent pagePhaseEvent) method to set the locale
    public void beforePhase(PagePhaseEvent pagePhaseEvent) {
    Integer phase = pagePhaseEvent.getPhaseId();
    if (phase.equals(ADFLifecycle.PREPARE_MODEL_ID)) {
    FacesContext facescontext = FacesContext.getCurrentInstance();
    String language =
    facescontext.getExternalContext().getRequestLocale().getLanguage().toUpperCase();
    FODApplicationModuleImpl.preferredLanguage = language;
    FODApplicationModuleImpl.isWebUser = true;
    Hope this helps.
    Juaan C.

  • Setting the reading language in PDF programmatically

    Hi, I have searched the forums and didn't find a reliable post on how to set the reading language for accessibility in a PDF document programmatically. Maybe using a pdfmark or specifying XMP metadata or postscript code, javascript or any other way. Any ideas will be appreciated.

    Thanks, this looks very promising. I am using FrameMaker and the FDK. Is
    there a way to specify the
    Lang key using  pdfmark or XMP? I could also embed postscript code if I
    knew what the correct code would
    be. I don't know much about PDF/PS and any help will be appreciated.

  • How I can set the spelling language in Pages for iPad?

    how I can set the spelling language in Pages for iPad? may for german...

    how I can set the spelling check to other language in Papers/iPad?
    The only choices you have in the iPad itself are to change the keyboard or change the user interface language. If that doesn't do what you want, probably best ask the people who make Papers.

  • Please help to set the time zone in a porper way

    Dear Folks please help to set the time zone in a porper way
    select sessiontimezone from dual;
    Database: Oracle 11.2.0.2
    Operating system: AIX 5.3
    SESSIONTIMEZONE
    +00:00
    SQL> select systimestamp from dual;
    SYSTIMESTAMP
    06-NOV-12 04.21.07.438426 AM +00:00
    SQL> select dbtimezone from dual;
    DBTIME
    +00:00
    SQL> Select DBMS_SCHEDULER.get_sys_time_zone_name from dual;
    GET_SYS_TIME_ZONE_NAME
    Asia/Kuala_Lumpur
    By looking Doc ID: Note:149120.1 in Metalink:
    ALTER DATABASE <my db name> SET TIME_ZONE = 'Asia/Kuala_Lumpur'
    or
    ALTER DATABASE <my db name> SET TIME_ZONE = '+08:00'
    For reflecting the change I refreshed the db by shutdown and restart.
    but still the returning no timezone value for user schema, please help how to set the time zone in a proper way?

    SQL> conn sys/sys as sysdba
    Connected.
    DBNAME
    db
    SQL> select u.name || '.' || o.name || '.' || c.name "Col TSLTZ"
      2    from sys.obj$ o, sys.col$ c, sys.user$ u
      3   where c.type# = 231
      4     and o.obj# = c.obj#
      5     and u.user# = o.owner#;
    no rows selected
    SQL>  select DBTIMEZONE from dual;
    DBTIME
    +00:00
    SQL> alter database set time_zone='Asia/Kuala_Lumpur';
    Database altered.
    SQL> select DBTIMEZONE from dual;
    DBTIME
    +00:00
    SQL> startup force;
    ORACLE instance started.
    Total System Global Area  426852352 bytes
    Fixed Size                  1375060 bytes
    Variable Size             260048044 bytes
    Database Buffers          159383552 bytes
    Redo Buffers                6045696 bytes
    Database mounted.
    Database opened.
    SQL> select DBTIMEZONE from dual;
    DBTIMEZONE
    Asia/Kuala_LumpurRefer:
    Re: how to check db time zone
    Edited by: Ora on 5 Nov, 2012 11:36 PM

  • Set the default language and other preferences

    This question was posted in response to the following article: http://help.adobe.com/en_US/robohelp/robohtml/WS1b49059a33f7772672b3318712c5ece24f8-8000.h tml

    It is in the help, the issue is with finding it!
    Click Help > Contents & Index.
    When the help opens enter Default Language. The important bit is to tick This Reference Only so that you stay in the help. That tells you how to set the default language but not how to get to the screen where you do that. To get to that you need to go up a level, use the breadcrumbs.
    I realise it's too late for what you wanted but it may help knowing how to get another answer in the future.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Oh wow finally apart of a community im so excited. Hi everyone. I just got abode edge animate and am not so familiar wif this product though i sense a hint of flash buried there somewhere can you guys please assist me in the basics of edge? thanks.

    Oh wow finally apart of a community im so excited. Hi everyone. I just got abode edge animate and am not so familiar wif this product though i sense a hint of flash buried there somewhere can you guys please assist me in the basics of edge? thanks.

    That's going to be a ridiculous waste of money and energy.
    First of all, the current ATI drivers don't support multiple GPUs, so at the moment even a single 4870X2 would be only a 'normal' 4870 (which is quite a speed beast already). GFX drivers evolve rapidly, so things might look different next month, but when it comes to Linux and hardware there's one Golden Rule: stay away from the newest stuff and wait for proper support to get coded.
    I also wonder what power supply could possibly cope with the differences between idle and full load; that's way beyond 400W. But then, I'm one of those "quiet&green" types where >100W idle is already a bit much.
    I kind of understand that you want to get it done and not worry about hardware for the next 10 years or so, but that's simply not how the hardware world works and never did. At least not for the average consumer.

  • How to set the document language based on the contents of a text variable?

    In my Indesign documents, I use a text variable in which I type the abbreviation of the document language according ISO639-1 (e.g. EN, DE, ES, ...). I'd like to have a JavaScript that checks this text variable every time the document is opened and then sets the Language property of my Normal paragraph style, but I don't have any experience with JavaScript.
    Can someone help me please?
    PS: I use InDesign CS5.5.

    Hi Todd,
    I believe ES4 sp1 allows you to do this, but I don't have that version so aren't sure.  I follow the steps described in this blog, LiveCycle Blog: Gesperrte PDF-Eigenschaften in XFA-Formularen ändern//Edit locked PDF properties in XFA forms seems very hacky but does work (the English version comes after the German).
    Regards
    Bruce

  • I set the wrong language how do I change it to English?

    I just got my iPod nano. I accidently set the language in something I cannot read. How can I change it to English?

    Learn that language.
    Just kidding... hit the menu button a few times to make sure you're at the top-level menu. Then scroll down to the sixth option (five clicks down... it's "Settings" in English). Select that, then scroll to the fifteenth option (fourteen clicks down, also the third from the last option... "Language" in English). Select this, then select the first option in this menu. That should be English.

  • How to set the return language? i read the api already

    import java.io.*;
    import java.util.*;
    class Listing_Available_Locales
         public static void main(String args[])   
             Locale[] locales = Locale.ENGLISH(); //error is here
                             //Locale[] locales = Locale.getAvailableLocales(); //this line no error
             for (int i=0; i<locales.length; i++) {
                 // Get the 2-letter language code
                 String language = locales.getLanguage();
         // Get the 2-letter country code; may be equal to ""
         String country = locales[i].getCountry();
         // Get localized name suitable for display to the user
         String locName = locales[i].getDisplayName();
         System.out.println(language+" "+country+" "+locName);
    local api is like below
    java.util
    Class Locale
    java.lang.Object
    java.util.Locale
    All Implemented Interfaces:
    Cloneable, Serializable
    public final class Locale
    extends Object
    implements Cloneable, Serializable
    A Locale object represents a specific geographical, political, or cultural region. An operation that requires a Locale to perform its task is called locale-sensitive and uses the Locale to tailor information for the user. For example, displaying a number is a locale-sensitive operation--the number should be formatted according to the customs/conventions of the user's native country, region, or culture.
    Create a Locale object using the constructors in this class:
    Locale(String language)
    Locale(String language, String country)
    Locale(String language, String country, String variant)
    The language argument is a valid ISO Language Code. These codes are the lower-case, two-letter codes as defined by ISO-639. You can find a full list of these codes at a number of sites, such as:
    http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt
    The country argument is a valid ISO Country Code. These codes are the upper-case, two-letter codes as defined by ISO-3166. You can find a full list of these codes at a number of sites, such as:
    http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html
    The variant argument is a vendor or browser-specific code. For example, use WIN for Windows, MAC for Macintosh, and POSIX for POSIX. Where there are two variants, separate them with an underscore, and put the most important one first. For example, a Traditional Spanish collation might construct a locale with parameters for language, country and variant as: "es", "ES", "Traditional_WIN".
    Because a Locale object is just an identifier for a region, no validity check is performed when you construct a Locale. If you want to see whether particular resources are available for the Locale you construct, you must query those resources. For example, ask the NumberFormat for the locales it supports using its getAvailableLocales method.
    Note: When you ask for a resource for a particular locale, you get back the best available match, not necessarily precisely what you asked for. For more information, look at ResourceBundle.
    The Locale class provides a number of convenient constants that you can use to create Locale objects for commonly used locales. For example, the following creates a Locale object for the United States:
    Locale.US
    Once you've created a Locale you can query it for information about itself. Use getCountry to get the ISO Country Code and getLanguage to get the ISO Language Code. You can use getDisplayCountry to get the name of the country suitable for displaying to the user. Similarly, you can use getDisplayLanguage to get the name of the language suitable for displaying to the user. Interestingly, the getDisplayXXX methods are themselves locale-sensitive and have two versions: one that uses the default locale and one that uses the locale specified as an argument.
    The Java 2 platform provides a number of classes that perform locale-sensitive operations. For example, the NumberFormat class formats numbers, currency, or percentages in a locale-sensitive manner. Classes such as NumberFormat have a number of convenience methods for creating a default object of that type. For example, the NumberFormat class provides these three convenience methods for creating a default NumberFormat object:
    NumberFormat.getInstance()
    NumberFormat.getCurrencyInstance()
    NumberFormat.getPercentInstance()
    These methods have two variants; one with an explicit locale and one without; the latter using the default locale.
    NumberFormat.getInstance(myLocale)
    NumberFormat.getCurrencyInstance(myLocale)
    NumberFormat.getPercentInstance(myLocale)
    A Locale is the mechanism for identifying the kind of object (NumberFormat) that you would like to get. The locale is just a mechanism for identifying objects, not a container for the objects themselves.
    Each class that performs locale-sensitive operations allows you to get all the available objects of that type. You can sift through these objects by language, country, or variant, and use the display names to present a menu to the user. For example, you can create a menu of all the collation objects suitable for a given language. Such classes must implement these three class methods:
    public static Locale[] getAvailableLocales()
    public static String getDisplayName(Locale objectLocale,
    Locale displayLocale)
    public static final String getDisplayName(Locale objectLocale)
    // getDisplayName will throw MissingResourceException if the locale
    // is not one of the available locales.
    Since:
    1.1
    See Also:
    ResourceBundle, Format, NumberFormat, Collator, Serialized Form
    Field Summary
    static Locale CANADA
    Useful constant for country.
    static Locale CANADA_FRENCH
    Useful constant for country.
    static Locale CHINA
    Useful constant for country.
    static Locale CHINESE
    Useful constant for language.
    static Locale ENGLISH
    Useful constant for language.
    static Locale FRANCE
    Useful constant for country.
    static Locale FRENCH
    Useful constant for language.
    static Locale GERMAN
    Useful constant for language.
    static Locale GERMANY
    Useful constant for country.
    static Locale ITALIAN
    Useful constant for language.
    static Locale ITALY
    Useful constant for country.
    static Locale JAPAN
    Useful constant for country.
    static Locale JAPANESE
    Useful constant for language.
    static Locale KOREA
    Useful constant for country.
    static Locale KOREAN
    Useful constant for language.
    static Locale PRC
    Useful constant for country.
    static Locale SIMPLIFIED_CHINESE
    Useful constant for language.
    static Locale TAIWAN
    Useful constant for country.
    static Locale TRADITIONAL_CHINESE
    Useful constant for language.
    static Locale UK
    Useful constant for country.
    static Locale US
    Useful constant for country.
    Constructor Summary
    Locale(String language)
    Construct a locale from a language code.
    Locale(String language, String country)
    Construct a locale from language, country.
    Locale(String language, String country, String variant)
    Construct a locale from language, country, variant.
    Method Summary
    Object clone()
    Overrides Cloneable
    boolean equals(Object obj)
    Returns true if this Locale is equal to another object.
    static Locale[] getAvailableLocales()
    Returns a list of all installed locales.
    String getCountry()
    Returns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.
    static Locale getDefault()
    Gets the current value of the default locale for this instance of the Java Virtual Machine.
    String getDisplayCountry()
    Returns a name for the locale's country that is appropriate for display to the user.
    String getDisplayCountry(Locale inLocale)
    Returns a name for the locale's country that is appropriate for display to the user.
    String getDisplayLanguage()
    Returns a name for the locale's language that is appropriate for display to the user.
    String getDisplayLanguage(Locale inLocale)
    Returns a name for the locale's language that is appropriate for display to the user.
    String getDisplayName()
    Returns a name for the locale that is appropriate for display to the user.
    String getDisplayName(Locale inLocale)
    Returns a name for the locale that is appropriate for display to the user.
    String getDisplayVariant()
    Returns a name for the locale's variant code that is appropriate for display to the user.
    String getDisplayVariant(Locale inLocale)
    Returns a name for the locale's variant code that is appropriate for display to the user.
    String getISO3Country()
    Returns a three-letter abbreviation for this locale's country.
    String getISO3Language()
    Returns a three-letter abbreviation for this locale's language.
    static String[] getISOCountries()
    Returns a list of all 2-letter country codes defined in ISO 3166.
    static String[] getISOLanguages()
    Returns a list of all 2-letter language codes defined in ISO 639.
    String getLanguage()
    Returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.
    String getVariant()
    Returns the variant code for this locale.
    int hashCode()
    Override hashCode.
    static void setDefault(Locale newLocale)
    Sets the default locale for this instance of the Java Virtual Machine.
    String toString()
    Getter for the programmatic name of the entire locale, with the language, country and variant separated by underbars.
    Methods inherited from class java.lang.Object
    finalize, getClass, notify, notifyAll, wait, wait, wait
    Field Detail
    ENGLISH
    public static final Locale ENGLISHUseful constant for language.
    FRENCH
    public static final Locale FRENCHUseful constant for language.
    GERMAN
    public static final Locale GERMANUseful constant for language.
    ITALIAN
    public static final Locale ITALIANUseful constant for language.
    JAPANESE
    public static final Locale JAPANESEUseful constant for language.
    KOREAN
    public static final Locale KOREANUseful constant for language.
    CHINESE
    public static final Locale CHINESEUseful constant for language.
    SIMPLIFIED_CHINESE
    public static final Locale SIMPLIFIED_CHINESEUseful constant for language.
    TRADITIONAL_CHINESE
    public static final Locale TRADITIONAL_CHINESEUseful constant for language.
    FRANCE
    public static final Locale FRANCEUseful constant for country.
    GERMANY
    public static final Locale GERMANYUseful constant for country.
    ITALY
    public static final Locale ITALYUseful constant for country.
    JAPAN
    public static final Locale JAPANUseful constant for country.
    KOREA
    public static final Locale KOREAUseful constant for country.
    CHINA
    public static final Locale CHINAUseful constant for country.
    PRC
    public static final Locale PRCUseful constant for country.
    TAIWAN
    public static final Locale TAIWANUseful constant for country.
    UK
    public static final Locale UKUseful constant for country.
    US
    public static final Locale USUseful constant for country.
    CANADA
    public static final Locale CANADAUseful constant for country.
    CANADA_FRENCH
    public static final Locale CANADA_FRENCHUseful constant for country.
    Constructor Detail
    Locale
    public Locale(String language,
    String country,
    String variant)Construct a locale from language, country, variant. NOTE: ISO 639 is not a stable standard; some of the language codes it defines (specifically iw, ji, and in) have changed. This constructor accepts both the old codes (iw, ji, and in) and the new codes (he, yi, and id), but all other API on Locale will return only the OLD codes.
    Parameters:
    language - lowercase two-letter ISO-639 code.
    country - uppercase two-letter ISO-3166 code.
    variant - vendor and browser specific code. See class description.
    Throws:
    NullPointerException - thrown if any argument is null.
    Locale
    public Locale(String language,
    String country)Construct a locale from language, country. NOTE: ISO 639 is not a stable standard; some of the language codes it defines (specifically iw, ji, and in) have changed. This constructor accepts both the old codes (iw, ji, and in) and the new codes (he, yi, and id), but all other API on Locale will return only the OLD codes.
    Parameters:
    language - lowercase two-letter ISO-639 code.
    country - uppercase two-letter ISO-3166 code.
    Throws:
    NullPointerException - thrown if either argument is null.
    Locale
    public Locale(String language)Construct a locale from a language code. NOTE: ISO 639 is not a stable standard; some of the language codes it defines (specifically iw, ji, and in) have changed. This constructor accepts both the old codes (iw, ji, and in) and the new codes (he, yi, and id), but all other API on Locale will return only the OLD codes.
    Parameters:
    language - lowercase two-letter ISO-639 code.
    Throws:
    NullPointerException - thrown if argument is null.
    Since:
    1.4
    Method Detail
    getDefault
    public static Locale getDefault()Gets the current value of the default locale for this instance of the Java Virtual Machine.
    The Java Virtual Machine sets the default locale during startup based on the host environment. It is used by many locale-sensitive methods if no locale is explicitly specified. It can be changed using the setDefault method.
    Returns:
    the default locale for this instance of the Java Virtual Machine
    setDefault
    public static void setDefault(Locale newLocale)Sets the default locale for this instance of the Java Virtual Machine. This does not affect the host locale.
    If there is a security manager, its checkPermission method is called with a PropertyPermission("user.language", "write") permission before the default locale is changed.
    The Java Virtual Machine sets the default locale during startup based on the host environment. It is used by many locale-sensitive methods if no locale is explicitly specified.
    Since changing the default locale may affect many different areas of functionality, this method should only be used if the caller is prepared to reinitialize locale-sensitive code running within the same Java Virtual Machine, such as the user interface.
    Parameters:
    newLocale - the new default locale
    Throws:
    SecurityException - if a security manager exists and its checkPermission method doesn't allow the operation.
    NullPointerException - if newLocale is null
    See Also:
    SecurityManager.checkPermission(java.security.Permission), PropertyPermission
    getAvailableLocales
    public static Locale[] getAvailableLocales()Returns a list of all installed locales.
    getISOCountries
    public static String[] getISOCountries()Returns a list of all 2-letter country codes defined in ISO 3166. Can be used to create Locales.
    getISOLanguages
    public static String[] getISOLanguages()Returns a list of all 2-letter language codes defined in ISO 639. Can be used to create Locales. [NOTE: ISO 639 is not a stable standard-- some languages' codes have changed. The list this function returns includes both the new and the old codes for the languages whose codes have changed.]
    getLanguage
    public String getLanguage()Returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.
    NOTE: ISO 639 is not a stable standard-- some languages' codes have changed. Locale's constructor recognizes both the new and the old codes for the languages whose codes have changed, but this function always returns the old code. If you want to check for a specific language whose code has changed, don't do
    if (locale.getLanguage().equals("he")
    Instead, do
    if (locale.getLanguage().equals(new Locale("he", "", "").getLanguage())
    See Also:
    getDisplayLanguage()
    getCountry
    public String getCountry()Returns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.
    See Also:
    getDisplayCountry()
    getVariant
    public String getVariant()Returns the variant code for this locale.
    See Also:
    getDisplayVariant()
    toString
    public final String toString()Getter for the programmatic name of the entire locale, with the language, country and variant separated by underbars. Language is always lower case, and country is always upper case. If the language is missing, the string will begin with an underbar. If both the language and country fields are missing, this function will return the empty string, even if the variant field is filled in (you can't have a locale with just a variant-- the variant must accompany a valid language or country code). Examples: "en", "de_DE", "_GB", "en_US_WIN", "de__POSIX", "fr__MAC"
    Overrides:
    toString in class Object
    Returns:
    a string representation of the object.
    See Also:
    getDisplayName()
    getISO3Language
    public String getISO3Language()
    throws MissingResourceExceptionReturns a three-letter abbreviation for this locale's language. If the locale doesn't specify a language, this will be the empty string. Otherwise, this will be a lowercase ISO 639-2/T language code. The ISO 639-2 language codes can be found on-line at ftp://dkuug.dk/i18n/iso-639-2.txt
    Throws:
    MissingResourceException - Throws MissingResourceException if the three-letter language abbreviation is not available for this locale.
    getISO3Country
    public String getISO3Country()
    throws MissingResourceExceptionReturns a three-letter abbreviation for this locale's country. If the locale doesn't specify a country, this will be tbe the empty string. Otherwise, this will be an uppercase ISO 3166 3-letter country code.
    Throws:
    MissingResourceException - Throws MissingResourceException if the three-letter country abbreviation is not available for this locale.
    getDisplayLanguage
    public final String getDisplayLanguage()Returns a name for the locale's language that is appropriate for display to the user. If possible, the name returned will be localized for the default locale. For example, if the locale is fr_FR and the default locale is en_US, getDisplayLanguage() will return "French"; if the locale is en_US and the default locale is fr_FR, getDisplayLanguage() will return "anglais". If the name returned cannot be localized for the default locale, (say, we don't have a Japanese name for Croatian), this function falls back on the English name, and uses the ISO code as a last-resort value. If the locale doesn't specify a language, this function returns the empty string.
    getDisplayLanguage
    public String getDisplayLanguage(Locale inLocale)Returns a name for the locale's language that is appropriate for display to the user. If possible, the name returned will be localized according to inLocale. For example, if the locale is fr_FR and inLocale is en_US, getDisplayLanguage() will return "French"; if the locale is en_US and inLocale is fr_FR, getDisplayLanguage() will return "anglais". If the name returned cannot be localized according to inLocale, (say, we don't have a Japanese name for Croatian), this function falls back on the default locale, on the English name, and finally on the ISO code as a last-resort value. If the locale doesn't specify a language, this function returns the empty string.
    getDisplayCountry
    public final String getDisplayCountry()Returns a name for the locale's country that is appropriate for display to the user. If possible, the name returned will be localized for the default locale. For example, if the locale is fr_FR and the default locale is en_US, getDisplayCountry() will return "France"; if the locale is en_US and the default locale is fr_FR, getDisplayLanguage() will return "Etats-Unis". If the name returned cannot be localized for the default locale, (say, we don't have a Japanese name for Croatia), this function falls back on the English name, and uses the ISO code as a last-resort value. If the locale doesn't specify a country, this function returns the empty string.
    getDisplayCountry
    public String getDisplayCountry(Locale inLocale)Returns a name for the locale's country that is appropriate for display to the user. If possible, the name returned will be localized according to inLocale. For example, if the locale is fr_FR and inLocale is en_US, getDisplayCountry() will return "France"; if the locale is en_US and inLocale is fr_FR, getDisplayLanguage() will return "Etats-Unis". If the name returned cannot be localized according to inLocale. (say, we don't have a Japanese name for Croatia), this function falls back on the default locale, on the English name, and finally on the ISO code as a last-resort value. If the locale doesn't specify a country, this function returns the empty string.
    getDisplayVariant
    public final String getDisplayVariant()Returns a name for the locale's variant code that is appropriate for display to the user. If possible, the name will be localized for the default locale. If the locale doesn't specify a variant code, this function returns the empty string.
    getDisplayVariant
    public String getDisplayVariant(Locale inLocale)Returns a name for the locale's variant code that is appropriate for display to the user. If possible, the name will be localized for inLocale. If the locale doesn't specify a variant code, this function returns the empty string.
    getDisplayName
    public final String getDisplayName()Returns a name for the locale that is appropriate for display to the user. This will be the values returned by getDisplayLanguage(), getDisplayCountry(), and getDisplayVariant() assembled into a single string. The display name will have one of the following forms:
    language (country, variant)
    language (country)
    language (variant)
    country (variant)
    language
    country
    variant
    depending on which fields are specified in the locale. If the language, country, and variant fields are all empty, this function returns the empty string.
    getDisplayName
    public String getDisplayName(Locale inLocale)Returns a name for the locale that is appropriate for display to the user. This will be the values returned by getDisplayLanguage(), getDisplayCountry(), and getDisplayVariant() assembled into a single string. The display name will have one of the following forms:
    language (country, variant)
    language (country)
    language (variant)
    country (variant)
    language
    country
    variant
    depending on which fields are specified in the locale. If the language, country, and variant fields are all empty, this function returns the empty string.
    clone
    public Object clone()Overrides Cloneable
    Overrides:
    clone in class Object
    Returns:
    a clone of this instance.
    See Also:
    Cloneable
    hashCode
    public int hashCode()Override hashCode. Since Locales are often used in hashtables, caches the value for speed.
    Overrides:
    hashCode in class Object
    Returns:
    a hash code value for this object.
    See Also:
    Object.equals(java.lang.Object), Hashtable
    equals
    public boolean equals(Object obj)Returns true if this Locale is equal to another object. A Locale is deemed equal to another Locale with identical language, country, and variant, and unequal to all other objects.
    Overrides:
    equals in class Object
    Parameters:
    obj - the reference object with which to compare.
    Returns:
    true if this Locale is equal to the specified object.
    See Also:
    Object.hashCode(), Hashtable
    Overview Package Class Use Tree Deprecated Index Help
    JavaTM 2 Platform
    Std. Ed. v1.4.2
    PREV CLASS NEXT CLASS FRAMES NO FRAMES
    SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
    Submit a bug or feature
    For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
    Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

    Was it really necessary to post the whole API description?!?
    Locale[] locales = Locale.ENGLISH();ENGLISH is not a method in class Locale, so do not add the braces "( );".
    Also, the constant ENGLISH is not an array, but just a single Locale object.
    You didn't say what your problem was. What do you want to achieve with your program and what is it that you don't understand?

  • Setting the document language in a pdf for accessibility

    I have created a form in livecycle and ran the full accessiblity check in Adobe and it says that 'All of the text on this page lacks a language specification'. I tried to go into the document properties>advanced and set the reading options but everything is greyed out so I can't change anything. I am the form author so I don't know why I am unable to change this. Can anyone tell me why I can't set the language or if there is another way I could do this?
    Thank you!

    Sorry, I don't know. But bear in mind that the accessibility checker in Acrobat is not relevant to you at all. An XFA form looks like an empty PDF to accesibility rules. I really don't know if there are accessibility rules and tools for XFA forms.

  • How do I set the document language in Pages '13?

    In Pages '09 it was possible to set a document's language by going to the More tab in the Text menu of the Inspector and selecting the language from the pull-down menu.
    In Pages '13 this has disappeared from the text format More sidebar, and I cannot find any way to set the language at all. It is possible to alter the spell-checking language in the Spelling and Grammar menu (under Edit in the menu bar), but this also indicates that the document language is set somewhere centrally. See this screenshot, where I have a document that was obviously set to Br. English and I want it in Am. English:
    I have to work in multiple languages and various flavors (it's the same in German). My system language is set to English and my keyboard to Am. English.
    Any idea of what to do?
    Thanks,
    Pato

    Patito wrote:
    It is possible to alter the spell-checking language in the Spelling and Grammar menu (under Edit in the menu bar)
    That is all you can do at present with Pages 5.  Like Peter said, if you want something more, you need to go back to Pages 4.

  • How to set the default language in preferences- dictionary- language

    Hi guys,
    i like to set the default dictionary language as well as the lookup path of the dictionary via script. I've found the property dictionary path as well as some settings for qoutation under languages with vendors:
    app.languagesWithVendors[INDEX OF LANGUAGE].name
    app.languagesWithVendors[INDEX OF LANGUAGE].dictionaryPaths
    Thats fine, but how can it set a certain language with vendor as the default language for the application itself? Under the Preferences->Dictionary dialog, I can find a dropdown showing the default language. But how can I access this default or set it?
    The application object has a property object called dictionaryPreferences, but this object only contains some flags like the merge behaviour but not the default language itself. So where is it?
    app.dictionaryPreferences.mergeUserDictionary
    Menue
    Dialog
    API

    Ok guys,
    in the meantime I think I got it. I can setup  several dictionaries for several languages. Depending on the language I use in my paragraph styles the according dictionary will be used. Fine for the desktop.
    But what about the InDesign Server! I use the server via scripting and SOAP ports, webservice calls. I've launched several webservice ports, like 10001,10002,10003,10004. In this case, I can set up a vendor dictionary by providing a path via script send to one port 10001 for example. But here are two problems:
    1. The other InDesign Server instances aka webservice ports and engines won't get informed about the change. I have to run the script on all instances.
    2. The change only lives as long as the instance is running but doesn't get saved. After restart the instance, the setup got lost.
    So can I save the dictionary-setup with an pref-xml file, all InDesign Server instances would use and read per default?

  • How to set the default language for JRE?

    I appreciate the fact that JRE is intelligent enough to select language according to my system default codepage, which is 936 (Simplified Chinese). However, i don't find any option in java control panel or java.exe command line switch to change the codepage for Java back to 437 (which is the default codepage for US english). Is there any way to make the change?

    Thanks, finally i have a way to eliminate Chinese characters in console output. But I'd like to go one step further. Is there any way to permanently set the default encoding for JRE? I don't like the idea of having to add -Dfile.encoding every time i run a java program.

Maybe you are looking for

  • Transfer photos from iPhone 3GS to MacBook Pro?

    How do I transfer my photos from my iPhone 3GS to my MacBook Pro? iPhoto doesn't support my iPhone... I've tried a lot of stuff, iPhoto and Image Capture application don't work. I have 15.000 pictures I need to transfer (Screenshot, 9gag, vacation, t

  • How to dynamically display in Image Field with external pic source

    Hi Guys, I have the following scenario: I need to have a form that needs to display an x amount of images on the same page area.  I have not found any documention with regards to creating an undisclosed number of Image Field elements, so I am experim

  • Running 10.8.5 on iMac and try to update and app store crashes

    Process:         App Store [353] Path:            /Applications/App Store.app/Contents/MacOS/App Store Identifier:      com.apple.appstore Version:         1.2.2 (129.16) Build Info:      Firenze-129016000000000~4 Code Type:       X86-64 (Native) Par

  • Attempting to use flash builder beta 2 with beta 1 sdk

    Hi, I'm running into a few issues migrating a project I've started in Flash Builder Beta 1. The biggest mistake I probably made was uninstalling Beta 1 and I can't seem to find where to re-download it. Is it available somewhere? It would not be neces

  • Views and corelated query

    Hi , 1> When are views useful?(scenarios where u could use) 2> when are corelated subqueries used?(scenarios where u could use) Thanks in advance