Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
d0e8ece1
Commit
d0e8ece1
authored
Aug 07, 2008
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix language selection
parent
43f84f85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+8
-2
No files found.
modules/gui/qt4/qt4.cpp
View file @
d0e8ece1
...
...
@@ -386,7 +386,13 @@ static void *Init( vlc_object_t *obj )
#ifdef ENABLE_NLS
// Translation - get locale
QLocale
ql
=
QLocale
::
system
();
# if defined (WIN32) || defined (__APPLE__)
QString
lang
=
qfu
(
config_GetPsz
(
p_intf
,
"language"
)
);
if
(
lang
==
"auto"
)
lang
=
QLocale
::
system
().
name
();
# else
QString
lang
=
QLocale
::
system
().
name
();
# endif
// Translations for qt's own dialogs
QTranslator
qtTranslator
(
0
);
// Let's find the right path for the translation file
...
...
@@ -397,7 +403,7 @@ static void *Init( vlc_object_t *obj )
"locale"
+
DIR_SEP
+
"qt4"
+
DIR_SEP
);
#endif
// files depending on locale
bool
b_loaded
=
qtTranslator
.
load
(
path
+
"qt_"
+
ql
.
name
()
);
bool
b_loaded
=
qtTranslator
.
load
(
path
+
"qt_"
+
lang
);
if
(
!
b_loaded
)
msg_Dbg
(
p_intf
,
"Error while initializing qt-specific localization"
);
app
->
installTranslator
(
&
qtTranslator
);
...
...
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