1

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

4

1 回答 1

1

模板更新现在发生在 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获取该项目的所有活动语言的列表。

于 2016-06-29T15:37:37.407 回答