Skip to content

HazemKhaled/Magento2i18nTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento 1 language file to Magento 2

Simply we comparing keys of Magneto 2 with Magneto 1 CSV files, to mirage it.

Is it working?

I translated around 50% of Arabic and Turkish using this tool, check uploads on my crowdin.com profile.

How to?

Setup Nodejs project

  1. Download and install Nodejs (4.1.1 only tested)
  2. Run npm install

Prepare language

Example for ar_SA, ar is for Arabic, SA for Saudi Arabia.

  1. Download those 2 files
index.js
package.json
  1. Put your Magento 1 csv file there ar_SA/source.csv
|- ar_SA
  |- source.csv
index.js
package.json
  1. Download xliff file from crowdin.com, we need 2 copies ar_SA/source.xliff and ar_SA/target.xliff
|- ar_SA
  |- source.csv
  |- source.xliff
  |- target.xliff
index.js
package.json

Run it now

Just run node index.js

Q & A

Q: How to mirage all csv files of Magento 1 into 1 file?
A: run this (Linux and Mac only) cat *.csv > source.csv.

Q: How to get Magento 1 language csv files?
A: Find you language pack on Magento Connect, then use this tool to download Magento Connect packages, or this website.

Q: I'm translating my Magento on the live site, how to export it into CSV file?
A: Try Magento translations from DB to CSV.

Q: How to install language package in Magento 2? A: @MrGekko doing a great job on that, go ahead and use his Magneto 2 composer language packages

License

The MIT License (MIT)

Copyright (c) 2016 Hazem Khaled

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.

About

Import language from Magneto 1 to Magento 2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published