netbe / Babelish

Chaotically confused, like Babel
http://netbe.github.io/Babelish
MIT License
254 stars 84 forks source link

config file keys_column #95

Closed Saulenco closed 7 years ago

Saulenco commented 7 years ago

I added the .babelish.config file and the keys_column:2 because the keys in my google drive file starts from 2nd row.

this is my sructure: Category | Key | English | Notes

Run babelish csv2strings -i "Project Language" -L English:en --fetch

the .string file looks like this "category1" = ""; "category2" = ""; ....

Did i miss something ?

netbe commented 7 years ago

Hi,

if you're using the config file you don't need to pass arguments via command line. Your config file could look like this:

filename:  "Project Language"    
langs:                               
  English: "en"

## optional
fetch: true                        # set to true to get file(filename) from google drive
comments_column: 3                 # Position of column for comments if any
keys_column: 1                     # Position of column for keys

By the way is Project Language the filename (path) to your csv file?

Saulenco commented 7 years ago

"Project Language" is the file name on Google Drive.

after adding the configs as you show and run babelish csv2strings i get an error in initialize': wrong value of filename: nil and other errors, also tried

filename: "translations_Sheet1.csv"
# fetch: true 

but i get the same error

Saulenco commented 7 years ago

Got it the main problem was that my babelish config file was named .babelish.config rename it to .babelish run babelish csv2strings and problem solved.

Thanks again François