[PR #2571] [MERGED] Fix toasts #5147

Closed
opened 2026-10-31 20:45:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/2571
Author: @gentslava
Created: 9/30/2024
Status: ✅ Merged
Merged: 9/30/2024
Merged by: @MHSanaei

Base: main ← Head: fix/toasts


📝 Commits (2)

  • 39939d8 Add space to toast status messages
  • 275c406 Removed opening space from translations

📊 Changes

11 files changed (+26 additions, -26 deletions)

View changed files

📝 web/controller/util.go (+3 -3)
📝 web/translation/translate.en_US.toml (+3 -3)
📝 web/translation/translate.es_ES.toml (+2 -2)
📝 web/translation/translate.fa_IR.toml (+6 -6)
📝 web/translation/translate.id_ID.toml (+1 -1)
📝 web/translation/translate.pt_BR.toml (+3 -3)
📝 web/translation/translate.ru_RU.toml (+1 -1)
📝 web/translation/translate.tr_TR.toml (+1 -1)
📝 web/translation/translate.uk_UA.toml (+3 -3)
📝 web/translation/translate.vi_VN.toml (+1 -1)
📝 web/translation/translate.zh_CN.toml (+2 -2)

📄 Description

  • Add " " (lead space) to toast status messages concatination.
  • Remove lead space in translations.

This is a more convenient approach, as there is less chance to make a mistake in translation: forget lead space.

Before:
image

After:
image

P.S.: I've checked other places with lead space in translations: meansNoLimit
It's ok as there's space in the HTML.
image
image


🔄 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/MHSanaei/3x-ui/pull/2571 **Author:** [@gentslava](https://github.com/gentslava) **Created:** 9/30/2024 **Status:** ✅ Merged **Merged:** 9/30/2024 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/toasts` --- ### 📝 Commits (2) - [`39939d8`](https://github.com/MHSanaei/3x-ui/commit/39939d8a6fa8b9b2420ade8da485a9e6e8a9da32) Add space to toast status messages - [`275c406`](https://github.com/MHSanaei/3x-ui/commit/275c4061cf71d94cc20140590e4d93d12f74a2f8) Removed opening space from translations ### 📊 Changes **11 files changed** (+26 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `web/controller/util.go` (+3 -3) 📝 `web/translation/translate.en_US.toml` (+3 -3) 📝 `web/translation/translate.es_ES.toml` (+2 -2) 📝 `web/translation/translate.fa_IR.toml` (+6 -6) 📝 `web/translation/translate.id_ID.toml` (+1 -1) 📝 `web/translation/translate.pt_BR.toml` (+3 -3) 📝 `web/translation/translate.ru_RU.toml` (+1 -1) 📝 `web/translation/translate.tr_TR.toml` (+1 -1) 📝 `web/translation/translate.uk_UA.toml` (+3 -3) 📝 `web/translation/translate.vi_VN.toml` (+1 -1) 📝 `web/translation/translate.zh_CN.toml` (+2 -2) </details> ### 📄 Description - Add " " (lead space) to toast status messages concatination. - Remove lead space in translations. This is a more convenient approach, as there is less chance to make a mistake in translation: forget lead space. Before: ![image](https://github.com/user-attachments/assets/9f8d8c79-2b49-4df2-bcce-78f0fa7f2750) After: ![image](https://github.com/user-attachments/assets/6eaeb35e-9ad9-43f2-8270-dd01f39339ad) P.S.: I've checked other places with lead space in translations: meansNoLimit It's ok as there's space in the HTML. ![image](https://github.com/user-attachments/assets/952227e5-f2ec-40cb-90c7-a967448d40fe) ![image](https://github.com/user-attachments/assets/cc2a1d52-b9f2-4d4a-8264-9a2a7306c0f3) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:45:01 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5147
No description provided.