User:So9q/How to mass translate descriptions
Jump to navigation
Jump to search
- start with a query like this
- download csv
- open https://docs.google.com/spreadsheets and log in
- in the fourth column paste this to translate: =GOOGLETRANSLATE(C2;"nb";"da") where C2 is the description
- search and replace to clean the qid column
- copy all 4 columns to LibreOffice
- in LibreOffice all cells are now text and editable, fix or delete the bad translations
- save as ods
- delete column 2,3 so only qid and Dda column is left
- export to csv
- open in Vim and run this to fix uppercases: ":s/,\([A-Z]\)/,\L\1/" which converts upper cases after a comma to lower case
- go through the file and switch to upper case where needed
- looking ready?
- Copy to clipboard:
:%!xclip -sel clip
(press "u" after this) - insert in QS and run