More translation work
This commit is contained in:
1 parent
37e429f648
commit
25330a6494
13 files changed
+293
-177
No files matched your search
@@ -156,9 +156,6 @@ namespace Locale
|
||||
OneView = "1 view"
|
||||
NViews = "^n views"
|
||||
|
||||
UpdatedZeroSecondsAgo = "Updated 0 seconds ago"
|
||||
UpdatedOneSecondAgo = "Updated 1 second ago"
|
||||
UpdatedNSecondsAgo = "Updated ^n seconds ago"
|
||||
UpdatedOneMinuteAgo = "Updated 1 minute ago"
|
||||
UpdatedNMinutesAgo = "Updated ^n minutes ago"
|
||||
UpdatedOneHourAgo = "Updated 1 hour ago"
|
||||
@@ -356,6 +353,11 @@ namespace Locale
|
||||
ErrorWithLogin = "Error with login, please refresh the page."
|
||||
Profiles = "Profiles"
|
||||
DropYouTubeLinkHere = "Drop a YouTube link here"
|
||||
PlayOn = "Play on %1"
|
||||
QueueOn = "Queue on %1"
|
||||
OpenOn = "Open on %1"
|
||||
OpenInInvidious = "Open in Invidious"
|
||||
StartAt = "Start at"
|
||||
end enum
|
||||
|
||||
end namespace
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user