-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix issues in translation file #27699
Conversation
options/locale/locale_en-US.ini
Outdated
not_found = The target couldn't be found. | ||
not_found = "The target couldn't be found." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wxiaoguang wasn't there something about quotes being bad for Crowdin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're being used in many strings already.....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only problem is something like key = "the quoted string" is at the beginning
https://github.com/go-gitea/gitea/blob/main/modules/translation/i18n/i18n_test.go#L120C1-L120C93
I think most (or all) of them are not needed. |
We need a better format than ini like yaml where such bikeshedding around quotes is automatically handled by a linter. Edit: Already planned as per #27700. |
best would be to write testcases to lint the locales file!!!! could you write some tests for that? |
I already checked and there are no usable linters for ini files around. We shouldn't invest too much energy in it, just move to a better format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, hoping that it won't break anything
some changes like |
Seems like the consensus is that quotes rather introduce more problems, so I'll remove them again |
I reverted the quote changes |
I was unable to create a backport for 1.21. @denyskon, please send one manually. 🍵
|
- use correct comment sign for INI (`;`) - remove duplicated `repo.branch.search` key - remove duplicated spaces & similar
* upstream/main: Fix incorrect ctx usage in defer function (go-gitea#27740) Enable followCursor for language stats bar (go-gitea#27713) teams: new View button (go-gitea#27685) fix issues in translation file (go-gitea#27699) Fix an indentation in the Chinese documentation of Act Runner (go-gitea#27730) [skip ci] Updated translations via Crowdin Fix org team endpoint (go-gitea#27721) Improve diff tree spacing (go-gitea#27714) refactor: make db iterate context aware (go-gitea#27710) [FIX] resolve confusing colors in languages stats by insert a gap (go-gitea#27704) Fix sticky diff header background (go-gitea#27697) Replace -1 with GhostUserID (go-gitea#27703) Clean some functions about project issue (go-gitea#27705)
- use correct comment sign for INI (`;`) - remove duplicated `repo.branch.search` key - remove duplicated spaces & similar
;
)repo.branch.search
key