Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
763530cc
Commit
763530cc
authored
Oct 01, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Remove the use of the Qt translations
parent
82153a98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
28 deletions
+0
-28
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+0
-28
No files found.
modules/gui/qt4/qt4.cpp
View file @
763530cc
...
@@ -422,33 +422,6 @@ static void *Thread( void *obj )
...
@@ -422,33 +422,6 @@ static void *Thread( void *obj )
/* Explain to the core how to show a dialog :D */
/* Explain to the core how to show a dialog :D */
p_intf
->
pf_show_dialog
=
ShowDialog
;
p_intf
->
pf_show_dialog
=
ShowDialog
;
#ifdef ENABLE_NLS
// Translation - get locale
# if defined (WIN32) || defined (__APPLE__)
char
*
psz_tmp
=
config_GetPsz
(
p_intf
,
"language"
);
QString
lang
=
qfu
(
psz_tmp
);
free
(
psz_tmp
);
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
#if !defined( WIN32 )
QString
path
=
QString
(
QT4LOCALEDIR
);
#else
QString
path
=
QString
(
QString
(
config_GetDataDir
())
+
DIR_SEP
+
"locale"
+
DIR_SEP
+
"qt4"
+
DIR_SEP
);
#endif
// files depending on locale
bool
b_loaded
=
qtTranslator
.
load
(
path
+
"qt_"
+
lang
);
if
(
!
b_loaded
)
msg_Dbg
(
p_intf
,
"Error while initializing qt-specific localization"
);
app
.
installTranslator
(
&
qtTranslator
);
#endif //ENABLE_NLS
/* Last settings */
/* Last settings */
app
.
setQuitOnLastWindowClosed
(
false
);
app
.
setQuitOnLastWindowClosed
(
false
);
...
@@ -461,7 +434,6 @@ static void *Thread( void *obj )
...
@@ -461,7 +434,6 @@ static void *Thread( void *obj )
if
(
s_style
.
compare
(
""
)
!=
0
)
if
(
s_style
.
compare
(
""
)
!=
0
)
QApplication
::
setStyle
(
s_style
);
QApplication
::
setStyle
(
s_style
);
/* Launch */
/* Launch */
app
.
exec
();
app
.
exec
();
...
...
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