Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
f4b2a70e
Commit
f4b2a70e
authored
Sep 14, 2010
by
Friedemann Kleint
Browse files
L10n: tr-Fixes.
parent
0e8c3875
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationwidget.cpp
View file @
f4b2a70e
...
...
@@ -121,7 +121,7 @@ void MaemoPackageCreationWidget::updateVersionInfo(const ProjectExplorer::Projec
QString
error
;
QString
versionString
=
m_step
->
versionString
(
&
error
);
if
(
versionString
.
isEmpty
())
{
QMessageBox
::
critical
(
this
,
tr
(
"No
v
ersion
a
vailable."
),
error
);
QMessageBox
::
critical
(
this
,
tr
(
"No
V
ersion
A
vailable."
),
error
);
versionString
=
MaemoPackageCreationStep
::
DefaultVersionNumber
;
}
const
QStringList
list
=
versionString
.
split
(
QLatin1Char
(
'.'
),
...
...
@@ -153,12 +153,12 @@ void MaemoPackageCreationWidget::setPackageManagerIcon()
imageFilter
+=
"*."
+
QString
::
fromAscii
(
imageType
)
+
QLatin1Char
(
' '
);
imageFilter
+=
QLatin1Char
(
')'
);
const
QString
iconFileName
=
QFileDialog
::
getOpenFileName
(
this
,
tr
(
"Choose
i
mage"
),
QString
(),
imageFilter
);
tr
(
"Choose
I
mage"
),
QString
(),
imageFilter
);
if
(
!
iconFileName
.
isEmpty
())
{
QString
error
;
if
(
!
MaemoTemplatesManager
::
instance
()
->
setPackageManagerIcon
(
m_step
->
buildConfiguration
()
->
target
()
->
project
(),
iconFileName
,
&
error
))
QMessageBox
::
critical
(
this
,
tr
(
"Could
n
ot
s
et
n
ew
i
con"
),
error
);
QMessageBox
::
critical
(
this
,
tr
(
"Could
N
ot
S
et
N
ew
I
con"
),
error
);
}
}
...
...
@@ -202,7 +202,7 @@ void MaemoPackageCreationWidget::versionInfoChanged()
+
QLatin1Char
(
'.'
)
+
m_ui
->
minor
->
text
()
+
QLatin1Char
(
'.'
)
+
m_ui
->
patch
->
text
(),
&
error
);
if
(
!
success
)
QMessageBox
::
critical
(
this
,
tr
(
"Could
n
ot
s
et
v
ersion
n
umber"
),
error
);
QMessageBox
::
critical
(
this
,
tr
(
"Could
N
ot
S
et
V
ersion
N
umber"
),
error
);
}
void
MaemoPackageCreationWidget
::
editDebianFile
()
...
...
src/plugins/qt4projectmanager/qt-maemo/maemorunconfigurationwidget.cpp
View file @
f4b2a70e
...
...
@@ -352,9 +352,10 @@ void MaemoRunConfigurationWidget::changeLocalMountDir(const QModelIndex &index)
void
MaemoRunConfigurationWidget
::
handleDebuggingTypeChanged
(
bool
useGdb
)
{
m_runConfiguration
->
setUseRemoteGdb
(
useGdb
);
const
QString
detailsText
=
useGdb
?
tr
(
"Use gdb"
)
:
tr
(
"Use gdbserver"
);
m_debugDetailsContainer
->
setSummaryText
(
tr
(
"<b>Debugging details:</b> "
)
+
detailsText
);
const
QString
detailsText
=
useGdb
?
tr
(
"<b>Debugging details:</b> Use gdb"
)
:
tr
(
"<b>Debugging details:</b> Use gdbserver"
);
m_debugDetailsContainer
->
setSummaryText
(
detailsText
);
}
void
MaemoRunConfigurationWidget
::
fetchEnvironment
()
...
...
@@ -421,8 +422,8 @@ void MaemoRunConfigurationWidget::handleRemoteMountsChanged()
text
=
tr
(
"One local directory to be mounted on the device."
);
break
;
default:
text
=
tr
(
"%1 local directories to be mounted on the device."
)
.
arg
(
mountCount
);
//: Note: Only mountCount>1 will occur here as 0, 1 are handled above.
text
=
tr
(
"%n local directories to be mounted on the device."
,
0
,
mountCount
);
break
;
}
m_mountDetailsContainer
->
setSummaryText
(
QLatin1String
(
"<b>"
)
+
text
...
...
src/plugins/qt4projectmanager/qt-s60/s60createpackagestep.cpp
View file @
f4b2a70e
...
...
@@ -683,12 +683,8 @@ void S60CreatePackageStepConfigWidget::resetPassphrases()
{
QMessageBox
msgBox
(
QMessageBox
::
Question
,
tr
(
"Reset passwords"
),
tr
(
"Do you want to reset all saved passwords for used keys?"
),
QMessageBox
::
Yes
|
QMessageBox
::
No
,
this
);
msgBox
.
button
(
QMessageBox
::
Yes
)
->
setText
(
tr
(
"Reset"
));
msgBox
.
button
(
QMessageBox
::
No
)
->
setText
(
tr
(
"Cancel"
));
msgBox
.
setDefaultButton
(
QMessageBox
::
No
);
msgBox
.
setEscapeButton
(
QMessageBox
::
No
);
if
(
msgBox
.
exec
()
==
QMessageBox
::
Yes
)
QMessageBox
::
Reset
|
QMessageBox
::
Cancel
,
this
);
if
(
msgBox
.
exec
()
==
QMessageBox
::
Reset
)
m_signStep
->
resetPassphrases
();
}
...
...
@@ -699,8 +695,7 @@ QString S60CreatePackageStepConfigWidget::summaryText() const
text
=
tr
(
"self-signed"
);
}
else
{
text
=
tr
(
"signed with certificate %1 and key file %2"
)
.
arg
(
m_signStep
->
customSignaturePath
())
.
arg
(
m_signStep
->
customKeyPath
());
.
arg
(
m_signStep
->
customSignaturePath
(),
m_signStep
->
customKeyPath
());
}
if
(
m_signStep
->
createsSmartInstaller
())
return
tr
(
"<b>Create SIS Package:</b> %1, using Smart Installer"
).
arg
(
text
);
...
...
Write
Preview
Supports
Markdown
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