Make import messages localizable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user