Skip to content

Commit

Permalink
Get AutocropSprite strings from i18n file
Browse files Browse the repository at this point in the history
After introducing AutocropSpriteCommand::onGetFriendlyName(), we stop
using the automatic commands_AutocropSprite string from en.ini. This
commit fix that regression from f24eb75
  • Loading branch information
dacap committed Mar 22, 2019
1 parent 60e8a59 commit 674f9ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions data/strings/en.ini
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/app/commands/cmd_crop.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 674f9ff

Please sign in to comment.