Группа :: Графические оболочки/KDE
Пакет: kdepim
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: kdepim-3.1.4-view_i18n.patch
diff -uNr kdepim-3.1.4.old/kaddressbook/configureviewdialog.cpp kdepim-3.1.4/kaddressbook/configureviewdialog.cpp
--- kdepim-3.1.4.old/kaddressbook/configureviewdialog.cpp 2003-09-19 19:00:52 +0400
+++ kdepim-3.1.4/kaddressbook/configureviewdialog.cpp 2003-09-19 18:53:06 +0400
@@ -38,7 +38,7 @@
QWidget *parent,
const char *name)
: KDialogBase(KDialogBase::IconList,
- QString( i18n("Modify View: ") ) + viewName,
+ QString( i18n("Modify View: ") ) + QString::fromUtf8(viewName),
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok,
parent, name, true, true)
{
diff -uNr kdepim-3.1.4.old/kaddressbook/viewmanager.cpp kdepim-3.1.4/kaddressbook/viewmanager.cpp
--- kdepim-3.1.4.old/kaddressbook/viewmanager.cpp 2003-02-05 19:54:17 +0300
+++ kdepim-3.1.4/kaddressbook/viewmanager.cpp 2003-09-19 18:29:09 +0400
@@ -142,13 +142,13 @@
// Iterator through all the views
QDictIterator<KAddressBookView> iter(mViewDict);
for ( iter.toFirst(); iter.current(); ++iter ) {
- mConfig->setGroup( iter.currentKey() );
+ mConfig->setGroup( iter.currentKey().utf8().data() );
(*iter)->writeConfig( mConfig );
}
Filter::save( mConfig, QString( "Filter" ), mFilterList );
mConfig->setGroup( "Filter" );
- mConfig->writeEntry( "Active", mCurrentFilter.name() );
+ mConfig->writeEntry( "Active", mCurrentFilter.name().utf8().data() );
// write the view name list
mConfig->setGroup( "Views" );
@@ -287,7 +287,7 @@
ViewWrapper *wrapper = mViewWrapperDict.find(type);
if (wrapper)
view = wrapper->createView(mDocument, mViewWidgetStack,
- name.latin1());
+ name.utf8().data());
if (view)
{
@@ -460,7 +460,7 @@
firstConflict = false;
}
- newName.sprintf("%s <%d>", newName.latin1(), numTries);
+ newName.sprintf("%s <%d>", newName.utf8().data(), numTries);
numTries++;
}
@@ -471,7 +471,7 @@
// launch the view config dialog
KConfig *config = kapp->config();
config->deleteGroup(newName); // Incase they had this view before
- config->setGroup(newName);
+ config->setGroup(newName.utf8().data());
config->writeEntry("Type", type);
// try to set the active view