diff -r a6cd48b8ef61 -r b532cc42ebd4 QTfrontend/ui/widget/about.cpp --- 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 = ""; + libinfo.append(QString(tr("Dependency versions:") + QString("
"))); #ifdef __GNUC__ - libinfo.append(QString("GCC %1
").arg(__VERSION__)); + libinfo.append(QString(tr("GCC: %1")).arg(__VERSION__)); + libinfo.append(QString("
")); #else libinfo.append(QString(tr("Unknown Compiler")).arg(__VERSION__) + QString("
")); #endif @@ -105,16 +107,18 @@ SDL_version sdl_version; SDL_GetVersion(&sdl_version); sdl_ver = &sdl_version; - libinfo.append(QString("SDL2 version: %1.%2.%3
") + libinfo.append(QString(tr("SDL2: %1.%2.%3")) .arg(sdl_ver->major) .arg(sdl_ver->minor) .arg(sdl_ver->patch)); + libinfo.append(QString("
")); const SDL_version *sdlmixer_ver = Mix_Linked_Version(); - libinfo.append(QString("SDL2_mixer version: %1.%2.%3
") + libinfo.append(QString(tr("SDL2_mixer: %1.%2.%3")) .arg(sdlmixer_ver->major) .arg(sdlmixer_ver->minor) .arg(sdlmixer_ver->patch)); + libinfo.append(QString("
")); // 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("SDL_net version: %1.%2.%3
") + libinfo.append(QString(tr("SDL_net: %1.%2.%3")) .arg(sdlnet_ver->major) .arg(sdlnet_ver->minor) .arg(sdlnet_ver->patch)); + libinfo.append(QString("
")); } 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("SDL_image version: %1.%2.%3
") + libinfo.append(QString(tr("SDL_image: %1.%2.%3")) .arg(sdlimage_ver->major) .arg(sdlimage_ver->minor) .arg(sdlimage_ver->patch)); + libinfo.append(QString("
")); } 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("SDL_ttf version: %1.%2.%3
") + libinfo.append(QString(tr("SDL_ttf: %1.%2.%3")) .arg(sdlttf_ver->major) .arg(sdlttf_ver->minor) .arg(sdlttf_ver->patch)); + libinfo.append(QString("
")); } SDL_UnloadObject(sdlnet_handle); } - libinfo.append(QString("Qt version: %1
").arg(QT_VERSION_STR)); + libinfo.append(QString(tr("Qt: %1")).arg(QT_VERSION_STR)); + libinfo.append(QString("
")); #ifdef VIDEOREC - libinfo.append(QString("libavcodec version: %1.%2.%3
") + libinfo.append(QString(tr("libavcodec: %1.%2.%3")) .arg(LIBAVCODEC_VERSION_MAJOR) .arg(LIBAVCODEC_VERSION_MINOR) .arg(LIBAVCODEC_VERSION_MICRO)); - libinfo.append(QString("libavformat version: %1.%2.%3
") + libinfo.append(QString("
")); + libinfo.append(QString(tr("libavformat: %1.%2.%3")) .arg(LIBAVFORMAT_VERSION_MAJOR) .arg(LIBAVFORMAT_VERSION_MINOR) .arg(LIBAVFORMAT_VERSION_MICRO)); - libinfo.append(QString("libavutil version: %1.%2.%3
") + libinfo.append(QString("
")); + libinfo.append(QString(tr("libavutil: %1.%2.%3")) .arg(LIBAVUTIL_VERSION_MAJOR) .arg(LIBAVUTIL_VERSION_MINOR) .arg(LIBAVUTIL_VERSION_MICRO)); + libinfo.append(QString("
")); #endif - libinfo.append(QString("PhysFS version: %1.%2.%3
") + libinfo.append(QString(tr("PhysFS: %1.%2.%3")) .arg(PHYSFS_VER_MAJOR) .arg(PHYSFS_VER_MINOR) .arg(PHYSFS_VER_PATCH)); + libinfo.append(QString("
")); // TODO: how to add Lua information?