Skip to content

arpith20/Comments-Translator

Repository files navigation

Comments Translator

A tool to translate comments in the source code.

Compile

$ make clean
$ make 

Usage

$ bin/translate file1 [file2 file3 ...]

After the execution of the program, the comments in file1[, file2, file3, ...] would have all been translated.

Notes

  • Internally, this uses command line translator. The script must be present in the bin/ directory and must have execute permissions. If not, download it from here and grant the permission. Also, gawk is required for the functioning of this script. To install, please run sudo apt-get install gawk
  • If you wish to translate the comments to a language other than English, modify the variable command_part1 in config.h with parameters as specified in this README.
  • By default, this tool is set up to translate C/C++ programs. Modify the parameters in config.h if you wish to translate codes which use a different syntax to identify the comments.
  • Recompile the code if any changes to config.h is made.

About

Translates the comments in the program.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published