<monalisa: ~/code/ctrans> $ cat test.c
/* Это тестовый файл источник */
#include <file1.h>
#include <file2.h>
// больше кода
int foo() {
/*
* Объяснение
* это дело 1
* и вещь 2
*/
func();
return 0;
}
/* Объяснени е */
<monalisa: ~/code/ctrans> $ ./ctrans.py -e auto -s test.c
[+] attemtping to autodetect coding for test.c
[+] detected coding utf-8 for file test.c (confidence: 0.99)
[+] translated test.c to test.c.en...
<monalisa: ~/code/ctrans> $ cat test.c.en
/* This is a test file source */
#include <file1.h>
#include <file2.h>
// more code
int foo() {
/*
* Explanation
* This is a matter
* And thing 2
*/
func();
return 0;
}
/* Explanation of e */
<monalisa: ~/code/ctrans> $