Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/boards/python/gnumch.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/boards/python/gnumch.py')
-rw-r--r--src/boards/python/gnumch.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/boards/python/gnumch.py b/src/boards/python/gnumch.py
index 41f85c5..b446752 100644
--- a/src/boards/python/gnumch.py
+++ b/src/boards/python/gnumch.py
@@ -147,13 +147,16 @@ class FactorLevelset:
self.nonfactors = []
def getError(self, num):
- fmt = _('Multiples of %d include %s,\nbut %d is not a multiple of %d.')
+ # Translators: You can swap %(x)y elements in the string.
+ fmt = _('Multiples of %(d1)d include %(s)s,\nbut %(d2)d is not a multiple of %(d3)d.')
n = int(num.text)
mults = []
for i in range(2, 5):
mults.append(n*i)
- s = makeNumList(mults) % tuple(mults)
- return fmt % (n, s, self.level_multiple[self.cur_sublevel-1], n)
+ return fmt % { 'd1': n,
+ 's': makeNumList(mults) % tuple(mults),
+ 'd2': self.level_multiple[self.cur_sublevel-1],
+ 'd3': n }
def getTitle(self):
return _('Factors of %d') % ( self.level_multiple[self.cur_sublevel-1] )