Skip to content

Commit

Permalink
Localisation mess.
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR committed Nov 5, 2023
1 parent dfb353b commit d454bbc
Show file tree
Hide file tree
Showing 9 changed files with 288 additions and 155 deletions.
2 changes: 2 additions & 0 deletions OpenRA.Mods.SS/Traits/World/BaseSizeLobbyDropdown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ public class BaseSizeLobbyDropdownInfo : TraitInfo, ILobbyOptions
[Desc("Internal id for this option.")]
public readonly string ID = "base-size";

[TranslationReference]
[Desc("Descriptive label for this option.")]
public readonly string Label = "dropdown-base-size.label";

[TranslationReference]
[Desc("Tooltip description for this option.")]
public readonly string Description = "dropdown-base-size.description";

Expand Down
2 changes: 2 additions & 0 deletions OpenRA.Mods.SS/Traits/World/SSCrateSpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ public class SSCrateSpawnerInfo : ConditionalTraitInfo, ILobbyOptions
[Desc("Internal id for this option.")]
public readonly string DropdownID = "crateamount";

[TranslationReference]
[Desc("Descriptive label for the crates checkbox in the lobby.")]
public readonly string DropdownLabel = "dropdown-crate-amount.label";

[TranslationReference]
[Desc("Tooltip description for the crates checkbox in the lobby.")]
public readonly string DropdownDescription = "dropdown-crate-amount.description";

Expand Down
52 changes: 26 additions & 26 deletions mods/ss/chrome/ingame.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ Container@PLAYER_WIDGETS:
X: 1
Y: 1
TooltipContainer: TOOLTIP_CONTAINER
ReadyText: Ready
HoldText: On Hold
ReadyText: supportpowers-support-powers-palette.ready
HoldText: supportpowers-support-powers-palette.hold
HotkeyPrefix: SupportPower
HotkeyCount: 6
Background@COMMAND_BAR:
Expand All @@ -423,8 +423,8 @@ Container@PLAYER_WIDGETS:
Background: command-button
Key: AttackMove
DisableKeySound: true
TooltipText: Attack Move
TooltipDesc: Selected units will move to the desired location\nand attack any enemies they encounter en route.\n\nHold {(Ctrl)} while targeting to order an Assault Move\nthat attacks any units or structures encountered en route.\n\nLeft-click icon then right-click on target location.
TooltipText: button-command-bar-attack-move.tooltip
TooltipDesc: button-command-bar-attack-move.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP
Children:
Expand All @@ -440,8 +440,8 @@ Container@PLAYER_WIDGETS:
Height: 34
Background: command-button
DisableKeySound: true
TooltipText: Force Move
TooltipDesc: Selected units will move to the desired location\n - Default activity for the target is suppressed\n - Vehicles will attempt to crush enemies at the target location\n - Units entering transports will consider nearby alternatives\n\nLeft-click icon then right-click on target.\nHold {(Alt)} to activate temporarily while commanding units.
TooltipText: button-command-bar-force-move.tooltip
TooltipDesc: button-command-bar-force-move.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP
Children:
Expand All @@ -457,8 +457,8 @@ Container@PLAYER_WIDGETS:
Height: 34
Background: command-button
DisableKeySound: true
TooltipText: Force Attack
TooltipDesc: Selected units will attack the targeted unit or location\nignoring their default activity for the target.\n\nLeft-click icon then right-click on target.\nHold {(Ctrl)} to activate temporarily while commanding units.
TooltipText: button-command-bar-force-attack.tooltip
TooltipDesc: button-command-bar-force-attack.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP
Children:
Expand All @@ -475,8 +475,8 @@ Container@PLAYER_WIDGETS:
Background: command-button
Key: Guard
DisableKeySound: true
TooltipText: Guard
TooltipDesc: Selected units will follow the targeted unit.\n\nLeft-click icon then right-click on target unit.
TooltipText: button-command-bar-guard.tooltip
TooltipDesc: button-command-bar-guard.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
Expand All @@ -493,8 +493,8 @@ Container@PLAYER_WIDGETS:
Key: Deploy
DisableKeyRepeat: true
DisableKeySound: true
TooltipText: Deploy
TooltipDesc: Selected units will perform their default deploy activity\n - MCVs will unpack into a Construction Yard\n - Construction Yards will re-pack into a MCV\n - Transports will unload their passengers\n\nActs immediately on selected units.
TooltipText: button-command-bar-deploy.tooltip
TooltipDesc: button-command-bar-deploy.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
Expand All @@ -511,8 +511,8 @@ Container@PLAYER_WIDGETS:
Key: Scatter
DisableKeyRepeat: true
DisableKeySound: true
TooltipText: Scatter
TooltipDesc: Selected units will stop their current activity\nand move to a nearby location.\n\nActs immediately on selected units.
TooltipText: button-command-bar-scatter.tooltip
TooltipDesc: button-command-bar-scatter.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
Expand All @@ -529,8 +529,8 @@ Container@PLAYER_WIDGETS:
Key: Stop
DisableKeyRepeat: true
DisableKeySound: true
TooltipText: Stop
TooltipDesc: Selected units will stop their current activity.\n\nActs immediately on selected units.
TooltipText: button-command-bar-stop.tooltip
TooltipDesc: button-command-bar-stop.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
Expand All @@ -545,8 +545,8 @@ Container@PLAYER_WIDGETS:
Height: 34
Background: command-button
DisableKeySound: true
TooltipText: Waypoint Mode
TooltipDesc: Use Waypoint Mode to give multiple linking commands\nto the selected units. Units will execute the commands\nimmediately upon receiving them.\n\nLeft-click icon then give commands in the game world.\nHold {(Shift)} to activate temporarily while commanding units.
TooltipText: button-command-bar-queue-orders.tooltip
TooltipDesc: button-command-bar-queue-orders.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP
Children:
Expand All @@ -572,8 +572,8 @@ Container@PLAYER_WIDGETS:
Key: StanceAttackAnything
DisableKeyRepeat: true
DisableKeySound: true
TooltipText: Attack Anything Stance
TooltipDesc: Set the selected units to Attack Anything stance:\n - Units will attack enemy units and structures on sight\n - Units will pursue attackers across the battlefield
TooltipText: button-stance-bar-attackanything.tooltip
TooltipDesc: button-stance-bar-attackanything.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
Expand All @@ -590,8 +590,8 @@ Container@PLAYER_WIDGETS:
Key: StanceDefend
DisableKeyRepeat: true
DisableKeySound: true
TooltipText: Defend Stance
TooltipDesc: Set the selected units to Defend stance:\n - Units will attack enemy units on sight\n - Units will not move or pursue enemies
TooltipText: button-stance-bar-defend.tooltip
TooltipDesc: button-stance-bar-defend.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
Expand All @@ -608,8 +608,8 @@ Container@PLAYER_WIDGETS:
Key: StanceReturnFire
DisableKeyRepeat: true
DisableKeySound: true
TooltipText: Return Fire Stance
TooltipDesc: Set the selected units to Return Fire stance:\n - Units will retaliate against enemies that attack them\n - Units will not move or pursue enemies
TooltipText: button-stance-bar-returnfire.tooltip
TooltipDesc: button-stance-bar-returnfire.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
Expand All @@ -626,8 +626,8 @@ Container@PLAYER_WIDGETS:
Key: StanceHoldFire
DisableKeyRepeat: true
DisableKeySound: true
TooltipText: Hold Fire Stance
TooltipDesc: Set the selected units to Hold Fire stance:\n - Units will not fire upon enemies\n - Units will not move or pursue enemies
TooltipText: button-stance-bar-holdfire.tooltip
TooltipDesc: button-stance-bar-holdfire.tooltipdesc
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image@ICON:
Expand Down
127 changes: 127 additions & 0 deletions mods/ss/languages/rules/en.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,137 @@ dropdown-armageddon-crate-amount =
# .label = Base Size
# .description = Amount of towers to spawn around your spawnpoint

dropdown-starting-cloak =
.label = Starting Cloak
.description = How long does the initial cloak last
dropdown-respawn-cloak =
.label = Respawn Cloak
.description = How long does the cloak after respawning last
dropdown-starting-invuln =
.label = Starting Invulnerability
.description = How long does the initial invulnerability last
dropdown-respawn-invuln =
.label = Respawn Invulnerability
.description = How long does the invulnerability after respawning last
options-cloak-invuln =
.disabled = Disabled
.five = 5 Seconds
.ten = 10 Seconds
.fifteen = 15 Seconds
.twenty = 20 Seconds
.thirty = 30 Seconds
.fortyfive = 45 Seconds
.sixty = 1 Minute
dropdown-base-obelisk =
.label = Base Obelisks
.description = Amount of Obelisks of Light to spawn around your spawnpoint
dropdown-base-agt =
.label = Base AGTs
.description = Amount of Advanced Guard Towers to spawn around your spawnpoint
dropdown-respawn-delay =
.label = Respawn Delay
.description = Time it takes to respawn when you die
options-respawn-delay =
.disabled = Disabled
.zero = Instant
.one = 1 Second
.two = 2 Seconds
.three = 3 Seconds
.five = 5 Seconds
.ten = 10 Seconds
.fifteen = 15 Seconds
.twenty = 20 Seconds
.thirty = 30 Seconds
.fortyfive = 45 Seconds
.sixty = 1 Minute
dropdown-time-limit =
.label = Time Limit
.description = Time it takes for the game to end in a score victory condition
options-time-limit =
.disabled = Disabled
.two = 2 Minutes
.five = 5 Minutes
.ten = 10 Minutes
.fifteen = 15 Minutes
.twenty = 20 Minutes
.thirty = 30 Minutes
.fortyfive = 45 Minutes
.sixty = 1 Hour
dropdown-ctf-mode =
.label = CtF Mode
.description = Type of Capture the Flag gameplay
options-ctf-mode =
.disabled = Disabled
.score = Score
.victory = Victory Condition
dropdown-class-changing =
.label = Class Changing
.description = How often can a player change their class
options-class-changing =
.disabled = Disabled
.fifteen = 15 Seconds
.thirty = 30 Seconds
.fourtyfive = 45 Seconds
.sixty = 1 Minute
.hundredtwenty = 2 Minutes
.threehundred = 5 Minutes
dropdown-team-score-victory =
.label = Team Score Victory
.description = How to calculate the winner from score in team games
options-team-score-victory =
.player = Player
.team = Team
.average = Average
dropdown-death-penalty =
.label = Death Penalty
.description = Score penalty to apply when a player dies
options-death-penalty =
.disabled = Disabled
.five = 5
.ten = 10
.twenty = 20
## Misc
notification-map-revealed = Map revealed.
notification-global-darkness = Global darkness.
notification-health-upgraded = Health upgraded.
notification-radar-activated = Radar activated.
notification-radar-deactivated = Radar deactivated.
notification-global-stealth-deactivated = Global stealth deactivated.
notification-stealth-mode = Stealth mode.
notification-stealth-deactivated = Stealth deactivated.
notification-self-repair-activated = Self-repair activated.
notification-self-repair-deactivated = Self-repair deactivated.
notification-armor-upgraded = Armor upgraded.
notification-weapon-upgraded = Weapon upgraded.
notification-speed-upgraded = Speed upgraded.
notification-range-upgraded = Range upgraded.
notification-rapid-reload = Rapid reload.
notification-sight-upgraded = Sight upgraded.
notification-teleport-activated = Teleport activated.
notification-mega-armor = Mega armor.
notification-mega-weapon = Mega weapon.
notification-mega-speed = Mega speed.
notification-mega-range = Mega range.
notification-mega-rapid-reload = Mega rapid reload.
notification-mega-sight = Mega sight.
notification-nuclear-bomb = Nuclear bomb.
notification-armageddon = Armageddon.
2 changes: 1 addition & 1 deletion mods/ss/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@
EmptyWeapon: BuildingExplode
CaptureNotification:
Notification: BuildingCaptured
TextNotification: notification-building-captured.
TextNotification: notification-building-captured
NewOwnerVoice: false
ActorLostNotification:
Notification: BuildingLost
Expand Down
Loading

0 comments on commit d454bbc

Please sign in to comment.