Bug 58830

Summary: More smart detection of KAbout(?Maybe?)
Product: [Frameworks and Libraries] kdelibs Reporter: Funda Wang <fundawang>
Component: generalAssignee: Stephan Kulow <coolo>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: nicolasg
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandrake RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Funda Wang 2003-05-23 07:51:36 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Mandrake RPMs
OS:          Linux

Every KDE application uses common About Program dialog. There is a tab named Translation inside the dialog, which shows detail of the translators .

Translators can enter their names and emails in PO as follwing:

   #: _translatorinfo.cpp:1
   msgid ""
   "_: NAME OF TRANSLATORS\n"
   "Your names"
   msgstr "Kate, Jackie"

   #: _translatorinfo.cpp:3
   msgid ""
   "_: EMAIL OF TRANSLATORS\n"
   "Your emails"
   msgstr "kate@domain.com, jackie@domain.com"

Current solution is KAbout just split the names and emails by comma, but not remove leading/ending spaces of correspoding items. That is, I'll get " Jakie" and
" jackie@domain.com" as the second translator(with leading space).

Furthermore, if it is possible, KAbout may allow translators write web address within the second msgstr, and do correspoding actions. That is,

   #: _translatorinfo.cpp:3
   msgid ""
   "_: EMAIL OF TRANSLATORS\n"
   "Your emails"
   msgstr "kate@domain.com, http://jackie.domain.com"
Comment 1 Nicolas Goutte 2004-12-31 17:21:22 UTC
CVS commit by goutte: 

Be tolerant with leading and trailing white spaces for translators'
names and email addresses
CCBUG:58830
(Not sure how to allow web addresses instead of email ones, so I cannot
close the bug.)


  M +1 -1      kaboutdata.cpp   1.24


--- kdelibs/kdecore/kaboutdata.cpp  #1.23:1.24
@@ -348,5 +348,5 @@ KAboutData::translators() const
         QString name=*nit;
 
-        personList.append(KAboutTranslator( name, email));
+        personList.append(KAboutTranslator(name.stripWhiteSpace(), email.stripWhiteSpace()));
     }
 


Comment 2 Christoph Feck 2011-08-03 13:47:48 UTC

*** This bug has been marked as a duplicate of bug 201997 ***