You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules
Naohisa Murakami 1426601cf7
Use index of the supported tags to choose user lang (#15452)
Fix #14793.

The previous implementation used the first return value of matcher.Match, which is the chosen language tag but may contain extensions such as de-DE-u-rg-chzzzz.

As mentioned in the documentation of language package, matcher.Match also returns the index of the supported tags, so I think it is better to use it rather than manipulate the returned language tag.
4 years ago
..
analyze Speed up `enry.IsVendor` (#15213) 4 years ago
auth OAuth2 auto-register (#5123) 4 years ago
avatar
base
cache
charset
context Prevent superfluous response.WriteHeader (#15456) 4 years ago
convert [API] pull notification subject status: add "merged" (#15344) 4 years ago
cron
csv Add Tabular Diff for CSV files (#14661) 4 years ago
doctor Delete Labels & IssueLabels on Repo Delete too (#15039) 4 years ago
emoji Fix several render issues (#14986) 4 years ago
eventsource
generate
git Fix ambiguous argument error on tags (#15432) 4 years ago
gitgraph
graceful Fix regression from #14623 - use debug SVC handler only on interactive sessions (#15210) 4 years ago
hcaptcha
highlight
httpcache Add ETag header (#15370) 4 years ago
httplib
indexer Speed up `enry.IsVendor` (#15213) 4 years ago
lfs Add LFS Migration and Mirror (#14726) 4 years ago
log
markup Add NeedPostProcess for Parser interface to improve performance of csv render (#15153) 4 years ago
matchlist
metrics
migrations Add LFS Migration and Mirror (#14726) 4 years ago
nosql
notification [refactor] mailer service (#15072) 4 years ago
options
password
pprof
private
process Code Formats, Nits & Unused Func/Var deletions (#15286) 4 years ago
public Add ETag header (#15370) 4 years ago
queue Always set the merge base used to merge the commit (#15352) 4 years ago
recaptcha
references Code Formats, Nits & Unused Func/Var deletions (#15286) 4 years ago
repofiles Code Formats, Nits & Unused Func/Var deletions (#15286) 4 years ago
repository Add LFS Migration and Mirror (#14726) 4 years ago
secret
session
setting OAuth2 auto-register (#5123) 4 years ago
ssh
storage Code Formats, Nits & Unused Func/Var deletions (#15286) 4 years ago
structs Add LFS Migration and Mirror (#14726) 4 years ago
svg
sync
task
templates
test
timeutil
translation Use index of the supported tags to choose user lang (#15452) 4 years ago
upload
uri
user
util Add LFS Migration and Mirror (#14726) 4 years ago
validation
web Use index of the supported tags to choose user lang (#15452) 4 years ago