[PR #3875] [MERGED] Added user language setting #17117

Closed
opened 2025-11-02 12:26:42 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3875
Author: @kolaente
Created: 5/1/2018
Status: Merged
Merged: 5/5/2018
Merged by: @lunny

Base: masterHead: save-user-language


📝 Commits (10+)

📊 Changes

13 files changed (+81 additions, -10 deletions)

View changed files

📝 integrations/user_test.go (+8 -6)
📝 integrations/xss_test.go (+1 -0)
📝 models/migrations/migrations.go (+2 -0)
models/migrations/v63.go (+23 -0)
📝 models/user.go (+2 -0)
📝 modules/auth/user_form.go (+1 -0)
📝 options/locale/locale_en-US.ini (+1 -0)
📝 public/swagger.v1.json (+5 -0)
📝 routers/user/auth.go (+13 -0)
📝 routers/user/setting.go (+6 -1)
📝 templates/user/settings/profile.tmpl (+14 -0)
📝 vendor/code.gitea.io/sdk/gitea/user.go (+2 -0)
📝 vendor/vendor.json (+3 -3)

📄 Description

This pr adds the possibility for users to set their language in the profile settings. When logging in, this setting overwrites the current language setting.

This feature is needed to send translatable emails in the future.

Blocked by go-gitea/go-sdk#104


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3875 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 5/1/2018 **Status:** ✅ Merged **Merged:** 5/5/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `save-user-language` --- ### 📝 Commits (10+) - [`6bd5c33`](https://github.com/go-gitea/gitea/commit/6bd5c33a897654b6ff3364b5be3803e43117224f) Added user language setting - [`2f1934b`](https://github.com/go-gitea/gitea/commit/2f1934b714723c7d71d03ecd064a16de5eb35949) Added translation string for setting - [`064eb06`](https://github.com/go-gitea/gitea/commit/064eb0607ecc3e0eb4a9c1299806d6a2bf32d81e) Fixed import order + typo - [`5f7f2cc`](https://github.com/go-gitea/gitea/commit/5f7f2ccc1905c6e4114da91aa2e862e71882aa15) improved checking if the user has a language saved in the db - [`047f488`](https://github.com/go-gitea/gitea/commit/047f488dca7b03c79bee6816814d4143fef68a81) The current saved language is now set a default inside the dropdown - [`d06e37f`](https://github.com/go-gitea/gitea/commit/d06e37f376ccd340d041c57753dbb5d2644bdd53) fmt - [`5ed980d`](https://github.com/go-gitea/gitea/commit/5ed980d416de3d2cd3ba4aa81c108fff0b9e5378) When a user signs in and doesn't have a language saved, the current browser language is saved - [`0d51925`](https://github.com/go-gitea/gitea/commit/0d5192522f8c15f9151c99473b35da44f74a3a4d) updated gitea-sdk - [`d72c183`](https://github.com/go-gitea/gitea/commit/d72c183a26e3230013ba75db39eb20a15c883cac) Merge branch 'master' of https://github.com/go-gitea/gitea into save-user-language - [`08ef144`](https://github.com/go-gitea/gitea/commit/08ef1444f8c4eeb1b394e2701b9c8800c10b3a5f) Merge branch 'master' of https://github.com/go-gitea/gitea into save-user-language ### 📊 Changes **13 files changed** (+81 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `integrations/user_test.go` (+8 -6) 📝 `integrations/xss_test.go` (+1 -0) 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v63.go` (+23 -0) 📝 `models/user.go` (+2 -0) 📝 `modules/auth/user_form.go` (+1 -0) 📝 `options/locale/locale_en-US.ini` (+1 -0) 📝 `public/swagger.v1.json` (+5 -0) 📝 `routers/user/auth.go` (+13 -0) 📝 `routers/user/setting.go` (+6 -1) 📝 `templates/user/settings/profile.tmpl` (+14 -0) 📝 `vendor/code.gitea.io/sdk/gitea/user.go` (+2 -0) 📝 `vendor/vendor.json` (+3 -3) </details> ### 📄 Description This pr adds the possibility for users to set their language in the profile settings. When logging in, this setting overwrites the current language setting. This feature is needed to send [translatable emails](https://github.com/go-gitea/gitea/issues/3622) in the future. ~~Blocked by go-gitea/go-sdk#104~~ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:26:42 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17117