[Feature] Translate error shortcut not found (#203), version 1.0.19.6

This commit is contained in:
Markus Hofknecht 2021-10-05 22:23:41 +02:00
parent 8e83943044
commit 693f196225
16 changed files with 111 additions and 11 deletions

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.19.5")]
[assembly: AssemblyFileVersion("1.0.19.5")]
[assembly: AssemblyVersion("1.0.19.6")]
[assembly: AssemblyFileVersion("1.0.19.6")]

View file

@ -511,6 +511,15 @@ namespace SystemTrayMenu.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Problem with Shortcut.
/// </summary>
internal static string Problem_with_Shortcut {
get {
return ResourceManager.GetString("Problem with Shortcut", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Restart.
/// </summary>
@ -682,6 +691,16 @@ namespace SystemTrayMenu.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly..
/// </summary>
internal static string The_item_that_this_shortcut_refers_to_has_been_changed_or_moved__so_this_shortcut_will_no_longer_work_properly_ {
get {
return ResourceManager.GetString("The item that this shortcut refers to has been changed or moved, so this shortcut" +
" will no longer work properly.", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Time until a menu opens.
/// </summary>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>načítání</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Problém se zkratkou</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>Položka, na kterou tato zkratka odkazuje, byla změněna nebo přesunuta, takže tato zkratka již nebude správně fungovat.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>Wird geladen</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Problem mit Shortcut</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>Das Element, auf das sich diese Verknüpfung bezieht, wurde geändert oder verschoben, sodass diese Verknüpfung nicht mehr ordnungsgemäß funktioniert.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>cargando</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Problema con atajo</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>El elemento al que se refiere este acceso directo se ha cambiado o movido, por lo que este acceso directo ya no funcionará correctamente.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>Chargement en cours</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Problème avec raccourci</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>L'élément auquel ce raccourci fait référence a été modifié ou déplacé, ce raccourci ne fonctionnera donc plus correctement.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>Caricamento in corso</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Problema con scorciatoia</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>L'elemento a cui si riferisce questa scorciatoia è stato modificato o spostato, quindi questa scorciatoia non funzionerà più correttamente.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>読み込み中</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>ショートカットの問題</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>このショートカットが参照するアイテムが変更または移動されたため、このショートカットは正しく機能しなくなります。</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>로딩</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>바로 가기 문제</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>이 바로 가기가 참조하는 항목이 변경되거나 이동되었으므로 이 바로 가기가 더 이상 제대로 작동하지 않습니다.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>bezig met laden</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Probleem met snelkoppeling</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>Het item waarnaar deze snelkoppeling verwijst is gewijzigd of verplaatst, waardoor deze snelkoppeling niet meer goed werkt.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>Carregando</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Problema com o atalho</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>O item ao qual este atalho se refere foi alterado ou movido, portanto, este atalho não funcionará mais corretamente.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>loading</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Problem with Shortcut</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>загрузка</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Проблема с ярлыком</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>Элемент, на который ссылается этот ярлык, был изменен или перемещен, поэтому этот ярлык больше не будет работать должным образом.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>Đang tải</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Sự cố với phím tắt</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>Mục mà lối tắt này đề cập đến đã được thay đổi hoặc di chuyển, vì vậy lối tắt này sẽ không còn hoạt động bình thường.</value>
</data>
</root>

View file

@ -339,4 +339,10 @@
<data name="loading" xml:space="preserve">
<value>加载</value>
</data>
<data name="Problem with Shortcut" xml:space="preserve">
<value>Problem with Shortcut</value>
</data>
<data name="The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly." xml:space="preserve">
<value>此快捷方式所指的项目已被更改或移动,因此此快捷方式将不再正常工作。</value>
</data>
</root>

View file

@ -10,6 +10,7 @@ namespace SystemTrayMenu.Utilities
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading;
using System.Windows.Forms;
using Clearcove.Logging;
@ -106,16 +107,18 @@ namespace SystemTrayMenu.Utilities
}
catch (Exception ex)
{
if (ex is FileNotFoundException ||
ex is Win32Exception ||
ex is InvalidOperationException)
Warn($"fileName:'{fileName}' arguments:'{arguments}'", ex);
if (ex.Message == "The system cannot find the file specified.")
{
Warn($"fileName:'{fileName}' arguments:'{arguments}'", ex);
MessageBox.Show(ex.Message);
}
else
{
throw;
new Thread(ShowProblemWithShortcut).Start();
void ShowProblemWithShortcut()
{
_ = MessageBox.Show(
Translator.GetText("The item that this shortcut refers to has been changed or moved, so this shortcut will no longer work properly."),
Translator.GetText("Problem with Shortcut"),
MessageBoxButtons.OK,
MessageBoxIcon.Warning);
}
}
}
}