1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2014-10-06 20:57+0300\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
26 msgid "dos2unix - DOS/Mac to Unix and vice versa text file format converter"
38 " dos2unix [options] [FILE ...] [-n INFILE OUTFILE ...]\n"
39 " unix2dos [options] [FILE ...] [-n INFILE OUTFILE ...]\n"
51 "The Dos2unix package includes utilities C<dos2unix> and C<unix2dos> to "
52 "convert plain text files in DOS or Mac format to Unix format and vice versa."
58 "In DOS/Windows text files a line break, also known as newline, is a "
59 "combination of two characters: a Carriage Return (CR) followed by a Line "
60 "Feed (LF). In Unix text files a line break is a single character: the Line "
61 "Feed (LF). In Mac text files, prior to Mac OS X, a line break was single "
62 "Carriage Return (CR) character. Nowadays Mac OS uses Unix style (LF) line "
69 "Besides line breaks Dos2unix can also convert the encoding of files. A few "
70 "DOS code pages can be converted to Unix Latin-1. And Windows Unicode "
71 "(UTF-16) files can be converted to Unix Unicode (UTF-8) files."
76 msgid "Binary files are automatically skipped, unless conversion is forced."
81 msgid "Non-regular files, such as directories and FIFOs, are automatically skipped."
87 "Symbolic links and their targets are by default kept untouched. Symbolic "
88 "links can optionally be replaced, or the output can be written to the "
89 "symbolic link target. Writing to a symbolic link target is not supported on "
96 "Dos2unix was modelled after dos2unix under SunOS/Solaris. There is one "
97 "important difference with the original SunOS/Solaris version. This version "
98 "does by default in-place conversion (old file mode), while the original "
99 "SunOS/Solaris version only supports paired conversion (new file mode). See "
100 "also options C<-o> and C<-n>."
116 "Treat all following options as file names. Use this option if you want to "
117 "convert files whose names start with a dash. For instance to convert a file "
118 "named \"-foo\", you can use this command:"
125 " dos2unix -- -foo\n"
131 msgid "Or in new file mode:"
138 " dos2unix -n -- -foo out.txt\n"
149 msgid "Convert only line breaks. This is the default conversion mode."
160 "Conversion between DOS and ISO-8859-1 character set. See also section "
171 msgid "Use Windows code page 1252 (Western European)."
182 "Use DOS code page 437 (US). This is the default code page used for ISO "
193 msgid "Use DOS code page 850 (Western European)."
203 msgid "Use DOS code page 860 (Portuguese)."
213 msgid "Use DOS code page 863 (French Canadian)."
223 msgid "Use DOS code page 865 (Nordic)."
233 msgid "Convert 8 bit characters to 7 bit space."
238 msgid "B<-b, --keep-bom>"
244 "Keep Byte Order Mark (BOM). When the input file has a BOM, write a BOM in "
245 "the output file. This is the default behavior when converting to DOS line "
246 "breaks. See also option C<-r>."
251 msgid "B<-c, --convmode CONVMODE>"
257 "Set conversion mode. Where CONVMODE is one of: I<ascii>, I<7bit>, I<iso>, "
258 "I<mac> with ascii being the default."
263 msgid "B<-f, --force>"
268 msgid "Force conversion of binary files."
273 msgid "B<-h, --help>"
278 msgid "Display help and exit."
283 msgid "B<-i[FLAGS], --info[=FLAGS] FILE ...>"
288 msgid "Display file information. No conversion is done."
294 "The following information is printed, in this order: number of DOS line "
295 "breaks, number of Unix line breaks, number of Mac line breaks, byte order "
296 "mark, text or binary, file name."
301 msgid "Example output:"
308 " 6 0 0 no_bom text dos.txt\n"
309 " 0 6 0 no_bom text unix.txt\n"
310 " 0 0 6 no_bom text mac.txt\n"
311 " 6 6 6 no_bom text mixed.txt\n"
312 " 50 0 0 UTF-16LE text utf16le.txt\n"
313 " 0 50 0 no_bom text utf8unix.txt\n"
314 " 50 0 0 UTF-8 text utf8dos.txt\n"
315 " 2 418 219 no_bom binary dos2unix.exe\n"
322 "Optionally extra flags can be set to change the output. One or more flags "
333 msgid "Print number of DOS line breaks."
343 msgid "Print number of Unix line breaks."
353 msgid "Print number of Mac line breaks."
363 msgid "Print the byte order mark."
373 msgid "Print if file is text or binary."
383 msgid "Print only the files that would be converted."
389 "With the C<c> flag dos2unix will print only the files that contain DOS line "
390 "breaks, unix2dos will print only file names that have Unix line breaks."
400 msgid "Show information for all *.txt files:"
407 " dos2unix -i *.txt\n"
413 msgid "Show only the number of DOS line breaks and Unix line breaks:"
420 " dos2unix -idu *.txt\n"
426 msgid "Show only the byte order mark:"
433 " dos2unix --info=b *.txt\n"
439 msgid "List the files that have DOS line breaks."
446 " dos2unix -ic *.txt\n"
452 msgid "List the files that have Unix line breaks."
459 " unix2dos -ic *.txt\n"
465 msgid "B<-k, --keepdate>"
470 msgid "Keep the date stamp of output file same as input file."
475 msgid "B<-L, --license>"
480 msgid "Display program's license."
485 msgid "B<-l, --newline>"
490 msgid "Add additional newline."
496 "B<dos2unix>: Only DOS line breaks are changed to two Unix line breaks. In "
497 "Mac mode only Mac line breaks are changed to two Unix line breaks."
503 "B<unix2dos>: Only Unix line breaks are changed to two DOS line breaks. In "
504 "Mac mode Unix line breaks are changed to two Mac line breaks."
509 msgid "B<-m, --add-bom>"
515 "Write a Byte Order Mark (BOM) in the output file. By default an UTF-8 BOM is "
522 "When the input file is UTF-16, and the option C<-u> is used, an UTF-16 BOM "
529 "Never use this option when the output encoding is other than UTF-8 or "
530 "UTF-16. See also section UNICODE."
535 msgid "B<-n, --newfile INFILE OUTFILE ...>"
541 "New file mode. Convert file INFILE and write output to file OUTFILE. File "
542 "names must be given in pairs and wildcard names should I<not> be used or you "
543 "I<will> lose your files."
549 "The person who starts the conversion in new file (paired) mode will be the "
550 "owner of the converted file. The read/write permissions of the new file will "
551 "be the permissions of the original file minus the umask(1) of the person who "
552 "runs the conversion."
557 msgid "B<-o, --oldfile FILE ...>"
563 "Old file mode. Convert file FILE and overwrite output to it. The program "
564 "defaults to run in this mode. Wildcard names may be used."
570 "In old file (in-place) mode the converted file gets the same owner, group, "
571 "and read/write permissions as the original file. Also when the file is "
572 "converted by another user who has write permissions on the file (e.g. user "
573 "root). The conversion will be aborted when it is not possible to preserve "
574 "the original values. Change of owner could mean that the original owner is "
575 "not able to read the file any more. Change of group could be a security "
576 "risk, the file could be made readable for persons for whom it is not "
577 "intended. Preservation of owner, group, and read/write permissions is only "
583 msgid "B<-q, --quiet>"
589 "Quiet mode. Suppress all warnings and messages. The return value is zero. "
590 "Except when wrong command-line options are used."
595 msgid "B<-r, --remove-bom>"
601 "Remove Byte Order Mark (BOM). Do not write a BOM in the output file. This "
602 "is the default behavior when converting to Unix line breaks. See also "
608 msgid "B<-s, --safe>"
613 msgid "Skip binary files (default)."
618 msgid "B<-u, --keep-utf16>"
624 "Keep the original UTF-16 encoding of the input file. The output file will be "
625 "written in the same UTF-16 encoding, little or big endian, as the input "
626 "file. This prevents transformation to UTF-8. An UTF-16 BOM will be written "
627 "accordingly. This option can be disabled with the C<-ascii> option."
632 msgid "B<-ul, --assume-utf16le>"
637 msgid "Assume that the input file format is UTF-16LE."
643 "When there is a Byte Order Mark in the input file the BOM has priority over "
650 "When you made a wrong assumption (the input file was not in UTF-16LE format) "
651 "and the conversion succeeded, you will get an UTF-8 output file with wrong "
652 "text. You can undo the wrong conversion with iconv(1) by converting the "
653 "UTF-8 output file back to UTF-16LE. This will bring back the original file."
659 "The assumption of UTF-16LE works as a I<conversion mode>. By switching to "
660 "the default I<ascii> mode the UTF-16LE assumption is turned off."
665 msgid "B<-ub, --assume-utf16be>"
670 msgid "Assume that the input file format is UTF-16BE."
675 msgid "This option works the same as option C<-ul>."
680 msgid "B<-v, --verbose>"
686 "Display verbose messages. Extra information is displayed about Byte Order "
687 "Marks and the amount of converted line breaks."
692 msgid "B<-F, --follow-symlink>"
697 msgid "Follow symbolic links and convert the targets."
702 msgid "B<-R, --replace-symlink>"
708 "Replace symbolic links with converted files (original target files remain "
714 msgid "B<-S, --skip-symlink>"
719 msgid "Keep symbolic links and targets unchanged (default)."
724 msgid "B<-V, --version>"
729 msgid "Display version information and exit."
740 "In normal mode line breaks are converted from DOS to Unix and vice versa. "
741 "Mac line breaks are not converted."
747 "In Mac mode line breaks are converted from Mac to Unix and vice versa. DOS "
748 "line breaks are not changed."
754 "To run in Mac mode use the command-line option C<-c mac> or use the commands "
755 "C<mac2unix> or C<unix2mac>."
760 msgid "CONVERSION MODES"
771 "In mode C<ascii> only line breaks are converted. This is the default "
778 "Although the name of this mode is ASCII, which is a 7 bit standard, the "
779 "actual mode is 8 bit. Use always this mode when converting Unicode UTF-8 "
791 "In this mode all 8 bit non-ASCII characters (with values from 128 to 255) "
792 "are converted to a 7 bit space."
803 "Characters are converted between a DOS character set (code page) and ISO "
804 "character set ISO-8859-1 (Latin-1) on Unix. DOS characters without "
805 "ISO-8859-1 equivalent, for which conversion is not possible, are converted "
806 "to a dot. The same counts for ISO-8859-1 characters without DOS counterpart."
812 "When only option C<-iso> is used dos2unix will try to determine the active "
813 "code page. When this is not possible dos2unix will use default code page "
814 "CP437, which is mainly used in the USA. To force a specific code page use "
815 "options C<-437> (US), C<-850> (Western European), C<-860> (Portuguese), "
816 "C<-863> (French Canadian), or C<-865> (Nordic). Windows code page CP1252 "
817 "(Western European) is also supported with option C<-1252>. For other code "
818 "pages use dos2unix in combination with iconv(1). Iconv can convert between "
819 "a long list of character encodings."
825 "Never use ISO conversion on Unicode text files. It will corrupt UTF-8 "
831 msgid "Some examples:"
836 msgid "Convert from DOS default code page to Unix Latin-1"
843 " dos2unix -iso -n in.txt out.txt\n"
849 msgid "Convert from DOS CP850 to Unix Latin-1"
856 " dos2unix -850 -n in.txt out.txt\n"
862 msgid "Convert from Windows CP1252 to Unix Latin-1"
869 " dos2unix -1252 -n in.txt out.txt\n"
875 msgid "Convert from Windows CP1252 to Unix UTF-8 (Unicode)"
882 " iconv -f CP1252 -t UTF-8 in.txt | dos2unix > out.txt\n"
888 msgid "Convert from Unix Latin-1 to DOS default code page"
895 " unix2dos -iso -n in.txt out.txt\n"
901 msgid "Convert from Unix Latin-1 to DOS CP850"
908 " unix2dos -850 -n in.txt out.txt\n"
914 msgid "Convert from Unix Latin-1 to Windows CP1252"
921 " unix2dos -1252 -n in.txt out.txt\n"
927 msgid "Convert from Unix UTF-8 (Unicode) to Windows CP1252"
934 " unix2dos < in.txt | iconv -f UTF-8 -t CP1252 > out.txt\n"
941 "See also L<http://czyborra.com/charsets/codepages.html> and "
942 "L<http://czyborra.com/charsets/iso8859.html>."
958 "There exist different Unicode encodings. On Unix and Linux Unicode files are "
959 "typically encoded in UTF-8 encoding. On Windows Unicode text files can be "
960 "encoded in UTF-8, UTF-16, or UTF-16 big endian, but are mostly encoded in "
972 "Unicode text files can have DOS, Unix or Mac line breaks, like regular text "
979 "All versions of dos2unix and unix2dos can convert UTF-8 encoded files, "
980 "because UTF-8 was designed for backward compatibility with ASCII."
986 "Dos2unix and unix2dos with Unicode UTF-16 support, can read little and big "
987 "endian UTF-16 encoded text files. To see if dos2unix was built with UTF-16 "
988 "support type C<dos2unix -V>."
994 "UTF-16 encoded files are by default converted to UTF-8. On Unix/Linux it is "
995 "required that the locale character encoding is set to UTF-8. Use the "
996 "locale(1) command to find out what the locale character encoding is. UTF-8 "
997 "formatted text files are well supported on both Windows and Unix/Linux."
1003 "UTF-16 and UTF-8 encoding are fully compatible, there will no text be lost "
1004 "in the conversion. When an UTF-16 to UTF-8 conversion error occurs, for "
1005 "instance when the UTF-16 input file contains an error, the file will be "
1012 "When option C<-u> is used, the output file will be written in the same "
1013 "UTF-16 encoding as the input file. Option C<-u> prevents conversion to "
1019 msgid "Dos2unix and unix2dos have no option to convert UTF-8 files to UTF-16."
1024 msgid "ISO and 7-bit mode conversion do not work on UTF-16 files."
1029 msgid "Byte Order Mark"
1035 "On Windows Unicode text files typically have a Byte Order Mark (BOM), "
1036 "because many Windows programs (including Notepad) add BOMs by default. See "
1037 "also L<http://en.wikipedia.org/wiki/Byte_order_mark>."
1043 "On Unix Unicode files typically don't have a BOM. It is assumed that text "
1044 "files are encoded in the locale character encoding."
1050 "Dos2unix can only detect if a file is in UTF-16 format if the file has a "
1051 "BOM. When an UTF-16 file doesn't have a BOM, dos2unix will see the file as "
1057 msgid "Use option C<-ul> or C<-ub> to convert an UTF-16 file without BOM."
1063 "Dos2unix writes by default no BOM in the output file. With option C<-b> "
1064 "Dos2unix writes a BOM when the input file has a BOM."
1070 "Unix2dos writes by default a BOM in the output file when the input file has "
1071 "a BOM. Use option C<-r> to remove the BOM."
1076 msgid "Dos2unix and unix2dos write always a BOM when option C<-m> is used."
1081 msgid "Unicode examples"
1086 msgid "Convert from Windows UTF-16 (with BOM) to Unix UTF-8"
1093 " dos2unix -n in.txt out.txt\n"
1099 msgid "Convert from Windows UTF-16LE (without BOM) to Unix UTF-8"
1106 " dos2unix -ul -n in.txt out.txt\n"
1112 msgid "Convert from Unix UTF-8 to Windows UTF-8 with BOM"
1119 " unix2dos -m -n in.txt out.txt\n"
1125 msgid "Convert from Unix UTF-8 to Windows UTF-16"
1132 " unix2dos < in.txt | iconv -f UTF-8 -t UTF-16 > out.txt\n"
1143 msgid "Read input from 'stdin' and write output to 'stdout'."
1151 " dos2unix -l -c mac\n"
1157 msgid "Convert and replace a.txt. Convert and replace b.txt."
1164 " dos2unix a.txt b.txt\n"
1165 " dos2unix -o a.txt b.txt\n"
1171 msgid "Convert and replace a.txt in ascii conversion mode."
1185 "Convert and replace a.txt in ascii conversion mode. Convert and replace "
1186 "b.txt in 7bit conversion mode."
1193 " dos2unix a.txt -c 7bit b.txt\n"
1194 " dos2unix -c ascii a.txt -c 7bit b.txt\n"
1195 " dos2unix -ascii a.txt -7 b.txt\n"
1201 msgid "Convert a.txt from Mac to Unix format."
1208 " dos2unix -c mac a.txt\n"
1215 msgid "Convert a.txt from Unix to Mac format."
1222 " unix2dos -c mac a.txt\n"
1229 msgid "Convert and replace a.txt while keeping original date stamp."
1236 " dos2unix -k a.txt\n"
1237 " dos2unix -k -o a.txt\n"
1243 msgid "Convert a.txt and write to e.txt."
1250 " dos2unix -n a.txt e.txt\n"
1256 msgid "Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt."
1263 " dos2unix -k -n a.txt e.txt\n"
1269 msgid "Convert and replace a.txt. Convert b.txt and write to e.txt."
1276 " dos2unix a.txt -n b.txt e.txt\n"
1277 " dos2unix -o a.txt -n b.txt e.txt\n"
1284 "Convert c.txt and write to e.txt. Convert and replace a.txt. Convert and "
1285 "replace b.txt. Convert d.txt and write to f.txt."
1292 " dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt\n"
1298 msgid "RECURSIVE CONVERSION"
1304 "Use dos2unix in combination with the find(1) and xargs(1) commands to "
1305 "recursively convert text files in a directory tree structure. For instance "
1306 "to convert all .txt files in the directory tree under the current directory "
1314 " find . -name *.txt |xargs dos2unix\n"
1320 msgid "LOCALIZATION"
1331 "The primary language is selected with the environment variable LANG. The "
1332 "LANG variable consists out of several parts. The first part is in small "
1333 "letters the language code. The second is optional and is the country code in "
1334 "capital letters, preceded with an underscore. There is also an optional "
1335 "third part: character encoding, preceded with a dot. A few examples for "
1336 "POSIX standard type shells:"
1343 " export LANG=nl Dutch\n"
1344 " export LANG=nl_NL Dutch, The Netherlands\n"
1345 " export LANG=nl_BE Dutch, Belgium\n"
1346 " export LANG=es_ES Spanish, Spain\n"
1347 " export LANG=es_MX Spanish, Mexico\n"
1348 " export LANG=en_US.iso88591 English, USA, Latin-1 encoding\n"
1349 " export LANG=en_GB.UTF-8 English, UK, UTF-8 encoding\n"
1356 "For a complete list of language and country codes see the gettext manual: "
1357 "L<http://www.gnu.org/software/gettext/manual/gettext.html#Language-Codes>"
1363 "On Unix systems you can use to command locale(1) to get locale specific "
1375 "With the LANGUAGE environment variable you can specify a priority list of "
1376 "languages, separated by colons. Dos2unix gives preference to LANGUAGE over "
1377 "LANG. For instance, first Dutch and then German: C<LANGUAGE=nl:de>. You "
1378 "have to first enable localization, by setting LANG (or LC_ALL) to a value "
1379 "other than \"C\", before you can use a language priority list through the "
1380 "LANGUAGE variable. See also the gettext manual: "
1381 "L<http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable>"
1387 "If you select a language which is not available you will get the standard "
1393 msgid "B<DOS2UNIX_LOCALEDIR>"
1399 "With the environment variable DOS2UNIX_LOCALEDIR the LOCALEDIR set during "
1400 "compilation can be overruled. LOCALEDIR is used to find the language "
1401 "files. The GNU default value is C</usr/local/share/locale>. Option "
1402 "B<--version> will display the LOCALEDIR that is used."
1407 msgid "Example (POSIX shell):"
1414 " export DOS2UNIX_LOCALEDIR=$HOME/share/locale\n"
1420 msgid "RETURN VALUE"
1426 "On success, zero is returned. When a system error occurs the last system "
1427 "error will be returned. For other errors 1 is returned."
1433 "The return value is always zero in quiet mode, except when wrong "
1434 "command-line options are used."
1444 msgid "L<http://en.wikipedia.org/wiki/Text_file>"
1449 msgid "L<http://en.wikipedia.org/wiki/Carriage_return>"
1454 msgid "L<http://en.wikipedia.org/wiki/Newline>"
1459 msgid "L<http://en.wikipedia.org/wiki/Unicode>"
1470 "Benjamin Lin - <blin@socs.uts.edu.au> Bernd Johannes Wuebben (mac2unix mode) "
1471 "- <wuebben@kde.org>, Christian Wurll (add extra newline) - "
1472 "<wurll@ira.uka.de>, Erwin Waterlander - <waterlan@xs4all.nl> (Maintainer)"
1477 msgid "Project page: L<http://waterlan.home.xs4all.nl/dos2unix.html>"
1482 msgid "SourceForge page: L<http://sourceforge.net/projects/dos2unix/>"
1492 msgid "file(1) find(1) iconv(1) locale(1) xargs(1)"