[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:51:53
Message-ID: CALdSTMuNsWyK_jmOT3O=F7j8DEFHSy90yyFQwJruQc5CpjkCwQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Okay,I got it. :)
Thanks for the help.

On Tue, Jan 27, 2015 at 9:16 PM, Thomas Lübking <thomas.luebking@gmail.com>
wrote:

> On Dienstag, 27. Januar 2015 16:42:49 CEST, anu mittal wrote:
>
>> It then says
>> error: no matching function for call to ‘QMessageBox::warning(int,
>> QString)'
>>          QMessageBox::warning(0,i18n("
>> Cannot save to the specified file."));
>>
>
> Not during compilation, but on configuration.
> If you add those lines to CMakeLists.txt, the lib and headers are searched
> on disk and if not found, the configuration step exits with an error, what
> basically means that the KLocalizedString frameworks module is simply not
> installed in the target (include+link) path.
>
> As a result the header inclusion
> #include <klocalizedstring.h>
> fails and ultimately the function is of course not found.
>
>
> Cheers,
> Thomas
>
>  Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
>>> unsubscribe <<
>>>
>>


-- 
Regards,
Anu.

[Attachment #5 (text/html)]

<div dir="ltr">Okay,I got it. :)<br>Thanks for the help.</div><div \
class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 27, 2015 at 9:16 PM, \
Thomas Lübking <span dir="ltr">&lt;<a href="mailto:thomas.luebking@gmail.com" \
target="_blank">thomas.luebking@gmail.com</a>&gt;</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:42:49 CEST, \
anu mittal wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> It then says<br>
error: no matching function for call to ‘QMessageBox::warning(int, QString)'<br>
              QMessageBox::warning(0,i18n(&quot;<br>
Cannot save to the specified file.&quot;));<br>
</blockquote>
<br></span>
Not during compilation, but on configuration.<br>
If you add those lines to CMakeLists.txt, the lib and headers are searched on disk \
and if not found, the configuration step exits with an error, what basically means \
that the KLocalizedString frameworks module is simply not installed in the target \
(include+link) path.<br> <br>
As a result the header inclusion<br>
#include &lt;klocalizedstring.h&gt;<br>
fails and ultimately the function is of course not found.<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 &lt;&lt;<br> </blockquote></blockquote>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <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