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:
David Capello 2019-03-22 11:10:49 -03:00
parent 60e8a5967d
commit 674f9ff3b5
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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()