return "";
}
-AutoStyle
-ARDOUR::string_to_auto_style (std::string str)
-{
- if (str == X_("Absolute")) {
- return Absolute;
- } else if (str == X_("Trim")) {
- return Trim;
- }
-
- fatal << string_compose (_("programming error: %1 %2"), "illegal AutoStyle string: ", str) << endmsg;
- abort(); /*NOTREACHED*/
- return Trim;
-}
-
-string
-ARDOUR::auto_style_to_string (AutoStyle as)
-{
- /* to be used only for XML serialization, no i18n done */
-
- switch (as) {
- case Absolute:
- return X_("Absolute");
- break;
- case Trim:
- return X_("Trim");
- break;
- }
-
- fatal << string_compose (_("programming error: %1 %2"), "illegal AutoStyle type: ", as) << endmsg;
- abort(); /*NOTREACHED*/
- return "";
-}
-
std::string
bool_as_string (bool yn)
{