Explorar o código

Fixed faulty indices in rule messages.

Taddeus Kroes %!s(int64=13) %!d(string=hai) anos
pai
achega
4956237ccc
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/rules/powers.py

+ 4 - 2
src/rules/powers.py

@@ -231,7 +231,8 @@ def remove_negative_exponent(root, args):
     return L(1) / a ** p.reduce_negation()
 
 
-MESSAGES[remove_negative_exponent] = _('Remove negative exponent {2}.')
+MESSAGES[remove_negative_exponent] = \
+        _('Replace negative exponent {0[1]} with a division by one.')
 
 
 def remove_negative_root(root, args):
@@ -242,7 +243,8 @@ def remove_negative_root(root, args):
     return -(a.reduce_negation() ** p)
 
 
-MESSAGES[remove_negative_root] = _('Remove negative exponent {2}.')
+MESSAGES[remove_negative_root] = _('{0[1]} is an odd number, so apply the ' \
+        'negation of {0[0]} to the power itself.')
 
 
 def match_exponent_to_root(node):