[Bf-docboard] Simplified chinese po files outdated forseveralweeks and can't update po files locally

Campbell Barton ideasman42 at gmail.com
Wed Nov 15 15:07:58 CET 2017


Running `make update_po` works for me and has done for the past few days.

Currently all PO files must be able to parse, otherwise updating
translations fails.
This probably seems sensible for the author of sphinx-intl, the issue
for us is any issue with any language prevents all other languages
from being updated.

We could split the update process by language to avoid this, however
this involves some extra work to the update script and it complicates
committing changes since some languages would need to be filtered out.

So far most/all errors were caused from committing merge conflicts.
If translators can take care not to do this, it would save us hassles.

Otherwise we could either change sphinx-intl or patch it at runtime to
allow skipping po files with errors.


On Thu, Nov 16, 2017 at 12:36 AM, NGE <zhudengyan at foxmail.com> wrote:
> Hi, Tobias:
>
> Thank you for your reminder. I've recovered deleted files manually.
> But, I still can't use "make update_po" command to update po files locally?
> What's wrong? What can I do to solve this?
>
> NGE
>
> ------------------ Original ------------------
> From:  "Tobias Heinke";<heinke.tobias at t-online.de>;
> Date:  Fri, Nov 10, 2017 10:54 PM
> To:  "bf-docboard"<bf-docboard at blender.org>;
> Subject:  Re: [Bf-docboard] Simplified chinese po files outdated
> forseveralweeks and can't update po files locally
>
> Hi NGE,
>
> There was a reason behind removing the "and":
> the image names contain the file name thus it gets long (line column > 120):
> render_blender-render_lighting_lamps_sun_sky-and-atmosphere_sky-sun-bright0-5.jpg
>
> So for consistency I removed all other occurrences, other filenames already
> have non e.g, tabs_panels, also the "and" adds no informational value.
>
> You don't have to translate it again, just copy it from the diff. Diffs
> contain the full content of added/deleted files.
>
> Tobias
>
> Am 10.11.2017 um 04:58 schrieb NGE:
>
>
> I don't suggest renaming files freely, renaming "undo_and_redo.rst" to
> "undo_redo.rst" doesn't make much sense.
> A lot of tranlsated po files was deleted, and we have to translate it again.
> Rules and steps for renaming files should be added to the "About" section.
>
>
> ------------------ Original ------------------
> From:  "Campbell Barton";<ideasman42 at gmail.com>;
> Date:  Thu, Nov 9, 2017 02:01 PM
> To:  "Blender Documentation Project"<bf-docboard at blender.org>;
> Subject:  Re: [Bf-docboard] Simplified chinese po files outdated for
> severalweeks and can't update po files locally
>
> Hi, I've updated the translations however this is being handled poorly.
>
> The french translation had committed files with merge conflicts.
> Causing translation generation to fail.
>
> Authors have been renaming files without using `tools/rst_remap.py`,
> which was written to support moving/renaming RST files & images -
> automatically updating PO files to avoid tedious renaming operations
> for every translation.
>
> So I'm afraid some translations will need to be manually moved to
> their new locations or restored from previous revisions.
>
> On Thu, Nov 9, 2017 at 2:34 PM, NGE <zhudengyan at foxmail.com> wrote:
>> Hi, Campbell & Aaron:
>>
>> I found that the simplified Chinese po files has been outdated for weeks,
>> so
>> a lot of changed items displayed as untranslated.
>>
>> I've tried to use the "make update_po" command to update po files by
>> myself(as descripted in
>>
>> https://docs.blender.org/manual/en/dev/about/contribute/translations/contribute.html#updating-po-files).
>> But it failed with error message "Error: Invalid value for language: No
>> languages are found. Please specify language with -l option, or preparing
>> language directories under 'locales' directory.
>> "
>> What's wrong with this? I've done this successfully before, why does it
>> fail
>> now?
>>
>>
>> Please help solve it.
>>
>> Best regards
>> zdy (NGENNGT)
>>
>>
>>
>> _______________________________________________
>> Bf-docboard mailing list
>> Bf-docboard at blender.org
>> https://lists.blender.org/mailman/listinfo/bf-docboard
>>
>
>
>
> --
> - Campbell
> _______________________________________________
> Bf-docboard mailing list
> Bf-docboard at blender.org
> https://lists.blender.org/mailman/listinfo/bf-docboard
>
>
> _______________________________________________
> Bf-docboard mailing list
> Bf-docboard at blender.org
> https://lists.blender.org/mailman/listinfo/bf-docboard
>
>
>
> _______________________________________________
> Bf-docboard mailing list
> Bf-docboard at blender.org
> https://lists.blender.org/mailman/listinfo/bf-docboard
>



-- 
- Campbell


More information about the Bf-docboard mailing list