[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdesdk/kbabel/commonui
From: Nicolas Goutte <nicolasg () snafu ! de>
Date: 2005-11-04 20:41:07
Message-ID: 1131136867.842148.30719.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 477717 by goutte:
Add the UI part of the option for running msgfmt before processing a file
(This is a new message, as forewarned on kde-i18n-doc. The new code
(beyond that simple UI change) will be needed for be able to translate KDE4
(which will use Gettext contexts) with today's stable Gettext versions.)
CCMAIL:kde-i18n-doc@kde.org
M +19 -0 projectprefwidgets.cpp
M +1 -0 projectprefwidgets.h
--- branches/KDE/3.5/kdesdk/kbabel/commonui/projectprefwidgets.cpp #477716:477717
@@ -929,6 +929,7 @@
_killButton = new QCheckBox( i18n("&Kill processes on exit") , box, \
"kcfg_KillCmdOnExit" );
+ // ### FIXME: s/It's/It is/ (especially that it is folowed by "not")
QWhatsThis::add( _killButton , i18n("<qt><p><b>Kill processes on exit</b></p>\n"
"<p>If you check this, KBabel tries to kill the processes, that have not exited \
already when KBabel exits,\n" "by sending a kill signal to them.</p>\n"
@@ -941,7 +942,24 @@
"<p>If you check this, KBabel will create an index for each PO file to speed up the \
find/replace functions.</p>\n" "<p>NOTE: This will slow down updating the file \
information considerably.</p></qt>") );
+ m_msgfmtButton = new QCheckBox( i18n("Run &msgfmt before processing a file"), \
box ); +
+ // ### TEMPORARY
+ m_msgfmtButton->setChecked( true );
+ m_msgfmtButton->setEnabled( false );
+ QWhatsThis::add( m_msgfmtButton, i18n("<qt><p><b>Run msgfmt before processing a \
file</b></p>" + "<p>If you check this, KBabel will run Gettext's "
+ "msgfmt tool before processing a file.</p>"
+ "<p>It is recommended to check this setting, even if it makes the processing \
slower. " + "Checking this setting is the default.</p>"
+ "<p>Unchecking is useful for slow computers and when you want "
+ "to translate PO files that are not supported by the current version "
+ "of the Gettext tools that are on your system. "
+ "The drawback of unchecking is that barely not any syntax checking is done \
by the processing code, " + "so that invalid PO files could be shown as good \
ones, " + "even if Gettext tools would reject such files.</p></qt>") );
+
layout->addStretch(1);
page->setMinimumSize(sizeHintForWidget(page));
@@ -959,6 +977,7 @@
_killButton->setChecked(settings.killCmdOnExit );
_indexButton->setChecked(settings.indexWords );
+ //m_msgfmtButton->setChecked( settings.msgfmtButton );
}
DirCommandsPreferences::DirCommandsPreferences(QWidget* parent)
--- branches/KDE/3.5/kdesdk/kbabel/commonui/projectprefwidgets.h #477716:477717
@@ -199,6 +199,7 @@
QCheckBox* _killButton;
QCheckBox* _indexButton;
+ QCheckBox* m_msgfmtButton;
};
class DirCommandsPreferences : public QWidget
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic