mirror of https://github.com/OpenVPN/openvpn-gui
Improve "OpenVPN GUI" tooltip handling (#649)
There is no point in localizing "OpenVPN GUI" tray icon tooltip. Remove it from resources and replace with PACKAGE_NAME define. Signed-off-by: Lev Stipakov <lev@openvpn.net>pull/652/head
parent
d2473c4984
commit
72a4bb84bf
|
@ -171,7 +171,6 @@
|
|||
*/
|
||||
|
||||
/* Tray Tooltips */
|
||||
#define IDS_TIP_DEFAULT 1000
|
||||
#define IDS_TIP_CONNECTED 1001
|
||||
#define IDS_TIP_CONNECTING 1003
|
||||
#define IDS_TIP_CONNECTED_SINCE 1004
|
||||
|
|
|
@ -310,7 +310,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Česky - Czech"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\nPřipojeno: "
|
||||
IDS_TIP_CONNECTING "\nPřipojování: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nPřipojeno od: "
|
||||
|
|
|
@ -311,7 +311,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Deutsch – German"
|
||||
|
||||
/* Tray – Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI"
|
||||
IDS_TIP_CONNECTED "\nVerbunden mit: "
|
||||
IDS_TIP_CONNECTING "\nVerbinden mit: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nVerbunden seit: "
|
||||
|
|
|
@ -310,7 +310,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Dansk - Danish"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN Brugerprogram"
|
||||
IDS_TIP_CONNECTED "\nForbundet: "
|
||||
IDS_TIP_CONNECTING "\nEtablere forbindelse: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nForbundet siden: "
|
||||
|
|
|
@ -324,7 +324,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "English"
|
||||
|
||||
/* Tray – Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\nConnected to: "
|
||||
IDS_TIP_CONNECTING "\nConnecting to: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nConnected since: "
|
||||
|
|
|
@ -308,7 +308,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Español - Spanish"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\nConectado a: "
|
||||
IDS_TIP_CONNECTING "\nConectando a: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nConectado desde: "
|
||||
|
|
|
@ -318,7 +318,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "فارسی - Persian(Farsi)"
|
||||
|
||||
/* Tray – Resources */
|
||||
IDS_TIP_DEFAULT "رابط گرافیکی OpenVPN "
|
||||
IDS_TIP_CONNECTED "\nاتصال به: "
|
||||
IDS_TIP_CONNECTING "\nدر حال اتصال به: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nمتصل شده به: "
|
||||
|
|
|
@ -309,7 +309,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Suomi - Finnish"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI"
|
||||
IDS_TIP_CONNECTED "\nYhdistetty kohteeseen: "
|
||||
IDS_TIP_CONNECTING "\nYhdistetään kohteeseen: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nYhteys luotu: "
|
||||
|
|
|
@ -309,7 +309,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Français - French"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\nConnecté à: "
|
||||
IDS_TIP_CONNECTING "\nConnexion à: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nConnecté depuis: "
|
||||
|
|
|
@ -310,7 +310,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Italiano - Italian"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\nConnesso a: "
|
||||
IDS_TIP_CONNECTING "\nConnessione in corso a: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nConnesso da: "
|
||||
|
|
|
@ -310,7 +310,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "日本語 - Japanese"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\n接続済み: "
|
||||
IDS_TIP_CONNECTING "\n接続中: "
|
||||
IDS_TIP_CONNECTED_SINCE "\n接続時間: "
|
||||
|
|
|
@ -310,7 +310,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "한국어 - Korean"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\n연결됨: "
|
||||
IDS_TIP_CONNECTING "\n연결중: "
|
||||
IDS_TIP_CONNECTED_SINCE "\n연결 시간: "
|
||||
|
|
|
@ -310,7 +310,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Nederlands - Dutch"
|
||||
|
||||
/* Tray – Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\nVerbonden met: "
|
||||
IDS_TIP_CONNECTING "\nVerbinden met: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nVerbonden sinds: "
|
||||
|
|
|
@ -309,7 +309,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Norsk - Norwegian"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN Brukergrensesnitt"
|
||||
IDS_TIP_CONNECTED "\nTilkoblet: "
|
||||
IDS_TIP_CONNECTING "\nKobler til: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nTilkoblet siden: "
|
||||
|
|
|
@ -310,7 +310,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Polski - Polish"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\nPołączony z: "
|
||||
IDS_TIP_CONNECTING "\nŁączenie z: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nPołączony od: "
|
||||
|
|
|
@ -308,7 +308,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Português - Portuguese"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\nConectado a: "
|
||||
IDS_TIP_CONNECTING "\nConectando a: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nConectado desde: "
|
||||
|
|
|
@ -311,7 +311,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Русский - Russian"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "Графический интерфейс OpenVPN"
|
||||
IDS_TIP_CONNECTED "\nПодключен к: "
|
||||
IDS_TIP_CONNECTING "\nПодключение к: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nПодключен с: "
|
||||
|
|
|
@ -308,7 +308,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Svenska - Swedish"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI"
|
||||
IDS_TIP_CONNECTED "\nAnsluten till: "
|
||||
IDS_TIP_CONNECTING "\nAnsluter till: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nAnsluten sedan: "
|
||||
|
|
|
@ -310,7 +310,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Türkçe - Turkish"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\nBağlanıldı: "
|
||||
IDS_TIP_CONNECTING "\nBağlanılıyor: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nBağlanıldı: "
|
||||
|
|
|
@ -310,7 +310,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "Українська - Ukrainian"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI "
|
||||
IDS_TIP_CONNECTED "\nЗ'єднано з узлом: "
|
||||
IDS_TIP_CONNECTING "\nЗ'єднання з: "
|
||||
IDS_TIP_CONNECTED_SINCE "\nЗ'єднано з такого часу: "
|
||||
|
|
|
@ -312,7 +312,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "简体中文 - Chinese (Simplified)"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI"
|
||||
IDS_TIP_CONNECTED "\n已连接至: "
|
||||
IDS_TIP_CONNECTING "\n正在连接至: "
|
||||
IDS_TIP_CONNECTED_SINCE "\n连接自: "
|
||||
|
|
|
@ -312,7 +312,6 @@ BEGIN
|
|||
IDS_LANGUAGE_NAME "繁體中文 - Chinese (Traditional)"
|
||||
|
||||
/* Tray - Resources */
|
||||
IDS_TIP_DEFAULT "OpenVPN GUI"
|
||||
IDS_TIP_CONNECTED "\n已連線至: "
|
||||
IDS_TIP_CONNECTING "\n正在連線至: "
|
||||
IDS_TIP_CONNECTED_SINCE "\n連線自: "
|
||||
|
|
4
tray.c
4
tray.c
|
@ -434,7 +434,7 @@ ShowTrayIcon()
|
|||
ni.uFlags = NIF_MESSAGE | NIF_TIP | NIF_ICON;
|
||||
ni.uCallbackMessage = WM_NOTIFYICONTRAY;
|
||||
ni.hIcon = LoadLocalizedSmallIcon(ID_ICO_DISCONNECTED);
|
||||
_tcsncpy(ni.szTip, LoadLocalizedString(IDS_TIP_DEFAULT), _countof(ni.szTip));
|
||||
_tcsncpy(ni.szTip, _T(PACKAGE_NAME), _countof(_T(PACKAGE_NAME)));
|
||||
|
||||
Shell_NotifyIcon(NIM_ADD, &ni);
|
||||
}
|
||||
|
@ -449,7 +449,7 @@ SetTrayIcon(conn_state_t state)
|
|||
UINT icon_id;
|
||||
connection_t *cc = NULL; /* a connected config */
|
||||
|
||||
_tcsncpy(msg, LoadLocalizedString(IDS_TIP_DEFAULT), _countof(ni.szTip));
|
||||
_tcsncpy(msg, _T(PACKAGE_NAME), _countof(_T(PACKAGE_NAME)));
|
||||
_tcsncpy(msg_connected, LoadLocalizedString(IDS_TIP_CONNECTED), _countof(msg_connected));
|
||||
_tcsncpy(msg_connecting, LoadLocalizedString(IDS_TIP_CONNECTING), _countof(msg_connecting));
|
||||
|
||||
|
|
Loading…
Reference in New Issue