13
0

i18n: Don't localize "" - that is a special gettext string

Address build warnings:
audio_clock.cc:911: warning: Empty msgid.  It is reserved by GNU gettext:
                             gettext("") returns the header entry with
                             meta information, not the empty string.
audio_clock.cc:912: warning: Empty msgid.  It is reserved by GNU gettext:
                             gettext("") returns the header entry with
                             meta information, not the empty string.
session_dialog.cc:604: warning: Empty msgid.  It is reserved by GNU gettext:
                                gettext("") returns the header entry with
                                meta information, not the empty string.
session_dialog.cc:605: warning: Empty msgid.  It is reserved by GNU gettext:
                                gettext("") returns the header entry with
                                meta information, not the empty string.

Use ("") instead of _("") to try to indicate syntactically that
localization markup intentionally has been left out.
This commit is contained in:
Mads Kiilerich 2021-11-30 19:50:59 +01:00
parent f9f3f598c4
commit a55ee74c4e
2 changed files with 4 additions and 4 deletions

View File

@ -941,8 +941,8 @@ AudioClock::finish_set (Temporal::timepos_t const & when, bool btn_en)
_right_btn.set_elements (ArdourButton::Text);
_left_btn.set_alignment (0, .5);
_right_btn.set_alignment (1, .5);
set_tooltip (_left_btn, _(""));
set_tooltip (_right_btn, _(""));
set_tooltip (_left_btn, (""));
set_tooltip (_right_btn, (""));
}
}

View File

@ -601,8 +601,8 @@ SessionDialog::populate_session_templates ()
row[session_template_columns.name] = (_("Empty Template"));
row[session_template_columns.path] = string();
row[session_template_columns.description] = _("An empty session with factory default settings.\n\nSelect this option if you are importing files to mix.");
row[session_template_columns.modified_with_short] = _("");
row[session_template_columns.modified_with_long] = _("");
row[session_template_columns.modified_with_short] = ("");
row[session_template_columns.modified_with_long] = ("");
//auto-select the first item in the list
Gtk::TreeModel::Row first = template_model->children()[0];