diff options
| author | Craig Blaszczyk | 2015-01-07 12:01:11 +0000 | 
|---|---|---|
| committer | Craig Blaszczyk | 2015-01-07 12:01:11 +0000 | 
| commit | 4c32083b8b59a50877633910055313dad7bb117e (patch) | |
| tree | 4de7729161f512c7c14beaafc4a6f776ce772cc1 /rest_framework/versioning.py | |
| parent | fe5d93c8cbc5f3a9b1b6715208c70f485be68bdf (diff) | |
| download | django-rest-framework-4c32083b8b59a50877633910055313dad7bb117e.tar.bz2 | |
use double quotes for user visible strings; end user visible strings in full stops; add some missing translation tags
Diffstat (limited to 'rest_framework/versioning.py')
| -rw-r--r-- | rest_framework/versioning.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/rest_framework/versioning.py b/rest_framework/versioning.py index 440efd13..587ba9f1 100644 --- a/rest_framework/versioning.py +++ b/rest_framework/versioning.py @@ -67,7 +67,7 @@ class URLPathVersioning(BaseVersioning):      Host: example.com      Accept: application/json      """ -    invalid_version_message = _('Invalid version in URL path.') +    invalid_version_message = _("Invalid version in URL path.")      def determine_version(self, request, *args, **kwargs):          version = kwargs.get(self.version_param, self.default_version) @@ -109,7 +109,7 @@ class NamespaceVersioning(BaseVersioning):      Host: example.com      Accept: application/json      """ -    invalid_version_message = _('Invalid version in URL path.') +    invalid_version_message = _("Invalid version in URL path.")      def determine_version(self, request, *args, **kwargs):          resolver_match = getattr(request, 'resolver_match', None) @@ -135,7 +135,7 @@ class HostNameVersioning(BaseVersioning):      Accept: application/json      """      hostname_regex = re.compile(r'^([a-zA-Z0-9]+)\.[a-zA-Z0-9]+\.[a-zA-Z0-9]+$') -    invalid_version_message = _('Invalid version in hostname.') +    invalid_version_message = _("Invalid version in hostname.")      def determine_version(self, request, *args, **kwargs):          hostname, seperator, port = request.get_host().partition(':') @@ -157,7 +157,7 @@ class QueryParameterVersioning(BaseVersioning):      Host: example.com      Accept: application/json      """ -    invalid_version_message = _('Invalid version in query parameter.') +    invalid_version_message = _("Invalid version in query parameter.")      def determine_version(self, request, *args, **kwargs):          version = request.query_params.get(self.version_param) | 
