LoginSignup
0
0

More than 1 year has passed since last update.

Ibexa DXP の言語コード

Posted at

ロケール識別子

Ibexa DXP のロケール識別子は、「3文字の言語コード」と「2文字の大文字の国コード」をハイフンでつなぐことで構成されます。 1

言語コード

言語コードは ISO 639-2 で規定されたものが使用されます。 1

国コード

国コードは、国別コードトップレベルドメインでも利用されている ISO 3166-1 alpha-2 で規定されたものが使用されます。 1

日本語

日本語を指定したい場合は jpn-JP になります。

locale.yml

ibexa/core リポジトリの config/locale.yml で Ibexa DXP に認識されるコードの一覧を確認することができます。 23

config/locale.yml
src/bundle/Core/Resources/config/locale.yml
parameters:
    ibexa.locale.conversion_map:
        alb-AL: sq_AL
        ara-SA: ar_SA
        bos-BA: bs_BA
        cat-ES: ca_ES
        chi-CN: zh_CN
        chi-HK: zh_HK
        chi-TW: zh_TW
        cro-HR: hr_HR
        cze-CZ: cs_CZ
        dan-DK: da_DK
        dut-BE: nl_BE
        dut-NL: nl_NL
        ell-GR: el_GR
        eng-AU: en_AU
        eng-CA: en_CA
        eng-GB: en_GB
        eng-NZ: en_NZ
        eng-US: en_US
        epo-EO: eo
        esl-ES: es_ES
        esl-MX: es_MX
        fas-IR: fa_IR
        fin-FI: fi_FI
        fre-BE: fr_BE
        fre-CA: fr_CA
        fre-CH: fr_CH
        fre-FR: fr_FR
        ger-BE: de_BE
        ger-CH: de_CH
        ger-DE: de_DE
        heb-IL: he_IL
        hin-IN: hi_IN
        hun-HU: hu_HU
        ind-ID: id_ID
        ita-CH: it_CH
        ita-IT: it_IT
        jpn-JP: ja_JP
        kor-KR: ko_KR
        mkd-MK: mk_MK
        nno-NO: nn_NO
        nor-NO: no_NO
        pol-PL: pl_PL
        por-BR: pt_BR
        por-MZ: pt_MZ
        por-PT: pt_PT
        rus-RU: ru_RU
        ser-SR: sr_RS
        slk-SK: sk_SK
        slo-SI: sl_SI
        sqi-AL: sq_AL
        srp-RS: sr_RS
        swe-SE: sv_SE
        tur-TR: tr_TR
        ukr-UA: uk_UA
        vie-VN: vi_VN
  1. A locale identifier consists of a three-letter language code and a two-letter uppercase country code e.g. "eng-US" (English, USA) or "nor-NO" (Norwegian, Norway). Language and country codes are specified by ISO 639 and ISO 3166-1 alpha-2 standards accordingly. - Locale / Multi-language / Features / 5.x / Technical manual / eZ Publish / Documentation - Doc 2 3

  2. Locale conversion map between eZ Publish format (e.g. fre-FR) to POSIX (e.g. fr_FR). The key is the eZ Publish locale. Check locale.yaml in IbexaCore to see natively supported locales. - Custom locale configuration - Languages - Ibexa Developer Documentation

  3. A locale conversion map example can be found in ibexa/core, in locale.yaml. - Custom locale configuration - Languages - Ibexa Developer Documentation

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0