diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2010-12-27 22:42:07 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2010-12-27 22:42:07 +0000 |
commit | acf8c73de7e478804b5273fbdd2e7225f7976af9 (patch) | |
tree | 976db794d2abc1cd9b26afc7063169abcc02a86f /media/django-jsi18n.js | |
parent | c6d9fce6effe479e7d28bb10d23018deabb86e1e (diff) |
Dammit.
Diffstat (limited to 'media/django-jsi18n.js')
-rw-r--r-- | media/django-jsi18n.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/media/django-jsi18n.js b/media/django-jsi18n.js deleted file mode 100644 index 83562c1a..00000000 --- a/media/django-jsi18n.js +++ /dev/null @@ -1,35 +0,0 @@ - -/* gettext library */ - -var catalog = new Array(); - -function pluralidx(count) { return (count == 1) ? 0 : 1; } - - -function gettext(msgid) { - var value = catalog[msgid]; - if (typeof(value) == 'undefined') { - return msgid; - } else { - return (typeof(value) == 'string') ? value : value[0]; - } -} - -function ngettext(singular, plural, count) { - value = catalog[singular]; - if (typeof(value) == 'undefined') { - return (count == 1) ? singular : plural; - } else { - return value[pluralidx(count)]; - } -} - -function gettext_noop(msgid) { return msgid; } - -function interpolate(fmt, obj, named) { - if (named) { - return fmt.replace(/%\(\w+\)s/g, function(match){return String(obj[match.slice(2,-2)])}); - } else { - return fmt.replace(/%s/g, function(match){return String(obj.shift())}); - } -} |