Use translated text for ellipsis

This commit is contained in:
1hitsong 2024-03-09 08:46:52 -05:00
parent a5d49da8b6
commit 84d5a49762
3 changed files with 8 additions and 1 deletions

View File

@ -13,6 +13,8 @@ sub init()
m.extrasSlider.visible = true m.extrasSlider.visible = true
m.seasons = m.top.findNode("seasons") m.seasons = m.top.findNode("seasons")
m.overview = m.top.findNode("overview") m.overview = m.top.findNode("overview")
m.overview.ellipsisText = tr(" ... (Press * to read more)")
end sub end sub
sub itemContentChanged() sub itemContentChanged()

View File

@ -19,7 +19,7 @@
</LayoutGroup> </LayoutGroup>
<Label id="genres" /> <Label id="genres" />
<Label id="tagline" /> <Label id="tagline" />
<Label id="overview" wrap="true" width="1400" maxLines="4" ellipsisText=" ... (Press * to read more)" /> <Label id="overview" wrap="true" width="1400" maxLines="4" />
<Label id="history" /> <Label id="history" />
<JFButton id="Shuffle" minChars="15" text="Shuffle" translation="[90, 640]" visible="false"></JFButton> <JFButton id="Shuffle" minChars="15" text="Shuffle" translation="[90, 640]" visible="false"></JFButton>
</LayoutGroup> </LayoutGroup>

View File

@ -1251,5 +1251,10 @@
<translation>Random</translation> <translation>Random</translation>
<extracomment>General use word when we want to randomize data</extracomment> <extracomment>General use word when we want to randomize data</extracomment>
</message> </message>
<message>
<source> ... (Press * to read more)</source>
<translation> ... (Press * to read more)</translation>
<extracomment>Ellipsis Text for when text overflows its container</extracomment>
</message>
</context> </context>
</TS> </TS>