Skip to content

Commit

Permalink
[CHORE] Remove --no-wrap from recommended pybabel command (hedyor…
Browse files Browse the repository at this point in the history
…g#4308)

When Weblate writes `.po` files, it will always use wrapping.

When we then recommend to disable wrapping, we trigger an endless fight between ourselves and Weblate where we will unwrap a line and Weblate will wrap it and then we will unwrap it and so forth...
  • Loading branch information
rix0rrr authored May 23, 2023
1 parent 896cb04 commit 71f9887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ When adding new Babel translations the implementation is a bit more complex, but
2. Next we run the following command to let Babel search for keys, it is important to locations and sort the output to minimize merge conflicts:
* `pybabel extract -F babel.cfg -o messages.pot . --no-location --sort-output`
3. We now have to add the found keys to all translation files, with the following command:
* `pybabel update -i messages.pot -d translations -N --no-wrap`
* `pybabel update -i messages.pot -d translations -N`
4. All keys will be automatically stored in the /translations folder
5. Search for the .po files for the languages you know and find the empty `msgstr` for your added key(s)
6. Add your translations there, the other translation will hopefully be quickly picked up by other translators
Expand Down

0 comments on commit 71f9887

Please sign in to comment.