mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
[I18N] Allow custom repo size format
Following https://codeberg.org/forgejo/forgejo/pulls/2528#issuecomment-1721846 - simplify the code - allow to have custom format in translations - provide proper Russian translation because test depends on it
This commit is contained in:
parent
7e575603ee
commit
2f38c2220f
4 changed files with 6 additions and 11 deletions
|
@ -87,7 +87,7 @@ func TestDataSizeTranslation(t *testing.T) {
|
|||
fullSize, exists := repo.Attr("data-tooltip-content")
|
||||
assert.True(t, exists)
|
||||
fullSize = noDigits.ReplaceAllString(fullSize, "")
|
||||
assert.Equal(t, "git: КиБ, lfs: Б", fullSize)
|
||||
assert.Equal(t, "git: КиБ; lfs: Б", fullSize)
|
||||
|
||||
// Check if file sizes are correclty translated
|
||||
testFileSizeTranslated(t, session, path.Join(testUser, testRepoName, "src/branch/main/137byteFile.txt"), "137 Б")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue