author | cniehaus <cniehaus> | 2002-11-22 13:01:03 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-11-22 13:01:03 (UTC) |
commit | 8dafc6100114c30a1735de2e34e97ff30b138daa (patch) (unidiff) | |
tree | de33f270d176a235c36350aa97ef52bf62786ce3 | |
parent | 28f41e51ab748a0525385e64dab1423f366b317c (diff) | |
download | opie-8dafc6100114c30a1735de2e34e97ff30b138daa.zip opie-8dafc6100114c30a1735de2e34e97ff30b138daa.tar.gz opie-8dafc6100114c30a1735de2e34e97ff30b138daa.tar.bz2 |
i18n-bug. With the other way you can't translate in all languages
@@ -800,8 +800,7 @@ void AddressbookWindow::slotNotFound()
{
qWarning("Got notfound signal !");
QMessageBox::information( this, tr( "Not Found" ),
- tr( "Unable to find a contact for this" ) + "\n"
- + tr( "search pattern !" ) );
+ tr( "Unable to find a contact for this \n search pattern!" ) );
}
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index e5addec..c506e98 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp | |||
@@ -771,66 +771,65 @@ void AddressbookWindow::closeEvent( QCloseEvent *e ) | |||
771 | */ | 771 | */ |
772 | 772 | ||
773 | bool AddressbookWindow::save() | 773 | bool AddressbookWindow::save() |
774 | { | 774 | { |
775 | if ( !m_abView->save() ) { | 775 | if ( !m_abView->save() ) { |
776 | if ( QMessageBox::critical( 0, tr( "Out of space" ), | 776 | if ( QMessageBox::critical( 0, tr( "Out of space" ), |
777 | tr("Unable to save information.\n" | 777 | tr("Unable to save information.\n" |
778 | "Free up some space\n" | 778 | "Free up some space\n" |
779 | "and try again.\n" | 779 | "and try again.\n" |
780 | "\nQuit anyway?"), | 780 | "\nQuit anyway?"), |
781 | QMessageBox::Yes|QMessageBox::Escape, | 781 | QMessageBox::Yes|QMessageBox::Escape, |
782 | QMessageBox::No|QMessageBox::Default ) | 782 | QMessageBox::No|QMessageBox::Default ) |
783 | != QMessageBox::No ) | 783 | != QMessageBox::No ) |
784 | return TRUE; | 784 | return TRUE; |
785 | else | 785 | else |
786 | return FALSE; | 786 | return FALSE; |
787 | } | 787 | } |
788 | return TRUE; | 788 | return TRUE; |
789 | } | 789 | } |
790 | 790 | ||
791 | #ifdef __DEBUG_RELEASE | 791 | #ifdef __DEBUG_RELEASE |
792 | void AddressbookWindow::slotSave() | 792 | void AddressbookWindow::slotSave() |
793 | { | 793 | { |
794 | save(); | 794 | save(); |
795 | } | 795 | } |
796 | #endif | 796 | #endif |
797 | 797 | ||
798 | 798 | ||
799 | void AddressbookWindow::slotNotFound() | 799 | void AddressbookWindow::slotNotFound() |
800 | { | 800 | { |
801 | qWarning("Got notfound signal !"); | 801 | qWarning("Got notfound signal !"); |
802 | QMessageBox::information( this, tr( "Not Found" ), | 802 | QMessageBox::information( this, tr( "Not Found" ), |
803 | tr( "Unable to find a contact for this" ) + "\n" | 803 | tr( "Unable to find a contact for this \n search pattern!" ) ); |
804 | + tr( "search pattern !" ) ); | ||
805 | 804 | ||
806 | 805 | ||
807 | } | 806 | } |
808 | void AddressbookWindow::slotWrapAround() | 807 | void AddressbookWindow::slotWrapAround() |
809 | { | 808 | { |
810 | qWarning("Got wrap signal !"); | 809 | qWarning("Got wrap signal !"); |
811 | // if ( doNotifyWrapAround ) | 810 | // if ( doNotifyWrapAround ) |
812 | // QMessageBox::information( this, tr( "End of list" ), | 811 | // QMessageBox::information( this, tr( "End of list" ), |
813 | // tr( "End of list. Wrap around now.. !" ) + "\n" ); | 812 | // tr( "End of list. Wrap around now.. !" ) + "\n" ); |
814 | 813 | ||
815 | } | 814 | } |
816 | 815 | ||
817 | void AddressbookWindow::slotSetCategory( int c ) | 816 | void AddressbookWindow::slotSetCategory( int c ) |
818 | { | 817 | { |
819 | qWarning( "void AddressbookWindow::slotSetCategory( %d ) from %d", c, catMenu->count() ); | 818 | qWarning( "void AddressbookWindow::slotSetCategory( %d ) from %d", c, catMenu->count() ); |
820 | 819 | ||
821 | QString cat, book; | 820 | QString cat, book; |
822 | AbView::Views view = AbView::TableView; | 821 | AbView::Views view = AbView::TableView; |
823 | 822 | ||
824 | if ( c <= 0 ) | 823 | if ( c <= 0 ) |
825 | return; | 824 | return; |
826 | 825 | ||
827 | // Checkmark Book Menu Item Selected | 826 | // Checkmark Book Menu Item Selected |
828 | if ( c < 3 ) | 827 | if ( c < 3 ) |
829 | for ( unsigned int i = 1; i < 3; i++ ) | 828 | for ( unsigned int i = 1; i < 3; i++ ) |
830 | catMenu->setItemChecked( i, c == (int)i ); | 829 | catMenu->setItemChecked( i, c == (int)i ); |
831 | // Checkmark Category Menu Item Selected | 830 | // Checkmark Category Menu Item Selected |
832 | else | 831 | else |
833 | for ( unsigned int i = 3; i < catMenu->count(); i++ ) | 832 | for ( unsigned int i = 3; i < catMenu->count(); i++ ) |
834 | catMenu->setItemChecked( i, c == (int)i ); | 833 | catMenu->setItemChecked( i, c == (int)i ); |
835 | 834 | ||
836 | for ( unsigned int i = 1; i < catMenu->count(); i++ ) { | 835 | for ( unsigned int i = 1; i < catMenu->count(); i++ ) { |