项目作者: tuyennn

项目描述 :
Malaysia language Pack for Magento 2 Community Edition
高级语言: PHP
项目地址: git://github.com/tuyennn/Magento2_Malaysian_LocalePack_ms_MY.git
创建时间: 2019-04-02T04:27:44Z
项目社区:https://github.com/tuyennn/Magento2_Malaysian_LocalePack_ms_MY

开源协议:Other

下载


Magento 2 Malaysia LocalePack ms_MY

Malaysia language Pack for Magento 2 Community Edition (Version 2.3.0)

The translation was made by Malaysian native speakers at their own discretion. The translation is not fully 100% completed. You are welcome to make contribution for changes or to rework the entire repository if deviating translations are to be introduced.

Installation

  • Copy all files to /app/i18n/ghoster/ms_MY/

From the Magento root directory, invoke the following commands:

  1. php bin/magento setup:static-content:deploy -f ms_MY
  2. php bin/magento setup:upgrade
  3. rm -rf var/di
  4. php bin/magento setup:di:compile

Installation via Composer

  1. composer require ghoster/mage2-locale-ms-my
  2. php bin/magento setup:static-content:deploy ms_MY

Add new phrases

To translate new phrases follow these steps:

Get phrases from Magento

Run this in your Magento 2 installation:

  1. php bin/magento i18n:collect-phrases -m > phrases.csv

Compare phrases with old translation file

Copy the phrases.csv into this repository and run:

  1. php check_new.php

This will output a new file ms_MY_new.csv which only contains the
phrases that are not yet translated in ms_MY.csv.

Translate phrases

Now you should translate these phrases. Enter the translated phrase
in the second column.

Note

Malaysian language in Magento has 2 code:

Nginx: ms_MY
Apache: ms_Latn_MY

So you want to install for Apache server, just change the package as you want to.

Copy new phrases and create a pull request

Copy the new phrases to ms_MY.csv.

IMPORTANT: sort the file alphabetically based on the first column, e.g. with LibreOffice and don’t add line without double quote "string"

Now create a new pull request with
your changes!