-
-
Save roman-neuhauser/20f83ab64bed6e32dbbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline | |
Text Volume::labelTextFmt( bool doing, has_label ) const { | |
if (doing && !has_label) return _("Clearing label on %1$s") | |
if (doing && has_label) return _("Setting label on %1$s to %2$s") | |
if (!has_label) return _("Clear label on %1$s") | |
else return _("Set label on %1$s to %2$s") | |
} | |
Text Volume::labelText( bool doing ) const { | |
return sformat(labelTextFmt(doing, !label.empty()), dev.c_str(), label.c_str()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
labelText doing = sformat (labelTextFmt doing $ empty label) [dev, label] | |
where | |
labelTextFmt True False = _("Clearing label on %1$s") | |
labelTextFmt True True = _("Setting label on %1$s to %2$s") | |
labeltextFmt False False = _("Clear label on %1$s") | |
labelTextFmt False True = _("Set label on %1$s to %2$s") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment