Compare commits

..

5 Commits

Author SHA1 Message Date
maj00r cb9c8cbb08 test(weather): a rain or snow option is themed in a window and names itself there too 2026-11-30 19:29:18 +01:00
maj00r a87c1ebc4c fix(weather): rain or snow is named by a control of its own, with no reflection binding
The two precipitation options were renamed by a Binding made in code,
which reads its path by reflection: unsafe for the NativeAOT starter
and flagged as such by the analysis. A PrecipitationItem now names
itself from the starter's texts and follows a change of language, and
the weather tab only tells it whether it snows.
2026-11-30 19:22:26 +01:00
maj00r 1aac7faae1 fix(weather): the overcast list says what the simulator makes of it, rain and snow among it
The simulator reads the overcast as clear up to 0.1, clouds up to 1 and
precipitation above it: rain above 1 °C, snow at or below, denser from
1.35 on. A negative value it draws anew from 0 up to its size. The list
named -1.5 "Clear", though it rained one run in three, 1.1 "Cloudy" and
1.5 "Storm", which the simulator has none of, so rain was nowhere to be
picked by name. The list is now clear, light, moderate clouds, cloudy,
light rain and rain, the last two named snow when the temperature set
makes it snow. Random draws only from these, and a negative overcast in
a scenery is shown as random rather than clear.
2026-11-30 19:14:15 +01:00
maj00r 121481af00 Merge pull request #68 from MaSzyna-EU07/fix/gamescope-windows
fix: under gamescope the starter fills the screen and every window can be closed
2026-11-30 17:40:43 +01:00
maj00r e1800a20b9 fix: under gamescope the starter fills the screen and every window can be closed
Gamescope, SteamOS's game mode, is no window manager: it gives no
window a title bar or a close button and does not answer a request to
maximize, so it stretched the starter's first size over the screen,
and the tapes window and the black box opened from them could not be
closed at all. Under gamescope the main window now takes the size of
the screen itself, and every window over another gets a bar with its
title and a close button, takes the screen's size too and closes on
Esc, even the tapes, which otherwise stay open beside the starter.
Steam's Big Picture on a desktop keeps its window manager's bars and
is only maximized, as before.
2026-11-30 05:01:07 +01:00
18 changed files with 506 additions and 28 deletions
+155
View File
@@ -0,0 +1,155 @@
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.VisualTree;
using StarterNG.Controls;
namespace StarterNG.Tests;
/// <summary>Windows under gamescope, which gives them no title bar, no close button and no maximizing.</summary>
[Collection(AvaloniaControls.Name)]
public class GamescopeWindowsTests
{
static GamescopeWindowsTests()
{
HeadlessDrawing.Ensure();
DialogKeyboard.Install();
GamescopeWindows.Install(false, () => "Zamknij");
}
[Theory]
[InlineData("gamescope", null, true)]
[InlineData("Gamescope", null, true)]
[InlineData("KDE", "gamescope-0", true)]
[InlineData(null, "gamescope-0", true)]
[InlineData("KDE", null, false)]
[InlineData("KDE", "", false)]
[InlineData(null, null, false)]
public void Gamescope_is_told_by_its_session_or_by_its_display(string? desktop, string? display, bool expected)
{
var variables = new Dictionary<string, string?>
{
["XDG_CURRENT_DESKTOP"] = desktop,
["GAMESCOPE_WAYLAND_DISPLAY"] = display,
// Big Picture on a desktop, whose window manager still draws the bars.
["SteamGamepadUI"] = "1"
};
Assert.Equal(expected, GamescopeWindows.IsGamescope(name => variables.GetValueOrDefault(name)));
}
private static (Window Owner, Window Window) Open(Control content, bool gamescope, bool escapeCloses = true)
{
GamescopeWindows.Active = gamescope;
var owner = new Window();
owner.Show();
var window = new Window { Title = "Taśmy", Width = 300, Height = 200, Content = content };
DialogKeyboard.SetEscapeCloses(window, escapeCloses);
window.Show(owner);
// Headless a window says it opened before it is given its owner; it says so again once it has one.
Assert.Same(owner, window.Owner);
window.RaiseEvent(new RoutedEventArgs(Window.WindowOpenedEvent));
Controls.Settle();
return (owner, window);
}
private static Button? CloseButton(Window window) =>
window.GetVisualDescendants().OfType<Button>().FirstOrDefault(b => Equals(b.Content, "Zamknij"));
[Fact]
public void Under_gamescope_a_window_over_another_gets_its_title_and_a_close_button()
{
var content = new TextBlock { Text = "zawartość" };
var (owner, window) = Open(content, gamescope: true);
try
{
bool closed = false;
window.Closed += (_, _) => closed = true;
Assert.Contains(window.GetVisualDescendants().OfType<TextBlock>(), t => t.Text == "Taśmy");
Assert.Same(content, window.GetVisualDescendants().OfType<TextBlock>().First(t => t.Text == "zawartość"));
var close = CloseButton(window);
Assert.NotNull(close);
close.RaiseEvent(Controls.Click());
Assert.True(closed);
}
finally
{
GamescopeWindows.Active = false;
owner.Close();
}
}
[Fact]
public void Under_gamescope_esc_closes_even_a_window_that_stays_open_beside_the_starter()
{
var (owner, window) = Open(new TextBox(), gamescope: true, escapeCloses: false);
try
{
bool closed = false;
window.Closed += (_, _) => closed = true;
Assert.True(Controls.Press(window, Key.Escape));
Assert.True(closed);
}
finally
{
GamescopeWindows.Active = false;
owner.Close();
}
}
[Fact]
public void The_window_shows_what_it_had_first_and_the_bar_after_it_in_tab_order()
{
var first = new Button { Content = "Pierwszy" };
var (owner, window) = Open(new StackPanel { Children = { first } }, gamescope: true);
try
{
var grid = Assert.IsType<Grid>(window.Content);
Assert.IsType<StackPanel>(grid.Children[0]);
Assert.True(first.IsFocused);
}
finally
{
GamescopeWindows.Active = false;
owner.Close();
}
}
[Fact]
public void A_window_that_says_twice_it_opened_gets_one_bar()
{
var (owner, window) = Open(new TextBlock { Text = "zawartość" }, gamescope: true);
try
{
window.RaiseEvent(new RoutedEventArgs(Window.WindowOpenedEvent));
Controls.Settle();
Assert.Single(window.GetVisualDescendants().OfType<Button>(), b => Equals(b.Content, "Zamknij"));
}
finally
{
GamescopeWindows.Active = false;
owner.Close();
}
}
[Fact]
public void Elsewhere_a_window_keeps_what_it_shows_and_esc_keeps_its_choice()
{
var content = new TextBox();
var (owner, window) = Open(content, gamescope: false, escapeCloses: false);
try
{
Assert.Same(content, window.Content);
Assert.Null(CloseButton(window));
Assert.False(Controls.Press(window, Key.Escape));
}
finally
{
owner.Close();
}
}
}
+72
View File
@@ -0,0 +1,72 @@
using Avalonia.Controls;
using StarterNG.Controls;
namespace StarterNG.Tests;
[Collection(AvaloniaControls.Name)]
public class PrecipitationItemTests
{
// Shown in whatever language the tests run in: the key alone, or English once a test built the application.
private static void ShowsText(string key, PrecipitationItem item)
{
Assert.Equal(key, item.Key);
Assert.Equal(AppLanguage.Text(key), item.Content);
}
[Fact]
public void Light_precipitation_is_light_rain_until_told_it_snows()
{
var item = new PrecipitationItem();
ShowsText("OvercastRainLight", item);
item.Snow = true;
ShowsText("OvercastSnowLight", item);
}
[Fact]
public void Heavy_precipitation_is_rain_or_snow()
{
var item = new PrecipitationItem { Heavy = true };
ShowsText("OvercastRain", item);
item.Snow = true;
ShowsText("OvercastSnow", item);
}
[Fact]
public void The_option_keeps_its_name_in_a_dropdown_and_out_of_it()
{
var item = new PrecipitationItem { Heavy = true, Snow = true };
var combo = new ComboBox { Items = { item } };
ShowsText("OvercastSnow", item);
combo.Items.Remove(item);
item.Snow = false;
ShowsText("OvercastRain", item);
}
[Fact]
public void In_a_window_the_option_looks_like_any_other_and_still_follows_the_temperature()
{
var item = new PrecipitationItem { Heavy = true };
var combo = new ComboBox { Items = { new ComboBoxItem { Content = "Bezchmurnie" }, item } };
var window = Controls.Show(combo, themed: true);
combo.IsDropDownOpen = true;
window.UpdateLayout();
Assert.NotNull(item.Template);
item.Snow = true;
ShowsText("OvercastSnow", item);
window.Close();
item.Snow = false;
ShowsText("OvercastRain", item);
}
}
+27 -1
View File
@@ -78,10 +78,36 @@ public class SceneryWeatherTests
{
var weather = new SceneryWeather { Overcast = 0.42, OvercastRandom = true };
Assert.Equal(-1.5, weather.EffectiveOvercast(new StubRandom()));
Assert.Equal(0, weather.EffectiveOvercast(new StubRandom()));
Assert.Equal(0.42, new SceneryWeather { Overcast = 0.42 }.EffectiveOvercast(new StubRandom()));
}
[Fact]
public void No_random_overcast_preset_is_one_the_simulator_would_draw_again()
{
var weather = new SceneryWeather { OvercastRandom = true };
for (int i = 0; i < 10; i++)
Assert.InRange(weather.EffectiveOvercast(new StubRandom(i)), 0, 2);
}
[Fact]
public void A_negative_overcast_in_the_scenery_is_read_as_random()
{
var weather = TestScenery.Parser(new DateTime(2026, 1, 1))
.Parse("scenery/x.scn", "atmo 0 0 0 50 900 0 0 0 -1.5 endatmo").Weather;
Assert.True(weather.OvercastRandom);
Assert.False(weather.Changed);
}
[Theory]
[InlineData(2, false)]
[InlineData(1, true)]
[InlineData(-10, true)]
public void Precipitation_is_snow_at_or_below_one_degree(double temperature, bool snow) =>
Assert.Equal(snow, SceneryWeather.Snows(temperature));
private static string Rewritten(string scn) =>
SceneryWeatherWriter.Rewrite(scn, new SceneryWeather(), new StubRandom());
+2
View File
@@ -28,6 +28,8 @@ public partial class App : Avalonia.Application
// Before any control exists: the names are given as controls are filled in.
ScreenReaderNames.Install();
DialogKeyboard.Install();
GamescopeWindows.Install(GamescopeWindows.IsGamescope(AppServices.Current.Environment.GetVariable),
() => Loc["Close"]);
AvaloniaXamlLoader.Load(this);
+3 -1
View File
@@ -41,7 +41,9 @@ public static class DialogKeyboard
// button or a window of its own that handles the key keep it.
private static void OnEscape(Window window, KeyEventArgs e)
{
if (e.Handled || e.Key != Key.Escape || e.KeyModifiers != KeyModifiers.None || !GetEscapeCloses(window))
// Under gamescope a window has no other way out than Esc and the bar it is given there.
if (e.Handled || e.Key != Key.Escape || e.KeyModifiers != KeyModifiers.None ||
!(GetEscapeCloses(window) || GamescopeWindows.Active))
return;
window.Close();
+140
View File
@@ -0,0 +1,140 @@
using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Layout;
using Avalonia.Media;
namespace StarterNG.Controls;
/// <summary>
/// The starter's windows under gamescope, SteamOS's game mode (or gamescope started by
/// hand): it shows one window at a time over the whole screen and is no window manager.
/// No window gets a title bar or a close button from it, and a request to maximize is
/// not answered, so gamescope stretches a window of its first size over the screen.
/// Here each window over another gets a bar with its title and a close button, Esc closes
/// it whatever it says otherwise, and every window takes the size of the screen itself.
/// </summary>
public static class GamescopeWindows
{
private static readonly AttachedProperty<bool> FittedProperty =
AvaloniaProperty.RegisterAttached<Window, bool>("GamescopeFitted", typeof(GamescopeWindows));
private static readonly IBrush BarLine = new SolidColorBrush(Color.FromArgb(0x40, 0x80, 0x80, 0x80));
private static Func<string> _closeLabel = () => "Close";
private static bool _installed;
/// <summary>
/// XDG_CURRENT_DESKTOP is gamescope in SteamOS's game mode and in the sessions made
/// after it; GAMESCOPE_WAYLAND_DISPLAY is set by any gamescope for what it starts,
/// one started by hand on a desktop too. Steam's Big Picture on a desktop is neither:
/// its window manager still draws the bars.
/// </summary>
public static bool IsGamescope(Func<string, string?> variable) =>
string.Equals(variable("XDG_CURRENT_DESKTOP"), "gamescope", StringComparison.OrdinalIgnoreCase)
|| !string.IsNullOrEmpty(variable("GAMESCOPE_WAYLAND_DISPLAY"));
/// <summary>Whether the starter runs under gamescope; set once by <see cref="Install"/>.</summary>
public static bool Active { get; set; }
public static void Install(bool active, Func<string> closeLabel)
{
Active = active;
_closeLabel = closeLabel;
if (_installed)
return;
_installed = true;
Window.WindowOpenedEvent.AddClassHandler<Window>((window, _) => OnOpened(window));
}
private static void OnOpened(Window window)
{
// The main window has a bar of its own and fills the screen from its constructor;
// the splash goes by itself. A window may say twice that it opened.
if (!Active || window.Owner is null || window.GetValue(FittedProperty))
return;
window.SetValue(FittedProperty, true);
AddTitleBar(window);
FillScreen(window);
}
/// <summary>The window's title and a close button above what it shows, after it in Tab order.</summary>
public static void AddTitleBar(Window window)
{
if (window.Content is not Control content)
return;
// Over the whole screen a window sized to what it shows keeps it in the middle.
if (window.SizeToContent != SizeToContent.Manual)
{
content.HorizontalAlignment = HorizontalAlignment.Center;
content.VerticalAlignment = VerticalAlignment.Center;
}
var title = new TextBlock
{
VerticalAlignment = VerticalAlignment.Center,
Margin = new Thickness(12, 0),
FontWeight = FontWeight.SemiBold,
TextTrimming = TextTrimming.CharacterEllipsis
};
title[!TextBlock.TextProperty] = window[!Window.TitleProperty];
var close = new Button
{
Content = _closeLabel(),
VerticalAlignment = VerticalAlignment.Center,
Margin = new Thickness(8, 4)
};
close.Classes.Add("Flat");
close.Click += (_, _) => window.Close();
var bar = new DockPanel
{
Background = Brushes.Transparent,
Children = { close, title }
};
DockPanel.SetDock(close, Dock.Right);
var line = new Border
{
BorderBrush = BarLine,
BorderThickness = new Thickness(0, 0, 0, 1),
Child = bar
};
window.Content = null;
Grid.SetRow(content, 1);
Grid.SetRow(line, 0);
// What the window shows first, so Tab and the first focus reach it before the bar.
window.Content = new Grid
{
RowDefinitions = new RowDefinitions("Auto,*"),
Children = { content, line }
};
}
/// <summary>The size and place of the screen's working area, which gamescope then shows as it is.</summary>
public static void FillScreen(Window window)
{
var screen = window.Screens.ScreenFromWindow(window)
?? window.Screens.ScreenFromPoint(window.Position)
?? window.Screens.Primary;
if (screen is null)
return;
var area = screen.WorkingArea;
double width = area.Width / screen.Scaling;
double height = area.Height / screen.Scaling;
window.SizeToContent = SizeToContent.Manual;
window.MinWidth = Math.Min(window.MinWidth, width);
window.MinHeight = Math.Min(window.MinHeight, height);
window.MaxWidth = Math.Max(window.MaxWidth, width);
window.MaxHeight = Math.Max(window.MaxHeight, height);
window.Position = area.Position;
window.Width = width;
window.Height = height;
}
}
+61
View File
@@ -0,0 +1,61 @@
using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.LogicalTree;
namespace StarterNG.Controls;
/// <summary>
/// An overcast option above 1, where the simulator rains or, at 1 °C and below, snows:
/// named for what falls, light or not, in the starter's language.
/// </summary>
public class PrecipitationItem : ComboBoxItem
{
public static readonly StyledProperty<bool> HeavyProperty =
AvaloniaProperty.Register<PrecipitationItem, bool>(nameof(Heavy));
public static readonly StyledProperty<bool> SnowProperty =
AvaloniaProperty.Register<PrecipitationItem, bool>(nameof(Snow));
public PrecipitationItem() => UpdateText();
/// <summary>Rain or snow rather than light rain or light snow.</summary>
public bool Heavy
{
get => GetValue(HeavyProperty);
set => SetValue(HeavyProperty, value);
}
public bool Snow
{
get => GetValue(SnowProperty);
set => SetValue(SnowProperty, value);
}
protected override Type StyleKeyOverride => typeof(ComboBoxItem);
/// <summary>The key of the text the option is named by.</summary>
public string Key => (Snow ? "OvercastSnow" : "OvercastRain") + (Heavy ? "" : "Light");
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
{
base.OnPropertyChanged(change);
if (change.Property == HeavyProperty || change.Property == SnowProperty)
UpdateText();
}
protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
{
base.OnAttachedToLogicalTree(e);
AppLanguage.Changed += UpdateText;
UpdateText();
}
protected override void OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e)
{
AppLanguage.Changed -= UpdateText;
base.OnDetachedFromLogicalTree(e);
}
private void UpdateText() => Content = AppLanguage.Text(Key);
}
+8 -1
View File
@@ -8,7 +8,14 @@ public sealed class SceneryWeather
public const int FogMin = 10;
public const int FogMax = 10000;
private static readonly double[] OvercastPresets = { -1.5, 0, 0.3, 0.7, 1, 1.1, 1.5 };
/// <summary>
/// What the simulator makes of each: up to 0.1 clear, 0.5 scattered, 0.9 broken,
/// 1 overcast; above 1 it rains or snows, the denser from 1.35 on.
/// </summary>
private static readonly double[] OvercastPresets = { 0, 0.3, 0.7, 1, 1.1, 1.5 };
/// <summary>The simulator rains above 1 °C and snows at that or below.</summary>
public static bool Snows(double temperature) => temperature <= 1;
private string _authoredTime = "10:30";
private string _authoredTimeOverride = "10:30";
@@ -286,7 +286,11 @@ public sealed class SceneryParser
if (numbers.Count >= 6 &&
double.TryParse(numbers[^1], NumberStyles.Float, CultureInfo.InvariantCulture, out double overcast))
weather.Overcast = overcast;
{
// The simulator draws a negative overcast anew each run, from 0 up to its size.
weather.OvercastRandom = overcast < 0;
weather.Overcast = Math.Max(overcast, 0);
}
}
private static string? MatchAllDirectives(string content, string letter)
+4 -1
View File
@@ -57,6 +57,9 @@ public partial class MainWindow : Window
ExtendClientAreaTitleBarHeightHint = TitleBarHeight;
FitToScreen();
// Gamescope does not maximize a window: it would stretch the first size over the screen.
if (GamescopeWindows.Active)
GamescopeWindows.FillScreen(this);
// Ahead of the layout a new size starts: changed during it, the bar keeps the old width.
Resized += (_, e) => FitTopBar(e.ClientSize.Width);
Opened += (_, _) => FitTopBar(ClientSize.Width);
@@ -432,7 +435,7 @@ public partial class MainWindow : Window
private bool wantsMaximized()
{
// make sure the window fills the whole screen on gamescope sessions
if (Environment.GetEnvironmentVariable("XDG_CURRENT_DESKTOP") == "gamescope")
if (GamescopeWindows.Active)
return true;
// catch being launched via Steam Big Picture mode as well
+4 -5
View File
@@ -189,13 +189,12 @@
HorizontalAlignment="Stretch"
SelectionChanged="Weather_OnSelectionChanged">
<ComboBoxItem Tag="random" Content="{Binding [OvercastRandom], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="-1.5" Content="{Binding [OvercastClear], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="0" Content="{Binding [OvercastFair], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="0" Content="{Binding [OvercastClear], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="0.3" Content="{Binding [OvercastLight], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="0.7" Content="{Binding [OvercastModerate], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="1" Content="{Binding [OvercastHeavy], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="1.1" Content="{Binding [OvercastCloudy], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="1.5" Content="{Binding [OvercastStorm], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Tag="1" Content="{Binding [OvercastCloudy], Source={x:Static starterNg:App.Loc}}" />
<ctl:PrecipitationItem Tag="1.1" Name="weatherPrecipitationLight" />
<ctl:PrecipitationItem Tag="1.5" Name="weatherPrecipitation" Heavy="True" />
</ComboBox>
<Border Grid.Row="11" Grid.Column="0" Grid.ColumnSpan="5"
+1
View File
@@ -831,6 +831,7 @@ public partial class Scenarios : UserControl
weatherTemp.ValueText = weatherTempLabel.Text;
weatherFog.ValueText = weatherFogLabel.Text;
weatherDayDate.Text = string.Format(LanguageCulture, App.Loc["DayOfYear"], SelectedDayOfYear());
weatherPrecipitationLight.Snow = weatherPrecipitation.Snow = SceneryWeather.Snows(weatherTemp.Value);
weatherRestore.IsEnabled = _currentScenery?.Weather.Changed ?? false;
}
+4 -3
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">Zima</String>
<String key="OvercastRandom">Náhodné</String>
<String key="OvercastClear">Jasno</String>
<String key="OvercastFair">Skoro jasno</String>
<String key="OvercastLight">Slabá oblačnost</String>
<String key="OvercastModerate">Mírná oblačnost</String>
<String key="OvercastHeavy">Silná oblačnost</String>
<String key="OvercastCloudy">Zataženo</String>
<String key="OvercastStorm">Bouřka</String>
<String key="OvercastRainLight">Slabý déšť</String>
<String key="OvercastRain">Déšť</String>
<String key="OvercastSnowLight">Slabé sněžení</String>
<String key="OvercastSnow">Sněžení</String>
<String key="WeatherDateTime">Datum a čas</String>
<String key="WeatherConditions">Povětrnostní podmínky</String>
<String key="Consist">Souprava</String>
+4 -3
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">Winter</String>
<String key="OvercastRandom">Random</String>
<String key="OvercastClear">Clear</String>
<String key="OvercastFair">Fair</String>
<String key="OvercastLight">Light clouds</String>
<String key="OvercastModerate">Moderate clouds</String>
<String key="OvercastHeavy">Heavy clouds</String>
<String key="OvercastCloudy">Cloudy</String>
<String key="OvercastStorm">Storm</String>
<String key="OvercastRainLight">Light rain</String>
<String key="OvercastRain">Rain</String>
<String key="OvercastSnowLight">Light snow</String>
<String key="OvercastSnow">Snow</String>
<String key="WeatherDateTime">Date and time</String>
<String key="WeatherConditions">Conditions</String>
<String key="Consist">Consist</String>
+4 -3
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">Tél</String>
<String key="OvercastRandom">Véletlenszerű</String>
<String key="OvercastClear">Derült</String>
<String key="OvercastFair">Gyengén felhős</String>
<String key="OvercastLight">Kevés felhő</String>
<String key="OvercastModerate">Közepes felhőzet</String>
<String key="OvercastHeavy">Erős felhőzet</String>
<String key="OvercastCloudy">Borult</String>
<String key="OvercastStorm">Vihar</String>
<String key="OvercastRainLight">Gyenge eső</String>
<String key="OvercastRain">Eső</String>
<String key="OvercastSnowLight">Gyenge havazás</String>
<String key="OvercastSnow">Havazás</String>
<String key="WeatherDateTime">Dátum és idő</String>
<String key="WeatherConditions">Időjárási viszonyok</String>
<String key="Consist">Szerelvény</String>
+4 -3
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">Zima</String>
<String key="OvercastRandom">Losowe</String>
<String key="OvercastClear">Bezchmurnie</String>
<String key="OvercastFair">Pogodnie</String>
<String key="OvercastLight">Lekkie zachmurzenie</String>
<String key="OvercastModerate">Umiarkowane zachmurzenie</String>
<String key="OvercastHeavy">Duże zachmurzenie</String>
<String key="OvercastCloudy">Pochmurno</String>
<String key="OvercastStorm">Burza</String>
<String key="OvercastRainLight">Lekki deszcz</String>
<String key="OvercastRain">Deszcz</String>
<String key="OvercastSnowLight">Lekki śnieg</String>
<String key="OvercastSnow">Śnieg</String>
<String key="WeatherDateTime">Data i godzina</String>
<String key="WeatherConditions">Warunki atmosferyczne</String>
<String key="Consist">Zestawienie</String>
+4 -3
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">Зима</String>
<String key="OvercastRandom">Случайно</String>
<String key="OvercastClear">Ясно</String>
<String key="OvercastFair">Малооблачно</String>
<String key="OvercastLight">Лёгкая облачность</String>
<String key="OvercastModerate">Умеренная облачность</String>
<String key="OvercastHeavy">Сильная облачность</String>
<String key="OvercastCloudy">Пасмурно</String>
<String key="OvercastStorm">Гроза</String>
<String key="OvercastRainLight">Небольшой дождь</String>
<String key="OvercastRain">Дождь</String>
<String key="OvercastSnowLight">Небольшой снег</String>
<String key="OvercastSnow">Снег</String>
<String key="WeatherDateTime">Дата и время</String>
<String key="WeatherConditions">Погодные условия</String>
<String key="Consist">Состав</String>
+4 -3
View File
@@ -48,12 +48,13 @@
<String key="SeasonWinter">冬</String>
<String key="OvercastRandom">随机</String>
<String key="OvercastClear">晴</String>
<String key="OvercastFair">晴好</String>
<String key="OvercastLight">少云</String>
<String key="OvercastModerate">多云</String>
<String key="OvercastHeavy">阴</String>
<String key="OvercastCloudy">阴天</String>
<String key="OvercastStorm">雷暴</String>
<String key="OvercastRainLight">小雨</String>
<String key="OvercastRain">雨</String>
<String key="OvercastSnowLight">小雪</String>
<String key="OvercastSnow">雪</String>
<String key="WeatherDateTime">日期和时间</String>
<String key="WeatherConditions">天气状况</String>
<String key="Consist">编组</String>