Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
9a51a371
Commit
9a51a371
authored
Mar 15, 2010
by
Tobias Hunger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure locale C gets marked as active in generalsettings
Reviewed-by: Daniel Molkentin
parent
20ee66f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/plugins/coreplugin/generalsettings.cpp
src/plugins/coreplugin/generalsettings.cpp
+4
-2
No files found.
src/plugins/coreplugin/generalsettings.cpp
View file @
9a51a371
...
...
@@ -86,14 +86,17 @@ static bool hasQmFilesForLocale(const QString &locale, const QString &creatorTrP
void
GeneralSettings
::
fillLanguageBox
()
const
{
const
QString
currentLocale
=
language
();
m_page
->
languageBox
->
addItem
(
tr
(
"<System Language>"
),
QString
());
// need to add this explicitly, since there is no qm file for English
m_page
->
languageBox
->
addItem
(
QLatin1String
(
"English"
),
QLatin1String
(
"C"
));
if
(
currentLocale
==
QLatin1String
(
"C"
))
m_page
->
languageBox
->
setCurrentIndex
(
m_page
->
languageBox
->
count
()
-
1
);
const
QString
creatorTrPath
=
Core
::
ICore
::
instance
()
->
resourcePath
()
+
QLatin1String
(
"/translations"
);
const
QStringList
languageFiles
=
QDir
(
creatorTrPath
).
entryList
(
QStringList
(
QLatin1String
(
"*.qm"
)));
const
QString
currentLocale
=
language
();
Q_FOREACH
(
const
QString
&
languageFile
,
languageFiles
)
{
...
...
@@ -105,7 +108,6 @@ void GeneralSettings::fillLanguageBox() const
m_page
->
languageBox
->
addItem
(
QLocale
::
languageToString
(
QLocale
(
locale
).
language
()),
locale
);
if
(
locale
==
currentLocale
)
m_page
->
languageBox
->
setCurrentIndex
(
m_page
->
languageBox
->
count
()
-
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