Make capitalization more consistent across the UI

This commit mostly changes "Sample rate" to "Sample Rate"
This commit is contained in:
Alexandre Prokoudine 2022-11-11 03:53:19 +03:00
parent 9153521f4a
commit 05afb53743
6 changed files with 21 additions and 21 deletions

View file

@ -723,7 +723,7 @@ Editor::embed_sndfiles (vector<string> paths,
choices.push_back (_("Embed all without questions")); choices.push_back (_("Embed all without questions"));
ArdourWidgets::Choice rate_choice ( ArdourWidgets::Choice rate_choice (
_("Sample rate"), _("Sample Rate"),
string_compose (_("%1\nThis audiofile's sample rate doesn't match the session sample rate!"), string_compose (_("%1\nThis audiofile's sample rate doesn't match the session sample rate!"),
short_path (path, 40)), short_path (path, 40)),
choices, false choices, false
@ -749,7 +749,7 @@ Editor::embed_sndfiles (vector<string> paths,
choices.push_back (_("Embed it anyway")); choices.push_back (_("Embed it anyway"));
ArdourWidgets::Choice rate_choice ( ArdourWidgets::Choice rate_choice (
_("Sample rate"), _("Sample Rate"),
string_compose (_("%1\nThis audiofile's sample rate doesn't match the session sample rate!"), path), string_compose (_("%1\nThis audiofile's sample rate doesn't match the session sample rate!"), path),
choices, false choices, false
); );

View file

@ -96,12 +96,12 @@ EngineControl::EngineControl ()
, lbl_device (_("Device:"), Gtk::ALIGN_START) , lbl_device (_("Device:"), Gtk::ALIGN_START)
, lbl_input_device (_("Input Device:"), Gtk::ALIGN_START) , lbl_input_device (_("Input Device:"), Gtk::ALIGN_START)
, lbl_output_device (_("Output Device:"), Gtk::ALIGN_START) , lbl_output_device (_("Output Device:"), Gtk::ALIGN_START)
, lbl_sample_rate (_("Sample rate:"), Gtk::ALIGN_START) , lbl_sample_rate (_("Sample Rate:"), Gtk::ALIGN_START)
, lbl_buffer_size (_("Buffer size:"), Gtk::ALIGN_START) , lbl_buffer_size (_("Buffer Size:"), Gtk::ALIGN_START)
, lbl_nperiods (_("Periods:"), Gtk::ALIGN_START) , lbl_nperiods (_("Periods:"), Gtk::ALIGN_START)
, lbl_input_latency (_("Hardware input latency:"), Gtk::ALIGN_START) , lbl_input_latency (_("Hardware Input Latency:"), Gtk::ALIGN_START)
, lbl_output_latency (_("Hardware output latency:"), Gtk::ALIGN_START) , lbl_output_latency (_("Hardware Output Latency:"), Gtk::ALIGN_START)
, lbl_monitor_model (_("Record monitoring handled by:"), Gtk::ALIGN_START) , lbl_monitor_model (_("Record Monitoring Handled by:"), Gtk::ALIGN_START)
, lbl_jack_msg ("", Gtk::ALIGN_START) , lbl_jack_msg ("", Gtk::ALIGN_START)
, unit_samples_txt1 (_("samples"), Gtk::ALIGN_START) , unit_samples_txt1 (_("samples"), Gtk::ALIGN_START)
, unit_samples_txt2 (_("samples"), Gtk::ALIGN_START) , unit_samples_txt2 (_("samples"), Gtk::ALIGN_START)
@ -112,13 +112,13 @@ EngineControl::EngineControl ()
, use_buffered_io_button (_("Use Buffered I/O"), ArdourButton::led_default_elements) , use_buffered_io_button (_("Use Buffered I/O"), ArdourButton::led_default_elements)
, try_autostart_button (_("Autostart"), ArdourButton::led_default_elements) , try_autostart_button (_("Autostart"), ArdourButton::led_default_elements)
, lm_measure_label (_("Measure")) , lm_measure_label (_("Measure"))
, lm_use_button (_("Use results")) , lm_use_button (_("Use Results"))
, lm_back_button (_("Back to settings (ignore results)")) , lm_back_button (_("Back to Settings (Ignore Results)"))
, lm_button_audio (_("Calibrate Audio")) , lm_button_audio (_("Calibrate Audio"))
, lm_table (12, 3) , lm_table (12, 3)
, have_lm_results (false) , have_lm_results (false)
, lm_running (false) , lm_running (false)
, midi_back_button (_("Back to settings")) , midi_back_button (_("Back to Settings"))
, ignore_changes (0) , ignore_changes (0)
, ignore_device_changes (0) , ignore_device_changes (0)
, _desired_sample_rate (0) , _desired_sample_rate (0)

View file

@ -75,10 +75,10 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog)
, format_table (3, 4) , format_table (3, 4)
, compatibility_label (_("Compatibility"), Gtk::ALIGN_START) , compatibility_label (_("Compatibility"), Gtk::ALIGN_START)
, quality_label (_("Quality"), Gtk::ALIGN_START) , quality_label (_("Quality"), Gtk::ALIGN_START)
, format_label (_("File format"), Gtk::ALIGN_START) , format_label (_("File Format"), Gtk::ALIGN_START)
, sample_rate_label (_("Sample rate"), Gtk::ALIGN_START) , sample_rate_label (_("Sample Rate"), Gtk::ALIGN_START)
, src_quality_label (_("Sample rate conversion quality:"), Gtk::ALIGN_END) , src_quality_label (_("Sample Rate Conversion Quality:"), Gtk::ALIGN_END)
/* Watermarking */ /* Watermarking */
, watermark_heading (_("Preview / Watermark"), Gtk::ALIGN_START) , watermark_heading (_("Preview / Watermark"), Gtk::ALIGN_START)

View file

@ -163,7 +163,7 @@ ExportReport::init (const AnalysisResults & ar, bool with_file)
l = manage (new Label (string_compose ("%1", info.channels), ALIGN_START)); l = manage (new Label (string_compose ("%1", info.channels), ALIGN_START));
t->attach (*l, 1, 2, 2, 3); t->attach (*l, 1, 2, 2, 3);
l = manage (new Label (_("Sample rate:"), ALIGN_END)); l = manage (new Label (_("Sample Rate:"), ALIGN_END));
t->attach (*l, 0, 1, 3, 4); t->attach (*l, 0, 1, 3, 4);
l = manage (new Label (string_compose (_("%1 Hz"), info.samplerate), ALIGN_START)); l = manage (new Label (string_compose (_("%1 Hz"), info.samplerate), ALIGN_START));
t->attach (*l, 1, 2, 3, 4); t->attach (*l, 1, 2, 3, 4);
@ -357,7 +357,7 @@ ExportReport::init (const AnalysisResults & ar, bool with_file)
png_y0 += linesp; png_y0 += linesp;
IMGLABEL (lx0, _("Format:"), file_fmt); IMGLABEL (lx0, _("Format:"), file_fmt);
IMGLABEL (lx1, _("Sample rate:"), string_compose (_("%1 Hz"), sample_rate)); IMGLABEL (lx1, _("Sample Rate:"), string_compose (_("%1 Hz"), sample_rate));
png_y0 += linesp; png_y0 += linesp;
if (_session) { if (_session) {

View file

@ -146,7 +146,7 @@ ExportVideoDialog::ExportVideoDialog ()
audio_bitrate_combo.append ("256k"); audio_bitrate_combo.append ("256k");
audio_bitrate_combo.append ("320k"); audio_bitrate_combo.append ("320k");
audio_sample_rate_combo.append (_("Session rate")); audio_sample_rate_combo.append (_("Session Rate"));
audio_sample_rate_combo.append ("44100"); audio_sample_rate_combo.append ("44100");
audio_sample_rate_combo.append ("48000"); audio_sample_rate_combo.append ("48000");
@ -161,7 +161,7 @@ ExportVideoDialog::ExportVideoDialog ()
t->attach (insnd_combo, 1, 2, ty, ty + 1); t->attach (insnd_combo, 1, 2, ty, ty + 1);
ty++; ty++;
l = manage (new Label (_("Sample rate:"), ALIGN_START, ALIGN_CENTER, false)); l = manage (new Label (_("Sample Rate:"), ALIGN_START, ALIGN_CENTER, false));
t->attach (*l, 0, 1, ty, ty + 1); t->attach (*l, 0, 1, ty, ty + 1);
t->attach (audio_sample_rate_combo, 1, 2, ty, ty + 1); t->attach (audio_sample_rate_combo, 1, 2, ty, ty + 1);
ty++; ty++;

View file

@ -186,7 +186,7 @@ SoundFileBox::SoundFileBox (bool /*persistent*/)
format.set_alignment (1, 0.5); format.set_alignment (1, 0.5);
channels.set_text (_("Channels:")); channels.set_text (_("Channels:"));
channels.set_alignment (1, 0.5); channels.set_alignment (1, 0.5);
samplerate.set_text (_("Sample rate:")); samplerate.set_text (_("Sample Rate:"));
samplerate.set_alignment (1, 0.5); samplerate.set_alignment (1, 0.5);
tempomap.set_text (_("Tempo Map:")); tempomap.set_text (_("Tempo Map:"));
tempomap.set_alignment (1, 0.5); tempomap.set_alignment (1, 0.5);
@ -418,12 +418,12 @@ SoundFileBox::setup_labels (const string& filename)
channels_value.set_text (to_string (sf_info.channels)); channels_value.set_text (to_string (sf_info.channels));
if (_session && sf_info.samplerate != _session->sample_rate()) { if (_session && sf_info.samplerate != _session->sample_rate()) {
samplerate.set_markup (string_compose ("<b>%1</b>", _("Sample rate:"))); samplerate.set_markup (string_compose ("<b>%1</b>", _("Sample Rate:")));
samplerate_value.set_markup (string_compose (X_("<b>%1 Hz</b>"), sf_info.samplerate)); samplerate_value.set_markup (string_compose (X_("<b>%1 Hz</b>"), sf_info.samplerate));
samplerate_value.set_name ("NewSessionSR1Label"); samplerate_value.set_name ("NewSessionSR1Label");
samplerate.set_name ("NewSessionSR1Label"); samplerate.set_name ("NewSessionSR1Label");
} else { } else {
samplerate.set_text (_("Sample rate:")); samplerate.set_text (_("Sample Rate:"));
samplerate_value.set_text (string_compose (X_("%1 Hz"), sf_info.samplerate)); samplerate_value.set_text (string_compose (X_("%1 Hz"), sf_info.samplerate));
samplerate_value.set_name ("NewSessionSR2Label"); samplerate_value.set_name ("NewSessionSR2Label");
samplerate.set_name ("NewSessionSR2Label"); samplerate.set_name ("NewSessionSR2Label");
@ -810,7 +810,7 @@ SoundFileBrowser::SoundFileBrowser (string title, ARDOUR::Session* s, bool persi
freesound_list_view.append_column(_("Filename"), freesound_list_columns.filename); freesound_list_view.append_column(_("Filename"), freesound_list_columns.filename);
freesound_list_view.append_column(_("Duration"), freesound_list_columns.duration); freesound_list_view.append_column(_("Duration"), freesound_list_columns.duration);
freesound_list_view.append_column(_("Size"), freesound_list_columns.filesize); freesound_list_view.append_column(_("Size"), freesound_list_columns.filesize);
freesound_list_view.append_column(_("Sample rate"), freesound_list_columns.smplrate); freesound_list_view.append_column(_("Sample Rate"), freesound_list_columns.smplrate);
freesound_list_view.append_column(_("License"), freesound_list_columns.license); freesound_list_view.append_column(_("License"), freesound_list_columns.license);
// filename // filename