mo29cg / nvda-chatGPT

15 stars 7 forks source link

Make it translatable #5

Closed mo29cg closed 1 year ago

mo29cg commented 1 year ago
2. You may want to make translatable the following sentence:
"What is the meaning of " + word + "? Respond in english"
and use a formatted string,
i.e.:
_(f"What is the meaning of {word}? Respond in english")
Then you can ask translators to translate your add-on. And translators will have to translate this request to ChatGPT. This may allow ChatGPT to answer in the language of NVDA interface if any translation exists, else in English. Then you can also develop explicit definition of the expected language of the answer and pick the correct request sentence in the existing translations.
This would allow to avoid being limited to English and Japanese or to have various translation requests hard-coded for many languages in the code.
mo29cg commented 1 year ago

It became translatable somewhere. Thanks for all the translators.