impr: Make all task names properly translatable

This commit is contained in:
WerWolv
2024-07-27 16:29:06 +02:00
parent cf2e189049
commit 1a7bd49361
22 changed files with 47 additions and 27 deletions

View File

@@ -91,7 +91,7 @@ namespace {
if (menuJustOpened) {
menuJustOpened = false;
if (!updaterTask.isRunning()) {
updaterTask = TaskManager::createBackgroundTask("Updating Scripts..."_lang, [] (auto&) {
updaterTask = TaskManager::createBackgroundTask("hex.script_loader.task.updating"_lang, [] (auto&) {
scripts = loadAllScripts();
});
}
@@ -109,7 +109,7 @@ namespace {
continue;
if (ImGui::MenuItem(name.c_str(), loader->getTypeName().c_str())) {
runnerTask = TaskManager::createTask("Running script..."_lang, TaskManager::NoProgress, [entryPoint](auto&) {
runnerTask = TaskManager::createTask("hex.script_loader.task.running"_lang, TaskManager::NoProgress, [entryPoint](auto&) {
entryPoint();
});
}
@@ -123,7 +123,7 @@ namespace {
return !runnerTask.isRunning();
});
updaterTask = TaskManager::createBackgroundTask("Updating Scripts..."_lang, [] (auto&) {
updaterTask = TaskManager::createBackgroundTask("hex.script_loader.task.updating"_lang, [] (auto&) {
scripts = loadAllScripts();
});
}