mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 06:04:12 +02:00
Make English the source language of the interface text
Every tr() source string in the code and the forms is now the English
text, and French is a translation (qet_fr.ts) like the other languages.
Generated, not hand-edited: master ef795a21e5 converted by
qet-en-source (harness 4c4ddc9).
3144 messages get an English source, 665 already had one, 0 left French; 8 shared-wording pairs disambiguated.
C++: 2904 literals in 233 files. Forms: 809 strings in 65 files. All 34 .ts files re-keyed; qet_fr.ts filled.
lupdate check: PASS. What each of 38 languages shows, old vs new: same 118266, English instead of French 38433, comment fallback 51, differences 0.
This commit is contained in:
@@ -61,12 +61,14 @@ namespace {
|
||||
QString refusalMessage()
|
||||
{
|
||||
return QObject::tr(
|
||||
"Les scripts sont désactivés.\n\n"
|
||||
"Un script a accès à l'ensemble du projet et peut écrire des "
|
||||
"fichiers, aussi cette fonction est-elle désactivée par défaut.\n\n"
|
||||
"Pour l'activer : Configurer QElectroTech > Général > Projets, "
|
||||
"ou définir la variable d'environnement QET_ENABLE_SCRIPTING=1 "
|
||||
"pour une exécution sans interface (CI, traitement par lot).");
|
||||
"Scripts are disabled.\n"
|
||||
"\n"
|
||||
"A script has access to the entire project and can write files, "
|
||||
"so this feature is disabled by default.\n"
|
||||
"\n"
|
||||
"To enable it: Configure QElectroTech > General > Projects, or "
|
||||
"set the QET_ENABLE_SCRIPTING=1 environment variable for headless "
|
||||
"execution (CI, batch processing).");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,8 +185,8 @@ bool runSource(const QString &source, const QString &fileName, const QString &ti
|
||||
// has its macro taken off again: an obsolete command is deleted by
|
||||
// QUndoStack::undo() instead of being undone onto the redo side.
|
||||
QUndoStack *stack = (view && project) ? project->undoStack() : nullptr;
|
||||
const QString undo_text = live ? QObject::tr("Assistant : %1").arg(title)
|
||||
: QObject::tr("Script : %1").arg(title);
|
||||
const QString undo_text = live ? QObject::tr("Assistant: %1").arg(title)
|
||||
: QObject::tr("Script: %1").arg(title);
|
||||
if (stack) {
|
||||
stack->beginMacro(undo_text);
|
||||
api->setUndoGrouped(true);
|
||||
|
||||
Reference in New Issue
Block a user