Understanding “Use this file as template when running Sync”
-
Hi there, thanks for this excellent plugin. I really like working with it but need some help as per the topic title.
So when I write a custom plugin (i.e. not published here) I write the translatable strings in the code in English with a unique plugin text domain, then use WP-CLI to generate a
languages/plugin-domain.potfile. I use Loco Translate on my localhost to create the relevantlanguages/plugin-domain-de_DE.poandlanguages/plugin-domain-de_DE.mofiles. I commit everything to the plugin repo on GitHub/GitLab etc. On the live site, which also has Loco Translate on it, Igit pullthe plugin and my translations appear as expected. So far so good!My German, however, is passable but not great, so what I’d like to do is have a native-speaking WordPress user be able to update the translations on the live site with better versions. I plan to periodically sync those improved translations back to the plugin repo via a script that’s part of my localhost backup schedule.
Which is where my weak understanding of the “Use this file as template when running Sync” checkbox comes in…
In Loco Translate on the live site, when I make a copy of the plugin’s translation files to
languages/loco/pluginsI copy the target translations from “de_DE” so that the WordPress user has something to be getting on with. And I definitely want the translations inlanguages/loco/pluginsto sync with the source files in the plugin’slanguagesdirectory to pull in new strings and update amended ones when the plugin gets updated.So here’s the question at last — should I check or uncheck “Use this file as template when running Sync” in this situation?
Many thanks in advance.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.