Translate labels with parameters.

This commit is contained in:
Matthias Mailänder
2023-05-08 15:56:04 +02:00
committed by Gustas
parent 474463111f
commit 6e6bf1ca81
20 changed files with 30 additions and 33 deletions

View File

@@ -301,7 +301,6 @@ ScrollPanel@NEWS_PANEL:
Width: PARENT_RIGHT
Height: 15
Align: Center
Text: by {0} at {1}
Font: TinyBold
Label@CONTENT:
Y: 46

View File

@@ -1720,7 +1720,6 @@ Container@PLAYER_WIDGETS:
Width: 50
Height: 22
Font: Bold
Text: {0}
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP_FACTIONSUFFIX
Children:
@@ -1737,7 +1736,6 @@ Container@PLAYER_WIDGETS:
Height: 22
Align: Right
Font: Bold
Text: {0}
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP_FACTIONSUFFIX
Children:

View File

@@ -125,12 +125,10 @@ Container@HOTKEYS_PANEL:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: Tiny
Text: The default is "{0}"
Label@DUPLICATE_NOTICE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: Tiny
Text: This is already used for "{0}" in the {1} context
Label@READONLY_NOTICE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM

View File

@@ -200,7 +200,6 @@ Background@PRODUCTION_TOOLTIP:
Y: 20
Height: 15
Font: TinyBold
Text: Requires {0}
Label@DESC:
X: 5
Y: 20
@@ -262,7 +261,6 @@ Background@PRODUCTION_TOOLTIP_FACTIONSUFFIX:
Y: 20
Height: 15
Font: TinyBold
Text: Requires {0}
Label@DESC:
X: 5
Y: 20

View File

@@ -18,7 +18,6 @@ Background@CONNECTIONFAILED_PANEL:
Y: 46
Width: PARENT_RIGHT
Height: 25
Text: Could not connect to AAA.BBB.CCC.DDD:EEEE
Align: Center
Label@CONNECTION_ERROR:
X: 0
@@ -85,7 +84,6 @@ Background@CONNECTING_PANEL:
Y: 61
Width: PARENT_RIGHT
Height: 25
Text: Connecting to AAA.BBB.CCC.DDD:EEEE...
Align: Center
Button@ABORT_BUTTON:
X: PARENT_RIGHT - 180

View File

@@ -171,7 +171,6 @@ ScrollPanel@NEWS_PANEL:
Width: PARENT_RIGHT
Height: 15
Align: Center
Text: by {0} at {1}
Font: TinyBold
Label@CONTENT:
Y: 45

View File

@@ -125,12 +125,10 @@ Container@HOTKEYS_PANEL:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: Tiny
Text: The default is "{0}"
Label@DUPLICATE_NOTICE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: Tiny
Text: This is already used for "{0}" in the {1} context
Label@READONLY_NOTICE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM

View File

@@ -254,7 +254,6 @@ Background@PRODUCTION_TOOLTIP:
Y: 26
Height: 15
Font: TinyBold
Text: Requires {0}
Label@DESC:
X: 7
Y: 27

View File

@@ -351,6 +351,10 @@ options-target-lines =
.manual = Manual
.disabled = Disabled
## HotkeysSettingsLogic
label-original-notice = The default is "{ $key }"
label-duplicate-notice = This is already used for "{ $key }" in the { $context } context
## InputSettingsLogic
options-mouse-scroll-type =
.disabled = Disabled
@@ -434,6 +438,7 @@ dialog-overwrite-save =
label-loading-news = Loading news
label-news-retrieval-failed = Failed to retrieve news: { $message }
label-news-parsing-failed = Failed to parse news: { $message }
label-author-datetime = by { $author } at { $datetime }
## MapChooserLogic
label-all-maps = All Maps
@@ -488,6 +493,9 @@ label-audio-unmuted = Audio unmuted.
label-loading-player-profile = Loading player profile...
label-loading-player-profile-failed = Failed to load player profile.
## ProductionTooltipLogic
label-requires = Requires { $prequisites }
## ReplayBrowserLogic
label-duration = Duration: { $time }

View File

@@ -135,7 +135,6 @@ ScrollPanel@NEWS_PANEL:
Width: PARENT_RIGHT
Height: 15
Align: Center
Text: by {0} at {1}
Font: TinyBold
Label@CONTENT:
Y: 45

View File

@@ -446,7 +446,6 @@ Container@PLAYER_WIDGETS:
Width: 50
Height: 22
Font: Bold
Text: {0}
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
LabelWithTooltip@POWER:
@@ -457,7 +456,6 @@ Container@PLAYER_WIDGETS:
Height: 22
Align: Right
Font: Bold
Text: {0}
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Children:

View File

@@ -256,7 +256,6 @@ Background@PRODUCTION_TOOLTIP:
Y: 22
Height: 15
Font: TinyBold
Text: Requires {0}
Label@DESC:
X: 7
Y: 23

View File

@@ -623,7 +623,6 @@ Container@PLAYER_WIDGETS:
Width: 50
Height: 23
Font: Bold
Text: {0}
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Children:
@@ -640,7 +639,6 @@ Container@PLAYER_WIDGETS:
Height: 23
Align: Right
Font: Bold
Text: {0}
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Children:

View File

@@ -135,7 +135,6 @@ ScrollPanel@NEWS_PANEL:
Width: PARENT_RIGHT
Height: 15
Align: Center
Text: by {0} at {1}
Font: TinyBold
Label@CONTENT:
Y: 45

View File

@@ -441,7 +441,6 @@ Container@PLAYER_WIDGETS:
Width: 50
Height: 22
Font: Bold
Text: {0}
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Children:
@@ -458,7 +457,6 @@ Container@PLAYER_WIDGETS:
Height: 22
Align: Right
Font: Bold
Text: {0}
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Children:

View File

@@ -127,12 +127,10 @@ Container@HOTKEYS_PANEL:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: Tiny
Text: The default is "{0}"
Label@DUPLICATE_NOTICE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: Tiny
Text: This is already used for "{0}" in the {1} context
Label@READONLY_NOTICE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM