[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Internatinalization error: i18n was not declared in the scope.
From: anu mittal <anu22mittal () gmail ! com>
Date: 2015-01-27 15:54:49
Message-ID: CALdSTMsbUmpYUR2YuTnD2QJvt5idSu4GedcAFVKZ=_0=Y1p85Q () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
It then says
error: no matching function for call to ‘QMessageBox::warning(int, QString)'
QMessageBox::warning(0,i18n("
Cannot save to the specified file."));
On Tue, Jan 27, 2015 at 8:51 PM, Thomas Lübking <thomas.luebking@gmail.com>
wrote:
> On Dienstag, 27. Januar 2015 16:17:32 CEST, anu mittal wrote:
>
>> Yes have tried both,
>> #include<klocalizedstring.h>
>> and
>> #include<KLocalizedString>
>>
>> both give same error-
>> No such file or directory
>>
>
> Errr... and this in cmake
>
> find_package(KF5I18n)
> target_link_libraries(your_appname_here KF5::I18n)
>
> does *not* cause some error?
>
>
> Cheers,
> Thomas
>
> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
>>> unsubscribe <<
>>>
>>
--
Regards,
Anu.
[Attachment #5 (text/html)]
<div dir="ltr">It then says<br>error: no matching function for call to \
‘QMessageBox::warning(int, QString)'<br> \
QMessageBox::warning(0,i18n("<div dir="ltr">Cannot save to the specified \
file."));</div></div><div class="gmail_extra"><br><div class="gmail_quote">On \
Tue, Jan 27, 2015 at 8:51 PM, Thomas Lübking <span dir="ltr"><<a \
href="mailto:thomas.luebking@gmail.com" \
target="_blank">thomas.luebking@gmail.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span class="">On Dienstag, 27. Januar 2015 16:17:32 CEST, \
anu mittal wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> Yes have tried both,<br>
#include<klocalizedstring.h><br>
and<br>
#include<KLocalizedString><br>
<br>
both give same error-<br>
No such file or directory<br>
</blockquote>
<br></span>
Errr... and this in cmake<br>
<br>
find_package(KF5I18n)<br>
target_link_libraries(your_<u></u>appname_here KF5::I18n)<br>
<br>
does *not* cause some error?<div class="HOEnZb"><div class="h5"><br>
<br>
Cheers,<br>
Thomas<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/<u></u>listinfo/kde-devel#unsub</a> to \
unsubscribe <<<br> </blockquote></blockquote>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div \
class="gmail_signature"><div dir="ltr">Regards,<div>Anu.</div></div></div> </div>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic