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
SDK
KDE Development Scripts
Commits
7cdd0f76
Commit
7cdd0f76
authored
Sep 01, 2014
by
Laurent Montel
😁
Browse files
Adapt setTranslator and addCredit too
parent
a6574626
Changes
1
Hide whitespace changes
Inline
Side-by-side
kf5/convert-kcmdlineargs.pl
View file @
7cdd0f76
...
...
@@ -53,6 +53,22 @@ foreach my $file (@ARGV) {
s/KLocalizedString\b/QString/g
;
}
}
if
(
/(\w+)\.addCredit\s*\(/
)
{
my
$var
=
$
1
;
if
(
defined
$varname
{
$var
}
)
{
s/ki18n/i18n/g
;
s/KLocalizedString\b/QString/g
;
}
}
if
(
/(\w+)\.setTranslator\s*\(/
)
{
my
$var
=
$
1
;
if
(
defined
$varname
{
$var
}
)
{
s/ki18n/i18n/g
;
s/KLocalizedString\b/QString/g
;
}
}
s/K4AboutData::License_/KAboutLicense::/
;
s/K4AboutData/KAboutData/g
;
}
...
...
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