mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
* Create a branch for USB experiments.
svn path=/branches/usb-experiments/; revision=72629
This commit is contained in:
parent
28d8ba0d3e
commit
0ee830d7a4
23049 changed files with 0 additions and 1313991 deletions
5
base/applications/cmdutils/find/CMakeLists.txt
Normal file
5
base/applications/cmdutils/find/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
add_executable(find find.c find.rc)
|
||||
set_module_type(find win32cui)
|
||||
add_importlibs(find user32 msvcrt kernel32)
|
||||
add_cd_file(TARGET find DESTINATION reactos/system32 FOR all)
|
256
base/applications/cmdutils/find/find.c
Normal file
256
base/applications/cmdutils/find/find.c
Normal file
|
@ -0,0 +1,256 @@
|
|||
/* find.c */
|
||||
|
||||
/* Copyright (C) 1994-2002, Jim Hall <jhall@freedos.org> */
|
||||
|
||||
/* Adapted for ReactOS */
|
||||
|
||||
/*
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
|
||||
/* This program locates a string in a text file and prints those lines
|
||||
* that contain the string. Multiple files are clearly separated.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
//#include <string.h>
|
||||
//#include <ctype.h>
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winuser.h>
|
||||
|
||||
//#include <io.h>
|
||||
#include <dos.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
/* Symbol definition */
|
||||
#define MAX_STR 1024
|
||||
|
||||
/* This function prints out all lines containing a substring. There are some
|
||||
* conditions that may be passed to the function.
|
||||
*
|
||||
* RETURN: If the string was found at least once, returns 1.
|
||||
* If the string was not found at all, returns 0.
|
||||
*/
|
||||
int
|
||||
find_str (char *sz, FILE *p, int invert_search,
|
||||
int count_lines, int number_output, int ignore_case)
|
||||
{
|
||||
int i, length;
|
||||
long line_number = 0, total_lines = 0;
|
||||
char *c, temp_str[MAX_STR], this_line[MAX_STR];
|
||||
|
||||
/* Convert to upper if needed */
|
||||
if (ignore_case)
|
||||
{
|
||||
length = strlen (sz);
|
||||
for (i = 0; i < length; i++)
|
||||
sz[i] = toupper (sz[i]);
|
||||
}
|
||||
|
||||
/* Scan the file until EOF */
|
||||
while (fgets (temp_str, MAX_STR, p) != NULL)
|
||||
{
|
||||
/* Remove the trailing newline */
|
||||
length = strlen (temp_str);
|
||||
if (temp_str[length-1] == '\n')
|
||||
{
|
||||
temp_str[length-1] = '\0';
|
||||
}
|
||||
|
||||
/* Increment number of lines */
|
||||
line_number++;
|
||||
strcpy (this_line, temp_str);
|
||||
|
||||
/* Convert to upper if needed */
|
||||
if (ignore_case)
|
||||
{
|
||||
for (i = 0; i < length; i++)
|
||||
{
|
||||
temp_str[i] = toupper (temp_str[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/* Locate the substring */
|
||||
|
||||
/* strstr() returns a pointer to the first occurrence in the
|
||||
string of the substring */
|
||||
c = strstr (temp_str, sz);
|
||||
|
||||
if ( ((invert_search) ? (c == NULL) : (c != NULL)) )
|
||||
{
|
||||
if (!count_lines)
|
||||
{
|
||||
if (number_output)
|
||||
printf ("%ld:", line_number);
|
||||
|
||||
/* Print the line of text */
|
||||
puts (this_line);
|
||||
}
|
||||
|
||||
total_lines++;
|
||||
} /* long if */
|
||||
} /* while fgets */
|
||||
|
||||
if (count_lines)
|
||||
{
|
||||
/* Just show num. lines that contain the string */
|
||||
printf ("%ld\n", total_lines);
|
||||
}
|
||||
|
||||
|
||||
/* RETURN: If the string was found at least once, returns 1.
|
||||
* If the string was not found at all, returns 0.
|
||||
*/
|
||||
return (total_lines > 0 ? 1 : 0);
|
||||
}
|
||||
|
||||
/* Show usage */
|
||||
void
|
||||
usage (void)
|
||||
{
|
||||
WCHAR wszUsage[4096];
|
||||
char oemUsage[4096];
|
||||
|
||||
LoadStringW (GetModuleHandleW (NULL), IDS_USAGE, wszUsage, sizeof(wszUsage) / sizeof(wszUsage[0]));
|
||||
CharToOemW (wszUsage, oemUsage);
|
||||
fputs (oemUsage, stdout);
|
||||
}
|
||||
|
||||
|
||||
/* Main program */
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
char *opt, *needle = NULL;
|
||||
int ret = 0;
|
||||
WCHAR wszMessage[4096];
|
||||
char oemMessage[4096];
|
||||
|
||||
int invert_search = 0; /* flag to invert the search */
|
||||
int count_lines = 0; /* flag to whether/not count lines */
|
||||
int number_output = 0; /* flag to print line numbers */
|
||||
int ignore_case = 0; /* flag to be case insensitive */
|
||||
|
||||
FILE *pfile; /* file pointer */
|
||||
int hfind; /* search handle */
|
||||
struct _finddata_t finddata; /* _findfirst, filenext block */
|
||||
|
||||
/* Scan the command line */
|
||||
while ((--argc) && (needle == NULL))
|
||||
{
|
||||
if (*(opt = *++argv) == '/')
|
||||
{
|
||||
switch (opt[1])
|
||||
{
|
||||
case 'c':
|
||||
case 'C': /* Count */
|
||||
count_lines = 1;
|
||||
break;
|
||||
|
||||
case 'i':
|
||||
case 'I': /* Ignore */
|
||||
ignore_case = 1;
|
||||
break;
|
||||
|
||||
case 'n':
|
||||
case 'N': /* Number */
|
||||
number_output = 1;
|
||||
break;
|
||||
|
||||
case 'v':
|
||||
case 'V': /* Not with */
|
||||
invert_search = 1;
|
||||
break;
|
||||
|
||||
default:
|
||||
usage ();
|
||||
exit (2); /* syntax error .. return error 2 */
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Get the string */
|
||||
if (needle == NULL)
|
||||
{
|
||||
/* Assign the string to find */
|
||||
needle = *argv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Check for search string */
|
||||
if (needle == NULL)
|
||||
{
|
||||
/* No string? */
|
||||
usage ();
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* Scan the files for the string */
|
||||
if (argc == 0)
|
||||
{
|
||||
ret = find_str (needle, stdin, invert_search, count_lines,
|
||||
number_output, ignore_case);
|
||||
}
|
||||
|
||||
while (--argc >= 0)
|
||||
{
|
||||
hfind = _findfirst (*++argv, &finddata);
|
||||
if (hfind < 0)
|
||||
{
|
||||
/* We were not able to find a file. Display a message and
|
||||
set the exit status. */
|
||||
LoadStringW (GetModuleHandleW (NULL), IDS_NO_SUCH_FILE, wszMessage, sizeof(wszMessage) / sizeof(wszMessage[0]));
|
||||
CharToOemW (wszMessage, oemMessage);
|
||||
fprintf (stderr, oemMessage, *argv);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* repeat find next file to match the filemask */
|
||||
do
|
||||
{
|
||||
/* We have found a file, so try to open it */
|
||||
if ((pfile = fopen (finddata.name, "r")) != NULL)
|
||||
{
|
||||
printf ("---------------- %s\n", finddata.name);
|
||||
ret = find_str (needle, pfile, invert_search, count_lines,
|
||||
number_output, ignore_case);
|
||||
fclose (pfile);
|
||||
}
|
||||
else
|
||||
{
|
||||
LoadStringW (GetModuleHandleW (NULL), IDS_CANNOT_OPEN, wszMessage, sizeof(wszMessage) / sizeof(wszMessage[0]));
|
||||
CharToOemW (wszMessage, oemMessage);
|
||||
fprintf (stderr, oemMessage,
|
||||
finddata.name);
|
||||
}
|
||||
}
|
||||
while (_findnext(hfind, &finddata) > 0);
|
||||
}
|
||||
_findclose(hfind);
|
||||
} /* for each argv */
|
||||
|
||||
/* RETURN: If the string was found at least once, returns 0.
|
||||
* If the string was not found at all, returns 1.
|
||||
* (Note that find_str.c returns the exact opposite values.)
|
||||
*/
|
||||
exit ( (ret ? 0 : 1) );
|
||||
}
|
77
base/applications/cmdutils/find/find.rc
Normal file
77
base/applications/cmdutils/find/find.rc
Normal file
|
@ -0,0 +1,77 @@
|
|||
#include <windef.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Find Command"
|
||||
#define REACTOS_STR_INTERNAL_NAME "find"
|
||||
#define REACTOS_STR_ORIGINAL_FILENAME "find.exe"
|
||||
#include <reactos/version.rc>
|
||||
|
||||
/* UTF-8 */
|
||||
#pragma code_page(65001)
|
||||
#ifdef LANGUAGE_BG_BG
|
||||
#include "lang/bg-BG.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_CA_ES
|
||||
#include "lang/ca-ES.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_CS_CZ
|
||||
#include "lang/cs-CZ.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_DE_DE
|
||||
#include "lang/de-DE.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_EL_GR
|
||||
#include "lang/el-GR.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_EN_US
|
||||
#include "lang/en-US.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_ES_ES
|
||||
#include "lang/es-ES.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_FR_FR
|
||||
#include "lang/fr-FR.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_IT_IT
|
||||
#include "lang/it-IT.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_LT_LT
|
||||
#include "lang/lt-LT.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_NB_NO
|
||||
#include "lang/no-NO.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_PL_PL
|
||||
#include "lang/pl-PL.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_PT_BR
|
||||
#include "lang/pt-BR.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_RO_RO
|
||||
#include "lang/ro-RO.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_SK_SK
|
||||
#include "lang/sk-SK.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_SV_SE
|
||||
#include "lang/sv-SE.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_RU_RU
|
||||
#include "lang/ru-RU.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_SQ_AL
|
||||
#include "lang/sq-AL.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_TR_TR
|
||||
#include "lang/tr-TR.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_UK_UA
|
||||
#include "lang/uk-UA.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_ZH_CN
|
||||
#include "lang/zh-CN.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_ZH_TW
|
||||
#include "lang/zh-TW.rc"
|
||||
#endif
|
13
base/applications/cmdutils/find/lang/bg-BG.rc
Normal file
13
base/applications/cmdutils/find/lang/bg-BG.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Извежда всички редове във файла, които съдържат указания низ..\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""низ"" [ файл... ]\n\
|
||||
/C Брои колко реда съдържат низа\n\
|
||||
/I Пренебрегва ГлАвНОсТта\n\
|
||||
/N Брой показани редове, като се започва от 1\n\
|
||||
/V Извеждане на редовете, НЕсъдържащи низа."
|
||||
IDS_NO_SUCH_FILE "FIND: %s: Няма такъв файл\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Отварянето на файла е невъзможно\n"
|
||||
END
|
13
base/applications/cmdutils/find/lang/ca-ES.rc
Normal file
13
base/applications/cmdutils/find/lang/ca-ES.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGUAGE LANG_CATALAN, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Mostra totes les linies que continguin una determinada cadena de caràcters.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""Cadena de caràcters"" [ file... ]\n\
|
||||
/C Conta el numero de linies que contenen la cadena de caràcters\n\
|
||||
/I Ignora majúscules i minúscules\n\
|
||||
/N Numero de linies mostrades, començant per la primera\n\
|
||||
/V Mostra les linies que no contenen la cadena de caràcters"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: No he trobat el fitxer\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: No puc obrir el fitxer\n"
|
||||
END
|
19
base/applications/cmdutils/find/lang/cs-CZ.rc
Normal file
19
base/applications/cmdutils/find/lang/cs-CZ.rc
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* FILE: applications/cmdutils/find/lang/cs-CZ.rc
|
||||
* TRANSLATOR: Radek Liska aka Black_Fox (radekliska at gmail dot com)
|
||||
* THANKS TO: Mario Kacmar aka Kario (kario@szm.sk)
|
||||
* UPDATED: 2008-02-29
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Zobrazí všechny řádky souboru obsahující hledaný řetězec.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""řetězec"" [ soubor... ]\n\
|
||||
/C Zobrazí počet řádků obsahující řetězec.\n\
|
||||
/I Ignoruje velikost písmen.\n\
|
||||
/N Čísluje zobrazené řádky, začíná od 1.\n\
|
||||
/V Zobrazí všechny řádky, které NEobsahují zadaný řetěžec."
|
||||
IDS_NO_SUCH_FILE "FIND: Soubor %s nebyl nalezen.\n"
|
||||
IDS_CANNOT_OPEN "FIND: Soubor %s nelze otevřít!\n"
|
||||
END
|
14
base/applications/cmdutils/find/lang/de-DE.rc
Normal file
14
base/applications/cmdutils/find/lang/de-DE.rc
Normal file
|
@ -0,0 +1,14 @@
|
|||
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Sucht in einer Datei nach einer Zeichenfolge.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""Zeichenfolge""\n\
|
||||
[[Laufwerk:][Pfad]Dateiname]]\n\
|
||||
/C Zeigt nur die Anzahl der die Zeichenfolge enthaltenen Zeilen an.\n\
|
||||
/I Ignoriert Groß-/Kleinbuchstaben bei der Suche.\n\
|
||||
/N Zeigt die Zeilen mit ihren Zeilennummern an.\n\
|
||||
/V Zeigt alle Zeilen an, die die Zeichenfolge NICHT enhalten."
|
||||
IDS_NO_SUCH_FILE "Datei %s nicht gefunden\n"
|
||||
IDS_CANNOT_OPEN "Datei %s kann nicht geöffnet werden.\n"
|
||||
END
|
13
base/applications/cmdutils/find/lang/el-GR.rc
Normal file
13
base/applications/cmdutils/find/lang/el-GR.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGUAGE LANG_GREEK, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Εκτυπώνει όλες τις γραμμές ενός αρχείου που περιέχουν ένα αλφαριθμητικό.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""αλφαριθμητικό"" [ αρχείο... ]\n\
|
||||
/C Μέτρηση γραμμών που περιέχουν το αλφαριθμητικό\n\
|
||||
/I Αγνόηση κεφαλαίων\n\
|
||||
/N Εμφάνιση αριθμών στις εμφανιζόμενες γραμμές, ξεκινώντας από το 1\n\
|
||||
/V Εκτύπωση γραμμών που δεν περιέχουν το αλφαριθμητικό"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: Δεν υπάρχει αυτό το αρχείο\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Δεν ήταν δυνατό το άνοιγμα του αρχείου\n"
|
||||
END
|
13
base/applications/cmdutils/find/lang/en-US.rc
Normal file
13
base/applications/cmdutils/find/lang/en-US.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Prints all lines of a file that contain a string.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""string"" [ file... ]\n\
|
||||
/C Count the number of lines that contain string\n\
|
||||
/I Ignore case\n\
|
||||
/N Number the displayed lines, starting at 1\n\
|
||||
/V Print lines that do not contain the string"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: No such file\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Cannot open file\n"
|
||||
END
|
13
base/applications/cmdutils/find/lang/es-ES.rc
Normal file
13
base/applications/cmdutils/find/lang/es-ES.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Imprime todas las líneas de un fichero que contiene una cadena.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""cadena"" [ fichero... ]\n\
|
||||
/C Cuenta el número de líneas que contienen la cadena de caracteres\n\
|
||||
/I Ignora mayúsculas y minúsculas\n\
|
||||
/N Numero de líneas a mostrar en pantalla, a partir de la primera\n\
|
||||
/V Muestra las líneas que no contienen la cadena de caracteres."
|
||||
IDS_NO_SUCH_FILE "FIND: %s: No se encontró el fichero\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: No se pudo abrir el fichero\n"
|
||||
END
|
13
base/applications/cmdutils/find/lang/fr-FR.rc
Normal file
13
base/applications/cmdutils/find/lang/fr-FR.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Affiche toutes les lignes d'un fichier qui contiennent un morceau de texte.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""texte"" [ fichier... ]\n\
|
||||
/C Compte le nombre de lignes qui contiennent le texte\n\
|
||||
/I Insensible à la casse\n\
|
||||
/N Numérote les lignes affichées en commençant à 1\n\
|
||||
/V Affiche les lignes qui ne contiennent pas le texte"
|
||||
IDS_NO_SUCH_FILE "FIND: %s : fichier inexistant\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s : impossible d'ouvrir le fichier\n"
|
||||
END
|
13
base/applications/cmdutils/find/lang/it-IT.rc
Normal file
13
base/applications/cmdutils/find/lang/it-IT.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Visualizza le linee di un file che contengono un stringa.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""stringa"" [ file... ]\n\
|
||||
/C Conta il numero di linee che contengono la stringa\n\
|
||||
/I Ignora maiuscole/minuscole\n\
|
||||
/N Numera le linee visualizzate a partire da 1\n\
|
||||
/V Visualizza le linee che non contengono la stringa"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: File non trovato\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Impossibile aprire il file\n"
|
||||
END
|
22
base/applications/cmdutils/find/lang/lt-LT.rc
Normal file
22
base/applications/cmdutils/find/lang/lt-LT.rc
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* PROJECT: ReactOS find command
|
||||
* LICENSE: GPL - See COPYING in the top level directory
|
||||
* FILE: base/applications/cmdutils/find/lang/lt-LT.rc
|
||||
* PURPOSE: Lithuanian Language File
|
||||
* TRANSLATOR: Vytis "CMan" Girdžijauskas (cman@cman.us)
|
||||
* DATE: 2007-09-23
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_LITHUANIAN, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Spausdina visas bylos eilutes, kuriose yra ieškomas tekstas.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""tekstas"" [ byla... ]\n\
|
||||
/C Skaičiuoti eilutes, kuriose yra ieškomas tekstas\n\
|
||||
/I Ignoruoti raidžių dydį\n\
|
||||
/N Numeruoti vaizduojamas eilutes, pradedant nuo 1\n\
|
||||
/V Spausdinti eilutes, kuriose nėra ieškomo teksto"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: Tokios bylos nėra\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Nepavyko atverti bylos\n"
|
||||
END
|
13
base/applications/cmdutils/find/lang/no-NO.rc
Normal file
13
base/applications/cmdutils/find/lang/no-NO.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGUAGE LANG_NORWEGIAN, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FINN: Skriv alle linjene for filen som inneholder en streng.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""streng"" [ fil... ]\n\
|
||||
/C Teller nummer av linjer som inneholder strenger\n\
|
||||
/I Ignorere sak\n\
|
||||
/N Nummer viste linjer, start med 1\n\
|
||||
/V Skriv linjer som ikke inneholder en streng"
|
||||
IDS_NO_SUCH_FILE "FINN: %s: Ingen filer\n"
|
||||
IDS_CANNOT_OPEN "FINN: %s: Kan ikke åpne filen\n"
|
||||
END
|
21
base/applications/cmdutils/find/lang/pl-PL.rc
Normal file
21
base/applications/cmdutils/find/lang/pl-PL.rc
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Translated by Caemyr - Olaf Siejka (Dec,2007)
|
||||
* Use ReactOS forum PM or IRC to contact me
|
||||
* http://www.reactos.org
|
||||
* IRC: irc.freenode.net #reactos-pl
|
||||
* UTF-8 conversion by Caemyr (May, 2011)
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Wyświetla wszystkie linie danego pliku, zawierające szukany ciąg znaków.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""ciąg znaków"" [ plik... ]\n\
|
||||
/C Oblicza w ilu liniach pojawił się szukany ciąg znaków\n\
|
||||
/I Ignoruje wielkość liter\n\
|
||||
/N Numeruje wyświetlane linie, zaczynając od 1\n\
|
||||
/V Wyświetla te linie, które nie zawierają szukanego ciągu znaków"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: Plik nie został znaleziony\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Nie można otworzyć pliku\n"
|
||||
END
|
13
base/applications/cmdutils/find/lang/pt-BR.rc
Normal file
13
base/applications/cmdutils/find/lang/pt-BR.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Localiza uma seqüência de texto em um ou mais arquivos.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""seqüência"" [ arquivo... ]\n\
|
||||
/C Exibe apenas o número de linhas que contêm a seqüência.\n\
|
||||
/I Ignora maiúsculas/minúsculas ao localizar uma seqüência.\n\
|
||||
/N Exibe o número de cada linha, iniciando no 1.\n\
|
||||
/V Exibe todas as linhas que NÃO contêm a seqüência especificada."
|
||||
IDS_NO_SUCH_FILE "FIND: %s: Arquivo não encontrado\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Não foi possível abrir o arquivo\n"
|
||||
END
|
21
base/applications/cmdutils/find/lang/ro-RO.rc
Normal file
21
base/applications/cmdutils/find/lang/ro-RO.rc
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* FILE: base/applications/cmdutils/find/lang/ro-RO.rc
|
||||
* ReactOS Project (http://www.reactos.org)
|
||||
* TRANSLATOR: Fulea Ștefan (PM on ReactOS Forum at fulea.stefan)
|
||||
* CHANGE LOG: 2011-08-20 initial translation
|
||||
* 2011-10-17 diacritics change, other minor changes
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Tipărește toate rândurile unui fișier ce conțin un șir.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""șir"" [ fișier... ]\n\
|
||||
/C Numără liniile ce conțin șirul.\n\
|
||||
/I Ignoră diferențele între majuscule și minuscule.\n\
|
||||
/N Numără rândurile afișate, începând cu 1.\n\
|
||||
/V Tipărește rândurile ce nu conțin șirul."
|
||||
IDS_NO_SUCH_FILE "FIND: Fișierul «%s» nu există!\n"
|
||||
IDS_CANNOT_OPEN "FIND: Fișierul «%s» nu poate fi deschis!\n"
|
||||
END
|
16
base/applications/cmdutils/find/lang/ru-RU.rc
Normal file
16
base/applications/cmdutils/find/lang/ru-RU.rc
Normal file
|
@ -0,0 +1,16 @@
|
|||
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "Поиск текстовой строки в одном или нескольких файлах.\n\n\
|
||||
FIND [/V] [/C] [/N] [/I] ""строка"" [[диск:][путь]имя_файла[ ...]]\n\
|
||||
/V Вывод всех строк, НЕ содержащих заданную строку.\n\
|
||||
/C Вывод только общего числа строк, содержащих заданную строку.\n\
|
||||
/N Вывод номеров отображаемых строк.\n\
|
||||
/I Поиск без учета регистра символов.\n\
|
||||
""строка"" Искомая строка.\n\
|
||||
[диск:][путь]имя_файла\n\
|
||||
Один или несколько файлов, в которых выполняется поиск."
|
||||
IDS_NO_SUCH_FILE "FIND: %s: Файл не существует.\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Невозможно открыть файл.\n"
|
||||
END
|
17
base/applications/cmdutils/find/lang/sk-SK.rc
Normal file
17
base/applications/cmdutils/find/lang/sk-SK.rc
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* TRANSLATOR: Mário Kačmár /Mario Kacmar/ aka Kario (kario@szm.sk)
|
||||
* DATE OF TR: 12-02-2008
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Zobrazí všetky riadky súboru obsahujúce hľadaný reťazec.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""reťazec"" [ súbor... ]\n\
|
||||
/C Zobrazí počet riadkov, ktoré obsahujú reťazec.\n\
|
||||
/I Ignoruje veľkosť písmen.\n\
|
||||
/N Čísluje zobrazené riadky, začína od 1.\n\
|
||||
/V Zobrazí všetky riadky, ktoré neobsahujú hľadaný reťazec."
|
||||
IDS_NO_SUCH_FILE "FIND: Súbor %s sa nenašiel.\n"
|
||||
IDS_CANNOT_OPEN "FIND: Súbor %s sa nedá otvoriť.\n"
|
||||
END
|
17
base/applications/cmdutils/find/lang/sq-AL.rc
Normal file
17
base/applications/cmdutils/find/lang/sq-AL.rc
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* TRANSLATOR : Ardit Dani (Ard1t) (ardit.dani@gmail.com)
|
||||
* DATE OF TR: 29-11-2013
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_ALBANIAN, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Printon të gjitha linjat e një skedari që përmbajnë një fije.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""fije"" [ file... ]\n\
|
||||
/C Numërimi i numerave e linjave që përmbajnë nje fije\n\
|
||||
/I Injorojnë çështjen\n\
|
||||
/N Shfaq numrin e linjave, duke filluar nga 1\n\
|
||||
/V Shfaq linjat e nuk permbajne nje fije"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: Dokumenti nuk i gjet\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: E pamundur te hapet dokumenti\n"
|
||||
END
|
13
base/applications/cmdutils/find/lang/sv-SE.rc
Normal file
13
base/applications/cmdutils/find/lang/sv-SE.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Skriver ut alla rader i en fil som innehåller en sträng.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""sträng"" [ fil... ]\n\
|
||||
/C Räkna antalet rader som innehåller en strängen\n\
|
||||
/I Ignorera skiftläge\n\
|
||||
/N Antal visade rader, börjar på 1\n\
|
||||
/V Skriver ut rader som inte innehåller strängen"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: Ingen sorts fil\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Kan inte öppna filen\n"
|
||||
END
|
15
base/applications/cmdutils/find/lang/tr-TR.rc
Normal file
15
base/applications/cmdutils/find/lang/tr-TR.rc
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
|
||||
|
||||
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Bir dizgi içeren bir kütüğün tüm yataçlarını yazdırır.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""dizgi"" [ kütük... ]\n\
|
||||
/C Dizgi içeren yataç sayısını say\n\
|
||||
/I Büyük-küçük harfliği yok say\n\
|
||||
/N 1'den başlayan, görüntülenen yataç sayısı\n\
|
||||
/V Dizgi içermeyen yataçları yazdır"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: Böyle dosya yok\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Kütük açılamıyor\n"
|
||||
END
|
21
base/applications/cmdutils/find/lang/uk-UA.rc
Normal file
21
base/applications/cmdutils/find/lang/uk-UA.rc
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* PROJECT: Find
|
||||
* LICENSE: GPL - See COPYING in the top level directory
|
||||
* FILE: base/applications/cmdutils/find/lang/uk-UA.rc
|
||||
* PURPOSE: Ukraianian Language File for find
|
||||
* TRANSLATOR: Artem Reznikov
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: Виведення всіх рядків файлу, які містять рядок.\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""рядок"" [ файл... ]\n\
|
||||
/C Порахувати кількість рядків, які містять рядок\n\
|
||||
/I Не враховувати регістр символів\n\
|
||||
/N Нумерувати рядки, які відображаються (починаючи з 1)\n\
|
||||
/V Виведення рядків, які не містять заданий рядок"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: Файл не існує\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: Неможливо відкрити файл\n"
|
||||
END
|
15
base/applications/cmdutils/find/lang/zh-CN.rc
Normal file
15
base/applications/cmdutils/find/lang/zh-CN.rc
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* Translated by Song Fuchang (0xfc) <sfc_0@yahoo.com.cn> */
|
||||
|
||||
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: 输出某文件中包含指定字符串的所有行。\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""字符串"" [ 文件... ]\n\
|
||||
/C 计算包含该字符串的行数\n\
|
||||
/I 忽略大小写\n\
|
||||
/N 从 1 开始为显示的行编号\n\
|
||||
/V 输出不包含该指定字符串的行"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: 没有这个文件\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: 无法打开文件\n"
|
||||
END
|
15
base/applications/cmdutils/find/lang/zh-TW.rc
Normal file
15
base/applications/cmdutils/find/lang/zh-TW.rc
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* Traditional Chinese translation by Henry Tang Ih 2016 (henrytang2@hotmail.com) */
|
||||
|
||||
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_USAGE "FIND: 輸出某檔中包含指定字串的所有行。\n\n\
|
||||
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""字串"" [ 文件... ]\n\
|
||||
/C 計算包含該字串的行數\n\
|
||||
/I 忽略大小寫\n\
|
||||
/N 從 1 開始為顯示的行編號\n\
|
||||
/V 輸出不包含該指定字串的行"
|
||||
IDS_NO_SUCH_FILE "FIND: %s: 沒有這個檔\n"
|
||||
IDS_CANNOT_OPEN "FIND: %s: 無法打開檔\n"
|
||||
END
|
5
base/applications/cmdutils/find/resource.h
Normal file
5
base/applications/cmdutils/find/resource.h
Normal file
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#define IDS_USAGE 1000
|
||||
#define IDS_NO_SUCH_FILE 1001
|
||||
#define IDS_CANNOT_OPEN 1002
|
Loading…
Add table
Add a link
Reference in a new issue