This file contains 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()); |