pootle 2.7 中的 update_against_templates 是什么?

what is update_against_templates in pootle 2.7?

我从我的项目中添加了一个新的模板文件。现在我不知道如何更新语言或获取新的模板文件。我读到 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 template af
  3. update_store --project=myproject --language=af

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