Angus Leeming <[EMAIL PROTECTED]> writes:

| Index: src/support/package.C.in
| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/package.C.in,v
| retrieving revision 1.1
| diff -u -p -r1.1 package.C.in
| --- src/support/package.C.in  10 Jan 2005 19:17:43 -0000      1.1
| +++ src/support/package.C.in  12 Jan 2005 12:22:03 -0000
| @@ -80,7 +80,7 @@ void init_package(string const & command
|  
|  Package const & package()
|  {
| -     BOOST_ASSERT(initialised_);
| +     // BOOST_ASSERT(initialised_);
|       return package_;
|  }

So the assert did hit because package was not initialized...
(This is what I meant. Why not make it wait for initialization until
package() is run the first time?)

|  
|       bool const success = (fi.isOK() && fi.isDir());
|  
|       if (!success) {
| -             lyxerr << bformat(_("Invalid %1% environment variable.\n"
| -                                 "%2% is not a directory."),
| -                               env_var, dir)
| +             // Put this string on a single line so that the gettext
| +             // search mechanism in po/Makefile.in.in will register
| +             // package.C.in as a file containing strings that need
| +             // translation.
| +             string const fmt =
| +             _("Invalid %1% environment variable.\n%2% is not a directory.");

Note that the use of %1% will not work with the non-boost.format
bformat code. You should change it to use %1$s (%2$s) instead.

-- 
        Lgb

Reply via email to