Weblate wraps long lines

When lines are long pybabel does not wrap them but weblate does. As a result they fight against each other for formatting. This has not created any problem so far but I’m curious if there is a simple way to stop that from happening ?

Here is a sample diff:

 #: journalist_templates/admin_new_user_two_factor.html:5
 msgid "You're almost done! To finish adding this new user, have them follow the instructions below to set up two-factor authentication with Google Authenticator. Once they've added an entry for this account in the app, have them enter one of the 6-digit codes from the app to confirm that two factor authentication is set up correctly."
-msgstr ""
-"Vous avez presque terminé! Pour finaliser l'ajout de ce nouvel utilisateur, "
-"faites leur suivre les instructions qui suivent pour mettre en place "
-"l'authentification a deux facteurs avec Google Authenticator. Lorsqu'ils "
-"auront ajouté une nouvelle entrée pour ce compte dans l'app, demandez leur "
-"de taper le code a 6 chiffres fourni par l'app pour confirmer que "
-"l'authentification a deux facteurs est correctement mise en place."

I’m pretty sure there’s a CLI setting that will force pybabel to wrap the lines. I seem to remember something like that at some point. Maybe?

1 Like

Of course ! I removed the –no-wrap from the pybabel calls and it’s all better :wink:

It’s much better indeed, now it looks like I need pybabel -w to agree with the line length in weblate.

@@ -362,10 +365,10 @@ msgid ""
 "credentials. Otherwise, they will be locked out of their account."
 msgstr ""
 "Si l'identification à deux facteurs d'un utilisateur a été perdue ou "
-"compromise, vous pouvez la réinitialiser ici. Si vous le faite assurez "
-"vous que l'utilisateur est présent et prêt à mettre en place la nouvelle "
-"identification à deux facteurs sur sa machine. A défaut de cela ils ne "
-"pourront plus accéder à leur compte."
+"compromise, vous pouvez la réinitialiser ici. Si vous le faite "
+"assurez vous que l'utilisateur est présent et prêt à mettre en place la "
+"nouvelle identification à deux facteurs sur sa machine. A défaut de cela "
+"ils ne pourront plus accéder à leur compte."
 
 #: journalist_templates/edit_account.html:56

See also Weblate issue tracker for more information: https://github.com/WeblateOrg/weblate/issues/365

1 Like