mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
on python2.4, fall back to non-localized strings
This commit is contained in:
parent
a958734f8b
commit
4b3532f3eb
1 changed files with 6 additions and 1 deletions
|
@ -19,7 +19,12 @@ except ImportError:
|
||||||
|
|
||||||
from anki.db import *
|
from anki.db import *
|
||||||
from anki.lang import _, ngettext
|
from anki.lang import _, ngettext
|
||||||
import locale
|
import locale, sys
|
||||||
|
|
||||||
|
if sys.version_info[1] < 5:
|
||||||
|
def format_string(a, b):
|
||||||
|
return a % b
|
||||||
|
locale.format_string = format_string
|
||||||
|
|
||||||
# Time handling
|
# Time handling
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
Loading…
Reference in a new issue