Skip to content

Commit

Permalink
Replace ugettext with gettext
Browse files Browse the repository at this point in the history
  • Loading branch information
oleast committed Feb 12, 2020
1 parent 73c387f commit 8b9d585
Show file tree
Hide file tree
Showing 36 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion apps/approval/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from django.http import Http404, HttpResponse
from django.shortcuts import render
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from django.views.decorators.csrf import ensure_csrf_cookie
from guardian.decorators import permission_required

Expand Down
2 changes: 1 addition & 1 deletion apps/approval/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django import forms
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from apps.authentication.constants import FieldOfStudyType

Expand Down
2 changes: 1 addition & 1 deletion apps/approval/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.core.exceptions import ValidationError
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from apps.approval import settings as approval_settings
from apps.authentication.constants import FieldOfStudyType
Expand Down
2 changes: 1 addition & 1 deletion apps/approval/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from django.http import Http404
from django.shortcuts import get_object_or_404, redirect
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from apps.approval.forms import FieldOfStudyApplicationForm
from apps.approval.models import MembershipApproval
Expand Down
2 changes: 1 addition & 1 deletion apps/article/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.db.models import SET_NULL
from django.template.defaultfilters import slugify
from django.urls import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from taggit.managers import TaggableManager
from unidecode import unidecode

Expand Down
2 changes: 1 addition & 1 deletion apps/authentication/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from reversion.admin import VersionAdmin

from apps.authentication.models import (
Expand Down
2 changes: 1 addition & 1 deletion apps/authentication/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _


class GroupType:
Expand Down
2 changes: 1 addition & 1 deletion apps/authentication/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from django import forms
from django.contrib import auth
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from apps.authentication.models import Email
from apps.authentication.models import OnlineUser as User
Expand Down
2 changes: 1 addition & 1 deletion apps/authentication/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.urls import reverse
from django.utils import timezone
from django.utils.html import strip_tags
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from rest_framework.exceptions import NotAcceptable

from apps.authentication.constants import FieldOfStudyType, GroupType, RoleType
Expand Down
2 changes: 1 addition & 1 deletion apps/careeropportunity/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from taggit.managers import TaggableManager

from apps.companyprofile.models import Company
Expand Down
2 changes: 1 addition & 1 deletion apps/companyprofile/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from apps.gallery.models import ResponsiveImage

Expand Down
2 changes: 1 addition & 1 deletion apps/events/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

from django.contrib import admin, messages
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from guardian.admin import GuardedModelAdmin
from reversion.admin import VersionAdmin

Expand Down
2 changes: 1 addition & 1 deletion apps/events/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from django.views.generic import CreateView, DeleteView, UpdateView
from guardian.decorators import permission_required
from guardian.shortcuts import get_objects_for_user
Expand Down
2 changes: 1 addition & 1 deletion apps/events/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from captcha.fields import ReCaptchaField
from django import forms
from django.conf import settings
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from apps.authentication.models import OnlineUser as User
from apps.marks.models import MarkRuleSet
Expand Down
2 changes: 1 addition & 1 deletion apps/events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from django.template.loader import render_to_string
from django.urls import reverse
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from guardian.shortcuts import assign_perm
from unidecode import unidecode

Expand Down
2 changes: 1 addition & 1 deletion apps/events/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from guardian.shortcuts import get_objects_for_user
from rest_framework import mixins, permissions, status, viewsets
from rest_framework.decorators import action
Expand Down
2 changes: 1 addition & 1 deletion apps/feedback/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from apps.authentication.constants import FieldOfStudyType
from apps.authentication.models import OnlineUser
Expand Down
2 changes: 1 addition & 1 deletion apps/feedback/serializers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
from collections import OrderedDict

from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from rest_framework import serializers

from .models import (
Expand Down
2 changes: 1 addition & 1 deletion apps/feedback/tests/base_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.test.client import Client
from django.urls import reverse
from django.utils import timezone as timezone
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from django_dynamic_fixture import G

from apps.authentication.models import Email, OnlineGroup
Expand Down
2 changes: 1 addition & 1 deletion apps/feedback/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from django.db.models import Prefetch
from django.http import Http404, HttpResponse
from django.shortcuts import get_object_or_404, redirect, render
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from rest_framework import mixins, permissions, status, viewsets
from rest_framework.decorators import action
from rest_framework.response import Response
Expand Down
2 changes: 1 addition & 1 deletion apps/gallery/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from taggit.managers import TaggableManager

from apps.gallery import settings as gallery_settings
Expand Down
2 changes: 1 addition & 1 deletion apps/inventory/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.core.mail import EmailMessage
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from apps.gallery.models import ResponsiveImage

Expand Down
2 changes: 1 addition & 1 deletion apps/marks/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

from django.contrib import admin
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from reversion.admin import VersionAdmin

from apps.marks.models import Mark, MarkRuleSet, MarkUser, Suspension
Expand Down
2 changes: 1 addition & 1 deletion apps/marks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.conf import settings
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

User = settings.AUTH_USER_MODEL

Expand Down
2 changes: 1 addition & 1 deletion apps/offline/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from chunks.models import Chunk
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from apps.gallery.models import ResponsiveImage

Expand Down
2 changes: 1 addition & 1 deletion apps/online_oidc_provider/claims.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from oidc_provider.lib.claims import ScopeClaims

from apps.sso.userinfo import Onlineweb4Userinfo
Expand Down
2 changes: 1 addition & 1 deletion apps/payment/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.db import models
from django.template.loader import render_to_string
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from apps.authentication.models import OnlineGroup
from apps.events.models import AttendanceEvent, Attendee
Expand Down
2 changes: 1 addition & 1 deletion apps/payment/mommy.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.core.mail import EmailMessage
from django.template.loader import render_to_string
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from pytz import timezone as tz

from apps.events.models import AttendanceEvent, Attendee
Expand Down
2 changes: 1 addition & 1 deletion apps/payment/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging

import stripe
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from rest_framework import permissions, status, viewsets
from rest_framework.response import Response
from stripe.error import InvalidRequestError, StripeError
Expand Down
2 changes: 1 addition & 1 deletion apps/posters/admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib import admin
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from reversion.admin import VersionAdmin

from .models import Poster
Expand Down
2 changes: 1 addition & 1 deletion apps/posters/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
redirect,
render,
)
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from django.views.decorators.csrf import ensure_csrf_cookie
from guardian.decorators import permission_required

Expand Down
2 changes: 1 addition & 1 deletion apps/posters/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.contrib.auth.models import Group
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from apps.events.models import Event

Expand Down
2 changes: 1 addition & 1 deletion apps/profiles/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from django import forms
from django.contrib import auth
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

from apps.authentication.models import OnlineUser, Position
from apps.profiles.models import Privacy
Expand Down
2 changes: 1 addition & 1 deletion apps/profiles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django.conf import settings
from django.db import models
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _

User = settings.AUTH_USER_MODEL

Expand Down
2 changes: 1 addition & 1 deletion apps/profiles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from django.http import Http404, HttpResponse, JsonResponse
from django.shortcuts import get_object_or_404, redirect, render
from django.utils import timezone
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from django.views import View
from django_filters.rest_framework import DjangoFilterBackend
from googleapiclient.errors import HttpError
Expand Down
2 changes: 1 addition & 1 deletion apps/sso/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Created by 'myth' on 6/25/15

from django.db.models import TextField
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from oauth2_provider.models import AbstractApplication


Expand Down

0 comments on commit 8b9d585

Please sign in to comment.