Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread anu mittal
Yes QMessageBox is ported from KMessageBox, i got is solved :) One can also refer http://qt-project.org/doc/qt-4.8/qmessagebox.html for more details. Thanks. On Tue, Jan 27, 2015 at 9:33 PM, Thomas Lübking wrote: > On Dienstag, 27. Januar 2015 16:53:01 CEST, Christoph Feck wrote: > >> On Tuesday

Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread Thomas Lübking
On Dienstag, 27. Januar 2015 16:53:01 CEST, Christoph Feck wrote: On Tuesday 27 January 2015 16:46:13 Thomas Lübking 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::warni

Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread Christoph Feck
On Tuesday 27 January 2015 16:46:13 Thomas Lübking 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

Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread anu mittal
Okay,I got it. :) Thanks for the help. On Tue, Jan 27, 2015 at 9:16 PM, Thomas Lübking 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,i1

Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread Thomas Lübking
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 li

Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread anu mittal
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 wrote: > On Dienstag, 27. Januar 2015 16:17:32 CEST, anu mittal wrote: > >> Yes

Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread Thomas Lübking
On Dienstag, 27. Januar 2015 16:17:32 CEST, anu mittal wrote: Yes have tried both, #include and #include 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, Th

Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread anu mittal
Yes have tried both, #include and #include both give same error- No such file or directory On Tue, Jan 27, 2015 at 8:43 PM, Thomas Lübking wrote: > On Dienstag, 27. Januar 2015 16:02:25 CEST, anu mittal wrote: > > Still the same error is shown- >> i18n’ was not declared in this scope >>

Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread Thomas Lübking
On Dienstag, 27. Januar 2015 16:02:25 CEST, anu mittal wrote: Still the same error is shown- i18n’ was not declared in this scope QMessageBox::warning(0,i18n("Problem while opening the file") where else i might be going wrong? Do you #include ? Cheers, Thomas Visit http://mail.kde

Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread anu mittal
Hi, I tried the same, also mentionded in http://api.kde.org/frameworks-api/frameworks5-apidocs/ki18n/html/index.html Still the same error is shown- i18n’ was not declared in this scope QMessageBox::warning(0,i18n("Problem while opening the file") where else i might be going wrong? On Tue,

Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread anu mittal
There is an error: ‘i18n’ was not declared in this scope QMessageBox::warning(0,i18n("Problem while opening the file") then according to localization notes i included KLocalizedString in the class and also have KF5::KDELibs4Support set, then also got the following error: KLocalizedString

Re: Internatinalization error: i18n was not declared in the scope.

2015-01-27 Thread Luca Beltrame
anu mittal wrote: > class and also have KF5::KDELibs4Support set, then also got the following > error: You will need to use and link against KF5::I18n, IIRC. -- Luca Beltrame - KDE Forums team KDE Science supporter GPG key ID: 6E1A4E79 >> Visit http://mail.kde.org/mailman/listinfo/kde-deve