Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
192dcd6d
Commit
192dcd6d
authored
Apr 13, 2010
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option for language auto-detection.
parent
c7c53909
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/Gui/MainWindow.cpp
src/Gui/MainWindow.cpp
+1
-1
src/Gui/settings/LanguageWidget.cpp
src/Gui/settings/LanguageWidget.cpp
+6
-1
No files found.
src/Gui/MainWindow.cpp
View file @
192dcd6d
...
...
@@ -195,7 +195,7 @@ MainWindow::initVlmcPreferences()
CREATE_MENU_SHORTCUT
(
"keyboard/importmedia"
,
"Ctrl+I"
,
"Import media"
,
"Open the import window"
,
actionImport
);
CREATE_MENU_SHORTCUT
(
"keyboard/renderproject"
,
"Ctrl+R"
,
"Render the project"
,
"Render the project to a file"
,
actionRender
);
VLMC_CREATE_PREFERENCE_LANGUAGE
(
"general/VLMCLang"
,
"
en_US
"
,
"Langage"
,
"The VLMC's UI language"
);
VLMC_CREATE_PREFERENCE_LANGUAGE
(
"general/VLMCLang"
,
"
default
"
,
"Langage"
,
"The VLMC's UI language"
);
SettingsManager
::
getInstance
()
->
watchValue
(
"general/VLMCLang"
,
LanguageHelper
::
getInstance
(),
SLOT
(
languageChanged
(
const
QVariant
&
)
),
...
...
src/Gui/settings/LanguageWidget.cpp
View file @
192dcd6d
...
...
@@ -66,10 +66,15 @@ LanguageWidget::LanguageWidget( SettingValue *s, QWidget *parent /*= NULL*/ ) :
QLocale
::
languageToString
(
locale
.
language
()
),
QLocale
::
countryToString
(
locale
.
country
()
)
),
countryCode
);
}
m_list
->
addItem
(
"English (UnitedStates)"
,
"en_US"
);
// Add the built-in us_US locale.
m_list
->
addItem
(
"English (UnitedStates)"
,
"en_US"
);
// Sort the combobox
m_list
->
model
()
->
sort
(
0
);
// Add the system default option (auto-detection of the locale)
m_list
->
insertItem
(
0
,
"System Locale (autodetect)"
,
"default"
);
QString
lang
=
VLMC_GET_STRING
(
"general/VLMCLang"
);
int
idx
=
m_list
->
findData
(
lang
);
if
(
idx
!=
-
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment