Commit 9dc2c266 authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻
Browse files

GUI l10n fixes

* Add @title:window helpers
* Capitalization and punctuation
parent 122e17c9
Pipeline #89465 passed with stage
in 5 minutes and 37 seconds
......@@ -256,7 +256,7 @@ bool MarblePart::openFile()
filters.prepend( allFileTypes );
const QString filter = filters.join( ";;" );
QStringList fileNames = QFileDialog::getOpenFileNames( widget(), i18n("Open File"),
QStringList fileNames = QFileDialog::getOpenFileNames( widget(), i18nc("@title:window", "Open File"),
m_lastFileOpenPath, filter );
if ( !fileNames.isEmpty() ) {
......@@ -273,7 +273,7 @@ bool MarblePart::openFile()
void MarblePart::exportMapScreenShot()
{
QString fileName = QFileDialog::getSaveFileName( widget(), i18n("Export Map"), QDir::homePath(),
QString fileName = QFileDialog::getSaveFileName( widget(), i18nc("@title:window", "Export Map"), QDir::homePath(),
i18n( "Images *.jpg *.png" ) );
if ( !fileName.isEmpty() ) {
......@@ -878,7 +878,7 @@ void MarblePart::setupActions()
m_addBookmarkAction = new QAction( this );
actionCollection()->addAction( "add_bookmark", m_addBookmarkAction );
m_addBookmarkAction->setText( i18nc( "Add Bookmark", "&Add Bookmark" ) );
m_addBookmarkAction->setText( i18nc( "Add Bookmark", "Add &Bookmark..." ) );
m_addBookmarkAction->setIcon(QIcon(QStringLiteral(":/icons/bookmark-new.png")));
actionCollection()->setDefaultShortcut( m_addBookmarkAction, Qt::CTRL | Qt::Key_B );
connect( m_addBookmarkAction, SIGNAL(triggered()),
......@@ -902,7 +902,7 @@ void MarblePart::setupActions()
m_manageBookmarksAction = new QAction( this );
actionCollection()->addAction( "manage_bookmarks", m_manageBookmarksAction );
m_manageBookmarksAction->setText( i18nc( "Manage Bookmarks", "&Manage Bookmarks" ) );
m_manageBookmarksAction->setText( i18nc( "Manage Bookmarks", "&Manage Bookmarks..." ) );
m_manageBookmarksAction->setIcon(QIcon(QStringLiteral(":/icons/bookmarks-organize.png")));
connect( m_manageBookmarksAction, SIGNAL(triggered()),
this, SLOT(openManageBookmarksDialog()) );
......@@ -914,7 +914,7 @@ void MarblePart::setupActions()
m_externalMapEditorAction = new QAction( this );
actionCollection()->addAction( "external_editor", m_externalMapEditorAction );
m_externalMapEditorAction->setText( i18nc( "Edit the map in an external application", "&Edit Map" ) );
m_externalMapEditorAction->setText( i18nc( "Edit the map in an external application", "&Edit Map..." ) );
m_externalMapEditorAction->setIcon(QIcon(QStringLiteral(":/icons/edit-map.png")));
actionCollection()->setDefaultShortcut( m_externalMapEditorAction, Qt::CTRL | Qt::Key_E );
connect( m_externalMapEditorAction, SIGNAL(triggered()),
......@@ -930,7 +930,7 @@ void MarblePart::setupActions()
connect( m_recordMovieAction, SIGNAL(triggered()),
this, SLOT(showMovieCaptureDialog()) );
m_stopRecordingAction = new QAction( i18n( "&Stop recording" ), this );
m_stopRecordingAction = new QAction( i18n( "&Stop Recording" ), this );
actionCollection()->addAction( "stop_recording" , m_stopRecordingAction );
m_stopRecordingAction->setStatusTip( i18n( "Stop recording a movie of the globe" ) );
actionCollection()->setDefaultShortcut( m_recordMovieAction, Qt::CTRL | Qt::SHIFT | Qt::Key_S );
......
......@@ -299,7 +299,7 @@ void MainWindow::createActions()
m_copyMapAction->setStatusTip(tr("Copy a screenshot of the map"));
connect(m_copyMapAction, SIGNAL(triggered()), this, SLOT(copyMap()));
m_osmEditAction = new QAction(QIcon(QStringLiteral(":/icons/edit-map.png")), tr("&Edit Map"), this );
m_osmEditAction = new QAction(QIcon(QStringLiteral(":/icons/edit-map.png")), tr("&Edit Map..."), this );
m_osmEditAction->setShortcut(tr( "Ctrl+E" ) );
m_osmEditAction->setStatusTip(tr( "Edit the current map region in an external editor" ) );
updateMapEditButtonVisibility( m_controlView->marbleWidget()->mapThemeId() );
......@@ -389,7 +389,7 @@ void MainWindow::createActions()
connect(m_aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
//Bookmark Actions
m_addBookmarkAction = new QAction(QIcon(QStringLiteral(":/icons/bookmark-new.png")), tr("&Add Bookmark"), this);
m_addBookmarkAction = new QAction(QIcon(QStringLiteral(":/icons/bookmark-new.png")), tr("Add &Bookmark..."), this);
m_addBookmarkAction->setShortcut(tr("Ctrl+B"));
m_addBookmarkAction->setStatusTip(tr("Add Bookmark"));
connect( m_addBookmarkAction, SIGNAL(triggered()), this, SLOT(openEditBookmarkDialog()) );
......@@ -403,7 +403,7 @@ void MainWindow::createActions()
m_toggleBookmarkDisplayAction->setCheckable( true );
connect( m_toggleBookmarkDisplayAction, SIGNAL(triggered(bool)), this, SLOT(showBookmarks(bool)) );
m_manageBookmarksAction = new QAction(QIcon(QStringLiteral(":/icons/bookmarks-organize.png")), tr("&Manage Bookmarks"), this);
m_manageBookmarksAction = new QAction(QIcon(QStringLiteral(":/icons/bookmarks-organize.png")), tr("&Manage Bookmarks..."), this);
m_manageBookmarksAction->setStatusTip( tr( "Manage Bookmarks" ) );
connect( m_manageBookmarksAction, SIGNAL(triggered()), this, SLOT(manageBookmarks()) );
......
......@@ -71,14 +71,14 @@
<bool>true</bool>
</property>
<property name="text">
<string>New</string>
<string>New...</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="renameFolderButton">
<property name="text">
<string>Rename</string>
<string>Rename...</string>
</property>
</widget>
</item>
......
......@@ -22,7 +22,7 @@
<item row="0" column="0">
<widget class="QLabel" name="description_lbl">
<property name="text">
<string>&amp;Description</string>
<string>&amp;Description:</string>
</property>
<property name="buddy">
<cstring>m_description</cstring>
......@@ -54,7 +54,7 @@ p, li { white-space: pre-wrap; }
<item row="1" column="0">
<widget class="QLabel" name="folder_lbl">
<property name="text">
<string>&amp;Folder</string>
<string>&amp;Folder:</string>
</property>
<property name="buddy">
<cstring>m_folders</cstring>
......@@ -76,7 +76,7 @@ p, li { white-space: pre-wrap; }
<item>
<widget class="QPushButton" name="m_newFolderButton">
<property name="text">
<string>&amp;Add Folder</string>
<string>&amp;Add Folder...</string>
</property>
</widget>
</item>
......
......@@ -73,7 +73,7 @@ p, li { white-space: pre-wrap; }
<string>Use kinetic spinning when dragging the map</string>
</property>
<property name="text">
<string>&amp;Inertial Globe Rotation</string>
<string>&amp;Inertial globe rotation</string>
</property>
</widget>
</item>
......@@ -181,7 +181,7 @@ p, li { white-space: pre-wrap; }
</size>
</property>
<property name="text">
<string>&amp;External Editor:</string>
<string>&amp;External editor:</string>
</property>
<property name="buddy">
<cstring>kcfg_onStartup</cstring>
......
......@@ -19,7 +19,7 @@
<item>
<widget class="QLabel" name="m_namelbl">
<property name="text">
<string>&amp;Folder Name</string>
<string>&amp;Folder name:</string>
</property>
<property name="buddy">
<cstring>m_name</cstring>
......
......@@ -78,7 +78,7 @@
<item row="1" column="0">
<widget class="QLabel" name="iconLinkLabel">
<property name="text">
<string>Icon Link:</string>
<string>Icon link:</string>
</property>
</widget>
</item>
......
......@@ -22,7 +22,7 @@
<item>
<widget class="QLabel" name="tileLevelLabel">
<property name="text">
<string>&amp;Tile Level Range:</string>
<string>&amp;Tile level range:</string>
</property>
<property name="buddy">
<cstring>topSpinBox</cstring>
......
......@@ -182,10 +182,10 @@ RoutingLayerPrivate::RoutingLayerPrivate( RoutingLayer *parent, MarbleWidget *wi
m_isInteractive( true )
{
m_contextMenu = new MarbleWidgetPopupMenu( m_marbleWidget, m_marbleWidget->model() );
m_removeViaPointAction = new QAction( QObject::tr( "&Remove this destination" ), q );
m_removeViaPointAction = new QAction( QObject::tr( "&Remove this Destination" ), q );
QObject::connect( m_removeViaPointAction, SIGNAL(triggered()), q, SLOT(removeViaPoint()) );
m_contextMenu->addAction( Qt::RightButton, m_removeViaPointAction );
QAction *exportAction = new QAction( QObject::tr( "&Export route..." ), q );
QAction *exportAction = new QAction( QObject::tr( "&Export Route..." ), q );
QObject::connect( exportAction, SIGNAL(triggered()), q, SLOT(exportRoute()) );
m_contextMenu->addAction( Qt::RightButton, exportAction );
if ( MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen ) {
......
......@@ -19,7 +19,7 @@
<item>
<widget class="QPushButton" name="addButton">
<property name="text">
<string>&amp;Add</string>
<string>&amp;Add...</string>
</property>
</widget>
</item>
......@@ -29,7 +29,7 @@
<bool>false</bool>
</property>
<property name="text">
<string>&amp;Configure</string>
<string>&amp;Configure...</string>
</property>
</widget>
</item>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment