Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
3e085c86
Commit
3e085c86
authored
15 years ago
by
Daniel Molkentin
Browse files
Options
Downloads
Patches
Plain Diff
Make strings in about dialog translatable by arg()'ifying them.
Reviewed-By: Ossi
parent
7b24a593
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/coreplugin/versiondialog.cpp
+15
-12
15 additions, 12 deletions
src/plugins/coreplugin/versiondialog.cpp
with
15 additions
and
12 deletions
src/plugins/coreplugin/versiondialog.cpp
+
15
−
12
View file @
3e085c86
...
...
@@ -36,6 +36,7 @@
#include
<QtCore/QDate>
#include
<QtCore/QFile>
#include
<QtCore/QSysInfo>
#include
<QtGui/QDialogButtonBox>
#include
<QtGui/QGridLayout>
...
...
@@ -62,26 +63,28 @@ VersionDialog::VersionDialog(QWidget *parent)
QString
version
=
QLatin1String
(
IDE_VERSION_LONG
);
version
+=
QDate
(
2007
,
25
,
10
).
toString
(
Qt
::
SystemLocaleDate
);
const
QString
description
=
tr
(
"<h3>Qt Creator %1</h3>"
"Based on Qt %2<br/>"
"<br/>"
"Built on "
__DATE__
" at "
__TIME__
"<br />"
QString
ideRev
;
#ifdef IDE_REVISION
"From revision %5<br/>"
//: This gets conditionally inserted as argument %8 into the description string.
ideRev
=
tr
(
"From revision %1<br/>"
).
arg
(
QString
::
fromLatin1
(
IDE_REVISION_STR
).
left
(
10
));
#endif
const
QString
description
=
tr
(
"<h3>Qt Creator %1</h3>"
"Based on Qt %2 (%3 bit)<br/>"
"<br/>"
"Built on %4 at %5<br />"
"<br/>"
"Copyright 2008-%3 %4. All rights reserved.<br/>"
"%8"
"<br/>"
"Copyright 2008-%6 %7. All rights reserved.<br/>"
"<br/>"
"The program is provided AS IS with NO WARRANTY OF ANY KIND, "
"INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A "
"PARTICULAR PURPOSE.<br/>"
)
.
arg
(
version
,
QLatin1String
(
QT_VERSION_STR
),
QLatin1String
(
IDE_YEAR
),
(
QLatin1String
(
IDE_AUTHOR
))
#ifdef IDE_REVISION
,
QString
(
IDE_REVISION_STR
).
left
(
10
)
#endif
);
.
arg
(
version
,
QLatin1String
(
QT_VERSION_STR
),
QString
::
number
(
QSysInfo
::
WordSize
),
QLatin1String
(
__DATE__
),
QLatin1String
(
__TIME__
),
QLatin1String
(
IDE_YEAR
),
(
QLatin1String
(
IDE_AUTHOR
)),
ideRev
);
QLabel
*
copyRightLabel
=
new
QLabel
(
description
);
copyRightLabel
->
setWordWrap
(
true
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment