summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/addressbook.cpp
authoreilers <eilers>2002-10-13 11:22:01 (UTC)
committer eilers <eilers>2002-10-13 11:22:01 (UTC)
commit5f9fb52583eb399c79a108b8e79c1a558a730422 (patch) (side-by-side diff)
treed578ce7167053003e1cc5c5e3821bd4ac26fe122 /core/pim/addressbook/addressbook.cpp
parent1cbed80910293516879d9b9308ae36072033f70e (diff)
downloadopie-5f9fb52583eb399c79a108b8e79c1a558a730422.zip
opie-5f9fb52583eb399c79a108b8e79c1a558a730422.tar.gz
opie-5f9fb52583eb399c79a108b8e79c1a558a730422.tar.bz2
First attempt to fix language translation bug. Comboboxes should now
work if translation is broken... Some translations should be reenabled in next fix..
Diffstat (limited to 'core/pim/addressbook/addressbook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/addressbook.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp
index cf2eddf..472b13e 100644
--- a/core/pim/addressbook/addressbook.cpp
+++ b/core/pim/addressbook/addressbook.cpp
@@ -812,10 +812,12 @@ void AddressbookWindow::initFields()
// Call the contact functions that correspond to these old functions...
QStringList xmlFields = OContact::fields();
- QStringList visibleFields = OContact::trfields();
+ QStringList visibleFields = OContact::untrfields();
+ // QStringList trFields = OContact::trfields();
+
xmlFields.remove( "Title" );
- visibleFields.remove( tr("Name Title") );
- visibleFields.remove( tr("Notes") );
+ visibleFields.remove( "Name Title" );
+ visibleFields.remove( "Notes" );
int i, version;
Config cfg( "AddressBook" );
@@ -838,7 +840,7 @@ void AddressbookWindow::initFields()
zn = cfg.readEntry( "Category" + QString::number(i), QString::null );
while ( !zn.isNull() ) {
- if ( zn.contains( tr("Work") ) || zn.contains( tr("Mb") ) ) {
+ if ( zn.contains( "Work" ) || zn.contains( "Mb" ) ) {
slOrderedFields.clear();
break;
}
@@ -885,13 +887,13 @@ void AddressbookWindow::initFields()
orderedFields.remove( Qtopia::FileAs );
orderedFields.remove( Qtopia::Notes );
orderedFields.remove( Qtopia::Gender );
- slOrderedFields.remove( tr("Name Title") );
- slOrderedFields.remove( tr("First Name") );
- slOrderedFields.remove( tr("Last Name") );
- slOrderedFields.remove( tr("File As") );
- slOrderedFields.remove( tr("Default Email") );
- slOrderedFields.remove( tr("Notes") );
- slOrderedFields.remove( tr("Gender") );
+ slOrderedFields.remove( "Name Title" );
+ slOrderedFields.remove( "First Name" );
+ slOrderedFields.remove( "Last Name" );
+ slOrderedFields.remove( "File As" );
+ slOrderedFields.remove( "Default Email" );
+ slOrderedFields.remove( "Notes" );
+ slOrderedFields.remove( "Gender" );
}
}