mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +00:00
Add missing language strings in the layer properties
This commit is contained in:
parent
ab56186d79
commit
6bc0d312d2
@ -1016,6 +1016,26 @@ name = Name:
|
|||||||
mode = Mode:
|
mode = Mode:
|
||||||
opacity = Opacity:
|
opacity = Opacity:
|
||||||
tileset_tooltip = Tileset
|
tileset_tooltip = Tileset
|
||||||
|
normal = Normal
|
||||||
|
darken = Darken
|
||||||
|
multiply = Multiply
|
||||||
|
color_burn = Color Burn
|
||||||
|
lighten = Lighten
|
||||||
|
screen = Screen
|
||||||
|
color_dodge = Color Dodge
|
||||||
|
addition = Addition
|
||||||
|
overlay = Overlay
|
||||||
|
soft_light = Soft Light
|
||||||
|
hard_light = Hard Light
|
||||||
|
difference = Difference
|
||||||
|
exclusion = Exclusion
|
||||||
|
subtract = Subtract
|
||||||
|
divide = Divide
|
||||||
|
hue = Hue
|
||||||
|
saturation = Saturation
|
||||||
|
color = Color
|
||||||
|
luminosity = Luminosity
|
||||||
|
no_layer = No Layer
|
||||||
|
|
||||||
[main_menu]
|
[main_menu]
|
||||||
file = &File
|
file = &File
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "app/context_access.h"
|
#include "app/context_access.h"
|
||||||
#include "app/doc.h"
|
#include "app/doc.h"
|
||||||
#include "app/doc_event.h"
|
#include "app/doc_event.h"
|
||||||
|
#include "app/i18n/strings.h"
|
||||||
#include "app/modules/gui.h"
|
#include "app/modules/gui.h"
|
||||||
#include "app/tx.h"
|
#include "app/tx.h"
|
||||||
#include "app/ui/main_window.h"
|
#include "app/ui/main_window.h"
|
||||||
@ -79,30 +80,49 @@ public:
|
|||||||
name()->setMinSize(gfx::Size(128, 0));
|
name()->setMinSize(gfx::Size(128, 0));
|
||||||
name()->setExpansive(true);
|
name()->setExpansive(true);
|
||||||
|
|
||||||
mode()->addItem(new BlendModeItem("Normal", doc::BlendMode::NORMAL));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_normal(),
|
||||||
|
doc::BlendMode::NORMAL));
|
||||||
mode()->addItem(new SeparatorInView);
|
mode()->addItem(new SeparatorInView);
|
||||||
mode()->addItem(new BlendModeItem("Darken", doc::BlendMode::DARKEN));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_darken(),
|
||||||
mode()->addItem(new BlendModeItem("Multiply", doc::BlendMode::MULTIPLY));
|
doc::BlendMode::DARKEN));
|
||||||
mode()->addItem(new BlendModeItem("Color Burn", doc::BlendMode::COLOR_BURN));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_multiply(),
|
||||||
|
doc::BlendMode::MULTIPLY));
|
||||||
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_color_burn(),
|
||||||
|
doc::BlendMode::COLOR_BURN));
|
||||||
mode()->addItem(new SeparatorInView);
|
mode()->addItem(new SeparatorInView);
|
||||||
mode()->addItem(new BlendModeItem("Lighten", doc::BlendMode::LIGHTEN));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_lighten(),
|
||||||
mode()->addItem(new BlendModeItem("Screen", doc::BlendMode::SCREEN));
|
doc::BlendMode::LIGHTEN));
|
||||||
mode()->addItem(new BlendModeItem("Color Dodge", doc::BlendMode::COLOR_DODGE));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_screen(),
|
||||||
mode()->addItem(new BlendModeItem("Addition", doc::BlendMode::ADDITION));
|
doc::BlendMode::SCREEN));
|
||||||
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_color_dodge(),
|
||||||
|
doc::BlendMode::COLOR_DODGE));
|
||||||
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_addition(),
|
||||||
|
doc::BlendMode::ADDITION));
|
||||||
mode()->addItem(new SeparatorInView);
|
mode()->addItem(new SeparatorInView);
|
||||||
mode()->addItem(new BlendModeItem("Overlay", doc::BlendMode::OVERLAY));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_overlay(),
|
||||||
mode()->addItem(new BlendModeItem("Soft Light", doc::BlendMode::SOFT_LIGHT));
|
doc::BlendMode::OVERLAY));
|
||||||
mode()->addItem(new BlendModeItem("Hard Light", doc::BlendMode::HARD_LIGHT));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_soft_light(),
|
||||||
|
doc::BlendMode::SOFT_LIGHT));
|
||||||
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_hard_light(),
|
||||||
|
doc::BlendMode::HARD_LIGHT));
|
||||||
mode()->addItem(new SeparatorInView);
|
mode()->addItem(new SeparatorInView);
|
||||||
mode()->addItem(new BlendModeItem("Difference", doc::BlendMode::DIFFERENCE));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_difference(),
|
||||||
mode()->addItem(new BlendModeItem("Exclusion", doc::BlendMode::EXCLUSION));
|
doc::BlendMode::DIFFERENCE));
|
||||||
mode()->addItem(new BlendModeItem("Subtract", doc::BlendMode::SUBTRACT));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_exclusion(),
|
||||||
mode()->addItem(new BlendModeItem("Divide", doc::BlendMode::DIVIDE));
|
doc::BlendMode::EXCLUSION));
|
||||||
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_subtract(),
|
||||||
|
doc::BlendMode::SUBTRACT));
|
||||||
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_divide(),
|
||||||
|
doc::BlendMode::DIVIDE));
|
||||||
mode()->addItem(new SeparatorInView);
|
mode()->addItem(new SeparatorInView);
|
||||||
mode()->addItem(new BlendModeItem("Hue", doc::BlendMode::HSL_HUE));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_hue(),
|
||||||
mode()->addItem(new BlendModeItem("Saturation", doc::BlendMode::HSL_SATURATION));
|
doc::BlendMode::HSL_HUE));
|
||||||
mode()->addItem(new BlendModeItem("Color", doc::BlendMode::HSL_COLOR));
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_saturation(),
|
||||||
mode()->addItem(new BlendModeItem("Luminosity", doc::BlendMode::HSL_LUMINOSITY));
|
doc::BlendMode::HSL_SATURATION));
|
||||||
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_color(),
|
||||||
|
doc::BlendMode::HSL_COLOR));
|
||||||
|
mode()->addItem(new BlendModeItem(Strings::layer_properties_luminosity(),
|
||||||
|
doc::BlendMode::HSL_LUMINOSITY));
|
||||||
|
|
||||||
name()->Change.connect([this]{ onStartTimer(); });
|
name()->Change.connect([this]{ onStartTimer(); });
|
||||||
mode()->Change.connect([this]{ onStartTimer(); });
|
mode()->Change.connect([this]{ onStartTimer(); });
|
||||||
@ -407,7 +427,7 @@ private:
|
|||||||
m_userDataView.entry()->setText(m_layer->userData().text());
|
m_userDataView.entry()->setText(m_layer->userData().text());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
name()->setText("No Layer");
|
name()->setText(Strings::layer_properties_no_layer());
|
||||||
name()->setEnabled(false);
|
name()->setEnabled(false);
|
||||||
mode()->setEnabled(false);
|
mode()->setEnabled(false);
|
||||||
opacity()->setEnabled(false);
|
opacity()->setEnabled(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user