mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-27 04:21:53 +02:00
qt: make default controlbar profile names translatable
Signed-off-by: Pierre Lamot <pierre@videolabs.io>
This commit is contained in:
parent
700bd07bb4
commit
8a9a83c896
@ -36,9 +36,7 @@ decltype (ControlbarProfileModel::m_defaults)
|
||||
ControlbarProfileModel::m_defaults =
|
||||
{
|
||||
{
|
||||
{
|
||||
"Minimalist Style"
|
||||
},
|
||||
N_("Minimalist Style"),
|
||||
{
|
||||
{
|
||||
{
|
||||
@ -94,9 +92,7 @@ decltype (ControlbarProfileModel::m_defaults)
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
"One-liner Style"
|
||||
},
|
||||
N_("One-liner Style"),
|
||||
{
|
||||
{
|
||||
{
|
||||
@ -156,9 +152,7 @@ decltype (ControlbarProfileModel::m_defaults)
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
"Simplest Style"
|
||||
},
|
||||
N_("Simplest Style"),
|
||||
{
|
||||
{
|
||||
{
|
||||
@ -241,7 +235,7 @@ void ControlbarProfileModel::insertDefaults()
|
||||
// Add default profiles:
|
||||
for (const auto& i : m_defaults)
|
||||
{
|
||||
const auto ptrNewProfile = newProfile(i.name);
|
||||
const auto ptrNewProfile = newProfile(qtr(i.name));
|
||||
if (!ptrNewProfile)
|
||||
continue;
|
||||
|
||||
|
@ -92,7 +92,7 @@ private:
|
||||
int m_selectedProfile = -1;
|
||||
|
||||
struct Profile {
|
||||
QString name;
|
||||
const char* name;
|
||||
QVector<ControlbarProfile::Configuration> modelData;
|
||||
};
|
||||
|
||||
|
@ -760,6 +760,8 @@ modules/gui/qt/dialogs/extensions/extensions_manager.cpp
|
||||
modules/gui/qt/dialogs/extensions/extensions_manager.hpp
|
||||
modules/gui/qt/dialogs/playlists/playlists.cpp
|
||||
modules/gui/qt/dialogs/playlists/playlists.hpp
|
||||
modules/gui/qt/dialogs/toolbar/controlbar_profile_model.cpp
|
||||
modules/gui/qt/dialogs/toolbar/controlbar_profile_model.hpp
|
||||
modules/gui/qt/maininterface/main_interface.cpp
|
||||
modules/gui/qt/maininterface/main_interface.hpp
|
||||
modules/gui/qt/maininterface/main_interface_win32.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user