简体   繁体   中英

what is update_against_templates in pootle 2.7?

I added a new template file from my project. Now I don't know how to make the languages update or get the new template file. I've read that 2.5 has update_against_templates but it's not in 2.7. How will update my languages?

Template updates now happen outside of Pootle. The old update_against_template had performance problems and could get Pootle into a bad state. To achieve the same functionality as update_against_templates do the following. Assuming your project is myproject and you are updating language af :

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

You can automate that in a script to iterate through all languages. Use list_languages --project=myproject to get a list of all the active languages for that project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM