Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 913 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 913 Bytes

Excel to PO

This is a simple console command that you can run to generate .po files from an Excel.

Installation

Clone the repo locally and you are good to go.

Excel format

The excel needs to be in the following format:

Context en fr bg etc
Some description (optional) English string FR translation BG translation ...

Command

php index.php [file] [--rows=INT]

For example, you can add the excel file into the a source folder of the repo and run the command:

php index.php source/excel.xlsx

Optionally, you can specify how many rows from the Excel to parse

php index.php source/excel.xlsx --rows=5

The results are dumped into the output folder (which is ignored by git) as individual .po files.