attempting to test this; not working so far

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@421 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
joregan 2010-07-19 02:13:27 +00:00
parent bd7015e0e9
commit 722967201a
3 changed files with 119 additions and 16 deletions

View File

@ -218,13 +218,13 @@ int main(int argc, char **argv) {
api.Init(argv[0], lang, &(argv[arg]), argc-arg, false);
api.SetPageSegMode(tesseract::PSM_AUTO);
tprintf (_("Tesseract Open Source OCR Engine %s\n"));
tprintf (_("Tesseract Open Source OCR Engine"));
#if defined(HAVE_LIBLEPT)
tprintf (_("with Leptonica"));
tprintf (_(" with Leptonica\n"));
#elif defined(_TIFFIO_)
tprintf (_("with LibTiff"));
tprintf (_(" with LibTiff\n"));
#else
tprintf ("");
tprintf ("\n");
#endif
IMAGE image;
@ -318,7 +318,7 @@ int main(int argc, char **argv) {
TIFFClose(archive);
archive = TIFFOpen(argv[1], "r");
if (archive == NULL) {
tprintf(_("Read of file %s failed\n"), argv[1]);
tprintf(_("Read of file %s failed.\n"), argv[1]);
exit(1);
}
if (page_number > 0)

109
po/pl.po Normal file
View File

@ -0,0 +1,109 @@
# Polish translations for tesseract package.
# This file is put in the public domain.
# Automatically generated, 2010.
#
msgid ""
msgstr ""
"Project-Id-Version: tesseract 3.00\n"
"Report-Msgid-Bugs-To: joregan@gmail.com\n"
"POT-Creation-Date: 2010-07-19 03:05+0100\n"
"PO-Revision-Date: 2010-07-19 00:49+0100\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
"|| n%100>=20) ? 1 : 2);\n"
#: api/tesseractmain.cpp:148
#, c-format
msgid "Error: Must have a unlv zone file %s to read!\n"
msgstr ""
#: api/tesseractmain.cpp:187
#, c-format
msgid "Error: -l must be arg3, not %d\n"
msgstr ""
#: api/tesseractmain.cpp:221
msgid "Tesseract Open Source OCR Engine"
msgstr ""
#: api/tesseractmain.cpp:223
msgid " with Leptonica\n"
msgstr " z Leptonicą\n"
#: api/tesseractmain.cpp:225
msgid " with LibTiff\n"
msgstr " z LibTiff\n"
#: api/tesseractmain.cpp:237
#, c-format
msgid "Image file %s cannot be opened!\n"
msgstr ""
#: api/tesseractmain.cpp:248
#, c-format
msgid "Error reading file %s!\n"
msgstr ""
#: api/tesseractmain.cpp:261 api/tesseractmain.cpp:325
#, c-format
msgid "Page %d\n"
msgstr "Strona %d\n"
#: api/tesseractmain.cpp:280
#, c-format
msgid "File %s cannot be opened!\n"
msgstr ""
#: api/tesseractmain.cpp:289
#, c-format
msgid "Image file %s cannot be read!\n"
msgstr "Nie można czytać pliku %s!\n"
#: api/tesseractmain.cpp:293
#, c-format
msgid "Page %d : %s\n"
msgstr "Strona %d : %s\n"
#: api/tesseractmain.cpp:321 api/tesseractmain.cpp:349
#, c-format
msgid "Read of file %s failed.\n"
msgstr ""
#: api/tesseractmain.cpp:353
#, c-format
msgid "Read of image %s"
msgstr ""
#: api/tesseractmain.cpp:370
#, c-format
msgid "Cannot create output file %s\n"
msgstr ""
#: image/imgtiff.cpp:318
#, c-format
msgid "Image has %d * %d bit%c per pixel, and size (%d,%d)\n"
msgstr ""
#: image/imgtiff.cpp:333
#, c-format
msgid "Resolution=%d\n"
msgstr ""
#: image/imgtiff.cpp:421
#, c-format
msgid "%d pixels short on line %d"
msgstr ""
#: image/imgtiff.cpp:422
#, c-format
msgid ", unknown code=%x\n"
msgstr ", nieznany kod=%x\n"
#: image/imgtiff.cpp:426
#, c-format
msgid "Discarding %d bits on line %d\n"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tesseract 3.00\n"
"Report-Msgid-Bugs-To: joregan@gmail.com\n"
"POT-Creation-Date: 2010-07-19 02:54+0100\n"
"POT-Creation-Date: 2010-07-19 03:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -26,16 +26,15 @@ msgid "Error: -l must be arg3, not %d\n"
msgstr ""
#: api/tesseractmain.cpp:221
#, c-format
msgid "Tesseract Open Source OCR Engine %s\n"
msgid "Tesseract Open Source OCR Engine"
msgstr ""
#: api/tesseractmain.cpp:223
msgid "with Leptonica"
msgid " with Leptonica\n"
msgstr ""
#: api/tesseractmain.cpp:225
msgid "with LibTiff"
msgid " with LibTiff\n"
msgstr ""
#: api/tesseractmain.cpp:237
@ -68,12 +67,7 @@ msgstr ""
msgid "Page %d : %s\n"
msgstr ""
#: api/tesseractmain.cpp:321
#, c-format
msgid "Read of file %s failed\n"
msgstr ""
#: api/tesseractmain.cpp:349
#: api/tesseractmain.cpp:321 api/tesseractmain.cpp:349
#, c-format
msgid "Read of file %s failed.\n"
msgstr ""