From 80495b8f8bf4acd8c46cfa76dc6cde8b2e5e21a9 Mon Sep 17 00:00:00 2001 From: skyarrow87 Date: Mon, 28 Nov 2022 09:45:52 +0900 Subject: [PATCH 1/4] create ja .po file --- .../locale/ja/LC_MESSAGES/django.po | 197 ++++++++++++++++++ 1 file changed, 197 insertions(+) create mode 100644 oauth2_provider/locale/ja/LC_MESSAGES/django.po diff --git a/oauth2_provider/locale/ja/LC_MESSAGES/django.po b/oauth2_provider/locale/ja/LC_MESSAGES/django.po new file mode 100644 index 000000000..39a3da5d8 --- /dev/null +++ b/oauth2_provider/locale/ja/LC_MESSAGES/django.po @@ -0,0 +1,197 @@ +# 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: 2022-11-28 09:45+0900\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=1; plural=0;\n" +#: models.py:66 +msgid "Confidential" +msgstr "" + +#: models.py:67 +msgid "Public" +msgstr "" + +#: models.py:76 +msgid "Authorization code" +msgstr "" + +#: models.py:77 +msgid "Implicit" +msgstr "" + +#: models.py:78 +msgid "Resource owner password-based" +msgstr "" + +#: models.py:79 +msgid "Client credentials" +msgstr "" + +#: models.py:80 +msgid "OpenID connect hybrid" +msgstr "" + +#: models.py:87 +msgid "No OIDC support" +msgstr "" + +#: models.py:88 +msgid "RSA with SHA-2 256" +msgstr "" + +#: models.py:89 +msgid "HMAC with SHA-2 256" +msgstr "" + +#: models.py:104 +msgid "Allowed URIs list, space separated" +msgstr "" + +#: models.py:113 +msgid "Hashed on Save. Copy it now if this is a new secret." +msgstr "" + +#: models.py:175 +#, python-brace-format +msgid "Unauthorized redirect scheme: {scheme}" +msgstr "" + +#: models.py:179 +#, python-brace-format +msgid "redirect_uris cannot be empty with grant_type {grant_type}" +msgstr "" + +#: models.py:185 +msgid "You must set OIDC_RSA_PRIVATE_KEY to use RSA algorithm" +msgstr "" + +#: models.py:194 +msgid "You cannot use HS256 with public grants or clients" +msgstr "" + +#: oauth2_validators.py:211 +msgid "The access token is invalid." +msgstr "" + +#: oauth2_validators.py:218 +msgid "The access token has expired." +msgstr "" + +#: oauth2_validators.py:225 +msgid "The access token is valid but does not have enough scope." +msgstr "" + +#: templates/oauth2_provider/application_confirm_delete.html:6 +msgid "Are you sure to delete the application" +msgstr "" + +#: templates/oauth2_provider/application_confirm_delete.html:12 +#: templates/oauth2_provider/authorize.html:29 +msgid "Cancel" +msgstr "" + +#: templates/oauth2_provider/application_confirm_delete.html:13 +#: templates/oauth2_provider/application_detail.html:38 +#: templates/oauth2_provider/authorized-token-delete.html:7 +msgid "Delete" +msgstr "" + +#: templates/oauth2_provider/application_detail.html:10 +msgid "Client id" +msgstr "" + +#: templates/oauth2_provider/application_detail.html:15 +msgid "Client secret" +msgstr "" + +#: templates/oauth2_provider/application_detail.html:20 +msgid "Client type" +msgstr "" + +#: templates/oauth2_provider/application_detail.html:25 +msgid "Authorization Grant Type" +msgstr "" + +#: templates/oauth2_provider/application_detail.html:30 +msgid "Redirect Uris" +msgstr "" + +#: templates/oauth2_provider/application_detail.html:36 +#: templates/oauth2_provider/application_form.html:35 +msgid "Go Back" +msgstr "" + +#: templates/oauth2_provider/application_detail.html:37 +msgid "Edit" +msgstr "" + +#: templates/oauth2_provider/application_form.html:9 +msgid "Edit application" +msgstr "" + +#: templates/oauth2_provider/application_form.html:37 +msgid "Save" +msgstr "" + +#: templates/oauth2_provider/application_list.html:6 +msgid "Your applications" +msgstr "" + +#: templates/oauth2_provider/application_list.html:14 +msgid "New Application" +msgstr "" + +#: templates/oauth2_provider/application_list.html:17 +msgid "No applications defined" +msgstr "" + +#: templates/oauth2_provider/application_list.html:17 +msgid "Click here" +msgstr "" + +#: templates/oauth2_provider/application_list.html:17 +msgid "if you want to register a new one" +msgstr "" + +#: templates/oauth2_provider/application_registration_form.html:5 +msgid "Register a new application" +msgstr "" + +#: templates/oauth2_provider/authorize.html:8 +#: templates/oauth2_provider/authorize.html:30 +msgid "Authorize" +msgstr "" + +#: templates/oauth2_provider/authorize.html:17 +msgid "Application requires the following permissions" +msgstr "" + +#: templates/oauth2_provider/authorized-token-delete.html:6 +msgid "Are you sure you want to delete this token?" +msgstr "" + +#: templates/oauth2_provider/authorized-tokens.html:6 +msgid "Tokens" +msgstr "" + +#: templates/oauth2_provider/authorized-tokens.html:11 +msgid "revoke" +msgstr "" + +#: templates/oauth2_provider/authorized-tokens.html:19 +msgid "There are no authorized tokens yet." +msgstr "" From f7fd327cad6ee855883bb770a7d0486c6cbc7b64 Mon Sep 17 00:00:00 2001 From: skyarrow87 Date: Mon, 28 Nov 2022 10:39:45 +0900 Subject: [PATCH 2/4] Translated into Japanese --- .../locale/ja/LC_MESSAGES/django.po | 90 +++++++++---------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/oauth2_provider/locale/ja/LC_MESSAGES/django.po b/oauth2_provider/locale/ja/LC_MESSAGES/django.po index 39a3da5d8..75e3be247 100644 --- a/oauth2_provider/locale/ja/LC_MESSAGES/django.po +++ b/oauth2_provider/locale/ja/LC_MESSAGES/django.po @@ -10,188 +10,188 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-11-28 09:45+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"Last-Translator: Sora Yanai \n" "Language-Team: LANGUAGE \n" -"Language: \n" +"Language: ja-JP\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: models.py:66 msgid "Confidential" -msgstr "" +msgstr "プライベート" #: models.py:67 msgid "Public" -msgstr "" +msgstr "公開" #: models.py:76 msgid "Authorization code" -msgstr "" +msgstr "認証コード" #: models.py:77 msgid "Implicit" -msgstr "" +msgstr "Implicit Flow" #: models.py:78 msgid "Resource owner password-based" -msgstr "" +msgstr "リソース所有者のパスワードに基づく" #: models.py:79 msgid "Client credentials" -msgstr "" +msgstr "ユーザ証明書" #: models.py:80 msgid "OpenID connect hybrid" -msgstr "" +msgstr "OpenID Connect ハイブリットフロー" #: models.py:87 msgid "No OIDC support" -msgstr "" +msgstr "OIDCをサポートしない" #: models.py:88 msgid "RSA with SHA-2 256" -msgstr "" +msgstr "RSA with SHA-2 256" #: models.py:89 msgid "HMAC with SHA-2 256" -msgstr "" +msgstr "HMAC with SHA-2 256" #: models.py:104 msgid "Allowed URIs list, space separated" -msgstr "" +msgstr "許可されるURLのリスト(半角スペース区切り)" #: models.py:113 msgid "Hashed on Save. Copy it now if this is a new secret." -msgstr "" +msgstr "保存時にハッシュ化されます。新しいシークレットであれば、今すぐコピーしてください。" #: models.py:175 #, python-brace-format msgid "Unauthorized redirect scheme: {scheme}" -msgstr "" +msgstr "{scheme} は許可されないリダイレクトスキームです" #: models.py:179 #, python-brace-format msgid "redirect_uris cannot be empty with grant_type {grant_type}" -msgstr "" +msgstr "{grant_type} 認証タイプではリダイレクトURLを空欄にすることはできません" #: models.py:185 msgid "You must set OIDC_RSA_PRIVATE_KEY to use RSA algorithm" -msgstr "" +msgstr "RSAアルゴリズムを使用する場合はOIDC_RSA_PRIVATE_KEYを設定する必要があります" #: models.py:194 msgid "You cannot use HS256 with public grants or clients" -msgstr "" +msgstr "HS256を公開認証やユーザに使用することはできません" #: oauth2_validators.py:211 msgid "The access token is invalid." -msgstr "" +msgstr "アクセストークンが無効です。" #: oauth2_validators.py:218 msgid "The access token has expired." -msgstr "" +msgstr "アクセストークンの有効期限が切れています。" #: oauth2_validators.py:225 msgid "The access token is valid but does not have enough scope." -msgstr "" +msgstr "アクセストークンは有効ですが、十分な権限を持っていません。" #: templates/oauth2_provider/application_confirm_delete.html:6 msgid "Are you sure to delete the application" -msgstr "" +msgstr "アプリケーションを本当に削除してよろしいでしょうか?" #: templates/oauth2_provider/application_confirm_delete.html:12 #: templates/oauth2_provider/authorize.html:29 msgid "Cancel" -msgstr "" +msgstr "キャンセル" #: templates/oauth2_provider/application_confirm_delete.html:13 #: templates/oauth2_provider/application_detail.html:38 #: templates/oauth2_provider/authorized-token-delete.html:7 msgid "Delete" -msgstr "" +msgstr "削除" #: templates/oauth2_provider/application_detail.html:10 msgid "Client id" -msgstr "" +msgstr "ユーザID" #: templates/oauth2_provider/application_detail.html:15 msgid "Client secret" -msgstr "" +msgstr "ユーザパスワード" #: templates/oauth2_provider/application_detail.html:20 msgid "Client type" -msgstr "" +msgstr "ユーザタイプ" #: templates/oauth2_provider/application_detail.html:25 msgid "Authorization Grant Type" -msgstr "" +msgstr "認証方式" #: templates/oauth2_provider/application_detail.html:30 msgid "Redirect Uris" -msgstr "" +msgstr "リダイレクトURL" #: templates/oauth2_provider/application_detail.html:36 #: templates/oauth2_provider/application_form.html:35 msgid "Go Back" -msgstr "" +msgstr "戻る" #: templates/oauth2_provider/application_detail.html:37 msgid "Edit" -msgstr "" +msgstr "編集" #: templates/oauth2_provider/application_form.html:9 msgid "Edit application" -msgstr "" +msgstr "アプリケーションを編集する" #: templates/oauth2_provider/application_form.html:37 msgid "Save" -msgstr "" +msgstr "保存" #: templates/oauth2_provider/application_list.html:6 msgid "Your applications" -msgstr "" +msgstr "アプリケーション" #: templates/oauth2_provider/application_list.html:14 msgid "New Application" -msgstr "" +msgstr "新規アプリケーション" #: templates/oauth2_provider/application_list.html:17 msgid "No applications defined" -msgstr "" +msgstr "アプリケーションがありません" #: templates/oauth2_provider/application_list.html:17 msgid "Click here" -msgstr "" +msgstr "ここをクリック" #: templates/oauth2_provider/application_list.html:17 msgid "if you want to register a new one" -msgstr "" +msgstr "して、新しいアプリケーションを登録" #: templates/oauth2_provider/application_registration_form.html:5 msgid "Register a new application" -msgstr "" +msgstr "新規アプリケーションの登録" #: templates/oauth2_provider/authorize.html:8 #: templates/oauth2_provider/authorize.html:30 msgid "Authorize" -msgstr "" +msgstr "認証" #: templates/oauth2_provider/authorize.html:17 msgid "Application requires the following permissions" -msgstr "" +msgstr "アプリケーションには以下の権限が必要です。" #: templates/oauth2_provider/authorized-token-delete.html:6 msgid "Are you sure you want to delete this token?" -msgstr "" +msgstr "このトークンを本当に削除してよろしいですか?" #: templates/oauth2_provider/authorized-tokens.html:6 msgid "Tokens" -msgstr "" +msgstr "トークン" #: templates/oauth2_provider/authorized-tokens.html:11 msgid "revoke" -msgstr "" +msgstr "取り消す" #: templates/oauth2_provider/authorized-tokens.html:19 msgid "There are no authorized tokens yet." -msgstr "" +msgstr "認証されたトークンはありません" From 25b0c9b1b192117c023f8e31a113402ec077d767 Mon Sep 17 00:00:00 2001 From: skyarrow87 Date: Mon, 28 Nov 2022 10:45:50 +0900 Subject: [PATCH 3/4] =?UTF-8?q?Add=20Japanese(=E6=97=A5=E6=9C=AC=E8=AA=9E)?= =?UTF-8?q?=20Language=20Support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d8cbd1e9..edc5f8abc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +### Added +* Add Japanese(日本語) Language Support + ### Changed * #1211 documentation improve on 'AUTHORIZATION_CODE_EXPIRE_SECONDS'. * #1218 Confim support for Python 3.11. From 68a4bfb2ff3dec246d00a4bd76e21a1c693f92bc Mon Sep 17 00:00:00 2001 From: skyarrow87 Date: Mon, 28 Nov 2022 10:53:30 +0900 Subject: [PATCH 4/4] Edit AUTHORS --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index d12821c31..2d720f85d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -80,6 +80,7 @@ Sandro Rodrigues Shaheed Haque Shaun Stanworth Silvano Cerza +Sora Yanai Spencer Carroll Stéphane Raimbault Tom Evans