Commit a6371940 by Zack Weinberg Committed by Zack Weinberg

toplev.c (debug_args, [...]): Mark descriptions for translation.

	* toplev.c (debug_args, f_options, W_options): Mark
	descriptions for translation.
	(display_help): Translate descriptions on output.

	* cp/lang-options.h, f/lang-options.h, java/lang-options.h,
	objc/lang-options.h: Mark descriptions for translation.

From-SVN: r42618
parent 05e12634
2001-05-25 Zack Weinberg <zackw@stanford.edu> 2001-05-25 Zack Weinberg <zackw@stanford.edu>
* toplev.c (debug_args, f_options, W_options): Mark
descriptions for translation.
(display_help): Translate descriptions on output.
* cp/lang-options.h, f/lang-options.h, java/lang-options.h,
objc/lang-options.h: Mark descriptions for translation.
* aclocal.m4: Quote final argument of patsubst. Use * aclocal.m4: Quote final argument of patsubst. Use
3-argument form of AC_DEFINE. Restore quotes to [] while 3-argument form of AC_DEFINE. Restore quotes to [] while
using AC_FD_CC. using AC_FD_CC.
......
...@@ -25,97 +25,138 @@ DEFINE_LANG_NAME ("C++") ...@@ -25,97 +25,138 @@ DEFINE_LANG_NAME ("C++")
toplev.c for g++. */ toplev.c for g++. */
{ "-faccess-control", "" }, { "-faccess-control", "" },
{ "-fno-access-control", "Do not obey access control semantics" }, { "-fno-access-control",
{ "-falt-external-templates", "Change when template instances are emitted" }, N_("Do not obey access control semantics") },
{ "-falt-external-templates",
N_("Change when template instances are emitted") },
{ "-fno-alt-external-templates", "" }, { "-fno-alt-external-templates", "" },
{ "-fansi-overloading", "" }, { "-fansi-overloading", "" },
{ "-fno-ansi-overloading", "" }, { "-fno-ansi-overloading", "" },
{ "-fcheck-new", "Check the return value of new" }, { "-fcheck-new",
N_("Check the return value of new") },
{ "-fno-check-new", "" }, { "-fno-check-new", "" },
{ "-fconserve-space", "Reduce size of object files" }, { "-fconserve-space",
N_("Reduce size of object files") },
{ "-fno-conserve-space", "" }, { "-fno-conserve-space", "" },
{ "-fconst-strings", "" }, { "-fconst-strings", "" },
{ "-fno-const-strings", "Make string literals `char[]' instead of `const char[]'" }, { "-fno-const-strings",
N_("Make string literals `char[]' instead of `const char[]'") },
{ "-fdefault-inline", "" }, { "-fdefault-inline", "" },
{ "-fdump-translation-unit-", "Dump the entire translation unit to a file"}, { "-fdump-translation-unit-",
{ "-fno-default-inline", "Do not inline member functions by default"}, N_("Dump the entire translation unit to a file") },
{ "-fno-default-inline",
N_("Do not inline member functions by default") },
{ "-frtti", "" }, { "-frtti", "" },
{ "-fno-rtti", "Do not generate run time type descriptor information" }, { "-fno-rtti",
N_("Do not generate run time type descriptor information") },
{ "-felide-constructors", "" }, { "-felide-constructors", "" },
{ "-fno-elide-constructors", "" }, { "-fno-elide-constructors", "" },
{ "-fenforce-eh-specs", "" }, { "-fenforce-eh-specs", "" },
{ "-fno-enforce-eh-specs", "Do not generate code to check exception specifications" }, { "-fno-enforce-eh-specs",
N_("Do not generate code to check exception specifications") },
{ "-fexternal-templates", "" }, { "-fexternal-templates", "" },
{ "-fno-external-templates", "" }, { "-fno-external-templates", "" },
{ "-ffor-scope", "" }, { "-ffor-scope", "" },
{ "-fno-for-scope", "Scope of for-init-statement vars extends outside" }, { "-fno-for-scope",
N_("Scope of for-init-statement vars extends outside") },
{ "-fgnu-keywords", "" }, { "-fgnu-keywords", "" },
{ "-fno-gnu-keywords", "Do not recognise GNU defined keywords" }, { "-fno-gnu-keywords",
N_("Do not recognise GNU defined keywords") },
{ "-fhandle-exceptions", "" }, { "-fhandle-exceptions", "" },
{ "-fno-handle-exceptions", "" }, { "-fno-handle-exceptions", "" },
{ "-fhonor-std", "Treat the namespace `std' as a normal namespace" }, { "-fhonor-std",
N_("Treat the namespace `std' as a normal namespace") },
{ "-fno-honor-std", "" }, { "-fno-honor-std", "" },
{ "-fhuge-objects", "Enable support for huge objects" }, { "-fhuge-objects",
N_("Enable support for huge objects") },
{ "-fno-huge-objects", "" }, { "-fno-huge-objects", "" },
{ "-fimplement-inlines", "" }, { "-fimplement-inlines", "" },
{ "-fno-implement-inlines", "Export functions even if they can be inlined" }, { "-fno-implement-inlines",
N_("Export functions even if they can be inlined") },
{ "-fimplicit-templates", "" }, { "-fimplicit-templates", "" },
{ "-fno-implicit-templates", "Only emit explicit template instatiations" }, { "-fno-implicit-templates",
N_("Only emit explicit template instatiations") },
{ "-fimplicit-inline-templates", "" }, { "-fimplicit-inline-templates", "" },
{ "-fno-implicit-inline-templates", "Only emit explicit instatiations of inline templates" }, { "-fno-implicit-inline-templates",
N_("Only emit explicit instatiations of inline templates") },
{ "-finit-priority", "" }, { "-finit-priority", "" },
{ "-fno-init-priority", "" }, { "-fno-init-priority", "" },
{ "-fmemoize-lookups", "" }, { "-fmemoize-lookups", "" },
{ "-fno-memoize-lookups", "" }, { "-fno-memoize-lookups", "" },
{ "-fms-extensions", "Don't pedwarn about uses of Microsoft extensions" }, { "-fms-extensions",
N_("Don't pedwarn about uses of Microsoft extensions") },
{ "-fno-ms-extensions", "" }, { "-fno-ms-extensions", "" },
{ "-foperator-names", "Recognise and/bitand/bitor/compl/not/or/xor" }, { "-foperator-names",
N_("Recognise and/bitand/bitor/compl/not/or/xor") },
{ "-fno-operator-names", "" }, { "-fno-operator-names", "" },
{ "-foptional-diags", "" }, { "-foptional-diags", "" },
{ "-fno-optional-diags", "Disable optional diagnostics" }, { "-fno-optional-diags",
{ "-fpermissive", "Downgrade conformance errors to warnings" }, N_("Disable optional diagnostics") },
{ "-fpermissive",
N_("Downgrade conformance errors to warnings") },
{ "-fno-permissive", "" }, { "-fno-permissive", "" },
{ "-frepo", "Enable automatic template instantiation" }, { "-frepo",
N_("Enable automatic template instantiation") },
{ "-fno-repo", "" }, { "-fno-repo", "" },
{ "-fsave-memoized", "" }, { "-fsave-memoized", "" },
{ "-fno-save-memoized", "" }, { "-fno-save-memoized", "" },
{ "-fstats", "Display statistics accumulated during compilation" }, { "-fstats",
N_("Display statistics accumulated during compilation") },
{ "-fno-stats", "" }, { "-fno-stats", "" },
{ "-ftemplate-depth-", "Specify maximum template instantiation depth"}, { "-ftemplate-depth-",
{ "-fuse-cxa-atexit", "Use __cxa_atexit to register destructors." }, N_("Specify maximum template instantiation depth") },
{ "-fuse-cxa-atexit",
N_("Use __cxa_atexit to register destructors.") },
{ "-fno-use-cxa-atexit", "" }, { "-fno-use-cxa-atexit", "" },
{ "-fvtable-gc", "Discard unused virtual functions" }, { "-fvtable-gc",
N_("Discard unused virtual functions") },
{ "-fno-vtable-gc", "" }, { "-fno-vtable-gc", "" },
{ "-fvtable-thunks", "Implement vtables using thunks" }, { "-fvtable-thunks",
N_("Implement vtables using thunks") },
{ "-fno-vtable-thunks", "" }, { "-fno-vtable-thunks", "" },
{ "-fweak", "Emit common-like symbols as weak symbols" }, { "-fweak",
N_("Emit common-like symbols as weak symbols") },
{ "-fno-weak", "" }, { "-fno-weak", "" },
{ "-fxref", "Emit cross referencing information" }, { "-fxref",
N_("Emit cross referencing information") },
{ "-fno-xref", "" }, { "-fno-xref", "" },
{ "-Wreturn-type", "Warn about inconsistent return types" }, { "-Wreturn-type",
N_("Warn about inconsistent return types") },
{ "-Wno-return-type", "" }, { "-Wno-return-type", "" },
{ "-Woverloaded-virtual", "Warn about overloaded virtual function names" }, { "-Woverloaded-virtual",
N_("Warn about overloaded virtual function names") },
{ "-Wno-overloaded-virtual", "" }, { "-Wno-overloaded-virtual", "" },
{ "-Wctor-dtor-privacy", "" }, { "-Wctor-dtor-privacy", "" },
{ "-Wno-ctor-dtor-privacy", "Don't warn when all ctors/dtors are private" }, { "-Wno-ctor-dtor-privacy",
{ "-Wnon-virtual-dtor", "Warn about non virtual destructors" }, N_("Don't warn when all ctors/dtors are private") },
{ "-Wnon-virtual-dtor",
N_("Warn about non virtual destructors") },
{ "-Wno-non-virtual-dtor", "" }, { "-Wno-non-virtual-dtor", "" },
{ "-Wextern-inline", "Warn when a function is declared extern, then inline" }, { "-Wextern-inline",
N_("Warn when a function is declared extern, then inline") },
{ "-Wno-extern-inline", "" }, { "-Wno-extern-inline", "" },
{ "-Wreorder", "Warn when the compiler reorders code" }, { "-Wreorder",
N_("Warn when the compiler reorders code") },
{ "-Wno-reorder", "" }, { "-Wno-reorder", "" },
{ "-Wsynth", "Warn when synthesis behaviour differs from Cfront" }, { "-Wsynth",
N_("Warn when synthesis behaviour differs from Cfront") },
{ "-Wno-synth", "" }, { "-Wno-synth", "" },
{ "-Wpmf-conversions", "" }, { "-Wpmf-conversions", "" },
{ "-Wno-pmf-conversions", "Don't warn when type converting pointers to member functions" }, { "-Wno-pmf-conversions",
{ "-Weffc++", "Warn about violations of Effective C++ style rules" }, N_("Don't warn when type converting pointers to member functions") },
{ "-Weffc++",
N_("Warn about violations of Effective C++ style rules") },
{ "-Wno-effc++", "" }, { "-Wno-effc++", "" },
{ "-Wsign-promo", "Warn when overload promotes from unsigned to signed" }, { "-Wsign-promo",
N_("Warn when overload promotes from unsigned to signed") },
{ "-Wno-sign-promo", "" }, { "-Wno-sign-promo", "" },
{ "-Wold-style-cast", "Warn if a C style cast is used in a program" }, { "-Wold-style-cast",
N_("Warn if a C style cast is used in a program") },
{ "-Wno-old-style-cast", "" }, { "-Wno-old-style-cast", "" },
{ "-Wnon-template-friend", "" }, { "-Wnon-template-friend", "" },
{ "-Wno-non-template-friend", "Don't warn when non-templatized friend functions are declared within a template" }, { "-Wno-non-template-friend",
N_("Don't warn when non-templatized friend functions are declared within a template") },
{ "-Wdeprecated", "" }, { "-Wdeprecated", "" },
{ "-Wno-deprecated", "Don't announce deprecation of compiler features" }, { "-Wno-deprecated",
N_("Don't announce deprecation of compiler features") },
...@@ -28,27 +28,44 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -28,27 +28,44 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
DEFINE_LANG_NAME ("Java") DEFINE_LANG_NAME ("Java")
{ "-fbounds-check", "" }, { "-fbounds-check", "" },
{ "-fno-bounds-check", "Disable automatic array bounds checking" }, { "-fno-bounds-check",
{ "-fassume-compiled", "Make is_compiled_class return 1"}, N_("Disable automatic array bounds checking") },
{ "-fassume-compiled",
N_("Make is_compiled_class return 1") },
{ "-fno-assume-compiled", "" }, { "-fno-assume-compiled", "" },
{ "-femit-class-file", "" }, { "-femit-class-file", "" },
{ "-femit-class-files", "Dump class files to <name>.class" }, { "-femit-class-files",
{ "-ffilelist-file", "input file is list of file names to compile" }, N_("Dump class files to <name>.class") },
{ "-fuse-boehm-gc", "Generate code for Boehm GC" }, { "-ffilelist-file",
{ "-fhash-synchronization", "Don't put synchronization structure in each object" }, N_("input file is list of file names to compile") },
{ "-fjni", "Assume native functions are implemented using JNI" }, { "-fuse-boehm-gc",
{ "--classpath", "Set class path and suppress system path" }, N_("Generate code for Boehm GC") },
{ "--CLASSPATH", "Set class path" }, { "-fhash-synchronization",
{ "--main", "Choose class whose main method should be used" }, N_("Don't put synchronization structure in each object") },
{ "--encoding", "Choose input encoding (default is UTF-8)" }, { "-fjni",
{ "-I", "Add directory to class path" }, N_("Assume native functions are implemented using JNI") },
{ "-foutput-class-dir", "Directory where class files should be written" }, { "--classpath",
N_("Set class path and suppress system path") },
{ "--CLASSPATH",
N_("Set class path") },
{ "--main",
N_("Choose class whose main method should be used") },
{ "--encoding",
N_("Choose input encoding (default is UTF-8)") },
{ "-I",
N_("Add directory to class path") },
{ "-foutput-class-dir",
N_("Directory where class files should be written") },
{ "-fuse-divide-subroutine", "" }, { "-fuse-divide-subroutine", "" },
{ "-fno-use-divide-subroutine", "Use built-in instructions for division" }, { "-fno-use-divide-subroutine",
{ "-fcheck-references", "Generate null pointer checks inline" }, N_("Use built-in instructions for division") },
{ "-fcheck-references",
N_("Generate null pointer checks inline") },
{ "-Wredundant-modifiers", { "-Wredundant-modifiers",
"Warn if modifiers are specified when not necessary"}, N_("Warn if modifiers are specified when not necessary") },
{ "-Wextraneous-semicolon", "Warn if deprecated empty statements are found"}, { "-Wextraneous-semicolon",
{ "-Wout-of-date", "Warn if .class files are out of date" }, N_("Warn if deprecated empty statements are found") },
{ "-Wout-of-date",
N_("Warn if .class files are out of date") },
{ "-fforce-classes-archive-check", { "-fforce-classes-archive-check",
"Always check for non gcj generated classes archives" }, N_("Always check for non gcj generated classes archives") },
...@@ -23,16 +23,21 @@ Boston, MA 02111-1307, USA. */ ...@@ -23,16 +23,21 @@ Boston, MA 02111-1307, USA. */
DEFINE_LANG_NAME ("Objective C") DEFINE_LANG_NAME ("Objective C")
{ "-gen-decls", "Dump decls to a .decl file" }, { "-gen-decls",
{ "-fgnu-runtime", "Generate code for GNU runtime environment" }, N_("Dump decls to a .decl file") },
{ "-fgnu-runtime",
N_("Generate code for GNU runtime environment") },
{ "-fno-gnu-runtime", "" }, { "-fno-gnu-runtime", "" },
{ "-fnext-runtime", "Generate code for NeXT runtime environment" }, { "-fnext-runtime",
N_("Generate code for NeXT runtime environment") },
{ "-fno-next-runtime", "" }, { "-fno-next-runtime", "" },
{ "-Wselector", "Warn if a selector has multiple methods" }, { "-Wselector",
N_("Warn if a selector has multiple methods") },
{ "-Wno-selector", "" }, { "-Wno-selector", "" },
{ "-Wprotocol", "" }, { "-Wprotocol", "" },
{ "-Wno-protocol", "Do not warn if inherited methods are unimplemented"}, { "-Wno-protocol",
N_("Do not warn if inherited methods are unimplemented") },
{ "-print-objc-runtime-info", { "-print-objc-runtime-info",
"Generate C header of platform specific features" }, N_("Generate C header of platform specific features") },
{ "-fconstant-string-class", { "-fconstant-string-class",
"Specify the name of the class for constant strings" }, N_("Specify the name of the class for constant strings") },
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment