1 <?xml version="1.0" encoding="utf-8"?>
3 <TS version="2.0" language="zh">
5 <name>FindDialog</name>
7 <location filename="../tools/linguist/linguist/finddialog.cpp" line="+12"/>
9 <comment>Choose Edit|Find from the menu bar or press Ctrl+F to pop up the Find dialog</comment>
10 <translation></translation>
16 <location filename="../src/tools/lconvert/lconvert.cpp" line="+68"/>
19 lconvert [options] <infile> [<infile>...]
21 lconvert is part of Qt's Linguist tool chain. It can be used as a
22 stand-alone tool to convert and filter translation data files.
23 The following file formats are supported:
26 If multiple input files are specified, they are merged with
27 translations from later files taking precedence.
31 --help Display this information and exit.
34 --input-file <infile>
35 Specify input file. Use if <infile> might start with a dash.
36 This option can be used several times to merge inputs.
37 May be '-' (standard input) for use in a pipe.
40 --output-file <outfile>
41 Specify output file. Default is '-' (standard output).
44 --input-format <format>
45 Specify input format for subsequent <infile>s.
46 The format is auto-detected from the file name and defaults to 'ts'.
49 --output-format <outformat>
50 Specify output format. See -if.
52 --input-codec <codec>
53 Specify encoding for QM and PO input files. Default is 'Latin1'
54 for QM and 'UTF-8' for PO files. UTF-8 is always tried as well for
55 QM, corresponding to the possible use of the trUtf8() function.
57 --output-codec <codec>
58 Specify encoding for PO output files. Default is 'UTF-8'.
60 --drop-tags <regexp>
61 Drop named extra tags when writing TS or XLIFF files.
62 May be specified repeatedly.
65 Drop existing translations and reset the status to 'unfinished'.
66 Note: this implies --no-obsolete.
68 --source-language <language>[_<region>]
69 Specify/override the language of the source strings. Defaults to
70 POSIX if not specified and the file does not name it yet.
72 --target-language <language>[_<region>]
73 Specify/override the language of the translation.
74 The target language is guessed from the file name if this option
75 is not specified and the file contents name no language yet.
78 Drop obsolete messages.
81 Drop finished messages.
84 Sort contexts in output TS file alphabetically.
86 --locations {absolute|relative|none}
87 Override how source code references are saved in TS files.
91 Drop line numbers from references to UI files.
96 Long options can be specified with only one leading dash, too.
100 1 on command line parse failures
104 <translation type="unfinished"></translation>
108 <name>LRelease</name>
110 <location filename="../src/tools/lrelease/lrelease.cpp" line="+95"/>
112 lrelease [options] ts-files [-qm qm-file]
114 lrelease is part of Qt's Linguist tool chain. It can be used as a
115 stand-alone tool to convert XML-based translations files in the TS
116 format into the 'compiled' QM format used by QTranslator objects.
119 -help Display this information and exit
121 Use IDs instead of source strings for message keying
123 Compress the QM files
125 Do not include unfinished translations
127 If the translated text is the same as
128 the source text, do not include the message
129 -markuntranslated <prefix>
130 If a message has no real translation, use the source text
131 prefixed with the given string instead
133 Do not explain what is being done
135 Display the version of lrelease and exit
137 <translation type="unfinished"></translation>
140 <location line="+32"/>
141 <source>lrelease error: %1</source>
142 <translation type="unfinished"></translation>
145 <location line="+15"/>
146 <source>Updating '%1'...
148 <translation type="unfinished"></translation>
151 <location line="+3"/>
152 <source>Removing translations equal to source text in '%1'...
154 <translation type="unfinished"></translation>
157 <location line="+6"/>
158 <source>lrelease error: cannot create '%1': %2
160 <translation type="unfinished"></translation>
163 <location line="+10"/>
164 <source>lrelease error: cannot save '%1': %2</source>
165 <translation type="unfinished"></translation>
168 <location line="+87"/>
169 <source>lrelease version %1
171 <translation type="unfinished"></translation>
177 <location filename="../src/tools/lupdate/cpp.cpp" line="+639"/>
178 <source>Parenthesis/bracket/brace mismatch between #if and #else branches; using #if branch
180 <translation type="unfinished"></translation>
183 <location line="+23"/>
184 <source>Parenthesis/brace mismatch between #if and #else branches; using #if branch
186 <translation type="unfinished"></translation>
189 <location line="+27"/>
190 <location line="+144"/>
191 <source>Unterminated C++ comment
193 <translation type="unfinished"></translation>
196 <location line="+33"/>
197 <source>Unterminated C++ string
199 <translation type="unfinished"></translation>
202 <location line="+57"/>
203 <source>Excess closing brace in C++ code (or abuse of the C++ preprocessor)
205 <translation type="unfinished"></translation>
208 <location line="+18"/>
209 <source>Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor)
211 <translation type="unfinished"></translation>
214 <location line="+15"/>
215 <source>Excess closing bracket in C++ code (or abuse of the C++ preprocessor)
217 <translation type="unfinished"></translation>
220 <location line="+430"/>
221 <source>Cannot open %1: %2
223 <translation type="unfinished"></translation>
226 <location line="+451"/>
227 <source>//% cannot be used with tr() / QT_TR_NOOP(). Ignoring
229 <translation type="unfinished"></translation>
232 <location line="+21"/>
233 <source>Qualifying with unknown namespace/class %1::%2
235 <translation type="unfinished"></translation>
238 <location line="+9"/>
239 <source>tr() cannot be called without context
241 <translation type="unfinished"></translation>
244 <location line="+9"/>
245 <location line="+45"/>
246 <source>Class '%1' lacks Q_OBJECT macro
248 <translation type="unfinished"></translation>
251 <location line="-16"/>
252 <source>It is not recommended to call tr() from within a constructor '%1::%2'
254 <translation type="unfinished"></translation>
257 <location line="+38"/>
258 <source>//% cannot be used with translate() / QT_TRANSLATE_NOOP(). Ignoring
260 <translation type="unfinished"></translation>
263 <location line="+55"/>
264 <source>//= cannot be used with qtTrId() / QT_TRID_NOOP(). Ignoring
266 <translation type="unfinished"></translation>
269 <location line="+67"/>
270 <location filename="../src/tools/lupdate/qscript.cpp" line="+2541"/>
271 <source>Unexpected character in meta string
273 <translation type="unfinished"></translation>
276 <location line="+6"/>
277 <location filename="../src/tools/lupdate/qscript.cpp" line="+6"/>
278 <source>Unterminated meta string
280 <translation type="unfinished"></translation>
283 <location line="+53"/>
284 <source>Cannot invoke tr() like this
286 <translation type="unfinished"></translation>
289 <location line="+33"/>
290 <location filename="../src/tools/lupdate/qscript.cpp" line="-126"/>
291 <source>Discarding unconsumed meta data
293 <translation type="unfinished"></translation>
296 <location line="+40"/>
297 <source>Unbalanced opening brace in C++ code (or abuse of the C++ preprocessor)
299 <translation type="unfinished"></translation>
302 <location line="+4"/>
303 <source>Unbalanced opening parenthesis in C++ code (or abuse of the C++ preprocessor)
305 <translation type="unfinished"></translation>
308 <location line="+4"/>
309 <source>Unbalanced opening bracket in C++ code (or abuse of the C++ preprocessor)
311 <translation type="unfinished"></translation>
314 <location line="+62"/>
315 <location filename="../src/tools/lupdate/ui.cpp" line="+188"/>
316 <location filename="../src/tools/lupdate/qscript.cpp" line="+178"/>
317 <source>Cannot open %1: %2</source>
318 <translation type="unfinished"></translation>
321 <location filename="../src/tools/lupdate/ui.cpp" line="-28"/>
322 <source>XML error: Parse error at line %1, column %2 (%3).</source>
323 <translation type="unfinished"></translation>
326 <location line="+42"/>
327 <source>Parse error in UI file</source>
328 <translation type="unfinished"></translation>
331 <location filename="../src/tools/lupdate/qscript.cpp" line="-1089"/>
332 <source>Illegal character</source>
333 <translation type="unfinished"></translation>
336 <location line="+11"/>
337 <source>Unclosed string at end of line</source>
338 <translation type="unfinished"></translation>
341 <location line="+26"/>
342 <source>Illegal escape sequence</source>
343 <translation type="unfinished"></translation>
346 <location line="+39"/>
347 <source>Illegal unicode escape sequence</source>
348 <translation type="unfinished"></translation>
351 <location line="+28"/>
352 <source>Unclosed comment at end of file</source>
353 <translation type="unfinished"></translation>
356 <location line="+88"/>
357 <source>Illegal syntax for exponential number</source>
358 <translation type="unfinished"></translation>
361 <location line="+26"/>
362 <source>Identifier cannot start with numeric literal</source>
363 <translation type="unfinished"></translation>
366 <location line="+319"/>
367 <source>Unterminated regular expression literal</source>
368 <translation type="unfinished"></translation>
371 <location line="+256"/>
372 <location line="+23"/>
373 <source>//% cannot be used with %1(). Ignoring
375 <translation type="unfinished"></translation>
378 <location line="-20"/>
379 <source>%1() requires at least two arguments.
381 <translation type="unfinished"></translation>
384 <location line="+4"/>
385 <source>%1(): both arguments must be literal strings.
387 <translation type="unfinished"></translation>
390 <location line="+19"/>
391 <location line="+21"/>
392 <source>%1() requires at least one argument.
394 <translation type="unfinished"></translation>
397 <location line="-18"/>
398 <source>%1(): text to translate must be a literal string.
400 <translation type="unfinished"></translation>
403 <location line="+15"/>
404 <source>//= cannot be used with %1(). Ignoring
406 <translation type="unfinished"></translation>
409 <location line="+6"/>
410 <source>%1(): identifier must be a literal string.
412 <translation type="unfinished"></translation>
415 <location line="+133"/>
416 <source>Expected </source>
417 <extracomment>Beginning of the string that contains comma-separated list of expected tokens</extracomment>
418 <translation type="unfinished"></translation>
420 <message numerus="yes">
421 <location filename="../src/tools/lupdate/merge.cpp" line="+494"/>
422 <source> Found %n source text(s) (%1 new and %2 already existing)
424 <translation type="unfinished">
425 <numerusform></numerusform>
428 <message numerus="yes">
429 <location line="+4"/>
430 <source> Removed %n obsolete entries
432 <translation type="unfinished">
433 <numerusform></numerusform>
436 <message numerus="yes">
437 <location line="+2"/>
438 <source> Kept %n obsolete entries
440 <translation type="unfinished">
441 <numerusform></numerusform>
444 <message numerus="yes">
445 <location line="+5"/>
446 <source> Number heuristic provided %n translation(s)
448 <translation type="unfinished">
449 <numerusform></numerusform>
452 <message numerus="yes">
453 <location line="+3"/>
454 <source> Same-text heuristic provided %n translation(s)
456 <translation type="unfinished">
457 <numerusform></numerusform>
460 <message numerus="yes">
461 <location line="+3"/>
462 <source> Similar-text heuristic provided %n translation(s)
464 <translation type="unfinished">
465 <numerusform></numerusform>
469 <location filename="../src/tools/lupdate/lupdate.cpp" line="+90"/>
471 lupdate [options] [source-file|path|@lst-file]... -ts ts-files|@lst-file
473 lupdate is part of Qt's Linguist tool chain. It extracts translatable
474 messages from Qt UI files, C++ and JavaScript/QtScript source code.
475 Extracted messages are stored in textual translation source files (typically
476 Qt TS XML). New and modified messages can be merged into existing TS files.
479 -help Display this information and exit.
481 Drop all obsolete strings.
482 -extensions <ext>[,<ext>]...
483 Process files with the given extensions only.
484 The extension list must be separated with commas, not with whitespace.
485 Default: '%1'.
487 Only include plural form messages.
489 Do not explain what is being done.
491 Do not sort contexts in TS files.
493 Do not recursively scan the following directories.
495 Recursively scan the following directories (default).
496 -I <includepath> or -I<includepath>
497 Additional location to look for include files.
498 May be specified multiple times.
499 -locations {absolute|relative|none}
500 Specify/override how source code references are saved in TS files.
503 Do not record line numbers in references to UI files.
504 -disable-heuristic {sametext|similartext|number}
505 Disable the named merge heuristic. Can be specified multiple times.
506 -source-language <language>[_<region>]
507 Specify the language of the source strings for new files.
508 Defaults to POSIX if not specified.
509 -target-language <language>[_<region>]
510 Specify the language of the translations for new files.
511 Guessed from the file name if not specified.
512 -ts <ts-file>...
513 Specify the output file(s). This will override the TRANSLATIONS
514 and nullify the CODECFORTR from possibly specified project files.
515 -codecfortr <codec>
516 Specify the codec assumed for tr() calls. Effective only with -ts.
518 Display the version of lupdate and exit.
520 Read additional file names (one per line) from lst-file.
522 <translation type="unfinished"></translation>
525 <location line="+73"/>
526 <source>lupdate warning: Codec for tr() '%1' disagrees with existing file's codec '%2'. Expect trouble.
528 <translation type="unfinished"></translation>
531 <location line="+5"/>
532 <source>lupdate warning: Specified target language '%1' disagrees with existing file's language '%2'. Ignoring.
534 <translation type="unfinished"></translation>
537 <location line="+4"/>
538 <source>lupdate warning: Specified source language '%1' disagrees with existing file's language '%2'. Ignoring.
540 <translation type="unfinished"></translation>
543 <location line="+21"/>
544 <source>Updating '%1'...
546 <translation type="unfinished"></translation>
549 <location line="+15"/>
550 <source>Stripping non plural forms in '%1'...
552 <translation type="unfinished"></translation>
555 <location line="+97"/>
556 <source>The option -target-language requires a parameter.
558 <translation type="unfinished"></translation>
561 <location line="+8"/>
562 <source>The option -source-language requires a parameter.
564 <translation type="unfinished"></translation>
567 <location line="+8"/>
568 <source>The option -disable-heuristic requires a parameter.
570 <translation type="unfinished"></translation>
573 <location line="+11"/>
574 <source>Invalid heuristic name passed to -disable-heuristic.
576 <translation type="unfinished"></translation>
579 <location line="+7"/>
580 <source>The option -locations requires a parameter.
582 <translation type="unfinished"></translation>
585 <location line="+10"/>
586 <source>Invalid parameter passed to -locations.
588 <translation type="unfinished"></translation>
591 <location line="+26"/>
592 <source>The -codecfortr option should be followed by a codec name.
594 <translation type="unfinished"></translation>
597 <location line="+11"/>
598 <source>The -extensions option should be followed by an extension list.
600 <translation type="unfinished"></translation>
603 <location line="+9"/>
604 <source>The -I option should be followed by a path.
606 <translation type="unfinished"></translation>
609 <location line="+9"/>
610 <source>Unrecognized option '%1'.
612 <translation type="unfinished"></translation>
615 <location line="+8"/>
616 <source>lupdate error: List file '%1' is not readable.
618 <translation type="unfinished"></translation>
621 <location line="+18"/>
622 <source>lupdate warning: For some reason, '%1' is not writable.
624 <translation type="unfinished"></translation>
627 <location line="+8"/>
628 <source>lupdate error: File '%1' has no recognized extension.
630 <translation type="unfinished"></translation>
633 <location line="+10"/>
634 <source>lupdate error: File '%1' does not exist.
636 <translation type="unfinished"></translation>
639 <location line="+5"/>
640 <source>Scanning directory '%1'...
642 <translation type="unfinished"></translation>
645 <location line="+49"/>
646 <source>lupdate warning: -target-language usually only makes sense with exactly one TS file.
648 <translation type="unfinished"></translation>
651 <location line="+3"/>
652 <source>lupdate warning: -codecfortr has no effect without -ts.
654 <translation type="unfinished"></translation>
657 <location line="+4"/>
658 <source>lupdate warning: no TS files specified. Only diagnostics will be produced.
660 <translation type="unfinished"></translation>
664 <name>MainWindow</name>
666 <location filename="../tools/linguist/linguist/mainwindow.cpp" line="+12"/>
668 <comment>This is the application's main window.</comment>
669 <translation></translation>
675 <location filename="../tools/linguist/linguist/messageeditor.cpp" line="+12"/>
677 <comment>This is the right panel of the main window.</comment>
678 <translation></translation>
682 <name>PhraseBookBox</name>
684 <location filename="../tools/linguist/linguist/phrasebookbox.cpp" line="+12"/>
686 <comment>Go to Phrase > Edit Phrase Book... The dialog that pops up is a PhraseBookBox.</comment>
687 <translation></translation>
691 <name>QCollectionGenerator</name>
693 <location filename="../src/tools/qcollectiongenerator/qcollectiongenerator.cpp" line="+137"/>
694 <source>Unknown token at line %1.</source>
695 <translation type="unfinished"></translation>
698 <location line="+20"/>
699 <source>Unknown token at line %1. Expected "QtHelpCollectionProject".</source>
700 <translation type="unfinished"></translation>
703 <location line="+24"/>
704 <source>Missing end tags.</source>
705 <translation type="unfinished"></translation>
708 <location line="+145"/>
709 <source>Missing input or output file for help file generation.</source>
710 <translation type="unfinished"></translation>
713 <location line="+59"/>
714 <source>Missing output file name.</source>
715 <translation type="unfinished"></translation>
718 <location line="+14"/>
719 <source>Qt Collection Generator version 1.0 (Qt %1)
721 <translation type="unfinished"></translation>
724 <location line="+6"/>
725 <source>Missing collection config file.</source>
726 <translation type="unfinished"></translation>
729 <location line="+2"/>
733 qcollectiongenerator <collection-config-file> [options]
735 -o <collection-file> Generates a collection file
736 called <collection-file>. If
737 this option is not specified
738 a default name will be used.
739 -v Displays the version of
740 qcollectiongenerator.
743 <translation type="unfinished"></translation>
746 <location line="+19"/>
747 <source>Could not open %1.
749 <translation type="unfinished"></translation>
752 <location line="+10"/>
753 <source>Reading collection config file...
755 <translation type="unfinished"></translation>
758 <location line="+4"/>
759 <source>Collection config file error: %1
761 <translation type="unfinished"></translation>
764 <location line="+7"/>
765 <source>Generating help for %1...
767 <translation type="unfinished"></translation>
770 <location line="+15"/>
771 <source>Creating collection file...
773 <translation type="unfinished"></translation>
776 <location line="+5"/>
777 <source>The file %1 cannot be overwritten.
779 <translation type="unfinished"></translation>
782 <location line="+61"/>
783 <location line="+21"/>
784 <location line="+22"/>
785 <source>Cannot open %1.
787 <translation type="unfinished"></translation>
790 <location line="+22"/>
791 <source>Cannot open referenced image file %1.
793 <translation type="unfinished"></translation>
797 <name>QHelpGenerator</name>
799 <location filename="../src/tools/qhelpgenerator/qhelpgenerator.cpp" line="+90"/>
800 <source>Missing output file name.</source>
801 <translation type="unfinished"></translation>
804 <location line="+16"/>
805 <source>Qt Help Generator version 1.0 (Qt %1)
807 <translation type="unfinished"></translation>
810 <location line="+6"/>
811 <source>Missing Qt help project file.</source>
812 <translation type="unfinished"></translation>
815 <location line="+2"/>
819 qhelpgenerator <help-project-file> [options]
821 -o <compressed-file> Generates a Qt compressed help
822 file called <compressed-file>.
823 If this option is not specified
824 a default name will be used.
825 -c Checks whether all links in HTML files
826 point to files in this help project.
827 -v Displays the version of
831 <translation type="unfinished"></translation>
834 <location line="+21"/>
835 <source>Could not open %1.
837 <translation type="unfinished"></translation>
840 <location line="+16"/>
841 <source>Could not create output directory: %1
843 <translation type="unfinished"></translation>
849 <location filename="../src/tools/lupdate/lupdate.cpp" line="-139"/>
850 <source>lupdate version %1
852 <translation type="unfinished"></translation>