[vlc-commits] [Git][videolan/vlc][3.0.x] 3 commits: qt: (hotkeys) fix non-bold wheel event name
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon May 11 16:19:43 UTC 2026
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
c8419af8 by Lyndon Brown at 2026-05-11T13:11:57+00:00
qt: (hotkeys) fix non-bold wheel event name
in the 'selected' text, inconsistent with that done for keyboard events.
(cherry picked from commit 068f5d0d01eb75325d77f0717c057dadceb971e8) (edited)
edited:
- the file was moved in 4.0
- 4.0 uses an internal vlckey_tr variable
- - - - -
c2c03720 by Lyndon Brown at 2026-05-11T13:11:57+00:00
qt: (hotkeys) improve translatability of strings
(cherry picked from commit 0289edadff52734c2509ee62364507a09205c492) (edited)
edited:
- the file was moved in 4.0
- 4.0 uses an internal vlckey_tr variable
- 4.0 had the .arg() already on the next line
- - - - -
9c2ecbeb by Steve Lhomme at 2026-05-11T13:11:57+00:00
Update PO files with Qt bold strings
- - - - -
2 changed files:
- modules/gui/qt/components/preferences_widgets.cpp
- po/vlc.pot
Changes:
=====================================
modules/gui/qt/components/preferences_widgets.cpp
=====================================
@@ -1402,13 +1402,13 @@ KeyInputDialog::KeyInputDialog( QTreeWidget *_table,
existingkeys = NULL;
table = _table;
- setWindowTitle( ( b_global ? qtr( "Global" ) + QString(" ") : QStringLiteral("") )
- + qtr( "Hotkey change" ) );
+ setWindowTitle( b_global ? qtr( "Global Hotkey change" )
+ : qtr( "Hotkey change" ) );
setWindowRole( "vlc-key-input" );
QVBoxLayout *vLayout = new QVBoxLayout( this );
- selected = new QLabel( qtr( "Press the new key or combination for " )
- + QString("<b>%1</b>").arg( keyToChange ) );
+ selected = new QLabel( qtr( "Press the new key or combination for <b>%1</b>" )
+ .arg( keyToChange ) );
vLayout->addWidget( selected , Qt::AlignCenter );
warning = new QLabel;
@@ -1451,8 +1451,9 @@ void KeyInputDialog::checkForConflicts( int i_vlckey, const QString &sequence )
!conflictList[0]->data( b_global ? 2 : 1, Qt::UserRole ).toString().isEmpty() &&
conflictList[0]->data( b_global ? 2 : 1, Qt::UserRole ).toString() != "Unset" )
{
- warning->setText( qtr("Warning: this key or combination is already assigned to ") +
- QString( "\"<b>%1</b>\"" ).arg( conflictList[0]->text( 0 ) ) );
+ warning->setText(
+ qtr("Warning: this key or combination is already assigned to \"<b>%1</b>\"")
+ .arg( conflictList[0]->text( 0 ) ) );
warning->show();
ok->show();
unset->hide();
@@ -1486,8 +1487,7 @@ void KeyInputDialog::keyPressEvent( QKeyEvent *e )
return;
int i_vlck = qtEventToVLCKey( e );
QKeySequence sequence( e->key() | e->modifiers() );
- selected->setText( qtr( "Key or combination: " )
- + QString("<b>%1</b>").arg( VLCKeyToString( i_vlck, true ) ) );
+ selected->setText( qtr( "Key or combination: <b>%1</b>" ).arg( VLCKeyToString( i_vlck, true ) ) );
checkForConflicts( i_vlck, sequence.toString() );
keyValue = i_vlck;
}
@@ -1495,7 +1495,7 @@ void KeyInputDialog::keyPressEvent( QKeyEvent *e )
void KeyInputDialog::wheelEvent( QWheelEvent *e )
{
int i_vlck = qtWheelEventToVLCKey( e );
- selected->setText( qtr( "Key: " ) + VLCKeyToString( i_vlck, true ) );
+ selected->setText( qtr( "Key: <b>%1</b>" ).arg( VLCKeyToString( i_vlck, true ) ) );
checkForConflicts( i_vlck, QString() );
keyValue = i_vlck;
}
=====================================
po/vlc.pot
=====================================
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: vlc 3.0.22\n"
"Report-Msgid-Bugs-To: vlc-devel at videolan.org\n"
-"POT-Creation-Date: 2025-12-08 07:33+0100\n"
+"POT-Creation-Date: 2026-04-15 13:21+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -19019,7 +19019,6 @@ msgid "Application level hotkey"
msgstr ""
#: modules/gui/qt/components/preferences_widgets.cpp:1148
-#: modules/gui/qt/components/preferences_widgets.cpp:1405
msgid "Global"
msgstr ""
@@ -19034,32 +19033,36 @@ msgid ""
"Delete key to remove."
msgstr ""
+#: modules/gui/qt/components/preferences_widgets.cpp:1405
+msgid "Global Hotkey change"
+msgstr ""
+
#: modules/gui/qt/components/preferences_widgets.cpp:1406
msgid "Hotkey change"
msgstr ""
#: modules/gui/qt/components/preferences_widgets.cpp:1410
-msgid "Press the new key or combination for "
+msgid "Press the new key or combination for <b>%1</b>"
msgstr ""
#: modules/gui/qt/components/preferences_widgets.cpp:1419
msgid "Assign"
msgstr ""
-#: modules/gui/qt/components/preferences_widgets.cpp:1454
-msgid "Warning: this key or combination is already assigned to "
+#: modules/gui/qt/components/preferences_widgets.cpp:1455
+msgid "Warning: this key or combination is already assigned to \"<b>%1</b>\""
msgstr ""
-#: modules/gui/qt/components/preferences_widgets.cpp:1466
+#: modules/gui/qt/components/preferences_widgets.cpp:1467
msgid "Warning: <b>%1</b> is already an application menu shortcut"
msgstr ""
-#: modules/gui/qt/components/preferences_widgets.cpp:1489
-msgid "Key or combination: "
+#: modules/gui/qt/components/preferences_widgets.cpp:1490
+msgid "Key or combination: <b>%1</b>"
msgstr ""
#: modules/gui/qt/components/preferences_widgets.cpp:1498
-msgid "Key: "
+msgid "Key: <b>%1</b>"
msgstr ""
#: modules/gui/qt/components/simple_preferences.cpp:256
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b27218019578eab1cf7668c3adc6607e96d5a6e8...9c2ecbebaff9935b6807de67fd0c090005fe2a0a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b27218019578eab1cf7668c3adc6607e96d5a6e8...9c2ecbebaff9935b6807de67fd0c090005fe2a0a
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list