more i18n
This commit is contained in:
13
src/main.cpp
13
src/main.cpp
@ -137,9 +137,9 @@ int main( int argc, char **argv )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case '?':
|
case '?':
|
||||||
fprintf(stderr,
|
fprintf(stderr, "%s", qPrintable(app.tr(
|
||||||
"See `%s --help` for more information\n",
|
"Illeagal argument.\n"
|
||||||
argc > 0 ? argv[0] : "qjoypad");
|
"See `%1 --help` for more information\n").arg(argc > 0 ? argv[0] : "qjoypad")));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -148,10 +148,9 @@ int main( int argc, char **argv )
|
|||||||
layout = argv[optind ++];
|
layout = argv[optind ++];
|
||||||
|
|
||||||
if (optind < argc) {
|
if (optind < argc) {
|
||||||
fprintf(stderr,
|
fprintf(stderr, "%s", qPrintable(app.tr(
|
||||||
"Too many arguments.\n"
|
"Too many arguments.\n"
|
||||||
"See `%s --help` for more information\n",
|
"See `%1 --help` for more information\n").arg(argc > 0 ? argv[0] : "qjoypad")));
|
||||||
argc > 0 ? argv[0] : "qjoypad");
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -161,7 +160,7 @@ int main( int argc, char **argv )
|
|||||||
{
|
{
|
||||||
//then we try to store that layout in the last-used layout spot, to be
|
//then we try to store that layout in the last-used layout spot, to be
|
||||||
//loaded by default.
|
//loaded by default.
|
||||||
QFile file( settingsDir + "layout");
|
QFile file(settingsDir + "layout");
|
||||||
if (file.open(QIODevice::WriteOnly))
|
if (file.open(QIODevice::WriteOnly))
|
||||||
{
|
{
|
||||||
QTextStream( &file ) << layout;
|
QTextStream( &file ) << layout;
|
||||||
|
Reference in New Issue
Block a user