Add more missing language strings for filtering/editing

This commit is contained in:
Joshua Ogunyinka 2022-01-10 12:34:34 +04:00 committed by David Capello
parent aaa69a3d81
commit 6c55847151
4 changed files with 23 additions and 9 deletions

View File

@ -211,6 +211,11 @@ Information
||&OK
END
[brightness_contrast]
title = Brightness/Contrast
brightness_label = Brightness:
contrast_label = Contrast:
[brush_slot_params]
brush = Brush:
brush_type = Type
@ -1777,10 +1782,10 @@ old_sessions = Previous Sessions
incompatible = [MIGHT BE INCOMPATIBLE v{1}] {0}
[replace_color]
title = Replace Color
from = From:
to = To:
tolerance = Tolerance:
window_title = Replace Color
[remove_slice]
x_removed = Slice '{}' removed
@ -1790,7 +1795,6 @@ n_slices_removed = {} slice(s) removed
x_removed = Layer '{}' removed
layers_removed = Layers removed
[save_file]
title = Save File
save_as = Save As

View File

@ -46,8 +46,10 @@ class RotateJob : public SpriteJob {
public:
RotateJob(const ContextReader& reader, int angle, const CelList& cels, bool rotateSprite)
: SpriteJob(reader, "Rotate Canvas")
RotateJob(const ContextReader& reader,
const std::string& jobName,
int angle, const CelList& cels, bool rotateSprite)
: SpriteJob(reader, jobName.c_str())
, m_cels(cels)
, m_rotateSprite(rotateSprite) {
m_angle = angle;
@ -237,7 +239,7 @@ void RotateCommand::onExecute(Context* context)
ContextReader reader(context);
{
RotateJob job(reader, m_angle, cels, rotateSprite);
RotateJob job(reader, friendlyName(), m_angle, cels, rotateSprite);
job.startJob();
job.waitJob();
}

View File

@ -17,6 +17,7 @@
#include "app/commands/new_params.h"
#include "app/context.h"
#include "app/ini_file.h"
#include "app/i18n/strings.h"
#include "app/modules/gui.h"
#include "app/ui/color_button.h"
#include "app/ui/color_sliders.h"
@ -47,16 +48,20 @@ class BrightnessContrastWindow : public FilterWindow {
public:
BrightnessContrastWindow(BrightnessContrastFilter& filter,
FilterManagerImpl& filterMgr)
: FilterWindow("Brightness/Contrast", ConfigSection, &filterMgr,
: FilterWindow(Strings::brightness_contrast_title().c_str(),
ConfigSection,
&filterMgr,
WithChannelsSelector,
WithoutTiledCheckBox)
, m_brightness(-100, 100, int(100.0 * filter.brightness()))
, m_contrast(-100, 100, int(100.0 * filter.contrast()))
, m_filter(filter)
{
getContainer()->addChild(new ui::Label("Brightness:"));
getContainer()->addChild(
new ui::Label(Strings::brightness_contrast_brightness_label()));
getContainer()->addChild(&m_brightness);
getContainer()->addChild(new ui::Label("Contrast:"));
getContainer()->addChild(
new ui::Label(Strings::brightness_contrast_contrast_label()));
getContainer()->addChild(&m_contrast);
m_brightness.Change.connect([this]{ onChange(); });
m_contrast.Change.connect([this]{ onChange(); });

View File

@ -22,6 +22,7 @@
#include "app/commands/new_params.h"
#include "app/context.h"
#include "app/find_widget.h"
#include "app/i18n/strings.h"
#include "app/ini_file.h"
#include "app/load_widget.h"
#include "app/pref/preferences.h"
@ -78,7 +79,9 @@ static const char* ConfigSection = "ReplaceColor";
class ReplaceColorWindow : public FilterWindow {
public:
ReplaceColorWindow(ReplaceColorFilterWrapper& filter, FilterManagerImpl& filterMgr)
: FilterWindow("Replace Color", ConfigSection, &filterMgr,
: FilterWindow(Strings::replace_color_title().c_str(),
ConfigSection,
&filterMgr,
WithChannelsSelector,
WithoutTiledCheckBox)
, m_filter(filter)