More translation work

This commit is contained in:
Brahim Hadriche committed 2024-03-23 00:19:15 -04:00
1 parent 37e429f648
commit 25330a6494
13 files changed
+293 -177

No files matched your search

+12 -36
View File
@@ -1,32 +1,7 @@
' TODO:P2 Translations left:
' - Context menu
' - Search filters
' - Search filters (App+Web)
' - Loading messages
' Web app:
' - Video publish text
' - Video video count
' - Video live/upcoming/premiere indicator
' - Playlist updated time
' - Playlist video count
' - Channel sub count
' - Video dialog options
' - Play on
' - Queue on
' - Open in Invidious
' - Cancel
' - Channel dialog options
' - Open on
' - Open in Invidious
' - Cancel
' - Playlist dialog options
' - Play on
' - Queue on
' - Open on
' - Open in Invidious
' - Cancel
import "pkg:/source/utils/MathUtils.bs"
@@ -48,21 +23,22 @@ namespace LocaleUtils
else if c = 1
return Tr(oneString)
else
if c < 1000
return Tr(pluralString).Replace("^n", MathUtils.FormatFloat(c).toStr())
c! = c
if c! < 1000
return Tr(pluralString).Replace("^n", c!.toStr())
end if
c = c / 1000
if c < 1000
return Tr(pluralString).Replace("^n", MathUtils.FormatFloat(c).toStr() + "K")
c! = c! / 1000
if c! < 1000
return Tr(pluralString).Replace("^n", MathUtils.FormatFloat(c!).toStr() + " K")
end if
c = c / 1000
if c < 1000
return Tr(pluralString).Replace("^n", MathUtils.FormatFloat(c).toStr() + "M")
c! = c! / 1000
if c! < 1000
return Tr(pluralString).Replace("^n", MathUtils.FormatFloat(c!).toStr() + " M")
end if
c = c / 1000
return Tr(pluralString).Replace("^n", MathUtils.FormatFloat(c).toStr() + "B")
c! = c! / 1000
return Tr(pluralString).Replace("^n", MathUtils.FormatFloat(c!).toStr() + " B")
end if
end function