code translator - translate comments in code to english
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


very crude source code comment translator. powered by google translate.

currently handles C-style and scripting-style (i.e. '#') comments; note that
comments formatted as '### comment' will still end up as '# comment', this
is a bug i don't care about fixing atm; i'm more concerned with just getting
this working.

USAGE: -s <filename>
    translates a single file -d <dir>
    translates all source files in a directory
    other flags:
        -e      set input file encoding
        -o      set output file encoding
        -t      set trace (debugging output)

    the default encoding and decoding is utf-8. specifying 'auto' for the
    decoding will attempt to guess the file's encoding. this is at best a guess,
    and at worst completely wrong.
    encoding is not a trivial matter, and there are a million ways a file might
    be encoded. 

    * add directory-translating mode
    * add support for multiline C comment
    * verify code is clean, was hacked together in a hurry