Make import messages localizable

This commit is contained in:
Lubos Lenco
2021-10-13 08:34:24 +02:00
parent 50b6151add
commit ca114cd845
5 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -16,6 +16,6 @@ class ImportKeymap {
File.copy(path, dstPath); // Copy to preset folder
arm.ui.BoxPreferences.fetchKeymaps(); // Refresh file list
arm.ui.BoxPreferences.presetHandle.position = arm.ui.BoxPreferences.getPresetIndex();
Console.info("Keymap '" + filename + "' imported.");
Console.info(tr("Keymap imported:") + " " + filename);
}
}
+1 -1
View File
@@ -15,6 +15,6 @@ class ImportPlugin {
var dstPath = Path.data() + Path.sep + "plugins" + Path.sep + filename;
File.copy(path, dstPath); // Copy to plugin folder
arm.ui.BoxPreferences.filesPlugin = null; // Refresh file list
Console.info("Plugin '" + filename + "' imported.");
Console.info(tr("Plugin imported:") + " " + filename);
}
}
+1
View File
@@ -47,6 +47,7 @@ class ImportTexture {
Project.assetNames.push(name);
Project.assetMap.set(asset.id, image);
UIStatus.inst.statusHandle.redraws = 2;
Console.info(tr("Texture imported:") + " " + name);
// Set as envmap
if (hdrAsEnvmap && path.toLowerCase().endsWith(".hdr")) {
+1 -1
View File
@@ -18,6 +18,6 @@ class ImportTheme {
Config.raw.theme = filename;
arm.ui.BoxPreferences.themeHandle.position = arm.ui.BoxPreferences.getThemeIndex();
Config.loadTheme(Config.raw.theme);
Console.info("Theme '" + filename + "' imported.");
Console.info(tr("Theme imported:") + " " + filename);
}
}
+1 -1
View File
@@ -165,7 +165,7 @@ class BoxExport {
fetchPresets();
preset = null;
hpreset.position = files.indexOf(filename.substr(0, filename.length - 5)); // Strip .json
Console.info("Preset '" + filename + "' imported.");
Console.info(tr("Preset imported:") + " " + filename);
}
else Console.error(Strings.error1());
});