mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Merge branch 'master' into features/indexmacros
This commit is contained in:
commit
f86c7994a5
34
po/de.po
34
po/de.po
@ -94,8 +94,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: LyX 2.4git\n"
|
||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
|
||||
"POT-Creation-Date: 2022-04-20 08:01+0200\n"
|
||||
"PO-Revision-Date: 2022-04-20 08:03+0200\n"
|
||||
"POT-Creation-Date: 2022-04-24 16:54+0200\n"
|
||||
"PO-Revision-Date: 2022-04-24 17:05+0200\n"
|
||||
"Last-Translator: Jürgen Spitzmüller <spitz@lyx.org>\n"
|
||||
"Language-Team: Deutsch <lyx-docs@lists.lyx.org>\n"
|
||||
"Language: de\n"
|
||||
@ -31806,18 +31806,18 @@ msgstr "Erweitere Dateinamen"
|
||||
|
||||
#: src/frontends/qt/GuiBranches.cpp:135 src/frontends/qt/GuiBranches.cpp:149
|
||||
#: src/frontends/qt/GuiDocument.cpp:3339 src/frontends/qt/GuiDocument.cpp:4644
|
||||
#: src/frontends/qt/GuiProgressView.cpp:144
|
||||
#: src/frontends/qt/GuiProgressView.cpp:158
|
||||
#: src/frontends/qt/GuiProgressView.cpp:179
|
||||
#: src/frontends/qt/GuiProgressView.cpp:148
|
||||
#: src/frontends/qt/GuiProgressView.cpp:162
|
||||
#: src/frontends/qt/GuiProgressView.cpp:184
|
||||
msgid "Yes"
|
||||
msgstr "Ja"
|
||||
|
||||
#: src/frontends/qt/GuiBranches.cpp:135 src/frontends/qt/GuiBranches.cpp:149
|
||||
#: src/frontends/qt/GuiDocument.cpp:3338 src/frontends/qt/GuiDocument.cpp:3972
|
||||
#: src/frontends/qt/GuiDocument.cpp:4643
|
||||
#: src/frontends/qt/GuiProgressView.cpp:110
|
||||
#: src/frontends/qt/GuiProgressView.cpp:143
|
||||
#: src/frontends/qt/GuiProgressView.cpp:179
|
||||
#: src/frontends/qt/GuiProgressView.cpp:114
|
||||
#: src/frontends/qt/GuiProgressView.cpp:147
|
||||
#: src/frontends/qt/GuiProgressView.cpp:184
|
||||
msgid "No"
|
||||
msgstr "Nein"
|
||||
|
||||
@ -33955,11 +33955,11 @@ msgstr "<Alle Indexe>"
|
||||
msgid "Progress/Debug Messages"
|
||||
msgstr "Fortschritts-/Testmeldungen"
|
||||
|
||||
#: src/frontends/qt/GuiProgressView.cpp:101
|
||||
#: src/frontends/qt/GuiProgressView.cpp:105
|
||||
msgid "Debug Level"
|
||||
msgstr "Testebene"
|
||||
|
||||
#: src/frontends/qt/GuiProgressView.cpp:102
|
||||
#: src/frontends/qt/GuiProgressView.cpp:106
|
||||
msgid "Set"
|
||||
msgstr "Aktiv"
|
||||
|
||||
@ -37539,10 +37539,14 @@ msgstr "Lesen der Konfigurationsdateien"
|
||||
msgid "Custom keyboard definition"
|
||||
msgstr "Eigene Tastaturdefinition"
|
||||
|
||||
#: src/support/debug.cpp:50 src/support/debug.cpp:51
|
||||
#: src/support/debug.cpp:50
|
||||
msgid "Output source file generation/processing"
|
||||
msgstr "Erzeugung/Verarbeitung der Ausgabequelldatei"
|
||||
|
||||
#: src/support/debug.cpp:51
|
||||
msgid "Output source file generation/processing (alias to 'outfile')"
|
||||
msgstr "Erzeugung/Verarbeitung der Ausgabequelldatei (Alias für 'outfile')"
|
||||
|
||||
#: src/support/debug.cpp:52
|
||||
msgid "Math editor"
|
||||
msgstr "Mathe-Editor"
|
||||
@ -37643,11 +37647,15 @@ msgstr "Mechanismus für Suchen und Ersetzen (ausführlich)"
|
||||
msgid "Developers' general debug messages"
|
||||
msgstr "Allgemeine Testmeldungen der Entwickler"
|
||||
|
||||
#: src/support/debug.cpp:77 src/support/debug.cpp:78
|
||||
#: src/support/debug.cpp:77
|
||||
msgid "All debugging messages"
|
||||
msgstr "Alle Testmeldungen"
|
||||
|
||||
#: src/support/debug.cpp:185
|
||||
#: src/support/debug.cpp:78
|
||||
msgid "All debugging messages (alias to 'all')"
|
||||
msgstr "Alle Testmeldungen (alias für 'all')"
|
||||
|
||||
#: src/support/debug.cpp:193
|
||||
#, c-format
|
||||
msgid "Debugging `%1$s' (%2$s)"
|
||||
msgstr "Testen von ,%1$s` (%2$s)"
|
||||
|
47
po/fr.po
47
po/fr.po
@ -362,8 +362,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: LyX 2.4\n"
|
||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
|
||||
"POT-Creation-Date: 2022-04-19 18:17+0200\n"
|
||||
"PO-Revision-Date: 2022-04-19 18:20+0200\n"
|
||||
"POT-Creation-Date: 2022-04-24 17:20+0200\n"
|
||||
"PO-Revision-Date: 2022-04-24 17:23+0200\n"
|
||||
"Last-Translator: Jean-Pierre Chrétien <jeanpierre.chretien@free.fr>\n"
|
||||
"Language-Team: lyxfr\n"
|
||||
"Language: fr\n"
|
||||
@ -32069,18 +32069,18 @@ msgstr "Suffixe du fichier"
|
||||
|
||||
#: src/frontends/qt/GuiBranches.cpp:135 src/frontends/qt/GuiBranches.cpp:149
|
||||
#: src/frontends/qt/GuiDocument.cpp:3339 src/frontends/qt/GuiDocument.cpp:4644
|
||||
#: src/frontends/qt/GuiProgressView.cpp:144
|
||||
#: src/frontends/qt/GuiProgressView.cpp:158
|
||||
#: src/frontends/qt/GuiProgressView.cpp:179
|
||||
#: src/frontends/qt/GuiProgressView.cpp:148
|
||||
#: src/frontends/qt/GuiProgressView.cpp:162
|
||||
#: src/frontends/qt/GuiProgressView.cpp:184
|
||||
msgid "Yes"
|
||||
msgstr "Oui"
|
||||
|
||||
#: src/frontends/qt/GuiBranches.cpp:135 src/frontends/qt/GuiBranches.cpp:149
|
||||
#: src/frontends/qt/GuiDocument.cpp:3338 src/frontends/qt/GuiDocument.cpp:3972
|
||||
#: src/frontends/qt/GuiDocument.cpp:4643
|
||||
#: src/frontends/qt/GuiProgressView.cpp:110
|
||||
#: src/frontends/qt/GuiProgressView.cpp:143
|
||||
#: src/frontends/qt/GuiProgressView.cpp:179
|
||||
#: src/frontends/qt/GuiProgressView.cpp:114
|
||||
#: src/frontends/qt/GuiProgressView.cpp:147
|
||||
#: src/frontends/qt/GuiProgressView.cpp:184
|
||||
msgid "No"
|
||||
msgstr "Non"
|
||||
|
||||
@ -34212,11 +34212,11 @@ msgstr "<Tous les index>"
|
||||
msgid "Progress/Debug Messages"
|
||||
msgstr "Messages de progression ou d'analyse"
|
||||
|
||||
#: src/frontends/qt/GuiProgressView.cpp:101
|
||||
#: src/frontends/qt/GuiProgressView.cpp:105
|
||||
msgid "Debug Level"
|
||||
msgstr "Niveau d'analyse"
|
||||
|
||||
#: src/frontends/qt/GuiProgressView.cpp:102
|
||||
#: src/frontends/qt/GuiProgressView.cpp:106
|
||||
msgid "Set"
|
||||
msgstr "Fixer"
|
||||
|
||||
@ -37412,28 +37412,28 @@ msgstr "%1$d chaînes remplacées dans le sélection."
|
||||
msgid "%1$d strings have been replaced."
|
||||
msgstr "%1$d chaînes remplacées."
|
||||
|
||||
#: src/lyxfind.cpp:4680
|
||||
#: src/lyxfind.cpp:4679
|
||||
msgid "One match has been replaced."
|
||||
msgstr "Une correspondance a été remplacée."
|
||||
|
||||
#: src/lyxfind.cpp:4683
|
||||
#: src/lyxfind.cpp:4682
|
||||
msgid "Two matches have been replaced."
|
||||
msgstr "Deux correspondances ont été remplacées."
|
||||
|
||||
#: src/lyxfind.cpp:4686
|
||||
#: src/lyxfind.cpp:4685
|
||||
#, c-format
|
||||
msgid "%1$d matches have been replaced."
|
||||
msgstr "%1$d correspondances ont été remplacées."
|
||||
|
||||
#: src/lyxfind.cpp:4692
|
||||
#: src/lyxfind.cpp:4691
|
||||
msgid "Match not found."
|
||||
msgstr "Chaîne de caractères introuvable."
|
||||
|
||||
#: src/lyxfind.cpp:4698
|
||||
#: src/lyxfind.cpp:4697
|
||||
msgid "Match has been replaced."
|
||||
msgstr "Chaîne de caractères remplacée."
|
||||
|
||||
#: src/lyxfind.cpp:4700
|
||||
#: src/lyxfind.cpp:4699
|
||||
msgid "Match found."
|
||||
msgstr "Chaîne de caractères reconnue."
|
||||
|
||||
@ -37782,10 +37782,15 @@ msgstr "Lecture des fichiers de configuration"
|
||||
msgid "Custom keyboard definition"
|
||||
msgstr "Définition d'un clavier personnalisé"
|
||||
|
||||
#: src/support/debug.cpp:50 src/support/debug.cpp:51
|
||||
#: src/support/debug.cpp:50
|
||||
msgid "Output source file generation/processing"
|
||||
msgstr "Génération/traitement du fichier source exporté."
|
||||
|
||||
#: src/support/debug.cpp:51
|
||||
msgid "Output source file generation/processing (alias to 'outfile')"
|
||||
msgstr ""
|
||||
"Génération/traitement du fichier source exporté (alias de « outfile »)."
|
||||
|
||||
#: src/support/debug.cpp:52
|
||||
msgid "Math editor"
|
||||
msgstr "Éditeur mathématique"
|
||||
@ -37886,11 +37891,15 @@ msgstr "Rechercher et remplacer, version bavarde du moteur"
|
||||
msgid "Developers' general debug messages"
|
||||
msgstr "Messages de débogage généraux pour les développeurs"
|
||||
|
||||
#: src/support/debug.cpp:77 src/support/debug.cpp:78
|
||||
#: src/support/debug.cpp:77
|
||||
msgid "All debugging messages"
|
||||
msgstr "Tous les messages de débogage"
|
||||
|
||||
#: src/support/debug.cpp:185
|
||||
#: src/support/debug.cpp:78
|
||||
msgid "All debugging messages (alias to 'all')"
|
||||
msgstr "Tous les messages de débogage (alias de « all »)."
|
||||
|
||||
#: src/support/debug.cpp:193
|
||||
#, c-format
|
||||
msgid "Debugging `%1$s' (%2$s)"
|
||||
msgstr "Débogage de '%1$s' (%2$s)"
|
||||
|
12
po/sk.po
12
po/sk.po
@ -8,8 +8,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: LyX-2.4\n"
|
||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
|
||||
"POT-Creation-Date: 2022-04-19 16:14+0200\n"
|
||||
"PO-Revision-Date: 2022-04-19 14:15+0000\n"
|
||||
"POT-Creation-Date: 2022-04-24 17:25+0200\n"
|
||||
"PO-Revision-Date: 2022-04-24 15:29+0000\n"
|
||||
"Last-Translator: Kornel Benko <kornel@lyx.org>\n"
|
||||
"Language-Team: Slovak <kornel@lyx.org>\n"
|
||||
"Language: sk\n"
|
||||
@ -37072,6 +37072,10 @@ msgstr "Vlastná definícia klávesnice"
|
||||
msgid "Output source file generation/processing"
|
||||
msgstr "Spúšťanie/generovanie výstupného súboru"
|
||||
|
||||
#: src/support/debug.cpp:51
|
||||
msgid "Output source file generation/processing (alias to 'outfile')"
|
||||
msgstr "Spúšťanie/generovanie výstupného súboru (iné meno pre 'outfile')"
|
||||
|
||||
#: src/support/debug.cpp:51
|
||||
msgid "Math editor"
|
||||
msgstr "Editor matematiky"
|
||||
@ -37176,6 +37180,10 @@ msgstr "Všeobecné ladiace hlásenia pre vývojárov"
|
||||
msgid "All debugging messages"
|
||||
msgstr "Všetky ladiace hlásenia"
|
||||
|
||||
#: src/support/debug.cpp:78
|
||||
msgid "All debugging messages (alias to 'all')"
|
||||
msgstr "Všetky ladiace hlásenia (iné meno pre 'all')"
|
||||
|
||||
#: src/support/debug.cpp:154
|
||||
#, c-format
|
||||
msgid "Debugging `%1$s' (%2$s)"
|
||||
|
@ -51,7 +51,7 @@ GuiProgressView::~GuiProgressView()
|
||||
|
||||
|
||||
namespace{
|
||||
typedef pair<int, QString> DebugMap;
|
||||
typedef pair<Debug::base_type, QString> DebugMap;
|
||||
typedef vector<DebugMap> DebugVector;
|
||||
|
||||
bool DebugSorter(DebugMap const & a, DebugMap const & b)
|
||||
@ -85,13 +85,17 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
|
||||
widget_->debugMessagesTW->setEnabled(false);
|
||||
widget_->debugNoneRB->setChecked(true);
|
||||
|
||||
// ignore Debug::NONE and Debug::ANY
|
||||
int const level_count = Debug::levelCount() - 1;
|
||||
int const level_count = Debug::levelCount();
|
||||
DebugVector dmap;
|
||||
for (int i = 1 ; i < level_count; i++) {
|
||||
for (int i = 0 ; i < level_count; i++) {
|
||||
Debug::Type const level = Debug::value(i);
|
||||
string const dbgname = Debug::realName(i);
|
||||
// ignore these
|
||||
if (dbgname == "any" || dbgname == "all"
|
||||
|| dbgname == "none" || dbgname == "latex")
|
||||
continue;
|
||||
QString const desc =
|
||||
toqstr(from_ascii(Debug::name(level) + " - "))
|
||||
toqstr(from_ascii(dbgname + " - "))
|
||||
+ qt_(Debug::description(level));
|
||||
dmap.push_back(DebugMap(level, desc));
|
||||
}
|
||||
@ -106,7 +110,7 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
|
||||
for (; dit != den; ++dit) {
|
||||
QTreeWidgetItem * item = new QTreeWidgetItem(widget_->debugMessagesTW);
|
||||
item->setText(0, dit->second);
|
||||
item->setData(0, Qt::UserRole, int(dit->first));
|
||||
item->setData(0, Qt::UserRole, dit->first);
|
||||
item->setText(1, qt_("No"));
|
||||
}
|
||||
widget_->debugMessagesTW->resizeColumnToContents(0);
|
||||
@ -152,11 +156,12 @@ void GuiProgressView::debugMessageActivated(QTreeWidgetItem * item, int)
|
||||
|
||||
void GuiProgressView::levelChanged()
|
||||
{
|
||||
unsigned int level = Debug::NONE;
|
||||
Debug::base_type level = Debug::NONE;
|
||||
QTreeWidgetItemIterator it(widget_->debugMessagesTW);
|
||||
while (*it) {
|
||||
if ((*it)->text(1) == qt_("Yes"))
|
||||
level |= (*it)->data(0, Qt::UserRole).toInt();
|
||||
if ((*it)->text(1) == qt_("Yes")) {
|
||||
level |= (*it)->data(0, Qt::UserRole).toULongLong();
|
||||
}
|
||||
++it;
|
||||
}
|
||||
dispatch(FuncRequest(LFUN_DEBUG_LEVEL_SET, convert<string>(level)));
|
||||
|
@ -1108,7 +1108,7 @@ static docstring buffer_to_latex(Buffer & buffer)
|
||||
}
|
||||
pit_type const endpit = buffer.paragraphs().size();
|
||||
for (pit_type pit = 0; pit != endpit; ++pit) {
|
||||
TeXOnePar(buffer, buffer.text(), pit, os, runparams);
|
||||
TeXOnePar(buffer, buffer.text(), pit, os, runparams, string(), -1, -1, true);
|
||||
LYXERR(Debug::FINDVERBOSE, "searchString up to here: " << ods.str());
|
||||
}
|
||||
return ods.str();
|
||||
@ -4019,7 +4019,7 @@ docstring latexifyFromCursor(DocIterator const & cur, int len)
|
||||
if (len != -1 && endpos > cur.pos() + len)
|
||||
endpos = cur.pos() + len;
|
||||
TeXOnePar(buf, *cur.innerText(), cur.pit(), os, runparams,
|
||||
string(), cur.pos(), endpos);
|
||||
string(), cur.pos(), endpos, true);
|
||||
LYXERR(Debug::FIND, "Latexified text from pos(" << cur.pos() << ") len(" << len << "): " << ods.str());
|
||||
return(ods.str());
|
||||
} else if (cur.inMathed()) {
|
||||
@ -4612,7 +4612,7 @@ static int findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, Ma
|
||||
runparams.flavor = Flavor::XeTeX;
|
||||
runparams.linelen = 8000; //lyxrc.plaintext_linelen;
|
||||
runparams.dryrun = true;
|
||||
TeXOnePar(repl_buffer, repl_buffer.text(), 0, os, runparams);
|
||||
TeXOnePar(repl_buffer, repl_buffer.text(), 0, os, runparams, string(), -1, -1, true);
|
||||
//repl_buffer.getSourceCode(ods, 0, repl_buffer.paragraphs().size(), false);
|
||||
docstring repl_latex = ods.str();
|
||||
LYXERR(Debug::FINDVERBOSE, "Latexified replace_buffer: '" << repl_latex << "'");
|
||||
|
@ -48,7 +48,7 @@ DebugErrorItem errorTags[] = {
|
||||
{ Debug::LYXRC, "lyxrc", N_("Configuration files reading")},
|
||||
{ Debug::KBMAP, "kbmap", N_("Custom keyboard definition")},
|
||||
{ Debug::OUTFILE, "outfile", N_("Output source file generation/processing")},
|
||||
{ Debug::OUTFILE, "latex", N_("Output source file generation/processing")},
|
||||
{ Debug::OUTFILE, "latex", N_("Output source file generation/processing (alias to 'outfile')")},
|
||||
{ Debug::MATHED, "mathed", N_("Math editor")},
|
||||
{ Debug::FONT, "font", N_("Font handling")},
|
||||
{ Debug::TCLASS, "tclass", N_("Textclass files reading")},
|
||||
@ -75,7 +75,7 @@ DebugErrorItem errorTags[] = {
|
||||
{ Debug::FINDVERBOSE,"findverbose", N_("Find and replace mechanism, verbose version")},
|
||||
{ Debug::DEBUG, "debug", N_("Developers' general debug messages")},
|
||||
{ Debug::ANY, "any", N_("All debugging messages")},
|
||||
{ Debug::ANY, "all", N_("All debugging messages")}
|
||||
{ Debug::ANY, "all", N_("All debugging messages (alias to 'all')")}
|
||||
};
|
||||
|
||||
|
||||
@ -118,6 +118,14 @@ string const Debug::name(Debug::Type val)
|
||||
}
|
||||
|
||||
|
||||
string const Debug::realName(int idx)
|
||||
{
|
||||
if (idx < numErrorTags)
|
||||
return errorTags[idx].name;
|
||||
return "unknown index";
|
||||
}
|
||||
|
||||
|
||||
Debug::Type Debug::value(string const & val)
|
||||
{
|
||||
Type l = Debug::NONE;
|
||||
@ -129,7 +137,7 @@ Debug::Type Debug::value(string const & val)
|
||||
break;
|
||||
// Is it a number?
|
||||
if (isStrInt(tmp))
|
||||
l |= static_cast<Type>(convert<int>(tmp));
|
||||
l |= static_cast<Type>(convert<unsigned long long>(tmp));
|
||||
else
|
||||
// Search for an explicit name
|
||||
for (DebugErrorItem const & item : errorTags)
|
||||
|
@ -32,12 +32,15 @@ typedef basic_streambuf<char, char_traits<char> > streambuf;
|
||||
#endif
|
||||
|
||||
|
||||
// Make sure at compile time that sizeof(unsigned long long) >= 8
|
||||
typedef char p__LINE__[ (sizeof(unsigned long long) > 7) ? 1 : -1];
|
||||
|
||||
namespace lyx {
|
||||
|
||||
/// This is all the different debug levels that we have.
|
||||
namespace Debug {
|
||||
///
|
||||
typedef uint64_t base_type;
|
||||
typedef unsigned long long base_type;
|
||||
enum Type : base_type {
|
||||
///
|
||||
NONE = 0,
|
||||
@ -106,7 +109,7 @@ namespace Debug {
|
||||
///
|
||||
FINDVERBOSE= (1u << 31),
|
||||
///
|
||||
DEBUG = (1L << 32),
|
||||
DEBUG = (1ULL << 32),
|
||||
///
|
||||
ANY = 0x1ffffffff
|
||||
};
|
||||
@ -127,9 +130,14 @@ namespace Debug {
|
||||
/// Return description of level
|
||||
std::string const description(Type val);
|
||||
|
||||
/// Return name of level
|
||||
/// Return name of level from value. In case of aliases,
|
||||
/// this returns the first entry found
|
||||
std::string const name(Type val);
|
||||
|
||||
/// Return name of level from index, in case of aliases
|
||||
/// this is unambiguous
|
||||
std::string const realName(int i);
|
||||
|
||||
/// Display the tags and descriptions of the current debug level
|
||||
void showLevel(std::ostream & os, Type level);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user