There was an error while loading. Please reload this page.
1 parent 4d14223 commit fc0c616Copy full SHA for fc0c616
1 file changed
documentation/translations/translating.rst
@@ -393,8 +393,6 @@ messages, regardless of file paths. To use it, first install the package:
393
Then, merge translations from a specific commit (replace :samp:`{COMMIT_HASH}`
394
with the commit hash from before the files were moved):
395
396
-.. TODO: Provide Windows instructions.
397
-
398
.. tab:: Unix
399
400
.. code-block:: bash
@@ -416,6 +414,27 @@ with the commit hash from before the files were moved):
416
414
# Clean up temporary dir
417
415
rm -rf /tmp/old-po-files
418
+.. tab:: Windows
+
419
+ .. code-block:: dosbatch
420
421
+ rem These commands are to be run in the root of the translation repo
422
423
+ rem Check out a commit before the move
424
+ git checkout COMMIT_HASH -- .
425
426
+ rem Copy translations to a temporary dir
427
+ xcopy . %TEMP%\old-po-files\ /E /I /Q /Y
428
429
+ rem Return to the current version
430
+ git checkout HEAD -- .
431
432
+ rem Merge translations from temporary dir back in
433
+ pomerge --from "%TEMP%\old-po-files\**\*.po" --to "**\*.po" --clear
434
435
+ rem Clean up temporary dir
436
+ rmdir /S /Q %TEMP%\old-po-files
437
438
After running ``pomerge``, review the changes and commit the updated files.
439
You may also need to rewrap the lines (see :pypi:`powrap`).
440
0 commit comments