mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 01:20:25 +00:00
Add missing language strings for dithering selector
This commit is contained in:
parent
974c13dd33
commit
dd2efe28d2
@ -558,6 +558,12 @@ duplicate_view = Duplicate &View
|
||||
open_with_os = &Open with OS
|
||||
open_in_folder = Open in &Folder
|
||||
|
||||
[dithering_selector]
|
||||
no_dithering = No Dithering
|
||||
old_dithering = Old Dithering+
|
||||
ordered_dithering = Ordered Dithering+
|
||||
floyd_steinberg = Floyd-Steinberg Error Diffusion Dithering
|
||||
|
||||
[canvas_size]
|
||||
title = Canvas Size
|
||||
size = Size:
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include "app/app.h"
|
||||
#include "app/extensions.h"
|
||||
#include "app/i18n/strings.h"
|
||||
#include "app/modules/palettes.h"
|
||||
#include "app/ui/skin/skin_theme.h"
|
||||
#include "app/util/conversion_to_surface.h"
|
||||
@ -206,29 +207,30 @@ void DitheringSelector::regenerate()
|
||||
switch (m_type) {
|
||||
case SelectBoth:
|
||||
addItem(new DitherItem(render::DitheringAlgorithm::None,
|
||||
render::DitheringMatrix(), "No Dithering"));
|
||||
render::DitheringMatrix(),
|
||||
Strings::dithering_selector_no_dithering()));
|
||||
for (const auto& it : ditheringMatrices) {
|
||||
addItem(
|
||||
new DitherItem(
|
||||
addItem(new DitherItem(
|
||||
render::DitheringAlgorithm::Ordered,
|
||||
it.matrix(),
|
||||
"Ordered Dithering+" + it.name()));
|
||||
Strings::dithering_selector_ordered_dithering() + it.name()));
|
||||
}
|
||||
for (const auto& it : ditheringMatrices) {
|
||||
addItem(
|
||||
new DitherItem(
|
||||
render::DitheringAlgorithm::Old,
|
||||
it.matrix(),
|
||||
"Old Dithering+" + it.name()));
|
||||
Strings::dithering_selector_old_dithering() + it.name()));
|
||||
}
|
||||
addItem(
|
||||
new DitherItem(
|
||||
render::DitheringAlgorithm::ErrorDiffusion,
|
||||
render::DitheringMatrix(),
|
||||
"Floyd-Steinberg Error Diffusion Dithering"));
|
||||
Strings::dithering_selector_floyd_steinberg()));
|
||||
break;
|
||||
case SelectMatrix:
|
||||
addItem(new DitherItem(render::DitheringMatrix(), "No Dithering"));
|
||||
addItem(new DitherItem(render::DitheringMatrix(),
|
||||
Strings::dithering_selector_no_dithering()));
|
||||
for (auto& it : ditheringMatrices)
|
||||
addItem(new DitherItem(it.matrix(), it.name()));
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user