Am 31.10.2010 um 10:11 schrieb Vincent van Ravesteijn: > It is caused by the brackets. Wasn't this the way to indicate the context of > a string? I think you now have an empty string in the context [[...]]. This > is again translated as an empty string.
Thanks, now I see. So it was a bad idea to change (r34187) setText(_("Unknown buffer info")); to setText(bformat(_("[[%1$s unknown]]"), from_utf8(name_))); setText(bformat(_("%1$s unknown[[BufferInfo]]"), from_utf8(name_))); seems more correct then. Currently I'm a bit surprised that I cannot use the "info" dialog anymore. It crashes at line 217 of InsetCommandParams.cpp (LASSERT in default of switch missing the INFO_CODE case) What happens here? I guess the latest changes to the dialog code were not as trivial as one thought... Stephan > > Vincent > > >> Op 31 okt 2010 08:51 schreef "Stephan Witt" <st.w...@gmx.net>: >> >> Am 30.10.2010 um 15:59 schrieb Stephan Witt: >> >> > I've got a crash when place "info-insert buffer vcs-date" into CVS >> > controlled file. >> > The attache... >> >> I rephrase my question... >> >> The crash is the ASSERT in bformat(). >> The translation of the format arg below results in an empty string. >> >> > setText(bformat(_("[[%1$s unknown]]"), from_utf8(name_))); >> >> This code construct is quite common. >> I think, if the translation fails, the untranslated string is the result, >> isn't it? >> What's the problem here? >> >> Stephan >