[BROWSEUI] Use a resource string instead of a hardcoded one for the "Back" button...
authorRobert Naumann <gonzomdx@gmail.com>
Sun, 8 Nov 2015 14:30:25 +0000 (14:30 +0000)
committerRobert Naumann <gonzomdx@gmail.com>
Sun, 8 Nov 2015 14:30:25 +0000 (14:30 +0000)
Changes by me:
-Add the same for Russian
-Add German translation

svn path=/trunk/; revision=69849

14 files changed:
reactos/dll/win32/browseui/lang/bg-BG.rc
reactos/dll/win32/browseui/lang/de-DE.rc
reactos/dll/win32/browseui/lang/en-US.rc
reactos/dll/win32/browseui/lang/es-ES.rc
reactos/dll/win32/browseui/lang/he-IL.rc
reactos/dll/win32/browseui/lang/it-IT.rc
reactos/dll/win32/browseui/lang/pl-PL.rc
reactos/dll/win32/browseui/lang/ro-RO.rc
reactos/dll/win32/browseui/lang/ru-RU.rc
reactos/dll/win32/browseui/lang/sq-AL.rc
reactos/dll/win32/browseui/lang/tr-TR.rc
reactos/dll/win32/browseui/lang/uk-UA.rc
reactos/dll/win32/browseui/lang/zh-CN.rc
reactos/dll/win32/browseui/travellog.cpp

index a8bcb3f..9886938 100644 (file)
@@ -264,7 +264,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Назад"
+    IDS_BACK "Back to %s\0"
     IDS_FORWARD "Напред"
 END
 
index c822af7..2d35c6e 100644 (file)
@@ -282,7 +282,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Zurück"
+    IDS_BACK "Zurück zu %s\0"
     IDS_FORWARD "Vorwärts"
 END
 
index 4029251..e7db936 100644 (file)
@@ -282,7 +282,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Back"
+    IDS_BACK "Back to %s\0"
     IDS_FORWARD "Forward"
 END
 
index 7d32c21..de46897 100644 (file)
@@ -265,7 +265,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Atrás"
+    IDS_BACK "Volver a %s\0"
     IDS_FORWARD "Adelante"
 END
 
index 4f0ed5b..60cd9e5 100644 (file)
@@ -266,7 +266,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Back"
+    IDS_BACK "Back to %s\0"
     IDS_FORWARD "Forward"
 END
 
index 916fdca..fba05b9 100644 (file)
@@ -264,7 +264,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Indietro"
+    IDS_BACK "Back to %s\0"
     IDS_FORWARD "Avanti"
 END
 
index 67475f4..8507564 100644 (file)
@@ -272,7 +272,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Wstecz"
+    IDS_BACK "Back to %s\0"
     IDS_FORWARD "Dalej"
 END
 
index a9bf963..31a57ce 100644 (file)
@@ -266,7 +266,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Înapoi"
+    IDS_BACK "Înapoi la %s\0"
     IDS_FORWARD "Înainte"
 END
 
index d03620d..f2980cd 100644 (file)
@@ -266,7 +266,7 @@ END
 
 STRINGTABLE
 BEGIN
-  IDS_BACK "Назад"
+  IDS_BACK "Back to %s\0"
   IDS_FORWARD "Вперед"
 END
 
index 53b316c..5c646ae 100644 (file)
@@ -283,7 +283,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Mrapa"
+    IDS_BACK "Back to %s\0"
     IDS_FORWARD "Perpara"
 END
 
index c01995f..f3c27b5 100644 (file)
@@ -264,7 +264,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Geri"
+    IDS_BACK "Back to %s\0"
     IDS_FORWARD "İleri"
 END
 
index e2d540c..a5673ef 100644 (file)
@@ -266,7 +266,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "Назад"
+    IDS_BACK "Back to %s\0"
     IDS_FORWARD "Вперед"
 END
 
index 1d70561..04e4884 100644 (file)
@@ -284,7 +284,7 @@ END
 
 STRINGTABLE
 BEGIN
-    IDS_BACK "后退"
+    IDS_BACK "Back to %s\0"
     IDS_FORWARD "前进"
 END
 
index 45bbaf2..a21e4c2 100644 (file)
@@ -428,6 +428,7 @@ HRESULT STDMETHODCALLTYPE CTravelLog::GetToolTipText(IUnknown *punk, int iOffset
     CTravelEntry                            *destinationEntry;
     wchar_t                                 tempString[MAX_PATH];
     wchar_t                                 templateString[200];
+    wchar_t                                 *resourceString;
     HRESULT                                 hResult;
 
     if (pwzText == NULL)
@@ -442,7 +443,11 @@ HRESULT STDMETHODCALLTYPE CTravelLog::GetToolTipText(IUnknown *punk, int iOffset
         return hResult;
     if (iOffset < 0)
     {
-        wcscpy(templateString, L"Back to %s");
+        hResult = LoadStringW(_AtlBaseModule.GetResourceInstance(),
+                            IDS_BACK, (wchar_t*)&resourceString, 0);
+        if (FAILED_UNEXPECTEDLY(hResult))
+            return hResult;
+        wcscpy(templateString, resourceString);
     }
     else
     {