#include "counters.h"
#include "debug.h"
-#include "gettext.h"
#include "support/lstrings.h"
#include "support/convert.h"
CounterList::iterator const cit = counterList.find(newc);
// if already exist give warning and return
if (cit != counterList.end()) {
- lyxerr << "The new counter already exists." << endl;
+ lyxerr << "New counter already exists: " << newc << endl;
return;
}
counterList[newc];
CounterList::iterator const cit = counterList.find(newc);
// if already existant give warning and return
if (cit != counterList.end()) {
- lyxerr << "The new counter already exists." << endl;
+ lyxerr << "New counter already exists: " << newc << endl;
return;
}
// then check if masterc exists
CounterList::iterator const it = counterList.find(masterc);
// if not give warning and return
if (it == counterList.end()) {
- lyxerr << "The master counter does not exist." << endl;
+ lyxerr << "Master counter does not exist: " << masterc << endl;
return;
}
//lyxerr << "counterLabel: " << format << " -> " << label << endl;
return label;
}
-
-
-string Counters::enumLabel(string const & ctr, Buffer const & buf)
-{
- string format;
-
- if (ctr == "enumi") {
- format = N_("\\arabic{enumi}.");
- }
- else if (ctr == "enumii") {
- format = N_("(\\alph{enumii})");
- }
- else if (ctr == "enumiii") {
- format = N_("\\roman{enumiii}.");
- }
- else if (ctr == "enumiv") {
- format = N_("\\Alph{enumiv}.");
- }
-
- return counterLabel(buf.B_(format));
-}