From 4e0591ca38787ad21e6052f25b593cc0e9b58632 Mon Sep 17 00:00:00 2001 From: Jhovel Date: Tue, 3 Sep 2019 10:48:22 +0300 Subject: [PATCH 1/2] added descrition for the fork --- README.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.rst b/README.rst index ac7f19e..d1808ad 100644 --- a/README.rst +++ b/README.rst @@ -29,3 +29,7 @@ https://github.com/Tivix/django-rest-auth Stack Overflow ----------- http://stackoverflow.com/questions/tagged/django-rest-auth + +Custom translations + +This fork was made due to the demand of custom translations. \ No newline at end of file From 536e02335269f10fe43012eb96c071aec617c12f Mon Sep 17 00:00:00 2001 From: Jhovel Date: Tue, 3 Sep 2019 11:06:10 +0300 Subject: [PATCH 2/2] added en and ar .po files --- rest_auth/locale/ar/LC_MESSAGES/django.po | 103 ++++++++++++++++++ rest_auth/locale/en/LC_MESSAGES/django.po | 106 +++++++++++++++++++ rest_auth/locale/fr/LC_MESSAGES/django.mo | Bin 2334 -> 0 bytes rest_auth/locale/fr/LC_MESSAGES/django.po | 98 ----------------- rest_auth/locale/pt_BR/LC_MESSAGES/django.po | 99 ----------------- 5 files changed, 209 insertions(+), 197 deletions(-) create mode 100644 rest_auth/locale/ar/LC_MESSAGES/django.po create mode 100644 rest_auth/locale/en/LC_MESSAGES/django.po delete mode 100644 rest_auth/locale/fr/LC_MESSAGES/django.mo delete mode 100644 rest_auth/locale/fr/LC_MESSAGES/django.po delete mode 100644 rest_auth/locale/pt_BR/LC_MESSAGES/django.po diff --git a/rest_auth/locale/ar/LC_MESSAGES/django.po b/rest_auth/locale/ar/LC_MESSAGES/django.po new file mode 100644 index 0000000..d5824e1 --- /dev/null +++ b/rest_auth/locale/ar/LC_MESSAGES/django.po @@ -0,0 +1,103 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-09-03 07:18+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" +#: extra_locale/rest_auth/registration/serializers.py:67 +msgid "View is not defined, pass it as a context variable" +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:72 +msgid "Define adapter_class in view" +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:91 +msgid "Define callback_url in view" +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:95 +msgid "Define client_class in view" +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:116 +msgid "Incorrect input. access_token or code is required." +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:125 +msgid "Incorrect value" +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:139 +msgid "User is already registered with this e-mail address." +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:185 +msgid "A user is already registered with this e-mail address." +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:193 +msgid "The two password fields didn't match." +msgstr "" + +#: extra_locale/rest_auth/registration/views.py:51 +msgid "Verification e-mail sent." +msgstr "" + +#: extra_locale/rest_auth/registration/views.py:98 +msgid "ok" +msgstr "" + +#: extra_locale/rest_auth/serializers.py:33 +msgid "Must include \"email\" and \"password\"." +msgstr "" + +#: extra_locale/rest_auth/serializers.py:44 +msgid "Must include \"username\" and \"password\"." +msgstr "" + +#: extra_locale/rest_auth/serializers.py:57 +msgid "Must include either \"username\" or \"email\" and \"password\"." +msgstr "" + +#: extra_locale/rest_auth/serializers.py:98 +msgid "User account is disabled." +msgstr "" + +#: extra_locale/rest_auth/serializers.py:101 +msgid "Unable to log in with provided credentials." +msgstr "" + +#: extra_locale/rest_auth/serializers.py:110 +msgid "E-mail is not verified." +msgstr "" + +#: extra_locale/rest_auth/views.py:137 +msgid "Successfully logged out." +msgstr "" + +#: extra_locale/rest_auth/views.py:190 +msgid "Password reset e-mail has been sent." +msgstr "" + +#: extra_locale/rest_auth/views.py:216 +msgid "Password has been reset with the new password." +msgstr "" + +#: extra_locale/rest_auth/views.py:238 +msgid "New password has been saved." +msgstr "" diff --git a/rest_auth/locale/en/LC_MESSAGES/django.po b/rest_auth/locale/en/LC_MESSAGES/django.po new file mode 100644 index 0000000..6ce482e --- /dev/null +++ b/rest_auth/locale/en/LC_MESSAGES/django.po @@ -0,0 +1,106 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-09-03 07:18+0000\n" +"PO-Revision-Date: 2019-09-03 07:22+0000\n" +"Last-Translator: b' <>'\n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Translated-Using: django-rosetta 0.9.3\n" + +#: extra_locale/rest_auth/registration/serializers.py:67 +msgid "View is not defined, pass it as a context variable" +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:72 +msgid "Define adapter_class in view" +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:91 +msgid "Define callback_url in view" +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:95 +msgid "Define client_class in view" +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:116 +msgid "Incorrect input. access_token or code is required." +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:125 +msgid "Incorrect value" +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:139 +msgid "User is already registered with this e-mail address." +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:185 +msgid "A user is already registered with this e-mail address." +msgstr "" + +#: extra_locale/rest_auth/registration/serializers.py:193 +msgid "The two password fields didn't match." +msgstr "" + +#: extra_locale/rest_auth/registration/views.py:51 +msgid "Verification e-mail sent." +msgstr "" + +#: extra_locale/rest_auth/registration/views.py:98 +msgid "ok" +msgstr "" + +#: extra_locale/rest_auth/serializers.py:33 +msgid "Must include \"email\" and \"password\"." +msgstr "" + +#: extra_locale/rest_auth/serializers.py:44 +msgid "Must include \"username\" and \"password\"." +msgstr "" + +#: extra_locale/rest_auth/serializers.py:57 +msgid "Must include either \"username\" or \"email\" and \"password\"." +msgstr "" + +#: extra_locale/rest_auth/serializers.py:98 +msgid "User account is disabled." +msgstr "" + +#: extra_locale/rest_auth/serializers.py:101 +msgid "Unable to log in with provided credentials." +msgstr "" +"The email and/or password you entered are incorrect. Please check and try " +"again." + +#: extra_locale/rest_auth/serializers.py:110 +msgid "E-mail is not verified." +msgstr "" + +#: extra_locale/rest_auth/views.py:137 +msgid "Successfully logged out." +msgstr "" + +#: extra_locale/rest_auth/views.py:190 +msgid "Password reset e-mail has been sent." +msgstr "" + +#: extra_locale/rest_auth/views.py:216 +msgid "Password has been reset with the new password." +msgstr "" + +#: extra_locale/rest_auth/views.py:238 +msgid "New password has been saved." +msgstr "" diff --git a/rest_auth/locale/fr/LC_MESSAGES/django.mo b/rest_auth/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 510118c2e838172b018f6331e0c9a9000d29eb66..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2334 zcma)7OK)366ds_365a&~P(eBvN`dyev0K`ZDymA8K%|6*l2$B=s>!`$dz$MRcOFi{ zs(a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0000000 --- a/rest_auth/locale/fr/LC_MESSAGES/django.po +++ /dev/null @@ -1,98 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-22 11:37-0800\n" -"PO-Revision-Date: 2017-02-14 13:27+0100\n" -"Language: fr\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Last-Translator: \n" -"Language-Team: \n" -"X-Generator: Poedit 1.8.11\n" - -#: registration/serializers.py:53 -msgid "View is not defined, pass it as a context variable" -msgstr "La “View” n’est pas définie, passez la en variable contextuelle" - -#: registration/serializers.py:58 -msgid "Define adapter_class in view" -msgstr "Définissez “adapter_class” dans la vue" - -#: registration/serializers.py:77 -msgid "Define callback_url in view" -msgstr "Définissez “callback_url” dans la vue" - -#: registration/serializers.py:81 -msgid "Define client_class in view" -msgstr "Définissez “client_class” dans la vue" - -#: registration/serializers.py:102 -msgid "Incorrect input. access_token or code is required." -msgstr "Paramètres incorrects. Il faut “access_token” ou “code”." - -#: registration/serializers.py:111 -msgid "Incorrect value" -msgstr "Paramètre incorrect" - -#: registration/serializers.py:140 -msgid "A user is already registered with this e-mail address." -msgstr "Un utilisateur existe déjà avec cette adresse email." - -#: registration/serializers.py:148 -msgid "The two password fields didn't match." -msgstr "Les deux mots de passes ne sont pas les mêmes." - -#: registration/views.py:82 -msgid "ok" -msgstr "Ok" - -#: serializers.py:30 -msgid "Must include \"email\" and \"password\"." -msgstr "Doit inclure “email” et “password”." - -#: serializers.py:41 -msgid "Must include \"username\" and \"password\"." -msgstr "Doit inclure “username” et “password”." - -#: serializers.py:54 -msgid "Must include either \"username\" or \"email\" and \"password\"." -msgstr "Doit inclure un “username” ou “email”, et un “password”." - -#: serializers.py:95 -msgid "User account is disabled." -msgstr "Le compte utilisateur est désactivé." - -#: serializers.py:98 -msgid "Unable to log in with provided credentials." -msgstr "Connexion impossible avec les informations fournies." - -#: serializers.py:107 -msgid "E-mail is not verified." -msgstr "L’adresse email n’a pas été vérifiée." - -#: views.py:114 -msgid "Successfully logged out." -msgstr "Déconnexion effectuée avec succès." - -#: views.py:162 -msgid "Password reset e-mail has been sent." -msgstr "L’email de réinitialisation du mot de passe a été envoyé." - -#: views.py:184 -msgid "Password has been reset with the new password." -msgstr "Le mot de passe a été réinitialisé." - -#: views.py:202 -msgid "New password has been saved." -msgstr "Le nouveau mot de passe est sauvé." - -#~ msgid "Error" -#~ msgstr "Fehler" diff --git a/rest_auth/locale/pt_BR/LC_MESSAGES/django.po b/rest_auth/locale/pt_BR/LC_MESSAGES/django.po deleted file mode 100644 index d816a54..0000000 --- a/rest_auth/locale/pt_BR/LC_MESSAGES/django.po +++ /dev/null @@ -1,99 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Bruno Barreto Freitas , 2019. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-04-16 09:48-0800\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: Bruno Barreto Freitas \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: registration/serializers.py:53 -msgid "View is not defined, pass it as a context variable" -msgstr "\"View\" não está definida, passe-a como uma variável de contexto" - -#: registration/serializers.py:58 -msgid "Define adapter_class in view" -msgstr "Defina \"adapter_class\" na view" - -#: registration/serializers.py:77 -msgid "Define callback_url in view" -msgstr "Defina \"callback_url\" na view" - -#: registration/serializers.py:81 -msgid "Define client_class in view" -msgstr "Defina \"client_class\" na view" - -#: registration/serializers.py:102 -msgid "Incorrect input. access_token or code is required." -msgstr "Entrada incorreta. \"access_token\" ou \"code\" são obrigatórios." - -#: registration/serializers.py:111 -msgid "Incorrect value" -msgstr "Valor incorreto" - -#: registration/serializers.py:140 -msgid "A user is already registered with this e-mail address." -msgstr "Já existe um usuário cadastrado com este endereço de e-mail." - -#: registration/serializers.py:148 -msgid "The two password fields didn't match." -msgstr "Os dois campos de senha não correspondem." - -#: registration/views.py:44 -msgid "Verification e-mail sent." -msgstr "E-mail de verificação enviado." - -#: registration/views.py:91 -msgid "ok" -msgstr "Ok" - -#: serializers.py:30 -msgid "Must include \"email\" and \"password\"." -msgstr "Deve-se incluir \"email\" e \"password\"." - -#: serializers.py:41 -msgid "Must include \"username\" and \"password\"." -msgstr "Deve-se incluir \"username\" e \"password\"." - -#: serializers.py:54 -msgid "Must include either \"username\" or \"email\" and \"password\"." -msgstr "Deve-se incluir \"username\" ou \"email\" e \"password\"." - -#: serializers.py:95 -msgid "User account is disabled." -msgstr "Conta de usuário está desativada" - -#: serializers.py:98 -msgid "Unable to log in with provided credentials." -msgstr "Não foi possível realizar o login com as credenciais fornecidas." - -#: serializers.py:107 -msgid "E-mail is not verified." -msgstr "E-mail não foi verificado." - -#: views.py:126 -msgid "Successfully logged out." -msgstr "Logout realizado com sucesso." - -#: views.py:174 -msgid "Password reset e-mail has been sent." -msgstr "E-mail de redefinição de senha foi enviado." - -#: views.py:200 -msgid "Password has been reset with the new password." -msgstr "Senha foi redefinida com a nova senha." - -#: views.py:222 -msgid "New password has been saved." -msgstr "Nova senha foi salva com sucesso."