magento2
i18n 언어 팩 재정의
수색…
통사론
<Vendor Namespace> - 벤더 커스텀 테마의 네임 스페이스 또는 인 빌트 된 테마 네임 스페이스 IE
Magento/Luma
여기luma
는vendor namespace
<언어 패키지 디렉토리> - 여기에
en_us
또는nl_nl
또는en_gb
와 같은 언어 패키지 디렉토리<언어 패키지 설명> -
English Us Package
패키지와 같은 패키지에 대한 설명을 추가합니다.<언어 패키지 코드> - 언어 패키지 IE
en_US
또는nl_NL
또는en_GB
비고
위의 파일 및 디렉토리를 만든 후 language_package_code.csv
는 Vendor Namespace
디렉토리로 이동합니다.
예
/app/i18n/luma/en_us/en_US.csv
또는
/app/i18n/luma/en_gb/en_GB.csv
또는
/app/i18n/luma/nl_NL/nl_NL.csv
override i18n 언어 패키지의 구문 예제
/ app / i18n / <Vendor 네임 스페이스> / <언어 패키지 디렉토리> /composer.json
{
"name": "<vendor namespance>/<language package directory>",
"description": "<language package description>",
"version": "100.0.1",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"magento/framework": "100.0.*"
},
"type": "magento2-language",
"autoload": {
"files": [
"registration.php"
]
}
}
/ app / i18n / <Vendor 네임 스페이스> / <language pack> /language.xml
<?xml version="1.0"?>
<language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
<code><language package code></code>
<vendor><vendor namespace></vendor>
<package><language package directory></package>
</language>
/ app / i18n / <Vendor 네임 스페이스> / <언어 팩> /registration.php
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::LANGUAGE,
'<vendor namespance>_<language package directory>',
__DIR__
);
Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow