svn path=/trunk/KDE/kdebase/apps/; revision=799503
d->buttonCancel->setAutoRaise( true );
d->buttonSave->setIcon( KIcon( "document-save" ) );
d->buttonCancel->setIcon( KIcon( "edit-delete" ) );
d->buttonCancel->setAutoRaise( true );
d->buttonSave->setIcon( KIcon( "document-save" ) );
d->buttonCancel->setIcon( KIcon( "edit-delete" ) );
- d->buttonSave->setText( i18n( "Save" ) );
- d->buttonCancel->setText( i18n( "Cancel" ) );
+ d->buttonSave->setText( i18nc( "@action:button", "Save" ) );
+ d->buttonCancel->setText( i18nc( "@action:button", "Cancel" ) );
QFont fnt( font() );
fnt.setPointSize( fnt.pointSize()-2 );
QFont fnt( font() );
fnt.setPointSize( fnt.pointSize()-2 );
void CommentWidget::Private::update()
{
if ( comment.isEmpty() ) {
void CommentWidget::Private::update()
{
if ( comment.isEmpty() ) {
- label->setText( "<p align=center><a style=\"font-size:small;\" href=\"addComment\">" + i18n( "Add comment..." ) + "</a>" );
+ label->setText( "<p align=center><a style=\"font-size:small;\" href=\"addComment\">" + i18nc( "@label", "Add comment..." ) + "</a>" );
- label->setText( "<p>" + comment + "<p align=center><a style=\"font-size:small;\" href=\"addComment\">" + i18n( "Change comment..." ) + "</a>" );
+ label->setText( "<p>" + comment + "<p align=center><a style=\"font-size:small;\" href=\"addComment\">" + i18nc( "@label", "Change comment..." ) + "</a>" );
if ( m_index < 0 ) {
kDebug();
emit description( this,
if ( m_index < 0 ) {
kDebug();
emit description( this,
- i18n("Changing annotations") );
+ i18nc("@info:progress", "Changing annotations") );
m_index = 0;
m_processTimer.start();
}
m_index = 0;
m_processTimer.start();
}
NewTagDialog::NewTagDialog( QWidget* parent )
: KDialog( parent )
{
NewTagDialog::NewTagDialog( QWidget* parent )
: KDialog( parent )
{
- setCaption( i18n( "Create new Tag" ) );
+ setCaption( i18nc( "@title:window", "Create new Tag" ) );
setButtons( Ok|Cancel );
enableButtonOk( false );
setButtons( Ok|Cancel );
enableButtonOk( false );
Nepomuk::Tag NewTagDialog::createTag( QWidget* parent )
{
NewTagDialog dlg( parent );
Nepomuk::Tag NewTagDialog::createTag( QWidget* parent )
{
NewTagDialog dlg( parent );
- dlg.m_labelTitle->setText( i18n( "Create New Tag" ) );
- dlg.m_labelTitle->setComment( i18n( "with optional icon and description" ) );
+ dlg.m_labelTitle->setText( i18nc( "@title:window", "Create New Tag" ) );
+ dlg.m_labelTitle->setComment( i18nc( "@title:window subtitle to previous message", "with optional icon and description" ) );
dlg.m_labelTitle->setPixmap( KIcon( "nepomuk" ).pixmap( 32, 32 ) );
dlg.m_editTagLabel->setFocus();
dlg.m_labelTitle->setPixmap( KIcon( "nepomuk" ).pixmap( 32, 32 ) );
dlg.m_editTagLabel->setFocus();
<height>149</height>
</rect>
</property>
<height>149</height>
</rect>
</property>
- <property name="windowTitle" >
- <string>Form</string>
- </property>
<layout class="QVBoxLayout" >
<item>
<widget class="KTitleWidget" native="1" name="m_labelTitle" />
<layout class="QVBoxLayout" >
<item>
<widget class="KTitleWidget" native="1" name="m_labelTitle" />
<item>
<widget class="QLabel" name="label_2" >
<property name="text" >
<item>
<widget class="QLabel" name="label_2" >
<property name="text" >
+ <string comment="@label Tag name">Name:</string>
</property>
</widget>
</item>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<item>
<widget class="QLabel" name="label" >
<property name="text" >
- <string>Detailed Description (optional):</string>
+ <string comment="@label">Detailed Description (optional):</string>
</property>
</widget>
</item>
</property>
</widget>
</item>
layout->setMargin( 0 );
d->resourceTagCloud = new TagCloud( this );
layout->addWidget( d->resourceTagCloud );
layout->setMargin( 0 );
d->resourceTagCloud = new TagCloud( this );
layout->addWidget( d->resourceTagCloud );
- QLabel* changeTagsLabel = new QLabel( "<p align=center><a style=\"font-size:small;\" href=\"dummy\">" + i18n( "Change tags..." ) + "</a>", this );
+ QLabel* changeTagsLabel = new QLabel( "<p align=center><a style=\"font-size:small;\" href=\"dummy\">" + i18nc( "@label", "Change tags..." ) + "</a>", this );
connect( changeTagsLabel, SIGNAL( linkActivated( const QString ) ),
this, SLOT( _k_slotShowTaggingPopup() ) );
layout->addWidget( changeTagsLabel );
connect( changeTagsLabel, SIGNAL( linkActivated( const QString ) ),
this, SLOT( _k_slotShowTaggingPopup() ) );
layout->addWidget( changeTagsLabel );
hoverTag( 0 ),
cachedHfwWidth( -1 ),
m_parent( parent ) {
hoverTag( 0 ),
cachedHfwWidth( -1 ),
m_parent( parent ) {
- newTagNode.text = i18n( "New Tag..." );
+ newTagNode.text = i18nc( "@label", "New Tag..." );
// If we have tags d->rebuildCloud() has been called at least once,
// thus, we have proper rects (i.e. needed sizes)
if ( d->nodes.isEmpty() && !d->newTagButtonEnabled ) {
// If we have tags d->rebuildCloud() has been called at least once,
// thus, we have proper rects (i.e. needed sizes)
if ( d->nodes.isEmpty() && !d->newTagButtonEnabled ) {
- return QSize( fontMetrics().width( i18n( "No Tags" ) ), fontMetrics().height() );
+ return QSize( fontMetrics().width( i18nc( "@label Indicator when no tags defined", "No Tags" ) ), fontMetrics().height() );