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.
wxiaoguang 19de52e0f4
Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861)
Follow #21429 & #22861

Use `<gitea-locale-number>` instead of backend `PrettyNumber`. All old
`PrettyNumber` related functions are removed. A lot of code could be
simplified.

And some functions haven't been used for long time (dead code), so they
are also removed by the way (eg: `SplitStringAtRuneN`, `Dedent`)

This PR only tries to improve the `PrettyNumber` rendering problem, it
doesn't touch the "plural" problem.

Screenshot:


![image](https://user-images.githubusercontent.com/2114189/229290804-1f63db65-1e34-4a54-84ba-e00b44331b17.png)


![image](https://user-images.githubusercontent.com/2114189/229290911-c88dea00-b11d-48dd-accb-9f52edd73ce4.png)
1 year ago
..
filebuffer Implement FSFE REUSE for golang files (#21840) 2 years ago
error.go Use ErrInvalidArgument in packages (#22268) 2 years ago
file_unix.go Implement FSFE REUSE for golang files (#21840) 2 years ago
file_unix_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
file_windows.go Implement FSFE REUSE for golang files (#21840) 2 years ago
io.go Improve checkIfPRContentChanged (#22611) 1 year ago
keypair.go Add Chef package registry (#22554) 1 year ago
keypair_test.go Use minio/sha256-simd for accelerated SHA256 (#23052) 1 year ago
legacy.go Implement FSFE REUSE for golang files (#21840) 2 years ago
legacy_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
pack.go Add support for incoming emails (#22056) 2 years ago
pack_test.go Add support for incoming emails (#22056) 2 years ago
paginate.go Implement FSFE REUSE for golang files (#21840) 2 years ago
paginate_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
path.go Introduce path Clean/Join helper functions (#23495) 1 year ago
path_test.go Introduce path Clean/Join helper functions (#23495) 1 year ago
remove.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sanitize.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sanitize_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sec_to_time.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sec_to_time_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
shellquote.go Implement FSFE REUSE for golang files (#21840) 2 years ago
shellquote_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
slice.go Improve utils of slices (#22379) 2 years ago
slice_test.go Improve utils of slices (#22379) 2 years ago
string.go Implement FSFE REUSE for golang files (#21840) 2 years ago
string_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
timer.go Implement FSFE REUSE for golang files (#21840) 2 years ago
truncate.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago
truncate_test.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago
url.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago
util_test.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago