Various localization fixes (#9860)
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<DefaultWindow
|
||||
xmlns="https://spacestation14.io"
|
||||
Title="{Loc 'admin-announce-title'}"
|
||||
Title="{Loc admin-announce-title}"
|
||||
MinWidth="500">
|
||||
<GridContainer Columns="1">
|
||||
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
|
||||
<LineEdit Name="Announcer" Access="Public" PlaceHolder="{Loc 'announcer-placeholder'}" Text="{Loc 'Central Command'}" HorizontalExpand="True" SizeFlagsStretchRatio="2"/>
|
||||
<LineEdit Name="Announcer" Access="Public" PlaceHolder="{Loc admin-announce-announcer-placeholder}" Text="{Loc admin-announce-announcer-default}" HorizontalExpand="True" SizeFlagsStretchRatio="2"/>
|
||||
<Control HorizontalExpand="True" SizeFlagsStretchRatio="1" />
|
||||
<OptionButton Name="AnnounceMethod" Access="Public" HorizontalExpand="True" SizeFlagsStretchRatio="2"/>
|
||||
</BoxContainer>
|
||||
<LineEdit Name="Announcement" Access="Public" PlaceHolder="{Loc 'announcement-placeholder'}"/>
|
||||
<LineEdit Name="Announcement" Access="Public" PlaceHolder="{Loc admin-announce-announcement-placeholder}"/>
|
||||
|
||||
<Button Name="AnnounceButton" Access="Public" Disabled="True" Text="{Loc 'Announce'}" HorizontalAlignment="Center"/>
|
||||
<Button Name="AnnounceButton" Access="Public" Disabled="True" Text="{Loc admin-announce-button}" HorizontalAlignment="Center"/>
|
||||
</GridContainer>
|
||||
</DefaultWindow>
|
||||
|
||||
@@ -19,9 +19,9 @@ namespace Content.Client.Administration.UI
|
||||
RobustXamlLoader.Load(this);
|
||||
IoCManager.InjectDependencies(this);
|
||||
|
||||
AnnounceMethod.AddItem(_localization.GetString("announce-type-station"));
|
||||
AnnounceMethod.AddItem(_localization.GetString("admin-announce-type-station"));
|
||||
AnnounceMethod.SetItemMetadata(0, AdminAnnounceType.Station);
|
||||
AnnounceMethod.AddItem(_localization.GetString("announce-type-server"));
|
||||
AnnounceMethod.AddItem(_localization.GetString("admin-announce-type-server"));
|
||||
AnnounceMethod.SetItemMetadata(1, AdminAnnounceType.Server);
|
||||
AnnounceMethod.OnItemSelected += AnnounceMethodOnOnItemSelected;
|
||||
Announcement.OnTextChanged += AnnouncementOnOnTextChanged;
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
<BoxContainer Orientation="Vertical">
|
||||
<GridContainer Columns="3">
|
||||
<cc:UICommandButton Command="kick" Text="{Loc admin-player-actions-window-title}" WindowType="{x:Type at:PlayerActionsWindow}" />
|
||||
<cc:UICommandButton Command="ban" Text="{Loc Ban}" WindowType="{x:Type at:BanWindow}" />
|
||||
<cc:CommandButton Command="aghost" Text="{Loc Admin Ghost}" />
|
||||
<cc:UICommandButton Command="tpto" Text="{Loc Teleport}" WindowType="{x:Type at:TeleportWindow}" />
|
||||
<cc:CommandButton Command="permissions" Text="{Loc Permissions Panel}" />
|
||||
<cc:CommandButton Command="announceui" Text="{Loc Announce}"/>
|
||||
<cc:UICommandButton Command="callshuttle" Text="{Loc (Re)call Shuttle}" WindowType="{x:Type at:AdminShuttleWindow}"/>
|
||||
<cc:CommandButton Command="adminlogs" Text="{Loc Admin Logs}"/>
|
||||
<cc:CommandButton Command="adminnotes" Text="{Loc Admin Notes}"/>
|
||||
<cc:UICommandButton Command="ban" Text="{Loc admin-player-actions-window-ban}" WindowType="{x:Type at:BanWindow}" />
|
||||
<cc:CommandButton Command="aghost" Text="{Loc admin-player-actions-window-admin-ghost}" />
|
||||
<cc:UICommandButton Command="tpto" Text="{Loc admin-player-actions-window-teleport}" WindowType="{x:Type at:TeleportWindow}" />
|
||||
<cc:CommandButton Command="permissions" Text="{Loc admin-player-actions-window-permissions}" />
|
||||
<cc:CommandButton Command="announceui" Text="{Loc admin-player-actions-window-announce}"/>
|
||||
<cc:UICommandButton Command="callshuttle" Text="{Loc admin-player-actions-window-shuttle}" WindowType="{x:Type at:AdminShuttleWindow}"/>
|
||||
<cc:CommandButton Command="adminlogs" Text="{Loc admin-player-actions-window-admin-logs}"/>
|
||||
<cc:CommandButton Command="adminnotes" Text="{Loc admin-player-actions-window-admin-notes}"/>
|
||||
</GridContainer>
|
||||
</BoxContainer>
|
||||
</Control>
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Content.Client.Communications.UI
|
||||
SizeFlagsStretchRatio = 1
|
||||
};
|
||||
AnnounceButton = new Button();
|
||||
AnnounceButton.Text = "Announce";
|
||||
AnnounceButton.Text = Loc.GetString("comms-console-menu-announcement-button");
|
||||
AnnounceButton.OnPressed += (_) => Owner.AnnounceButtonPressed(_messageInput.Text.Trim());
|
||||
AnnounceButton.Disabled = !owner.CanAnnounce;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<DefaultWindow xmlns="https://spacestation14.io" Title="Port Selector" MinSize="400 200">
|
||||
<DefaultWindow xmlns="https://spacestation14.io" Title="{Loc signal-port-selector-menu-title}" MinSize="400 200">
|
||||
<BoxContainer Orientation="Vertical" VerticalExpand="True">
|
||||
<BoxContainer Orientation="Horizontal" HorizontalExpand="True" VerticalExpand="True">
|
||||
<BoxContainer Orientation="Vertical" HorizontalExpand="True" SizeFlagsStretchRatio="0.3">
|
||||
@@ -12,8 +12,8 @@
|
||||
</BoxContainer>
|
||||
</BoxContainer>
|
||||
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
|
||||
<Button Name="ButtonClear" Text="Clear"/>
|
||||
<Button Name="ButtonLinkDefault" Text="Link Defaults"/>
|
||||
<Button Name="ButtonClear" Text="{Loc signal-port-selector-menu-clear}"/>
|
||||
<Button Name="ButtonLinkDefault" Text="{Loc signal-port-selector-menu-link-defaults}"/>
|
||||
</BoxContainer>
|
||||
</BoxContainer>
|
||||
</DefaultWindow>
|
||||
|
||||
Reference in New Issue
Block a user