mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Add missing language strings when loading/saving components
This commit is contained in:
parent
05ece3fad1
commit
bf88fa2bd1
@ -847,9 +847,15 @@ selected_cels = Selected
|
||||
selected_cels_tooltip = Apply to the active selection in the timeline
|
||||
all_cels = All
|
||||
all_cels_tooltip = Apply to all cels in the sprite
|
||||
ok = &OK
|
||||
cancel = &Cancel
|
||||
preview = &Preview
|
||||
tiled = &Tiled
|
||||
|
||||
[font_popup]
|
||||
title = Fonts
|
||||
load = Load
|
||||
empty_fonts = No system fonts were found
|
||||
|
||||
[frame_combo]
|
||||
all_frames = All frames
|
||||
@ -1064,6 +1070,12 @@ color = Color
|
||||
luminosity = Luminosity
|
||||
no_layer = No Layer
|
||||
|
||||
[load_palette]
|
||||
title = Load Palette
|
||||
|
||||
[load_selection]
|
||||
title = Load Selection (.msk file)
|
||||
|
||||
[main_menu]
|
||||
file = &File
|
||||
file_new = &New...
|
||||
@ -1324,6 +1336,10 @@ default = Default (Octree)
|
||||
rgb5a3 = Table RGB 5 bits + Alpha 3 bits
|
||||
octree = Octree
|
||||
|
||||
[open_file]
|
||||
title = Open
|
||||
loading = Loading file
|
||||
|
||||
[open_sequence]
|
||||
title = Notice
|
||||
description = Do you want to load the following files as an animation?
|
||||
@ -1709,6 +1725,19 @@ from = From:
|
||||
to = To:
|
||||
tolerance = Tolerance:
|
||||
|
||||
[save_file]
|
||||
title = Save File
|
||||
save_as = Save As
|
||||
export = Export
|
||||
saving = Saving file
|
||||
saved = File <{}> saved.
|
||||
|
||||
[save_palette]
|
||||
title = Save Palette
|
||||
|
||||
[save_selection]
|
||||
title = Save Selection (.msk file)
|
||||
|
||||
[script_access]
|
||||
title = Security
|
||||
script_label = The following script:
|
||||
|
@ -61,7 +61,7 @@ void LoadMaskCommand::onExecute(Context* context)
|
||||
base::paths exts = { "msk" };
|
||||
base::paths selectedFilename;
|
||||
if (!app::show_file_selector(
|
||||
"Load .msk File", m_filename, exts,
|
||||
Strings::load_selection_title(), m_filename, exts,
|
||||
FileSelectorType::Open, selectedFilename))
|
||||
return;
|
||||
|
||||
@ -77,7 +77,9 @@ void LoadMaskCommand::onExecute(Context* context)
|
||||
{
|
||||
ContextWriter writer(reader);
|
||||
Doc* document = writer.document();
|
||||
Tx tx(writer.context(), "Mask Load", DoesntModifyDocument);
|
||||
Tx tx(writer.context(),
|
||||
Strings::load_selection_title(),
|
||||
DoesntModifyDocument);
|
||||
tx(new cmd::SetMask(document, mask.get()));
|
||||
tx.commit();
|
||||
|
||||
|
@ -66,7 +66,7 @@ void LoadPaletteCommand::onExecute(Context* context)
|
||||
base::paths exts = get_readable_palette_extensions();
|
||||
base::paths filenames;
|
||||
if (app::show_file_selector(
|
||||
"Load Palette", "", exts,
|
||||
Strings::load_palette_title(), "", exts,
|
||||
FileSelectorType::Open, filenames)) {
|
||||
filename = filenames.front();
|
||||
}
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "app/doc.h"
|
||||
#include "app/file/file.h"
|
||||
#include "app/file_selector.h"
|
||||
#include "app/i18n/strings.h"
|
||||
#include "app/job.h"
|
||||
#include "app/modules/editors.h"
|
||||
#include "app/modules/gui.h"
|
||||
@ -37,7 +38,7 @@ namespace app {
|
||||
class OpenFileJob : public Job, public IFileOpProgress {
|
||||
public:
|
||||
OpenFileJob(FileOp* fop)
|
||||
: Job("Loading file")
|
||||
: Job(Strings::open_file_loading().c_str())
|
||||
, m_fop(fop)
|
||||
{
|
||||
}
|
||||
@ -122,7 +123,7 @@ void OpenFileCommand::onExecute(Context* context)
|
||||
if (!m_folder.empty() && !base::is_path_separator(m_folder[m_folder.size()-1]))
|
||||
m_folder.push_back(base::path_separator);
|
||||
|
||||
if (!app::show_file_selector("Open", m_folder, exts,
|
||||
if (!app::show_file_selector(Strings::open_file_title(), m_folder, exts,
|
||||
FileSelectorType::OpenMultiple,
|
||||
filenames)) {
|
||||
// The user cancelled the operation through UI
|
||||
|
@ -49,7 +49,7 @@ namespace app {
|
||||
class SaveFileJob : public Job, public IFileOpProgress {
|
||||
public:
|
||||
SaveFileJob(FileOp* fop)
|
||||
: Job("Saving file")
|
||||
: Job(Strings::save_file_saving().c_str())
|
||||
, m_fop(fop)
|
||||
{
|
||||
}
|
||||
@ -254,7 +254,7 @@ void SaveFileBaseCommand::saveDocumentInBackground(
|
||||
#ifdef ENABLE_UI
|
||||
if (context->isUIAvailable() && params().ui()) {
|
||||
StatusBar::instance()->setStatusText(
|
||||
2000, fmt::format("File <{}> saved.",
|
||||
2000, fmt::format(Strings::save_file_saved(),
|
||||
base::get_file_name(filename)));
|
||||
}
|
||||
#endif
|
||||
@ -298,7 +298,7 @@ void SaveFileCommand::onExecute(Context* context)
|
||||
// save-as dialog to the user to select for first time the file-name
|
||||
// for this document.
|
||||
else {
|
||||
saveAsDialog(context, "Save File",
|
||||
saveAsDialog(context, Strings::save_file_title(),
|
||||
(params().filename.isSet() ? params().filename():
|
||||
document->filename()),
|
||||
MarkAsSaved::On);
|
||||
@ -321,7 +321,7 @@ SaveFileAsCommand::SaveFileAsCommand()
|
||||
void SaveFileAsCommand::onExecute(Context* context)
|
||||
{
|
||||
Doc* document = context->activeDocument();
|
||||
saveAsDialog(context, "Save As",
|
||||
saveAsDialog(context, Strings::save_file_save_as(),
|
||||
(params().filename.isSet() ? params().filename():
|
||||
document->filename()),
|
||||
MarkAsSaved::On);
|
||||
@ -366,7 +366,7 @@ void SaveFileCopyAsCommand::onExecute(Context* context)
|
||||
[this, &win, &askOverwrite, context, doc]() -> std::string {
|
||||
std::string result =
|
||||
saveAsDialog(
|
||||
context, "Export",
|
||||
context, Strings::save_file_export(),
|
||||
win.outputFilenameValue(),
|
||||
MarkAsSaved::Off,
|
||||
SaveInBackground::Off,
|
||||
|
@ -48,7 +48,7 @@ void SaveMaskCommand::onExecute(Context* context)
|
||||
base::paths exts = { "msk" };
|
||||
base::paths selFilename;
|
||||
if (!app::show_file_selector(
|
||||
"Save .msk File", "default.msk", exts,
|
||||
Strings::save_selection_title(), "default.msk", exts,
|
||||
FileSelectorType::Save, selFilename))
|
||||
return;
|
||||
|
||||
|
@ -64,9 +64,10 @@ void SavePaletteCommand::onExecute(Context* ctx)
|
||||
base::paths exts = get_writable_palette_extensions();
|
||||
base::paths selFilename;
|
||||
std::string initialPath = (m_saveAsPreset ? get_preset_palettes_dir(): "");
|
||||
if (!app::show_file_selector(
|
||||
"Save Palette", initialPath, exts,
|
||||
FileSelectorType::Save, selFilename))
|
||||
if (!app::show_file_selector(Strings::save_palette_title(),
|
||||
initialPath,
|
||||
exts,
|
||||
FileSelectorType::Save, selFilename))
|
||||
return;
|
||||
|
||||
filename = selFilename.front();
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include "app/commands/filters/filter_manager_impl.h"
|
||||
#include "app/commands/filters/filter_worker.h"
|
||||
#include "app/i18n/strings.h"
|
||||
#include "app/ini_file.h"
|
||||
#include "app/modules/editors.h"
|
||||
#include "app/modules/gui.h"
|
||||
@ -35,12 +36,14 @@ FilterWindow::FilterWindow(const char* title, const char* cfgSection,
|
||||
, m_hbox(HORIZONTAL)
|
||||
, m_vbox(VERTICAL)
|
||||
, m_container(VERTICAL)
|
||||
, m_okButton("&OK")
|
||||
, m_cancelButton("&Cancel")
|
||||
, m_okButton(Strings::filters_ok())
|
||||
, m_cancelButton(Strings::filters_cancel())
|
||||
, m_preview(filterMgr)
|
||||
, m_targetButton(filterMgr->pixelFormat(), (withChannels == WithChannelsSelector))
|
||||
, m_showPreview("&Preview")
|
||||
, m_tiledCheck(withTiled == WithTiledCheckBox ? new CheckBox("&Tiled") : NULL)
|
||||
, m_showPreview(Strings::filters_preview())
|
||||
, m_tiledCheck(withTiled == WithTiledCheckBox ?
|
||||
new CheckBox(Strings::filters_tiled()) :
|
||||
nullptr)
|
||||
{
|
||||
m_okButton.processMnemonicFromText();
|
||||
m_cancelButton.processMnemonicFromText();
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include "app/commands/commands.h"
|
||||
#include "app/console.h"
|
||||
#include "app/font_path.h"
|
||||
#include "app/i18n/strings.h"
|
||||
#include "app/match_words.h"
|
||||
#include "app/ui/search_entry.h"
|
||||
#include "app/ui/skin/skin_theme.h"
|
||||
@ -133,7 +134,7 @@ private:
|
||||
};
|
||||
|
||||
FontPopup::FontPopup()
|
||||
: PopupWindow("Fonts",
|
||||
: PopupWindow(Strings::font_popup_title(),
|
||||
ClickBehavior::CloseOnClickInOtherWindow,
|
||||
EnterBehavior::DoNothingOnEnter)
|
||||
, m_popup(new gen::FontPopup())
|
||||
@ -181,7 +182,7 @@ FontPopup::FontPopup()
|
||||
}
|
||||
|
||||
if (m_listBox.children().empty())
|
||||
m_listBox.addChild(new ListItem("No system fonts were found"));
|
||||
m_listBox.addChild(new ListItem(Strings::font_popup_empty_fonts()));
|
||||
}
|
||||
|
||||
void FontPopup::showPopup(Display* display,
|
||||
|
Loading…
x
Reference in New Issue
Block a user