Closed c-bata closed 1 year ago
Cost: 30 yen.
$ python translate_po.py --lang en ja/LC_MESSAGES/index.po 1>index_en.po
Cost: 3.6904620000000006 yen
$ python translate_po.py --lang en ja/LC_MESSAGES/kobin.po 1>kobin_en.po
Cost: 0.024617999999999998 yen
$ python translate_po.py --lang en ja/LC_MESSAGES/middleware.po 1>middleware_en.po
Cost: 1.60017 yen
$ python translate_po.py --lang en ja/LC_MESSAGES/request.po 1>request_en.po
Cost: 4.728894 yen
$ python translate_po.py --lang en ja/LC_MESSAGES/response.po 1>response_en.po
Cost: 3.8784539999999996 yen
$ python translate_po.py --lang en ja/LC_MESSAGES/routing.po 1>routing_en.po
Cost: 5.8188 yen
$ python translate_po.py --lang en ja/LC_MESSAGES/server.po 1>server_en.po
Cost: 1.087668 yen
$ python translate_po.py --lang en ja/LC_MESSAGES/template.po 1>template_en.po
Cost: 1.4009880000000001 yen
$ python translate_po.py --lang en ja/LC_MESSAGES/wsgi.po 1>wsgi_en.po
Cost: 7.00494 yen
Cache size
$ du -h po-translation-cache.json
132K po-translation-cache.json
$ make -e SPHINXOPTS="-D language='ja'" html
$ open build/html/index.html
It seems that there are quotes we need to remove.
$ ./translate.sh
Cost: 0.0 yen
Cost: 0.020142000000000004 yen
Cost: 1.562124 yen
Cost: 4.641611999999999 yen
Cost: 3.809076 yen
Cost: 5.686758 yen
Cost: 1.05186 yen
Cost: 0.30213 yen
Cost: 1.3428 yen
Cost: 6.89304 yen
Creating po files
See: https://www.sphinx-doc.org/ja/1.7/intl.html
Translating po files into English.
Use a following snippet. https://gist.github.com/c-bata/27edee8a02815e1858ad94e77e78ed13