mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
[CmdPal] Added fallback for time and date (#38918)
* Added fallback for time and date Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com> * only support week/now/time/year query Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com> * Add week option Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com> * Changed setting for time date fallback. Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com> * update globalization string Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com> * use week of year. Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com> * update Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com> --------- Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
This commit is contained in:
@@ -213,6 +213,15 @@ namespace Microsoft.CmdPal.Ext.TimeDate {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Open Time Data Command.
|
||||
/// </summary>
|
||||
public static string Microsoft_plugin_timedate_fallback_display_title {
|
||||
get {
|
||||
return ResourceManager.GetString("Microsoft_plugin_timedate_fallback_display_title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Date and time in filename-compatible format.
|
||||
/// </summary>
|
||||
@@ -609,6 +618,15 @@ namespace Microsoft.CmdPal.Ext.TimeDate {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Current Week; Calendar week; Week of the year; Week.
|
||||
/// </summary>
|
||||
public static string Microsoft_plugin_timedate_SearchTagWeek {
|
||||
get {
|
||||
return ResourceManager.GetString("Microsoft_plugin_timedate_SearchTagWeek", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Second.
|
||||
/// </summary>
|
||||
@@ -663,6 +681,24 @@ namespace Microsoft.CmdPal.Ext.TimeDate {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Enable fallback items for TimeDate (week, year, now, time, date).
|
||||
/// </summary>
|
||||
public static string Microsoft_plugin_timedate_SettingEnableFallbackItems {
|
||||
get {
|
||||
return ResourceManager.GetString("Microsoft_plugin_timedate_SettingEnableFallbackItems", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Show time and date results when typing keywords like "week", "year", "now", "time", or "date".
|
||||
/// </summary>
|
||||
public static string Microsoft_plugin_timedate_SettingEnableFallbackItems_Description {
|
||||
get {
|
||||
return ResourceManager.GetString("Microsoft_plugin_timedate_SettingEnableFallbackItems_Description", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to First day of the week.
|
||||
/// </summary>
|
||||
@@ -780,33 +816,6 @@ namespace Microsoft.CmdPal.Ext.TimeDate {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Hide 'Invalid number input' error message on global queries.
|
||||
/// </summary>
|
||||
public static string Microsoft_plugin_timedate_SettingHideNumberMessageOnGlobalQuery {
|
||||
get {
|
||||
return ResourceManager.GetString("Microsoft_plugin_timedate_SettingHideNumberMessageOnGlobalQuery", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Show only 'Time', 'Date' and 'Now' result for system time on global queries.
|
||||
/// </summary>
|
||||
public static string Microsoft_plugin_timedate_SettingOnlyDateTimeNowGlobal {
|
||||
get {
|
||||
return ResourceManager.GetString("Microsoft_plugin_timedate_SettingOnlyDateTimeNowGlobal", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Regardless of this setting, for global queries the first word of the query has to be a complete match..
|
||||
/// </summary>
|
||||
public static string Microsoft_plugin_timedate_SettingOnlyDateTimeNowGlobal_Description {
|
||||
get {
|
||||
return ResourceManager.GetString("Microsoft_plugin_timedate_SettingOnlyDateTimeNowGlobal_Description", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Show time with seconds.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user