Coder Social home page Coder Social logo

tuyennn / magento2-malaysian-locale Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 50 KB

Malaysian language Pack for Magento 2 Community Edition

License: Open Software License 3.0

PHP 100.00%
magento2-module magento2-extension-free magento2-language magento2-translation malay malaysian

magento2-malaysian-locale's Introduction

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:

php bin/magento setup:static-content:deploy -f ms_MY
php bin/magento setup:upgrade
rm -rf var/di
php bin/magento setup:di:compile

Installation via Composer

composer require ghoster/mage2-locale-ms-my
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:

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

Compare phrases with old translation file

Copy the phrases.csv into this repository and run:

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!

magento2-malaysian-locale's People

Contributors

tuyennn avatar

Stargazers

Mehdi Chaouch avatar

Watchers

James Cloos avatar  avatar

Forkers

harizyusoff

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.