mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Added Turkish translation and some other i18n work.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:system="clr-namespace:System;assembly=mscorlib">
|
||||
|
||||
<!--Command List-->
|
||||
<system:String x:Key="wox_plugin_sys_command">Command</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_desc">Description</system:String>
|
||||
|
||||
@@ -14,6 +15,14 @@
|
||||
<system:String x:Key="wox_plugin_sys_setting">Tweak this app</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_sleep">Put computer to sleep</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_emptyrecyclebin">Empty recycle bin</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_hibernate">Hibernate computer</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_save_all_settings">Save all Wox settings</system:String>
|
||||
|
||||
<!--Dialogs-->
|
||||
<system:String x:Key="wox_plugin_sys_dlgtitle_success">Success</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_dlgtext_all_settings_saved">All Wox settings saved</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_dlgtext_shutdown_computer">Are you sure you want to shut the computer down?</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_dlgtext_restart_computer">Are you sure you want to restart the computer?</system:String>
|
||||
|
||||
<system:String x:Key="wox_plugin_sys_plugin_name">System Commands</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_plugin_description">Provides System related commands. e.g. shutdown, lock, settings etc.</system:String>
|
||||
|
||||
31
Plugins/Wox.Plugin.Sys/Languages/tr.xaml
Normal file
31
Plugins/Wox.Plugin.Sys/Languages/tr.xaml
Normal file
@@ -0,0 +1,31 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:system="clr-namespace:System;assembly=mscorlib">
|
||||
|
||||
<!--Komut Listesi-->
|
||||
<system:String x:Key="wox_plugin_sys_command">Komut</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_desc">Açıklama</system:String>
|
||||
|
||||
<system:String x:Key="wox_plugin_sys_shutdown_computer">Bilgisayarı Kapat</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_restart_computer">Yeniden Başlat</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_log_off">Oturumu Kapat</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_lock">Bilgisayarı Kilitle</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_exit">Wox'u Kapat</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_restart">Wox'u Yeniden Başlat</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_setting">Wox Ayarlarını Aç</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_sleep">Bilgisayarı Uyku Moduna Al</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_emptyrecyclebin">Geri Dönüşüm Kutusunu Boşalt</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_hibernate">Bilgisayarı Askıya Al</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_save_all_settings">Tüm Wox Ayarlarını Kaydet</system:String>
|
||||
|
||||
<!--Diyaloglar-->
|
||||
<system:String x:Key="wox_plugin_sys_dlgtitle_success">Başarılı</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_dlgtext_all_settings_saved">Tüm Wox ayarları kaydedildi.</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_dlgtext_shutdown_computer">Bilgisayarı kapatmak istediğinize emin misiniz?</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_dlgtext_restart_computer">Bilgisayarı yeniden başlatmak istediğinize emin misiniz?</system:String>
|
||||
|
||||
<!--Eklenti Bilgisi-->
|
||||
<system:String x:Key="wox_plugin_sys_plugin_name">Sistem Komutları</system:String>
|
||||
<system:String x:Key="wox_plugin_sys_plugin_description">Sistem ile ilgili komutlara erişim sağlar. ör. shutdown, lock, settings vb.</system:String>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -85,8 +85,9 @@ namespace Wox.Plugin.Sys
|
||||
IcoPath = "Images\\shutdown.png",
|
||||
Action = c =>
|
||||
{
|
||||
var reuslt = MessageBox.Show("Are you sure you want to shut the computer down?",
|
||||
"Shutdown Computer?", MessageBoxButton.YesNo, MessageBoxImage.Warning);
|
||||
var reuslt = MessageBox.Show(context.API.GetTranslation("wox_plugin_sys_dlgtext_shutdown_computer"),
|
||||
context.API.GetTranslation("wox_plugin_sys_shutdown_computer"),
|
||||
MessageBoxButton.YesNo, MessageBoxImage.Warning);
|
||||
if (reuslt == MessageBoxResult.Yes)
|
||||
{
|
||||
Process.Start("shutdown", "/s /t 0");
|
||||
@@ -101,8 +102,9 @@ namespace Wox.Plugin.Sys
|
||||
IcoPath = "Images\\restart.png",
|
||||
Action = c =>
|
||||
{
|
||||
var result = MessageBox.Show("Are you sure you want to restart the computer?",
|
||||
"Restart Computer?", MessageBoxButton.YesNo, MessageBoxImage.Warning);
|
||||
var result = MessageBox.Show(context.API.GetTranslation("wox_plugin_sys_dlgtext_restart_computer"),
|
||||
context.API.GetTranslation("wox_plugin_sys_restart_computer"),
|
||||
MessageBoxButton.YesNo, MessageBoxImage.Warning);
|
||||
if (result == MessageBoxResult.Yes)
|
||||
{
|
||||
Process.Start("shutdown", "/r /t 0");
|
||||
@@ -112,7 +114,7 @@ namespace Wox.Plugin.Sys
|
||||
},
|
||||
new Result
|
||||
{
|
||||
Title = "Log off",
|
||||
Title = "Log Off",
|
||||
SubTitle = context.API.GetTranslation("wox_plugin_sys_log_off"),
|
||||
IcoPath = "Images\\logoff.png",
|
||||
Action = c => ExitWindowsEx(EWX_LOGOFF, 0)
|
||||
@@ -138,7 +140,7 @@ namespace Wox.Plugin.Sys
|
||||
new Result
|
||||
{
|
||||
Title = "Hibernate",
|
||||
SubTitle = "Hibernate computer",
|
||||
SubTitle = context.API.GetTranslation("wox_plugin_sys_hibernate"),
|
||||
IcoPath = "Images\\sleep.png", // Icon change needed
|
||||
Action = c => FormsApplication.SetSuspendState(PowerState.Hibernate, false, false)
|
||||
},
|
||||
@@ -177,12 +179,13 @@ namespace Wox.Plugin.Sys
|
||||
new Result
|
||||
{
|
||||
Title = "Save Settings",
|
||||
SubTitle = "Save all Wox settings",
|
||||
SubTitle = context.API.GetTranslation("wox_plugin_sys_save_all_settings"),
|
||||
IcoPath = "Images\\app.png",
|
||||
Action = c =>
|
||||
{
|
||||
context.API.SaveAppAllSettings();
|
||||
context.API.ShowMsg("Success","All Wox settings saved");
|
||||
context.API.ShowMsg(context.API.GetTranslation("wox_plugin_sys_dlgtitle_success"),
|
||||
context.API.GetTranslation("wox_plugin_sys_dlgtext_all_settings_saved"));
|
||||
return true;
|
||||
}
|
||||
},
|
||||
@@ -207,17 +210,6 @@ namespace Wox.Plugin.Sys
|
||||
context.API.OpenSettingDialog();
|
||||
return true;
|
||||
}
|
||||
},
|
||||
new Result
|
||||
{
|
||||
Title = "Reload Plugin Data",
|
||||
SubTitle = "Reloads plugin data with new content added after Wox started. Plugins need to have this feature already added.",
|
||||
IcoPath = "Images\\app.png",
|
||||
Action = c =>
|
||||
{
|
||||
context.API.ReloadAllPluginData();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
});
|
||||
return results;
|
||||
|
||||
@@ -102,6 +102,11 @@
|
||||
<SubType>Designer</SubType>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\tr.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Page Include="SysSettings.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
|
||||
Reference in New Issue
Block a user