mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +00:00
Get AutocropSprite strings from i18n file
After introducing AutocropSpriteCommand::onGetFriendlyName(), we stop
using the automatic commands_AutocropSprite string from en.ini. This
commit fix that regression from f24eb75298
This commit is contained in:
parent
60e8a5967d
commit
674f9ff3b5
@ -208,6 +208,7 @@ AddColor_Foreground = Foreground
|
||||
AddColor_Specific = Specific
|
||||
AdvancedMode = Advanced Mode
|
||||
AutocropSprite = Trim Sprite
|
||||
AutocropSprite_ByGrid = Trim Sprite by Grid
|
||||
BackgroundFromLayer = Background From Layer
|
||||
BrightnessContrast = Adjust Brightness/Contrast
|
||||
Cancel = Cancel Current Operation
|
||||
|
@ -138,9 +138,9 @@ void AutocropSpriteCommand::onExecute(Context* context)
|
||||
std::string AutocropSpriteCommand::onGetFriendlyName() const
|
||||
{
|
||||
if (m_byGrid)
|
||||
return "Trim Sprite by Grid";
|
||||
return Strings::commands_AutocropSprite_ByGrid();
|
||||
else
|
||||
return "Trim Sprite";
|
||||
return Strings::commands_AutocropSprite();
|
||||
}
|
||||
|
||||
Command* CommandFactory::createCropSpriteCommand()
|
||||
|
Loading…
Reference in New Issue
Block a user