|
C-Menu 0.2.9
A User Interface Toolkit
|
Functions | |
| ask_ollama (text, target_lang) | |
| parse_and_translate_po (filepath, target_lang) | |
| split_to_po_format (text, indent=0) | |
Variables | |
| str | MODEL_NAME = "mistral" |
| str | OLLAMA_API_URL = "http://localhost:11434/api/generate" |
| ask_ollama | ( | text, | |
| target_lang ) |
Definition at line 10 of file translate_po.py.
Referenced by parse_and_translate_po().
| parse_and_translate_po | ( | filepath, | |
| target_lang ) |
Definition at line 60 of file translate_po.py.
References ask_ollama(), parse_and_translate_po(), and split_to_po_format().
Referenced by parse_and_translate_po().
| split_to_po_format | ( | text, | |
| indent = 0 ) |
Splits a long translated string into multi-line PO syntax if it contains real newlines.
Definition at line 45 of file translate_po.py.
Referenced by parse_and_translate_po().
| str translate_po.MODEL_NAME = "mistral" |
Definition at line 8 of file translate_po.py.
| str translate_po.OLLAMA_API_URL = "http://localhost:11434/api/generate" |
Definition at line 7 of file translate_po.py.