From eff88711ea7e10ee7d0062feca67a2484cef482b Mon Sep 17 00:00:00 2001 From: Chiawei Chen <33695301+exkuretrol@users.noreply.github.com> Date: Tue, 19 Dec 2023 01:21:28 +0800 Subject: [PATCH] Trivial Typo: Change 'Gitlab' to 'GitLab' (#177) --- docs/administration/oauth-providers.md | 2 +- internal/i18n/locales/en-US.yml | 6 +++--- internal/i18n/locales/zh-TW.yml | 3 +++ templates/pages/settings.html | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/administration/oauth-providers.md b/docs/administration/oauth-providers.md index 22735d4..e4d6696 100644 --- a/docs/administration/oauth-providers.md +++ b/docs/administration/oauth-providers.md @@ -21,7 +21,7 @@ Opengist can be configured to use OAuth to authenticate users, with GitHub, Gite ```yaml gitlab.client-key: gitlab.secret: - # URL of the Gitlab instance. Default: https://gitlab.com/ + # URL of the GitLab instance. Default: https://gitlab.com/ gitlab.url: https://gitlab.com/ ``` diff --git a/internal/i18n/locales/en-US.yml b/internal/i18n/locales/en-US.yml index cfdc0ee..c9157b9 100644 --- a/internal/i18n/locales/en-US.yml +++ b/internal/i18n/locales/en-US.yml @@ -92,10 +92,10 @@ settings.email-help: Used for commits and Gravatar settings.email-set: Set email settings.link-accounts: Link accounts settings.link-github-account: Link GitHub account -settings.link-gitlab-account: Link Gitlab account +settings.link-gitlab-account: Link GitLab account settings.link-gitea-account: Link Gitea account settings.unlink-github-account: Unlink GitHub account -settings.unlink-gitlab-account: Unlink Gitlab account +settings.unlink-gitlab-account: Unlink GitLab account settings.unlink-gitea-account: Unlink Gitea account settings.delete-account: Delete account settings.delete-account-confirm: Are you sure you want to delete your account ? @@ -123,7 +123,7 @@ auth.password: Password auth.register-instead: Register instead auth.login-instead: Login instead auth.github-oauth: Continue with GitHub account -auth.gitlab-oauth: Continue with Gitlab account +auth.gitlab-oauth: Continue with GitLab account auth.gitea-oauth: Continue with Gitea account error: Error diff --git a/internal/i18n/locales/zh-TW.yml b/internal/i18n/locales/zh-TW.yml index a77115b..6d9a96f 100644 --- a/internal/i18n/locales/zh-TW.yml +++ b/internal/i18n/locales/zh-TW.yml @@ -92,8 +92,10 @@ settings.email-help: 用於提交和 Gravatar settings.email-set: 設定電子郵件 settings.link-accounts: 連結帳號 settings.link-github-account: 連結 GitHub 帳號 +settings.link-gitlab-account: 連結 Gitlab 帳號 settings.link-gitea-account: 連結 Gitea 帳號 settings.unlink-github-account: 取消連結 GitHub 帳號 +settings.unlink-gitlab-account: 取消連結 GitLab 帳號 settings.unlink-gitea-account: 取消連結 Gitea 帳號 settings.delete-account: 刪除帳號 settings.delete-account-confirm: 確定要刪除您的帳號嗎? @@ -121,6 +123,7 @@ auth.password: 密碼 auth.register-instead: 註冊 auth.login-instead: 登錄 auth.github-oauth: 用 GitHub 帳號繼續 +auth.gitlab-oauth: 用 GitLab 帳號繼續 auth.gitea-oauth: 用 Gitea 帳號繼續 error: 錯誤 diff --git a/templates/pages/settings.html b/templates/pages/settings.html index 97442b4..2592616 100644 --- a/templates/pages/settings.html +++ b/templates/pages/settings.html @@ -51,7 +51,7 @@ {{ if .gitlabOauth }} {{ if .userLogged.GitlabID }} + onclick="return confirm('Are you sure you want to unlink your GitLab account? You may lose access to Opengist if it\'s your only way to log in.')"> {{ .locale.Tr "settings.unlink-gitlab-account" }} {{ else }}