Bug #32794
"You are not authorized to manage this role" pas (plus?) proposé à la traduction
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
05 mai 2019
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
La chaine apparait dans un {% trans ... %} qui est dans une chaine de caractère dans le code; un authentic2-ctl makemessages passe à côté.
member = tables.TemplateColumn('''{% load i18n %}<input class="role-member{% if not record.member and record.via %} indeterminate{% endif %}" name='role-{{ record.pk }}' type='checkbox' {% if record.member %}checked{% endif %} {% if not record.has_perm %}disabled title="{% trans "You are not authorized to manage this role" %}"{% endif %}/>''',
Dans #31213 apparait cette chaine, mais avec comme localisation des trucs douteux :
+#: htmlcov-coverage-dj18-authentic-pg/htmlcov/src_authentic2_manager_tables_py.html:355 +#: htmlcov-coverage-dj18-authentic-pg/src_authentic2_manager_tables_py.html:355 +#: htmlcov-coverage-dj18-rbac-pg/htmlcov/src_authentic2_manager_tables_py.html:355 +#: htmlcov-coverage-dj18-rbac-pg/src_authentic2_manager_tables_py.html:355 +#: htmlcov/src_authentic2_manager_tables_py.html:355 +msgid "You are not authorized to manage this role" +msgstr "Vous n'êtes pas autorisé à gérer ce rôle."
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 4 ans
- Fichier 0001-misc-mark-template-in-code-string-for-translation-32.patch 0001-misc-mark-template-in-code-string-for-translation-32.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
C'est bien moche. (mais utiliser .format() à la place est moche aussi, à devoir doubler les {}).
Mis à jour par Thomas Noël il y a plus de 4 ans
- Statut changé de Solution proposée à Solution validée
Frédéric Péters a écrit :
C'est bien moche. (mais utiliser .format() à la place est moche aussi, à devoir doubler les {}).
Ouaip, j'ai pas mieux non plus.
Mis à jour par Frédéric Péters il y a plus de 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 870ab13f7991f6f8c0608d68fce966118d676bcc Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Aug 16 16:21:46 2019 +0200 misc: mark template-in-code string for translation (#32794)
Mis à jour par Frédéric Péters il y a plus de 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: mark template-in-code string for translation (#32794)