QTfrontend/ui/widget/about.cpp
changeset 14433 fbe5e49462aa
parent 14431 8e2773ff2986
child 14434 e64b9ea24cd8
equal deleted inserted replaced
14432:9b53b46ede3e 14433:fbe5e49462aa
    30 #include "hwconsts.h"
    30 #include "hwconsts.h"
    31 #include "SDLInteraction.h"
    31 #include "SDLInteraction.h"
    32 #include "SDL.h"
    32 #include "SDL.h"
    33 #include "SDL_version.h"
    33 #include "SDL_version.h"
    34 #include "physfs.h"
    34 #include "physfs.h"
       
    35 #include "creditsmessages.h"
       
    36 #include "HWApplication.h"
    35 
    37 
    36 #ifdef VIDEOREC
    38 #ifdef VIDEOREC
    37 extern "C"
    39 extern "C"
    38 {
    40 {
    39     #include "libavcodec/version.h"
    41     #include "libavcodec/version.h"
   158             else
   160             else
   159             {
   161             {
   160                 QString mailLink = QString("<a href=\"mailto:%1\">%1</a>").arg(mail);
   162                 QString mailLink = QString("<a href=\"mailto:%1\">%1</a>").arg(mail);
   161                 if(task.isEmpty() && mail.isEmpty())
   163                 if(task.isEmpty() && mail.isEmpty())
   162                 {
   164                 {
       
   165                     // Name only
   163                     out = out + "<li>" + name + "</li>\n";
   166                     out = out + "<li>" + name + "</li>\n";
   164                 }
   167                 }
   165                 else if(task.isEmpty())
   168                 else if(task.isEmpty())
   166                 {
   169                 {
       
   170                     // Name and e-mail
       
   171                     //: Part of credits. %1: Contribution name. %2: E-mail address
   167                     out = out + "<li>" + tr("%1 &lt;%2&gt;").arg(name).arg(mailLink) + "</li>\n";
   172                     out = out + "<li>" + tr("%1 &lt;%2&gt;").arg(name).arg(mailLink) + "</li>\n";
   168                 }
   173                 }
   169                 else if(mail.isEmpty())
   174                 else if(mail.isEmpty())
   170                 {
   175                 {
   171                     out = out + "<li>" + tr("%1: %2").arg(task).arg(name) + "</li>\n";
   176                     // Contribution and name
       
   177                     //: Part of credits. %1: Description of contribution. %2: Contributor name
       
   178                     out = out + "<li>" + tr("%1: %2")
       
   179                         .arg(HWApplication::translate("credits", task.toLatin1().constData()))
       
   180                         .arg(name)
       
   181                         + "</li>\n";
   172                 }
   182                 }
   173                 else
   183                 else
   174                 {
   184                 {
   175                     out = out + "<li>" + tr("%1: %2 &lt;%3&gt;").arg(task).arg(name).arg(mailLink) + "</li>\n";
   185                     // Contribution, name and e-mail
       
   186                     //: Part of credits. %1: Description of contribution. %2: Contributor name. %3: E-mail address
       
   187                     out = out + "<li>" + tr("%1: %2 &lt;%3&gt;")
       
   188                         .arg(HWApplication::translate("credits", task.toLatin1().constData()))
       
   189                         .arg(name)
       
   190                         .arg(mailLink)
       
   191                         + "</li>\n";
   176                 }
   192                 }
   177             }
   193             }
   178             lineComplete = false;
   194             lineComplete = false;
   179             column = 0;
   195             column = 0;
   180             cells[0] = "";
   196             cells[0] = "";