[EMAIL PROTECTED] writes: | Author: schmitt | Date: Tue Feb 20 19:02:46 2007 | New Revision: 17277 | | URL: http://www.lyx.org/trac/changeset/17277 | Log: | * src/insets/insetcommand.C: fix plaintext() output | | Modified: | lyx-devel/trunk/src/insets/insetcommand.C | | Modified: lyx-devel/trunk/src/insets/insetcommand.C | URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/insets/insetcommand.C?rev=17277 | ============================================================================== | --- lyx-devel/trunk/src/insets/insetcommand.C (original) | +++ lyx-devel/trunk/src/insets/insetcommand.C Tue Feb 20 19:02:46 2007 | @@ -91,10 +92,12 @@ | } | | | -int InsetCommand::plaintext(Buffer const &, odocstream &, | +int InsetCommand::plaintext(Buffer const &, odocstream & os, | OutputParams const &) const | { | - return 0; | + docstring str = "[" + _("LaTeX Command: ") + from_utf8(getCmdName()) + "]"; | + os << str; | + return str.size(); | }
I have been wondering a bit about the use of _() in plaintext. This will give the gui/ui language in text exports, is this what is expected? Or would use of the buffer language be more appropriate? -- Lgb