- Remove most of the Usage text from the german translation. It was just copied from the Windows "more" utility and our tool does not support any of the extended options yet.

I changed the text, so it only includes the features we currently support.
- Change SUBLANG_DEFAULT to SUBLANG_NEUTRAL in the german translation
- Add an English (US) translation
- Use a consistent indentation in "more.c"
- Exit the tool if reading IDS_CONTINUE fails instead of falling back to a hardcoded string

svn path=/trunk/; revision=28620
This commit is contained in:
Colin Finck 2007-08-28 15:54:19 +00:00
parent b91657fe81
commit 3124187a40
4 changed files with 132 additions and 136 deletions

View file

@ -1,34 +1,15 @@
LANGUAGE LANG_GERMAN, SUBLANG_DEFAULT
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
{
IDS_USAGE, "Zeigt Daten seitenweise auf dem Bildschirm an.\n\n\
MORE [/E [/C] [/P] [/S] [/Tn] [+n]] < [Laufwerk:][Pfad]Dateiname\n\
Befehl | MORE [/E [/C] [/P] [/S] [/Tn] [+n]] \n\
MORE /E [/C] [/P] [/S] [/Tn] [+n] [Dateien]\n\n\
[Laufwerk:][Pfad]Dateiname Ein Datei, deren Inhalt angezeigt\n\
\t\t\t werden soll.\n\n\
Befehl\t\t Ein Befehl, dessen Ausgabe angezeigt\n\
\t\t\t werden soll.\n\n\
/E\tAktiviert die erweiterten Möglichkeiten.\n\
/C\tLöscht den Bildschirm, bevor eine Seite angezeigt wird.\n\
/P\tFührt Seitenvorschubzeichen aus.\n\
/S\tFasst mehrere leere Zeilen zu einer Zeile zusammen.\n\
/Tn\tErsetzt Tabulatorenzeichen durch n Leerzeichen (Standard 8).\n\n\
\tDie Optionen können in der Umgebungsvariablen MORE angegeben\n\
\twerden.\n\n\
+n\tBeginnt mit der Anzeige der ersten Datei in Zeile n.\n\n\
Dateien Gibt eine Liste mit anzuzeigenden Dateien an.\n\
\t Trennen sie die Dateinamen durch ein Leerzeichen.\n\n\
Wenn die erweiterten Möglichkeiten aktiviert sind, können die folgenden\n\
Befehle an der Eingabeforderung \"--Fortsetzung--\" eingegeben werden:\n\n\
P n\t Zeigt die nächsten n Zeilen an.\n\
S n\t Überspringt die nächsten n Zeilen.\n\
Q\tBeendet die Ausgabe.\n\
=\tZeigt die Zeilennummer an.\n\
?\tZeigt die Hilfezeile an.\n\
<LEERTASTE> Zeigt die nächste Zeile an.\n\
<EINGABETASTE> Zeigt die nächste Zeile an.\n"
MORE < [Laufwerk:][Pfad]Dateiname\n\
Befehl | MORE \n\
MORE [Laufwerk:][Pfad]Dateiname\n\n\
[Laufwerk:][Pfad]Dateiname Eine Datei, deren Inhalt angezeigt werden soll.\n\
Befehl\t\t Ein Befehl, dessen Ausgabe angezeigt werden soll.\n\n\
An der Eingabeaufforderung ""-- Fortsetzung --"" kann eine beliebige\n\
Taste gedrückt werden, um die nächste Seite anzuzeigen.\n"
IDS_CONTINUE, " -- Fortsetzung (100%) -- "
IDS_FILE_ACCESS, "Auf die Datei %s kann nicht zugegriffen werden."

View file

@ -0,0 +1,15 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE DISCARDABLE
{
IDS_USAGE, "Displays data page-by-page on the screen.\n\n\
MORE < [Drive:][Path]File name\n\
Command | MORE \n\
MORE [Drive:][Path]File name\n\n\
[Drive:][Path]File name A file, whose content shall be displayed.\n\
Command\t\t A command, whose output shall be displayed.\n\n\
At the prompt ""-- Continue --"" you can press any key to show the next page.\n"
IDS_CONTINUE, " -- Continue (100%) -- "
IDS_FILE_ACCESS, "Cannot access the file %s."
}

View file

@ -109,7 +109,7 @@ int main (int argc, char **argv)
if (!buff)
{
ConOutPuts(_T("Error: no memory"));
return 0;
return 1;
}
if (argc > 1 && _tcsncmp (argv[1], _T("/?"), 2) == 0)
@ -163,8 +163,8 @@ int main (int argc, char **argv)
if (!LoadString(hApp, IDS_CONTINUE, szCont, sizeof(szCont) / sizeof(TCHAR)))
{
/* fail back to english */
_tcscpy(szCont, _T("--- continue ---"));
/* Shouldn't happen, so exit */
return 1;
}
szContLength = _tcslen(szCont);

View file

@ -1,5 +1,5 @@
#include <windows.h>
#include "resource.h"
#include "lang/de-DE.rc"
//#include "lang/de-DE.rc"
#include "lang/en-US.rc"