QTfrontend/ui/widget/about.cpp
changeset 12223 b532cc42ebd4
parent 11835 6078cf0e4944
child 12224 072ece492a65
--- a/QTfrontend/ui/widget/about.cpp	Mon Apr 10 21:42:53 2017 +0200
+++ b/QTfrontend/ui/widget/about.cpp	Mon Apr 10 22:43:55 2017 +0200
@@ -94,9 +94,11 @@
     /* Library information */
 
     QString libinfo = "<style type=text/css>a:link { color: #FFFF6E; }</style>";
+    libinfo.append(QString(tr("Dependency versions:") + QString("<br>")));
 
 #ifdef __GNUC__
-    libinfo.append(QString("<a href=\"http://gcc.gnu.org\">GCC</a> %1<br>").arg(__VERSION__));
+    libinfo.append(QString(tr("<a href=\"http://gcc.gnu.org\">GCC</a>: %1")).arg(__VERSION__));
+    libinfo.append(QString("<br>"));
 #else
     libinfo.append(QString(tr("Unknown Compiler")).arg(__VERSION__) + QString("<br>"));
 #endif
@@ -105,16 +107,18 @@
     SDL_version sdl_version;
     SDL_GetVersion(&sdl_version);
     sdl_ver = &sdl_version;
-    libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL2</a> version: %1.%2.%3<br>")
+    libinfo.append(QString(tr("<a href=\"http://www.libsdl.org/\">SDL2</a>: %1.%2.%3"))
         .arg(sdl_ver->major)
         .arg(sdl_ver->minor)
         .arg(sdl_ver->patch));
+    libinfo.append(QString("<br>"));
 
     const SDL_version *sdlmixer_ver = Mix_Linked_Version();
-    libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL2_mixer</a> version: %1.%2.%3<br>")
+    libinfo.append(QString(tr("<a href=\"http://www.libsdl.org/\">SDL2_mixer</a>: %1.%2.%3"))
         .arg(sdlmixer_ver->major)
         .arg(sdlmixer_ver->minor)
         .arg(sdlmixer_ver->patch));
+    libinfo.append(QString("<br>"));
 
     // the remaining sdl modules used only in engine, so instead of needlessly linking them here
     // we dynamically call the function returning the linked version
@@ -124,10 +128,11 @@
         sdlnet_ver_get = (SDL_version *(*)(void)) SDL_LoadFunction(sdlnet_handle, "SDLNet_Linked_Version");
         if (sdlnet_ver_get != NULL) {
             SDL_version *sdlnet_ver = sdlnet_ver_get();
-            libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL_net</a> version: %1.%2.%3<br>")
+            libinfo.append(QString(tr("<a href=\"http://www.libsdl.org/\">SDL_net</a>: %1.%2.%3"))
                 .arg(sdlnet_ver->major)
                 .arg(sdlnet_ver->minor)
                 .arg(sdlnet_ver->patch));
+            libinfo.append(QString("<br>"));
         }
         SDL_UnloadObject(sdlnet_handle);
     }
@@ -138,10 +143,11 @@
         sdlimage_ver_get = (SDL_version *(*)(void)) SDL_LoadFunction(sdlimage_handle, "IMG_Linked_Version");
         if (sdlimage_ver_get != NULL) {
             SDL_version *sdlimage_ver = sdlimage_ver_get();
-            libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL_image</a> version: %1.%2.%3<br>")
+            libinfo.append(QString(tr("<a href=\"http://www.libsdl.org/\">SDL_image</a>: %1.%2.%3"))
                 .arg(sdlimage_ver->major)
                 .arg(sdlimage_ver->minor)
                 .arg(sdlimage_ver->patch));
+            libinfo.append(QString("<br>"));
         }
         SDL_UnloadObject(sdlnet_handle);
     }
@@ -152,36 +158,42 @@
         sdlttf_ver_get = (SDL_version *(*)(void)) SDL_LoadFunction(sdlttf_handle, "TTF_Linked_Version");
         if (sdlttf_ver_get != NULL) {
             SDL_version *sdlttf_ver = sdlttf_ver_get();
-            libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL_ttf</a> version: %1.%2.%3<br>")
+            libinfo.append(QString(tr("<a href=\"http://www.libsdl.org/\">SDL_ttf</a>: %1.%2.%3"))
                 .arg(sdlttf_ver->major)
                 .arg(sdlttf_ver->minor)
                 .arg(sdlttf_ver->patch));
+            libinfo.append(QString("<br>"));
         }
         SDL_UnloadObject(sdlnet_handle);
     }
 
 
-    libinfo.append(QString("<a href=\"http://qt-project.org/\">Qt</a> version: %1<br>").arg(QT_VERSION_STR));
+    libinfo.append(QString(tr("<a href=\"http://qt-project.org/\">Qt</a>: %1")).arg(QT_VERSION_STR));
+    libinfo.append(QString("<br>"));
 
 #ifdef VIDEOREC
-    libinfo.append(QString("<a href=\"http://libav.org\">libavcodec</a> version: %1.%2.%3<br>")
+    libinfo.append(QString(tr("<a href=\"http://libav.org\">libavcodec</a>: %1.%2.%3"))
         .arg(LIBAVCODEC_VERSION_MAJOR)
         .arg(LIBAVCODEC_VERSION_MINOR)
         .arg(LIBAVCODEC_VERSION_MICRO));
-    libinfo.append(QString("<a href=\"http://libav.org\">libavformat</a> version: %1.%2.%3<br>")
+    libinfo.append(QString("<br>"));
+    libinfo.append(QString(tr("<a href=\"http://libav.org\">libavformat</a>: %1.%2.%3"))
         .arg(LIBAVFORMAT_VERSION_MAJOR)
         .arg(LIBAVFORMAT_VERSION_MINOR)
         .arg(LIBAVFORMAT_VERSION_MICRO));
-    libinfo.append(QString("<a href=\"http://libav.org\">libavutil</a> version: %1.%2.%3<br>")
+    libinfo.append(QString("<br>"));
+    libinfo.append(QString(tr("<a href=\"http://libav.org\">libavutil</a>: %1.%2.%3"))
         .arg(LIBAVUTIL_VERSION_MAJOR)
         .arg(LIBAVUTIL_VERSION_MINOR)
         .arg(LIBAVUTIL_VERSION_MICRO));
+    libinfo.append(QString("<br>"));
 #endif
 
-    libinfo.append(QString("<a href=\"http://icculus.org/physfs/\">PhysFS</a> version: %1.%2.%3<br>")
+    libinfo.append(QString(tr("<a href=\"http://icculus.org/physfs/\">PhysFS</a>: %1.%2.%3"))
         .arg(PHYSFS_VER_MAJOR)
         .arg(PHYSFS_VER_MINOR)
         .arg(PHYSFS_VER_PATCH));
+    libinfo.append(QString("<br>"));
 
     // TODO: how to add Lua information?