Adobe.com
Contents Suites Classes Class Index Member Index

ai::Locale Class Reference

This class represents a predefined set of locales used in Illustrator, with a unique identifying code and associated descriptive string for the language and region. More...

#include <IAILocale.h>

List of all members.

Public Types

enum  ID {
  kUndefined = -1, kDefault = 0, kSystem, kApplication,
  kUS, kBritain, kGermany, kFrance,
  kItaly, kJapan, kChina, kTaiwan,
  kKorea, kArabia, kCanadaComma, kFrCanada,
  kSpain, kSweden, kPortugal, kBrazil,
  kPoland, kNetherlands, kDenmark, kGrSwiss,
  kNorway, kNynorskNorway, kFinland, kCzech,
  kHungary, kGreece, kRussia, kRomania,
  kTurkey, kThailand, kVietnam, kBulgaria,
  kIsrael, kUkraine, kSpMexican, kFarsi,
  kEnArabia, kEnHebrew, kFrNorthAfrica, kAIDummyLocale = 0xFFFFFFFF
}
 

Locale type constants, mapped to a descriptive string that contains the language name and region code.

More...

Static Public Member Functions

static std::string getLocale (const Locale::ID id)
 Retrieves the language and region code string for a locale.
static Locale::ID getSystemLocaleID ()
 Retrieves the current system locale as a locale identifier.
static Locale::ID getApplicationLocaleID ()
 Retrieves the current application locale as a locale identifier.
static Locale::ID getID (const std::string &locale)
 Retrieves the locale identifier for a language and region code string.

Detailed Description

This class represents a predefined set of locales used in Illustrator, with a unique identifying code and associated descriptive string for the language and region.

The methods allow you to access the current locale setting of the operating system or of the application.


Member Enumeration Documentation

Locale type constants, mapped to a descriptive string that contains the language name and region code.

Enumerator:
kUndefined 

Invalid locale.

kDefault 

Implies the default language behavior for a particular context.

For example, in the ai::NumberFormat class, implies the system setting for number formats

kSystem 

The operating-system locale.

kApplication 

The application locale.

kUS 

US English (en_US).

kBritain 

English (en_GB).

kGermany 

German (de_DE).

kFrance 

French (fr_FR).

kItaly 

Italian (it_IT).

kJapan 

Japanese (ja_JP).

kChina 

Chinese (Simplified - zh_CN).

kTaiwan 

Chinese (Traditional - zh_TW).

kKorea 

Korean (Korea - ko_KR).

kArabia 

Arabic (ar_AE).

kCanadaComma 

English (en_CA).

kFrCanada 

French (fr_CA).

kSpain 

Spanish (es_ES).

kSweden 

Swedish (sv_SE).

kPortugal 

Portuguese (pt_PT).

kBrazil 

Portuguese (pt_BR).

kPoland 

Polish (pl_PL).

kNetherlands 

Dutch (nl_NL).

kDenmark 

Danish (da_DK).

kGrSwiss 

German (de_CH).

kNorway 

Norwegian (nb_NO).

kNynorskNorway 

Nynorsk (nn_NO).

kFinland 

Finnish (fi_FI).

kCzech 

Czech (cs_CZ).

kHungary 

Hungarian (hu_HU).

kGreece 

Greek (el_GR).

kRussia 

Russian (ru_RU).

kRomania 

Romanian (ro_RO).

kTurkey 

Turkish (tr_TR).

kThailand 

Thai (th_TH).

kVietnam 

Vietnamese (vi_VN).

kBulgaria 

Bulgarian (bg_BG).

kIsrael 

Hebrew (he_IL).

kUkraine 

Ukrainian (uk_UA).

kSpMexican 

Mexican Spanish (es_MX).

kFarsi 

Iranian Farsi (fa_IR).

kEnArabia 

Arabic with English UI (en_AE).

kEnHebrew 

Hebrew with English UI (en_IL).

kFrNorthAfrica 

North African French (fr_MA).

kAIDummyLocale 

Member Function Documentation

static Locale::ID ai::Locale::getApplicationLocaleID (  )  [static]

Retrieves the current application locale as a locale identifier.

Returns:
The locale ID constant.
static Locale::ID ai::Locale::getID ( const std::string &  locale  )  [static]

Retrieves the locale identifier for a language and region code string.

Parameters:
locale language and region code string
Returns:
The locale ID constant or ai::Locale::kUndefined if the string does not map to a valid type.
static std::string ai::Locale::getLocale ( const Locale::ID  id  )  [static]

Retrieves the language and region code string for a locale.

Parameters:
id The locale identifier constant.
Returns:
The language and region code string .
static Locale::ID ai::Locale::getSystemLocaleID (  )  [static]

Retrieves the current system locale as a locale identifier.

Returns:
The locale ID constant.

The documentation for this class was generated from the following file:


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2016 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks