Skip to content

Commit

Permalink
更新翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
zxbmmmmmmmmm committed Feb 7, 2024
1 parent 2adf7fe commit 6bea5b7
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 13 deletions.
7 changes: 0 additions & 7 deletions FluentWeather.Uwp/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,4 @@ private void OnSuspending(object sender, SuspendingEventArgs e)
//TODO: 保存应用程序状态并停止任何后台活动
deferral.Complete();
}
}

public enum AppSettings
{
Cities,
Longitude,
Latitude
}
5 changes: 3 additions & 2 deletions FluentWeather.Uwp/Helpers/JumpListHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Windows.ApplicationModel.Resources;
using Windows.UI.StartScreen;

namespace FluentWeather.Uwp.Helpers;
Expand All @@ -23,14 +24,14 @@ public static async Task SetJumpList(GeolocationBase defaultLocation,IEnumerable
private static JumpListItem CreateDefaultItem(GeolocationBase geolocation)
{
var item = JumpListItem.CreateWithArguments("City_" + geolocation.Name,geolocation.Name);
item.GroupName = "当前位置";
item.GroupName = ResourceLoader.GetForCurrentView().GetString("CurrentLocationText");
item.Logo = new Uri("ms-appx:///Assets/Icons/CurrentLocation.png");
return item;
}
private static JumpListItem CreateItem(GeolocationBase geolocation)
{
var item = JumpListItem.CreateWithArguments("City_" + geolocation.Name, geolocation.Name);
item.GroupName = "添加的位置";
item.GroupName = ResourceLoader.GetForCurrentView().GetString("SavedLocations");
item.Logo = new Uri("ms-appx:///Assets/Icons/SavedCity.png");
return item;
}
Expand Down
2 changes: 1 addition & 1 deletion FluentWeather.Uwp/Pages/CitiesPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
FontFamily="{StaticResource SymbolThemeFontFamily}"
FontSize="11"
Text="" />
<Run x:Uid="CurrentLocation" />
<Run x:Uid="CurrentLocationText" />
</TextBlock>

</Border>
Expand Down
37 changes: 35 additions & 2 deletions FluentWeather.Uwp/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
<data name="AirConditionUnit.Text" xml:space="preserve">
<value>Unit:μg/m³</value>
</data>
<data name="AirQuality" xml:space="preserve">
<value>Air quality</value>
</data>
<data name="ApplyButton.Content" xml:space="preserve">
<value>Apply</value>
</data>
Expand Down Expand Up @@ -171,9 +174,18 @@
<data name="CloudAmountText.Text" xml:space="preserve">
<value>Cloud amount</value>
</data>
<data name="CurrentLocation.Text" xml:space="preserve">
<data name="CurrentLocation" xml:space="preserve">
<value>Current location</value>
</data>
<data name="CurrentLocationText.Text" xml:space="preserve">
<value>Current location</value>
</data>
<data name="CustomPagesSettingsCard.Description" xml:space="preserve">
<value>Customize your main page</value>
</data>
<data name="CustomPagesSettingsCard.Header" xml:space="preserve">
<value>Custom main page</value>
</data>
<data name="DarkSection.Content" xml:space="preserve">
<value>Dark</value>
</data>
Expand Down Expand Up @@ -219,6 +231,12 @@
<data name="FollowSystemSection.Content" xml:space="preserve">
<value>Follow system</value>
</data>
<data name="HighestTemperature" xml:space="preserve">
<value>Highest</value>
</data>
<data name="HourlyForecast.Text" xml:space="preserve">
<value>24-Hour forecast</value>
</data>
<data name="HumidityDescription.Text" xml:space="preserve">
<value>The concentration of water vapor present in the air</value>
</data>
Expand All @@ -241,6 +259,9 @@ Split with "|", support Regex</value>
<data name="LocationSettingsExpander.Header" xml:space="preserve">
<value>Location</value>
</data>
<data name="LowestTemperature" xml:space="preserve">
<value>Lowest</value>
</data>
<data name="MoreInfoText" xml:space="preserve">
<value>Learn more</value>
<comment>警告内了解详情</comment>
Expand All @@ -260,7 +281,7 @@ Split with "|", support Regex</value>
<data name="OpenMeteoSection.Content" xml:space="preserve">
<value>Open-Meteo</value>
</data>
<data name="PersonalizationSettingExpander.Header" xml:space="preserve">
<data name="PersonalizationSettingsExpander.Header" xml:space="preserve">
<value>Personalization</value>
</data>
<data name="PressureDescription.Text" xml:space="preserve">
Expand Down Expand Up @@ -303,18 +324,27 @@ Please change this option to api.qweather.com if you use a paid KEY.</value>
<data name="RestartInfoBar.Title" xml:space="preserve">
<value>Restart to apply theme</value>
</data>
<data name="SavedLocations" xml:space="preserve">
<value>Saved</value>
</data>
<data name="SearchAutoSuggestBox.PlaceholderText" xml:space="preserve">
<value>Search a place...</value>
</data>
<data name="SelectButton.Content" xml:space="preserve">
<value>Select</value>
</data>
<data name="SelectPageFileButton.Content" xml:space="preserve">
<value>Select File</value>
</data>
<data name="SettingsAppBarButton.Label" xml:space="preserve">
<value>Settings</value>
</data>
<data name="SpeechMenuItem.Text" xml:space="preserve">
<value>Broadcast weather</value>
</data>
<data name="SpeechWeather" xml:space="preserve">
<value>Weather Report</value>
</data>
<data name="Sunrise.Text" xml:space="preserve">
<value>Sunrise</value>
</data>
Expand Down Expand Up @@ -409,6 +439,9 @@ Please change this option to api.qweather.com if you use a paid KEY.</value>
<data name="WeatherTomorrow.Header" xml:space="preserve">
<value>Weather Tomorrow</value>
</data>
<data name="WeeklyForecast.Text" xml:space="preserve">
<value>7-Day forecast</value>
</data>
<data name="WindowBackdropSettingsCard.Description" xml:space="preserve">
<value>Override the Mica backdrop on Windows 11.
Set the background transparency to 100% to preview.</value>
Expand Down
14 changes: 13 additions & 1 deletion FluentWeather.Uwp/Strings/zh-CN/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@
<data name="CloudAmountText.Text" xml:space="preserve">
<value>云量</value>
</data>
<data name="CurrentLocation.Text" xml:space="preserve">
<data name="CurrentLocation" xml:space="preserve">
<value>当前位置</value>
</data>
<data name="CurrentLocationText.Text" xml:space="preserve">
<value>当前位置</value>
</data>
<data name="CustomPagesSettingsCard.Description" xml:space="preserve">
Expand Down Expand Up @@ -231,6 +234,9 @@
<data name="HighestTemperature" xml:space="preserve">
<value>最高温</value>
</data>
<data name="HourlyForecast.Text" xml:space="preserve">
<value>24小时预报</value>
</data>
<data name="HumidityDescription.Text" xml:space="preserve">
<value>相对于空气在当前温度下所能包含的最大水分量,空气中存在的水分量</value>
</data>
Expand Down Expand Up @@ -318,6 +324,9 @@
<data name="RestartInfoBar.Title" xml:space="preserve">
<value>重启以应用主题</value>
</data>
<data name="SavedLocations" xml:space="preserve">
<value>保存的位置</value>
</data>
<data name="SearchAutoSuggestBox.PlaceholderText" xml:space="preserve">
<value>添加城市...</value>
</data>
Expand Down Expand Up @@ -430,6 +439,9 @@
<data name="WeatherTomorrow.Header" xml:space="preserve">
<value>明日天气</value>
</data>
<data name="WeeklyForecast.Text" xml:space="preserve">
<value>7日预报</value>
</data>
<data name="WindowBackdropSettingsCard.Description" xml:space="preserve">
<value>Win11下将覆盖Mica
将背景透明度设置为100%以查看效果</value>
Expand Down

0 comments on commit 6bea5b7

Please sign in to comment.