Notifications locale
This commit is contained in:
1 parent
9061275d6f
commit
feb968a72e
7 files changed
+208
-9
No files matched your search
+3
-1
@@ -1,3 +1,5 @@
|
|||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
|
|
||||||
namespace LoungeDeviceConnected
|
namespace LoungeDeviceConnected
|
||||||
const NOTIFICATION_NODE_ID = "DeviceConnectedNotification"
|
const NOTIFICATION_NODE_ID = "DeviceConnectedNotification"
|
||||||
|
|
||||||
@@ -9,7 +11,7 @@ namespace LoungeDeviceConnected
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if StringUtils.IsNullOrEmpty(deviceName)
|
if StringUtils.IsNullOrEmpty(deviceName)
|
||||||
deviceName = "Device"
|
deviceName = Tr(Locale.LoungeNotification.Device)
|
||||||
end if
|
end if
|
||||||
if StringUtils.IsNullOrEmpty(userAvatarUri)
|
if StringUtils.IsNullOrEmpty(userAvatarUri)
|
||||||
userAvatarUri = "pkg:/images/icons/user.png"
|
userAvatarUri = "pkg:/images/icons/user.png"
|
||||||
|
|||||||
+2
-2
@@ -16,9 +16,9 @@ end function
|
|||||||
function OnActionSet()
|
function OnActionSet()
|
||||||
action = m.top.action
|
action = m.top.action
|
||||||
category = m.top.segment.category
|
category = m.top.segment.category
|
||||||
categoryTitle = m.service.SegmentShortTitle(category)
|
categoryTitle = Tr(ValidString(m.service.SegmentShortTitle(category)))
|
||||||
if action = "AutoSkip"
|
if action = "AutoSkip"
|
||||||
m.categoryLabel.text = `Skipped\n${categoryTitle}`
|
m.categoryLabel.text = Tr(Locale.SponsorBlock.Skipped) + `\n` + categoryTitle
|
||||||
else
|
else
|
||||||
m.categoryLabel.text = categoryTitle
|
m.categoryLabel.text = categoryTitle
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ namespace SponsorBlock
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if (segmentStart <= time) and (segmentEnd >= time)
|
if (segmentStart <= time) and (segmentEnd >= time)
|
||||||
m.top.chapter = m.sponsorBlockService.SegmentTitle(category)
|
m.top.chapter = Tr(ValidString(m.sponsorBlockService.SegmentTitle(category)))
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
end for
|
end for
|
||||||
|
|||||||
@@ -808,5 +808,89 @@
|
|||||||
<source>Reason</source>
|
<source>Reason</source>
|
||||||
<translation>Reason</translation>
|
<translation>Reason</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Skipped</source>
|
||||||
|
<translation>Skipped</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sponsor</source>
|
||||||
|
<translation>Sponsor</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Unpaid/Self Promotion</source>
|
||||||
|
<translation>Unpaid/Self Promotion</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Exclusive Access</source>
|
||||||
|
<translation>Exclusive Access</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Interaction Reminder (Subscribe)</source>
|
||||||
|
<translation>Interaction Reminder (Subscribe)</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Interaction Reminder</source>
|
||||||
|
<translation>Interaction Reminder</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Highlight</source>
|
||||||
|
<translation>Highlight</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Intermission/Intro Animation</source>
|
||||||
|
<translation>Intermission/Intro Animation</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Intermission</source>
|
||||||
|
<translation>Intermission</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Endcards/Credits</source>
|
||||||
|
<translation>Endcards/Credits</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Preview/Recap/Hook</source>
|
||||||
|
<translation>Preview/Recap/Hook</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Preview/Recap</source>
|
||||||
|
<translation>Preview/Recap</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Filler Tangent/Jokes</source>
|
||||||
|
<translation>Filler Tangent/Jokes</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Filler</source>
|
||||||
|
<translation>Filler</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Chapter</source>
|
||||||
|
<translation>Chapter</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Music: Non-Music Section</source>
|
||||||
|
<translation>Music: Non-Music Section</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Non-Music</source>
|
||||||
|
<translation>Non-Music</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Added to queue</source>
|
||||||
|
<translation>Added to queue</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Press and hold Options (*) to open the queue</source>
|
||||||
|
<translation>Press and hold Options (*) to open the queue</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Device</source>
|
||||||
|
<translation>Device</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Device connected</source>
|
||||||
|
<translation>Device connected</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
@@ -805,5 +805,90 @@
|
|||||||
<source>Reason</source>
|
<source>Reason</source>
|
||||||
<translation>Raison</translation>
|
<translation>Raison</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Skipped</source>
|
||||||
|
<translation>Ignoré</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sponsor</source>
|
||||||
|
<translation>Message sponsorisé</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Unpaid/Self Promotion</source>
|
||||||
|
<translation>Non rémunéré/autopromotion</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Exclusive Access</source>
|
||||||
|
<translation>Accès exclusif</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Interaction Reminder (Subscribe)</source>
|
||||||
|
<translation>Rappel d'interaction (abonnement)</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Interaction Reminder</source>
|
||||||
|
<translation>Rappel d'interaction</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Highlight</source>
|
||||||
|
<translation>Point essentiel</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Intermission/Intro Animation</source>
|
||||||
|
<translation>Entracte/Animation d'introduction</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Intermission</source>
|
||||||
|
<translation>Entracte</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Endcards/Credits</source>
|
||||||
|
<translation>Écrans de fin/Crédits</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Preview/Recap/Hook</source>
|
||||||
|
<translation>Aperçu/Récapitulatif/Accroche</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Preview/Recap</source>
|
||||||
|
<translation>Aperçu/Récapitulatif</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Filler Tangent/Jokes</source>
|
||||||
|
<translation>Digressions/Blagues</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Filler</source>
|
||||||
|
<translation>Remplissage</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Chapter</source>
|
||||||
|
<translation>Chapitre</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Music: Non-Music Section</source>
|
||||||
|
<translation>Musique: Segment non musical</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Non-Music</source>
|
||||||
|
<translation>Section non musicale</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Added to queue</source>
|
||||||
|
<translation>Ajouté à la file d'attente</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Press and hold Options (*) to open the queue</source>
|
||||||
|
<translation>Appuyez et maintenez Options (*) pour la file d'attente</translation>
|
||||||
|
<comment>Should be "pour ouvrir la file d'attente" but to keep it short for the UI</comment>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Device</source>
|
||||||
|
<translation>Appareil</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Device connected</source>
|
||||||
|
<translation>Appareil connecté</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
@@ -274,4 +274,37 @@ namespace Locale
|
|||||||
Reason = "Reason"
|
Reason = "Reason"
|
||||||
end enum
|
end enum
|
||||||
|
|
||||||
|
@locale
|
||||||
|
enum SponsorBlock
|
||||||
|
Skipped = "Skipped"
|
||||||
|
|
||||||
|
SponsorTitle = "Sponsor"
|
||||||
|
SelfPromoTitle = "Unpaid/Self Promotion"
|
||||||
|
ExclusiveAccessTitle = "Exclusive Access"
|
||||||
|
InteractionTitle = "Interaction Reminder (Subscribe)"
|
||||||
|
InteractionShortTitle = "Interaction Reminder"
|
||||||
|
HighlightTitle = "Highlight"
|
||||||
|
IntroTitle = "Intermission/Intro Animation"
|
||||||
|
IntroShortTitle = "Intermission"
|
||||||
|
OutroTitle = "Endcards/Credits"
|
||||||
|
PreviewTitle = "Preview/Recap/Hook"
|
||||||
|
PreviewShortTitle = "Preview/Recap"
|
||||||
|
FillerTitle = "Filler Tangent/Jokes"
|
||||||
|
FillerShortTitle = "Filler"
|
||||||
|
ChapterTitle = "Chapter"
|
||||||
|
MusicOffTopicTitle = "Music: Non-Music Section"
|
||||||
|
MusicOffTopicShortTitle = "Non-Music"
|
||||||
|
end enum
|
||||||
|
|
||||||
|
@locale
|
||||||
|
enum QueueNotification
|
||||||
|
VideoAddedToQueue = "Added to queue"
|
||||||
|
PressToOpenQueueHint = "Press and hold Options (*) to open the queue"
|
||||||
|
end enum
|
||||||
|
|
||||||
|
@locale
|
||||||
|
enum LoungeNotification
|
||||||
|
Device = "Device"
|
||||||
|
DeviceConnected = "Device connected"
|
||||||
|
end enum
|
||||||
end namespace
|
end namespace
|
||||||
@@ -2,12 +2,7 @@
|
|||||||
' - Search filters
|
' - Search filters
|
||||||
' - Web app
|
' - Web app
|
||||||
' - Loading messages
|
' - Loading messages
|
||||||
' - Video player
|
|
||||||
' - sponsorblock chapters
|
|
||||||
' - Queue
|
' - Queue
|
||||||
' - SponsorBlock notification
|
|
||||||
' - Device connected notification
|
|
||||||
' - Added to queue notification
|
|
||||||
' - Context menu
|
' - Context menu
|
||||||
|
|
||||||
import "pkg:/source/utils/MathUtils.bs"
|
import "pkg:/source/utils/MathUtils.bs"
|
||||||
|
|||||||
Reference in new issue
Block a user