From: David B. <dav...@gm...> - 2011-01-23 23:12:59
|
Hi, We just switched the drawing of the formulas in the comet game to standard SDL text rendering as part of Google Code-In. In the course of fine-tuning this, I've changed the generation of the question strings to use format strings that can be handled by gettext (see below from latest po/tuxmath.pot). So now, the display can account for locale-specific differences in how equations are typically displayed. For the default symbols, I've chosen the ones that US primary schools typically use (e.g. "x" rather than "*" for multiplication, and "÷" rather than "/" for division). It was a bit of a task to get the division symbol entered because it isn't on standard keyboards, and even capable text editors like Vim insert it by means of something called "digraphs", which don't actually put in the corresponding UTF-8. Best, David #: src/mathcards.c:2591 #, c-format msgid "%d + %d = ?" msgstr "" #: src/mathcards.c:2591 #, c-format msgid "? + %d = %d" msgstr "" #: src/mathcards.c:2591 #, c-format msgid "%d + ? = %d" msgstr "" #: src/mathcards.c:2592 #, c-format msgid "%d - %d = ?" msgstr "" #: src/mathcards.c:2592 #, c-format msgid "? - %d = %d" msgstr "" #: src/mathcards.c:2592 #, c-format msgid "%d - ? = %d" msgstr "" #: src/mathcards.c:2593 #, c-format msgid "%d x %d = ?" msgstr "" #: src/mathcards.c:2593 #, c-format msgid "? x %d = %d" msgstr "" #: src/mathcards.c:2593 #, c-format msgid "%d x ? = %d" msgstr "" #: src/mathcards.c:2594 #, c-format msgid "%d ÷ %d = ?" msgstr "" #: src/mathcards.c:2594 #, c-format msgid "? ÷ %d = %d" msgstr "" #: src/mathcards.c:2594 #, c-format msgid "%d ÷ ? = %d" msgstr "" |