init
This commit is contained in:
+55
@@ -0,0 +1,55 @@
|
||||
# How to contribute Chinese Language pack
|
||||
|
||||
In this tutorial, I will show you how to contribute Chinese language pack
|
||||
|
||||
## Step 1: Download
|
||||
|
||||
First of all, you should fork the repo. In the top-right corner of the page, click **Fork**.
|
||||

|
||||
|
||||
|
||||
## Step 2: Update github_contributions.csv
|
||||
|
||||
Let's me explain the workflow:
|
||||
|
||||
- It will automatically pull translated strings from [Crowdin](https://crowdin.com/project/magento-2) daily.
|
||||
|
||||
- [github_contributions.csv](https://github.com/mageplaza/magento-2-chinese-language-pack/blob/master/github_contributions.csv) has been contributed by Mageplaza and Magento community.
|
||||
|
||||
- We will merge `github_contributions.csv` with [zh_Hans_CN.csv](https://github.com/mageplaza/magento-2-chinese-language-pack/blob/master/zh_Hans_CN.csv). Your Magento 2 store will use this csv file.
|
||||
|
||||
So, you should contribute to [github_contributions.csv](https://github.com/mageplaza/magento-2-chinese-language-pack/blob/master/github_contributions.csv) file.
|
||||
|
||||
### How to edit file github_contributions.csv
|
||||
|
||||
The `github_contributions.csv` is saparated **line by line**, see:
|
||||
|
||||
```
|
||||
"Create Order","Crear pedido",module,Magento_AdvancedCheckout
|
||||
```
|
||||
|
||||
- "Create Order": Original string
|
||||
- "Crear pedido": Translated string
|
||||
- module: declare module syntax
|
||||
- Magento_AdvancedCheckout: module scope (only translate in this module)
|
||||
|
||||
|
||||
Fom the begining, `github_contributions.csv` is empty, you guys should add more translations into it.
|
||||
|
||||
#### Suggestions
|
||||
- You can copy any part of `zh_Hans_CN.csv` and paste to `github_contributions.csv` then translate it.
|
||||
- Please do not copy all lines in `zh_Hans_CN.csv`, we will not approve it in this case.
|
||||
|
||||
## Step 3: Contribute
|
||||
|
||||
- Now time to contribute, **commit your work** to this repo.
|
||||
- After committing, it will ask you to **create a pull request**, so please create a pull request, we will check and approve it.
|
||||
|
||||
|
||||
You can [install this language package via composer](https://github.com/mageplaza/magento-2-chinese-language-pack#-method-1-composer-method-recommend) and other people can install / contribute this language pack.
|
||||
|
||||
[Contact us](https://www.mageplaza.com/contact.html) if we miss your pull request(s).
|
||||
|
||||
Happy translating!
|
||||
|
||||
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2022 Mageplaza
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Executable
+206
@@ -0,0 +1,206 @@
|
||||
## Magento 2 Chinese Language Pack
|
||||
|
||||
Today I will provide you another helpful document - **Magento 2 Chinese Simplified Language Pack**. With this knowledge base article, you can change the Magento 2 default language to Chinese Simplified Language with only two simple steps. After finishing, all labels on your storefront will be auto-converted to Chinese Simplified quickly.
|
||||
|
||||
Read more [Magento 2 Chinese Language Pack](https://www.mageplaza.com/magento-2-chinese-language-pack.html)
|
||||
|
||||

|
||||
|
||||
## Overview
|
||||
|
||||
1. Language Package Process
|
||||
2. Install Chinese Language Pack
|
||||
3. How to active Chinese language pack
|
||||
4. How to contribute
|
||||
5. Supported Magento versions
|
||||
6. Notes
|
||||
7. Language package authors
|
||||
|
||||
## 1. Language Package Process
|
||||
|
||||
This is status of Chinese Language Pack, you can see how many percentage of this project has been done.
|
||||
|
||||

|
||||
|
||||
It is not fully translated? Feel free to contribute:
|
||||
- [On Crowdin](https://crowdin.com/project/magento-2): It takes time to approve your contribution by Magento team.
|
||||
- [On Github](https://github.com/mageplaza/magento-2-chinese-language-pack/blob/master/HOW-TO-CONTRIBUTE.md): It's faster, our team will approve it after you send pull request.
|
||||
|
||||
|
||||
Find other [language packs here](https://www.mageplaza.com/magento-2-extensions/language-packs.html)
|
||||
|
||||
## 2. How to Install Chinese Language Pack
|
||||
|
||||
There are 3 different methods to install this language pack.
|
||||
|
||||
### ✓ Method #1. Composer method (Recommend)
|
||||
Install the Chinese language pack via composer is never easier.
|
||||
|
||||
**Install Chinese pack**:
|
||||
|
||||
With Marketing Automation (recommend):
|
||||
|
||||
```
|
||||
composer require mageplaza/magento-2-chinese-language-pack:dev-master mageplaza/module-smtp
|
||||
php bin/magento setup:static-content:deploy zh_Hans_CN
|
||||
php bin/magento indexer:reindex
|
||||
php bin/magento cache:clean
|
||||
php bin/magento cache:flush
|
||||
```
|
||||
|
||||
Without Marketing Automation:
|
||||
|
||||
```
|
||||
composer require mageplaza/magento-2-chinese-language-pack:dev-master
|
||||
php bin/magento setup:static-content:deploy zh_Hans_CN
|
||||
php bin/magento indexer:reindex
|
||||
php bin/magento cache:clean
|
||||
php bin/magento cache:flush
|
||||
```
|
||||
|
||||
|
||||
**Update Chinese pack**:
|
||||
|
||||
```
|
||||
composer update mageplaza/magento-2-chinese-language-pack:dev-master
|
||||
php bin/magento setup:static-content:deploy zh_Hans_CN
|
||||
php bin/magento indexer:reindex
|
||||
php bin/magento cache:clean
|
||||
php bin/magento cache:flush
|
||||
|
||||
```
|
||||
|
||||
#### Authentication required (If any)
|
||||
|
||||

|
||||
|
||||
If you have not added this authentication, you can follow [this guide](http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html)
|
||||
|
||||
Or use these keys:
|
||||
|
||||
```
|
||||
Public Key: c7af1bfc9352e9c986637eec85ed53af
|
||||
Private Key: 17e1b72ea5f0b23e9dbfb1f68dc12b53
|
||||
```
|
||||
|
||||
|
||||
|
||||
### ✓ Method #2. Copy & Paste method (Not recommended)
|
||||
|
||||
This method suitable for non-technical people such as merchants. Just download the package then flush cache.
|
||||
|
||||
**Overview**
|
||||
|
||||
- Step 1: Download the Chinese language pack
|
||||
- Step 2: Unzip Chinese pack
|
||||
- Step 3: Flush Magento 2 Cache
|
||||
|
||||
#### Step 1 : Download the Chinese language pack
|
||||
|
||||
You can download the language pack from above link
|
||||
|
||||
#### Step 2: Unzip Chinese pack
|
||||
|
||||
Unzip the Chinese language pack to Magento 2 root folder. In this guide, we extract to `/var/www/html/`
|
||||
Your Magento 2 root folder can be: `/home/account_name/yourstore.com/public_html/`
|
||||
|
||||
```
|
||||
unzip master.zip app/i18n/Mageplaza/
|
||||
```
|
||||
|
||||
Rename folder `magento-2-chinese-language-pack` to `zh_hans_cn`.
|
||||
|
||||
|
||||
You also can unzip locally and upload them to Magento 2 root folder.
|
||||
|
||||
#### Step 3: Flush Magento 2 Cache
|
||||
|
||||
Follow this guide to [Flush Cache on your Magento 2 store](https://www.mageplaza.com/kb/how-flush-enable-disable-cache.html)
|
||||
|
||||
|
||||
### ✓ Method #3. Download and install manually (Not recommended)
|
||||
|
||||
To download and install Chinese pack manually, you have to access to your server via FTP or SFTP.
|
||||
|
||||
#### Step 1: Download the package
|
||||
|
||||
- [Download .zip](https://github.com/mageplaza/magento-2-chinese-language-pack/archive/master.zip)
|
||||
- [Download .tar.gz](https://github.com/mageplaza/magento-2-chinese-language-pack/tarball/master)
|
||||
|
||||
#### Step 1: Unzip and upload
|
||||
|
||||
Unzip the compressed file and upload file `master.zip` into `app/i18n/Mageplaza/zh_hans_cn/`
|
||||
|
||||
See this screenshot:
|
||||
|
||||

|
||||
|
||||
This language pack code is: **zh_hans_cn**
|
||||
|
||||
#### Step 2: Flush cache
|
||||
|
||||
Follow this guide to [Flush Cache on your Magento 2 store](https://www.mageplaza.com/kb/how-flush-enable-disable-cache.html)
|
||||
|
||||
|
||||
## 3. How to Active the Chinese language pack
|
||||
|
||||
Now time to active the Chinese language pack for your Magento 2 store. From Magento 2 admin panel, navigate to `Stores > Configuration > General > Locale Options`
|
||||

|
||||
|
||||
|
||||
## 4. How to contribute
|
||||
|
||||
Contribute to this language at :
|
||||
- [On Crowdin](https://crowdin.com/project/magento-2): It takes time to approve your contribution by Magento team.
|
||||
- [On Github](https://github.com/mageplaza/magento-2-chinese-language-pack/blob/master/HOW-TO-CONTRIBUTE.md): It's faster, our team will approve it after you send pull request.
|
||||
|
||||
|
||||
## 5. Supported Magento versions
|
||||
|
||||
It supports all Magento 2 versions include [Magento 2 open-source](https://www.mageplaza.com/download-magento/) (Community), Magento 2 Commerce (EE), Magento Cloud, Magento B2B, Magento MSI.
|
||||
|
||||
|
||||
- Magento v2.0.x
|
||||
- Magento v2.1.x
|
||||
- Magento v2.2.x
|
||||
- Magento v2.3.x
|
||||
- Magento v2.4.x
|
||||
|
||||
|
||||
|
||||
## 6. Notes
|
||||
|
||||
- This project automatically updates weekly from Crowdin.
|
||||
- Any question, issue please [create a new issue](https://github.com/mageplaza/magento-2-chinese-language-pack/issues/new)
|
||||
|
||||
## 7. Language package authors
|
||||
|
||||
- [Magento official translations project for Magento 2](https://crowdin.com/project/magento-2)
|
||||
- Magento Community
|
||||
- Language packages built by [Mageplaza team](https://www.mageplaza.com/)
|
||||
|
||||
|
||||
## 8. References
|
||||
|
||||
- https://www.mageplaza.com/magento-2-chinese-language-pack.html
|
||||
- https://crowdin.com/project/magento-2
|
||||
|
||||
|
||||
|
||||
## Mageplaza extensions on Magento Marketplace, Github
|
||||
|
||||
|
||||
- [Layered Navigation](https://marketplace.magento.com/mageplaza-layered-navigation-m2.html)
|
||||
- [One Step Checkout](https://marketplace.magento.com/mageplaza-magento-2-one-step-checkout-extension.html)
|
||||
- [SMTP](https://marketplace.magento.com/mageplaza-module-smtp.html) ; [SMTP on Github](https://github.com/mageplaza/magento-2-smtp)
|
||||
- [Blog](https://github.com/mageplaza/magento-2-blog)
|
||||
- [Security](https://marketplace.magento.com/mageplaza-module-security.html)
|
||||
- [Social Login](https://github.com/mageplaza/magento-2-social-login)
|
||||
- [SEO](https://github.com/mageplaza/magento-2-seo) ; [SEO on Marketplace](https://marketplace.magento.com/mageplaza-magento-2-seo-extension.html)
|
||||
- [SMTP](https://github.com/mageplaza/magento-2-smtp)
|
||||
- [Product Slider](https://github.com/mageplaza/magento-2-product-slider)
|
||||
- [Banner](https://github.com/mageplaza/magento-2-banner-slider)
|
||||
- [Sample Payment Method](https://github.com/mageplaza/magento-2-sample-payment-method)
|
||||
|
||||
|
||||
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "stemcell/zh_hans_cn",
|
||||
"description": "Chinese language package for Magento 2",
|
||||
"homepage": "https://www.mageplaza.com",
|
||||
"require": {
|
||||
},
|
||||
"type": "magento2-language",
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true,
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Mageplaza team",
|
||||
"email": "hi@mageplaza.com",
|
||||
"homepage": "https://www.mageplaza.com",
|
||||
"role": "Leader"
|
||||
}
|
||||
],
|
||||
"autoload": {
|
||||
"files": [
|
||||
"registration.php"
|
||||
]
|
||||
}
|
||||
}
|
||||
+14286
File diff suppressed because it is too large
Load Diff
Executable
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
|
||||
<code>zh_Hans_CN</code>
|
||||
<vendor>stemcell</vendor>
|
||||
<package>zh_Hans_CN</package>
|
||||
</language>
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza_Chinese package
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the MIT License
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Chinese
|
||||
* @copyright Copyright (c) 2022
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
\Magento\Framework\Component\ComponentRegistrar::register(
|
||||
\Magento\Framework\Component\ComponentRegistrar::LANGUAGE,
|
||||
'stemcell_zh_hans_cn',
|
||||
__DIR__
|
||||
);
|
||||
Executable
+16415
File diff suppressed because it is too large
Load Diff
Executable
+16418
File diff suppressed because it is too large
Load Diff
Executable
+16415
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user