Just added a Translation for Polish to my bespoke Role Reversal rule addon. (It was the native tongue of the original requestor.)
The workflow feels as though it has too many steps. (Claude might have to build a dedicated Addon Translator tool to make a streamlined workflow! Possibly with a functionality to leverage Weblate before letting the AI join the party.)
Here is the workflow after installing the experimental Addon Pack and Ship utilities tool:
- Select the addon to be translated in the Tools → Utilities → Addon Pack and Ship.
- Click the Compile Translations (which rebuilds the “po/template.pot” of translatable strings in your local addon’s
pluginsfolder) - clicked the hotlink for the selected addon to open its local
pluginsfolder - Open the
posubfolder - copy the
template.potto an AI. (I used Claude using the sonnet model in a firefox browser window and prompted:Please make a Polish translation file.) - Prompted the AI to create a translation for the target language.
- copy that new <language code>
-local.po(e.g.pl-local.pofor Polish) back to the local addon’sposubfolder - edit the <language code>
-local.poto fix any “my hovercraft is full of eels” problems. - Click the Compile Translations again (to build the
RoleReversal/locale/pl/LC_MESSAGES/addon.moused by the GUI) - restart Gramps (in the target language) and verify the Addon translation worked and is correct
- fix any mistranslations (go back to to step 8)
- send the <language code>
-local.poto the developer (submitting a PR against the GitHub repo for the addon is preferred)
Claude’s response
Please make a Polish translation file