gpt4 book ai didi

python - pootle 2.7 中的 update_against_templates 是什么?

转载 作者:太空宇宙 更新时间:2023-11-03 17:16:28 24 4
gpt4 key购买 nike

我从我的项目中添加了一个新的模板文件。现在我不知道如何更新语言或获取新的模板文件。我读到 2.5 有 update_against_templates 但 2.7 中没有。如何更新我的语言?

最佳答案

模板更新现在发生在 Pootle 之外。旧的 update_against_template 存在性能问题,可能会让 Pootle 陷入糟糕的状态。要实现与 update_against_templates 相同的功能,请执行以下操作。假设您的项目是 myproject 并且您正在更新语言 af:

  1. sync_store --project=myproject --language=af
  2. pot2po -t af 模板 af
  3. update_store --project=myproject --language=af

您可以在脚本中自动执行此操作以迭代所有语言。使用 list_languages --project=myproject 获取该项目的所有事件语言的列表。

关于python - pootle 2.7 中的 update_against_templates 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33630137/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com