]>
git.ipfire.org Git - people/ms/libloc.git/blob - src/python/location/i18n.py
1 ###############################################################################
3 # libloc - A library to determine the location of someone on the Internet #
5 # Copyright (C) 2020 IPFire Development Team <info@ipfire.org> #
7 # This library is free software; you can redistribute it and/or #
8 # modify it under the terms of the GNU Lesser General Public #
9 # License as published by the Free Software Foundation; either #
10 # version 2.1 of the License, or (at your option) any later version. #
12 # This library is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
15 # Lesser General Public License for more details. #
17 ###############################################################################
21 def _(singular
, plural
=None, n
=None):
23 return gettext
.dngettext("libloc", singular
, plural
, n
)
25 return gettext
.dgettext("libloc", singular
)