Bug 235589

Summary: Build error String_literal_as_second_argument_to_i18n, databaseserver.cpp error
Product: [Applications] digikam Reporter: Mikkel Christensen <mbc>
Component: Usability-i18nAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, Hamsi2k
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 1.3.0
Sentry Crash Report:
Attachments: Patch for databaseserver.cpp

Description Mikkel Christensen 2010-04-28 00:44:25 UTC
Version:           SVN revision 1119860 (using KDE 4.3.2)
Compiler:          gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1 
OS:                Linux
Installed from:    Ubuntu Packages

I get this build error and I was therefore unable to build:

String_literal_as_second_argument_to_i18n___Perhaps_you_need_i18nc_or_i18np’ is not a member of ‘I18nTypeCheck<char [16], 16>

I have fixed the offending calls and I am attaching a patch.
Comment 1 Mikkel Christensen 2010-04-28 00:47:23 UTC
Created attachment 43074 [details]
Patch for databaseserver.cpp

Fixed multi-argument strings that cause build failure.
Comment 2 Quallenauge 2010-04-28 12:06:06 UTC
Can you please try SVN rev r1119933?

Christoph had applied some fixes,
which corrects some i18n calls.
Comment 3 Mikkel Christensen 2010-04-28 12:53:19 UTC
I have inspected the changes in revision 1119933, and they are exactly the same as what I proposed in my patch. I have not tried to build revision 1119933 yet, but it will work, because it is not different from my own solution.

Best regards,
Mikkel