<div dir="ltr">Hi,<div><br></div><div>After Richard's work (thanks!) I did some fiddling in the doctest2.</div><div><br></div><div>I have changed some existing rst files, and updated the corresponding po source files. Because Richard had already fixed the keys for those resources on .tx\conf, all worked well and transifex immediately picked the new strings and mark them as untranslated. Completing the resource translation on transifex resulted in an automated Pull Request to update the file on GihHub (sweat!)</div><div><br></div><div>Then, I tried to create a brand new rst file and used shinx-intl to update the conf file (which led to some resources duplication), but the new resource was created and automatically picked by transifex. The opposite workflow also worked for that resource. once translated to 100% it created a PR with the translation.</div><div><br></div><div>This made me think that the problem with the non-matching will only happen if start with already translated resources. Therefore, I am going to force transifex to thinks that all PO files are new and let it do the work for us. Fingers crossed!</div><div><br></div><div>BTW, Harrissou, it seems that transifex live is only available for paying costumers :-(</div><div><br></div><div>Thanks,</div><div><br></div><div>Alexandre Neto</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 7, 2020 at 6:50 PM Richard 🌍 Duivenvoorde <<a href="mailto:richard@duif.net">richard@duif.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">(mail was initially setup to Harrissou and Alexandre, partners in crime,<br>
but I thought it would be better to share this with a greate audience<br>
hoping more people will learn from this):<br>
<br>
We did some further experiment with github/transifex integration.<br>
<br>
To be able to do some further testing, and not being witheld by shortage<br>
of qgis-repo permissions, I forked doc-test:<br>
<br>
<a href="https://github.com/rduivenvoorde/doc-test/" rel="noreferrer" target="_blank">https://github.com/rduivenvoorde/doc-test/</a><br>
<br>
and grant you both all rights in there...<br>
<br>
Then I created a 'new' qgistest organisation at github:<br>
<br>
<a href="https://www.transifex.com/qgistest/" rel="noreferrer" target="_blank">https://www.transifex.com/qgistest/</a><br>
<br>
and also made you both maintainers.<br>
<br>
Then I created a new project by immidiatly going to github...<br>
Transifex pulled english AND did not succeed to pull nl and fr<br>
Maybe I should try again...<br>
<br>
Another way to start the project is to upload it first via sphinx-intl<br>
and THEN integrate with github...<br>
Ok... we tried that. It appears that with some fiddling we are able to<br>
make this work:<br>
<a href="https://www.transifex.com/qgistest/doctest2/dashboard/" rel="noreferrer" target="_blank">https://www.transifex.com/qgistest/doctest2/dashboard/</a><br>
<br>
- first WITHOUT pushing anything to transifex, link the transifex<br>
project to the github repo/branch using the directory config.yaml<br>
<a href="https://github.com/rduivenvoorde/doc-test/tree/master/.tx" rel="noreferrer" target="_blank">https://github.com/rduivenvoorde/doc-test/tree/master/.tx</a><br>
<br>
- then using<br>
make gettext<br>
sphinx-intl update -p build/gettext -l en<br>
create a .tx/config file<br>
BUT!! all the 'keys' in that file will look like:<br>
[doctest2.docs--user_manual--auth_system--auth_workflows]<br>
and if you now try to push or pull, tx will complain it does not have<br>
that resource(-key).<br>
BUT (after the automatic github sync) the keys will look (looking at the<br>
urls like<br>
<a href="https://www.transifex.com/qgistest/doctest2/locale-en-lc-messages-docs-user-manual-auth-system-auth-workflows-po--master/" rel="noreferrer" target="_blank">https://www.transifex.com/qgistest/doctest2/locale-en-lc-messages-docs-user-manual-auth-system-auth-workflows-po--master/</a><br>
you can edit the config file to refect those keys:<br>
[doctest2.locale-en-lc-messages-docs-user-manual-auth-system-auth-workflows-po--master]<br>
<br>
NOW you can both pull/push using tx AND transifex will automagically be<br>
updated when sources change, OR github will be updated when a resource<br>
is 100% translated (and optionally reviewed)..<br>
There are some drawbacks... as the config file (we have 300 files in our<br>
doc site) will have to be patched once, AND it will be harder to keep ip<br>
uptodate<br>
<br>
We can already make this work for 3.10, but maybe it is better to wait<br>
for 3.16 the next LTR ?<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div>