# Path: fedocal/fedocal_babel.py
# def gettext(string, **variables):
#     """Wrapper for gettext functions, if flask-babel is missing"""
#     try:
#         return string % variables
#     except KeyError:
#         return string
# 
# def ngettext(singular, plural, num, **variables):
#     """Wrapper for ngettext functions, if flask-babel is missing"""
#     variables['num'] = num
#     if num == 1:
#         return gettext(singular, **variables)
#     else:
#         return gettext(plural, **variables)


   from flask_wtf import FlaskForm as FlaskForm
   from flask_wtf import Form as FlaskForm
from fedocal.fedocal_babel import gettext, ngettext
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 MA 02110-1301, USA.
"""
from __future__ import unicode_literals, absolute_import, print_function

try:
except ImportError:



class Translations(object):
    """Translations object (see
    http://wtforms.readthedocs.org/en/1.0.5/i18n.html#writing-your-own-translations-provider
    """
    def __init__(self):
        """ Constructor instanciates the gettext and ngettext methods used
        by the forms to translate.
        """
        self.gettext = gettext

# Path: fedocal/fedocal_babel.py
# def gettext(string, **variables):
#     """Wrapper for gettext functions, if flask-babel is missing"""
#     try:
#         return string % variables
#     except KeyError:
#         return string
# 
# def ngettext(singular, plural, num, **variables):
#     """Wrapper for ngettext functions, if flask-babel is missing"""
#     variables['num'] = num
#     if num == 1:
#         return gettext(singular, **variables)
#     else:
#         return gettext(plural, **variables)


# Path: fedocal/i18nforms.py
   from flask_wtf import FlaskForm as FlaskForm
   from flask_wtf import Form as FlaskForm
from fedocal.fedocal_babel import gettext, ngettext

 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 MA 02110-1301, USA.
"""
from __future__ import unicode_literals, absolute_import, print_function

try:
except ImportError:



class Translations(object):
    """Translations object (see
    http://wtforms.readthedocs.org/en/1.0.5/i18n.html#writing-your-own-translations-provider
    """
    def __init__(self):
        """ Constructor instanciates the gettext and ngettext methods used
        by the forms to translate.
        """
        self.gettext = gettext

        self.ngettext = ngettext