From a55ee74c4e11b559f0b5a0a8cbcba04a5263e8a5 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Tue, 30 Nov 2021 19:50:59 +0100 Subject: [PATCH] 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. --- gtk2_ardour/audio_clock.cc | 4 ++-- gtk2_ardour/session_dialog.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 6a54e5bdd1..75d2f4f890 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -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, ("")); } } diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc index 9ff183f850..29182add85 100644 --- a/gtk2_ardour/session_dialog.cc +++ b/gtk2_ardour/session_dialog.cc @@ -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];