Repository navigation
Translating
Vakken edited this page Dec 1, 2026
·
1 revision
The widget comes with translations for German, Spanish, French, Hindi, Portuguese, Russian and Simplified Chinese. They were made by machine translation and have not been checked by people who speak those languages. Help is welcome, both to fix what is wrong and to add a new language.
All paths are inside org.kde.plasma.kdeaichat/.
-
Template:
translate/plasma_applet_org.kde.plasma.kdeaichat.potlists every text the widget shows. It is the starting point for a new language. -
Translations:
contents/locale/<language>/LC_MESSAGES/plasma_applet_org.kde.plasma.kdeaichat.po(for examplecontents/locale/de/LC_MESSAGES/). The.mofile next to it is the compiled copy that Plasma reads. -
translate/files.txtlists the source files that contain texts. -
translate/do_translate.pyandtranslate/do_translate_fast.pymake the machine translations. They need the Python packagespolibanddeep_translator.
-
Fix a language. Open its
.pofile in a text editor or a tool such as Lokalize. Look for texts that read badly. Fix themsgstrlines. Keep placeholders such as%1and%2exactly as they are. Keep names of settings the same as in the translation of the settings page, so the manual and the screen agree. -
Add a language. Copy the
.potfile tocontents/locale/<language code>/LC_MESSAGES/as a.pofile, fill in the translations, and compile it withmsgfmt:msgfmt -o plasma_applet_org.kde.plasma.kdeaichat.mo plasma_applet_org.kde.plasma.kdeaichat.po
-
Try it. Install the widget from source (
./install.sh), restart Plasma (systemctl --user restart plasma-plasmashell.service) and run it in your language. -
Send it. Open a pull request at https://github.com/racstan/KDE-AI-Chat, or an issue with the
.pofile attached.
Even a short report such as "the German text for X is wrong, it should be Y" helps.
This page is copied from docs/translating.md; please suggest changes there.
Repository · Releases · Issues · Changelog · Privacy
Using the widget
- Getting started
- Providers
- Modes
- Chats
- Tools in direct chats
- Memory and personality
- Pictures
- Schedules
- Voice
- Customising
- Desktop integration
Help
Contributing