translate multi-language from English

Ray Lee dc453df6f1 move functions into private 6 years ago
input f0e9f65afd initial commit 6 years ago
output 4bfa84c77d make better output 6 years ago
template 4bfa84c77d make better output 6 years ago
.dockerignore 4bfa84c77d make better output 6 years ago
.gitignore 4bfa84c77d make better output 6 years ago
Dockerfile e557494357 set default LANG=UTF-8 6 years ago
main.rb dc453df6f1 move functions into private 6 years ago
readme.md 4bfa84c77d make better output 6 years ago

readme.md

Readme

Handy tool to help multi-language Resources.resw build up. In case, you already have a completed English version.

Before Use

gem install nokogiri

Usage

  1. Put your English translated file into ./template/Resources.resw
  2. Copy English sentences and another language(Franch, for example) sentences into ./input/fr.csv
  3. Notice that header of fr.csv should be template_value and trans_value
  4. Run the script

    ruby main.rb

  5. output file would be ./output/fr.txt (and ./output/fr-not-found.txt if any not-found sentence)