-
-
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
adapt README_{Country}.md stype name in localizedExtensions #21486
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
68193c6
adapt README_{Contry}.md stype name in localizedExtensions
a1012112796 9cb175e
fix test
a1012112796 e257383
Merge branch 'main' into zzc/dev/readme_link
lunny c6b552d
Merge branch 'main' into zzc/dev/readme_link
a1012112796 54db32c
Merge branch 'main' into zzc/dev/readme_link
lunny acb6eb2
Merge branch 'main' into zzc/dev/readme_link
a1012112796 428321d
Merge branch 'main' into zzc/dev/readme_link
lunny 181d6b5
Merge branch 'main' into zzc/dev/readme_link
lunny 338bd3d
Merge branch 'main' into zzc/dev/readme_link
lunny ed935b2
Update routers/web/repo/view.go
a1012112796 50bc00e
Merge branch 'main' into zzc/dev/readme_link
a1012112796 8ecc357
Merge branch 'main' into zzc/dev/readme_link
lunny b3f9f26
Merge branch 'main' into zzc/dev/readme_link
lunny 9618c87
make fmt
a1012112796 f67b89f
Merge branch 'main' into zzc/dev/readme_link
lunny fbe9a2b
Merge branch 'main' into zzc/dev/readme_link
a1012112796 a98877d
Merge branch 'main' into zzc/dev/readme_link
lunny 578f24f
Merge branch 'main' into zzc/dev/readme_link
lunny 6eeed55
Merge branch 'main' into zzc/dev/readme_link
lunny 5df8489
Merge branch 'main' into zzc/dev/readme_link
lunny 27348eb
Merge branch 'main' into zzc/dev/readme_link
a1012112796 a194de5
Merge branch 'main' into zzc/dev/readme_link
lunny bfff503
Merge branch 'main' into zzc/dev/readme_link
lunny b2e3293
Merge branch 'main' into zzc/dev/readme_link
lunny b26d945
Merge branch 'main' into zzc/dev/readme_link
lunny db34de1
Merge branch 'main' into zzc/dev/readme_link
lunny f59d31f
Merge branch 'main' into zzc/dev/readme_link
lunny 08350f4
Merge branch 'main' into zzc/dev/readme_link
lunny 487af90
Merge branch 'main' into zzc/dev/readme_link
lunny d5c4780
Merge branch 'main' into zzc/dev/readme_link
lunny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This function was designed for work for both
languageCode=en-US
andlanguageCode=en
.This change only supports
languageCode=en-US
, while line 158-159 are forlanguageCode=en
, the behaviors are inconsistent now.However, I have no objection to merge this PR since there is no
languageCode=en
in Gitea code, while it's better to document the behavior.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.
Hmm, In my view, the
en
is same with en-US (or other). in other words, it's not a good idea to add a new file named aslocale_en.ini
ini18n folder
. and the link 'https://gitea.com/?lang=en' should have same behave with 'https://gitea.com/?lang=en-US'and if just choose language while ui,
languageCode=en
willn't occure.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.
Yup, Gitea doesn't use the
en
orzh
at the the moment, the code is just there. Line 158-159 won't run in current Gitea, it's just inconsistent dead code. (just a hint)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.
There is a complex and special relationship between en, en-US, en_001 and other en subvariants e.g. en_GB
Whilst en-US is the default locale for en, it is not en. For example the rules for dates in en-US are extremely different from those for almost every other en variant. CLDR has en_001 which almost completely overrides most US weirdness and means that most English regional locales inherit from en_001 rather than en directly.
https://cldr.unicode.org/development/development-process/design-proposals/english-inheritance
Our translation scheme isn't really designed at present to properly consider regional localisation but we're probably going to have to consider it at some point soon.