VC/Vidyo: Use new i18n functions

This commit is contained in:
Adrian Moennich 2015-03-11 18:42:39 +01:00
parent e9092b0fa9
commit dc10050133
4 changed files with 26 additions and 3 deletions

View File

@ -1,3 +1,4 @@
graft indico_vc_vidyo/static
graft indico_vc_vidyo/templates
graft indico_vc_vidyo/migrations
graft indico_vc_vidyo/templates
graft indico_vc_vidyo/translations

View File

@ -0,0 +1,21 @@
# This file is part of Indico.
# Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN).
#
# Indico is free software; you can redistribute it and/or
# modify 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.
#
# Indico 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 Indico; if not, see <http://www.gnu.org/licenses/>.
from __future__ import unicode_literals
from indico.util.i18n import make_bound_gettext
_ = make_bound_gettext('vc_vidyo')

View File

@ -23,10 +23,11 @@ from wtforms.fields.simple import TextAreaField
from wtforms.validators import DataRequired, Length, Regexp, Optional, ValidationError
from indico.modules.vc.forms import VCRoomFormBase, VCRoomAttachFormBase
from indico.util.i18n import _
from indico.util.user import retrieve_principal
from indico.web.forms.fields import PrincipalField, IndicoPasswordField
from indico.web.forms.widgets import SwitchWidget
from indico_vc_vidyo import _
from indico_vc_vidyo.util import iter_user_identities
PIN_RE = re.compile(r'^\d+$')

View File

@ -28,11 +28,11 @@ from indico.core.plugins import IndicoPlugin, url_for_plugin, IndicoPluginBluepr
from indico.modules.vc.exceptions import VCRoomError, VCRoomNotFoundError
from indico.modules.vc import VCPluginSettingsFormBase, VCPluginMixin
from indico.modules.vc.views import WPVCManageEvent, WPVCEventPage
from indico.util.i18n import _
from indico.util.user import retrieve_principal, principal_to_tuple
from indico.web.forms.fields import IndicoPasswordField
from indico.web.forms.widgets import CKEditorWidget
from indico_vc_vidyo import _
from indico_vc_vidyo.api import AdminClient, APIException, RoomNotFoundAPIException
from indico_vc_vidyo.cli import cli_manager
from indico_vc_vidyo.forms import VCRoomForm, VCRoomAttachForm