finalize PROGRAM_NAME change for ardour3

git-svn-id: svn://localhost/ardour2/branches/3.0@6759 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-03-15 02:31:27 +00:00
parent b56ad64ee3
commit 44f4b84551
18 changed files with 53 additions and 52 deletions

View File

@ -87,12 +87,12 @@ ActionManager::init ()
error << string_compose (_("badly formatted UI definition file: %1"), err.what()) << endmsg;
cerr << string_compose (_("badly formatted UI definition file: %1"), err.what()) << endl;
} catch (...) {
error << _("Ardour menu definition file not found") << endmsg;
error << string_compose (_("%1 menu definition file not found"), PROGRAM_NAME) << endmsg;
}
if (!loaded) {
cerr << _("ardour will not work without a valid ardour.menus file") << endl;
error << _("ardour will not work without a valid ardour.menus file") << endmsg;
cerr << string_compose (_("%1 will not work without a valid ardour.menus file"), PROGRAM_NAME) << endl;
error << string_compose (_("%1 will not work without a valid ardour.menus file"), PROGRAM_NAME) << endmsg;
exit(1);
}
}

View File

@ -646,9 +646,9 @@ ARDOUR_UI::backend_audio_error (bool we_set_params, Gtk::Window* toplevel)
{
string title;
if (we_set_params) {
title = _("Ardour could not start JACK");
title = string_compose (_("%1 could not start JACK"), PROGRAM_NAME);
} else {
title = _("Ardour could not connect to JACK.");
title = string_compose (_("%1 could not connect to JACK."), PROGRAM_NAME);
}
MessageDialog win (title,
@ -711,7 +711,7 @@ ARDOUR_UI::startup ()
goto_editor_window ();
BootMessage (_("Ardour is ready for use"));
BootMessage (string_compose (_("%1 is ready for use"), PROGRAM_NAME));
show ();
}
@ -753,12 +753,13 @@ ARDOUR_UI::check_memory_locking ()
if (ram == 0 || ((double) limits.rlim_cur / ram) < 0.75) {
MessageDialog msg (_("WARNING: Your system has a limit for maximum amount of locked memory. "
"This might cause Ardour to run out of memory before your system "
"runs out of memory. \n\n"
"You can view the memory limit with 'ulimit -l', "
"and it is normally controlled by /etc/security/limits.conf"));
MessageDialog msg (string_compose (_("WARNING: Your system has a limit for maximum amount of locked memory. "
"This might cause %1 to run out of memory before your system "
"runs out of memory. \n\n"
"You can view the memory limit with 'ulimit -l', "
"and it is normally controlled by /etc/security/limits.conf"),
PROGRAM_NAME).c_str());
VBox* vbox = msg.get_vbox();
HBox hbox;
CheckButton cb (_("Do not show this window again"));
@ -1242,8 +1243,9 @@ ARDOUR_UI::check_audioengine ()
{
if (engine) {
if (!engine->connected()) {
MessageDialog msg (_("Ardour is not connected to JACK\n"
"You cannot open or close sessions in this condition"));
MessageDialog msg (string_compose (_("%1 is not connected to JACK\n"
"You cannot open or close sessions in this condition"),
PROGRAM_NAME));
pop_back_splash ();
msg.run ();
return false;
@ -1275,7 +1277,7 @@ ARDOUR_UI::open_session ()
FileFilter session_filter;
session_filter.add_pattern ("*.ardour");
session_filter.set_name (_("Ardour sessions"));
session_filter.set_name (string_compose (_("%1 sessions"), PROGRAM_NAME));
open_session_selector->add_filter (session_filter);
open_session_selector->set_filter (session_filter);
}
@ -2582,7 +2584,7 @@ ARDOUR_UI::load_session (const Glib::ustring& path, const Glib::ustring& snap_na
goto out;
}
loading_message (_("Please wait while Ardour loads your session"));
loading_message (string_compose (_("Please wait while %1loads your session"), PROGRAM_NAME));
try {
new_session = new Session (*engine, path, snap_name, mix_template);
@ -3185,7 +3187,7 @@ ARDOUR_UI::write_buffer_stats ()
strcpy (path, "ardourBufferingXXXXXX");
if ((fd = mkstemp (path )) < 0) {
cerr << X_("cannot find temporary name for ardour buffer stats") << endl;
cerr << X_("cannot find temporary name for buffer stats") << endl;
return;
}
@ -3193,7 +3195,7 @@ ARDOUR_UI::write_buffer_stats ()
close (fd);
if (!fout) {
cerr << string_compose (X_("cannot open file %1 for ardour buffer stats"), path) << endl;
cerr << string_compose (X_("cannot open file %1 for buffer stats"), path) << endl;
return;
}
@ -3207,7 +3209,7 @@ ARDOUR_UI::write_buffer_stats ()
fout.close ();
cerr << "Ardour buffering statistics can be found in: " << path << endl;
cerr << "buffering statistics can be found in: " << path << endl;
}
void

View File

@ -121,7 +121,7 @@ ARDOUR_UI::setup_tooltips ()
set_tip (punch_out_button, _("Stop recording at auto-punch end"));
set_tip (click_button, _("Enable/Disable audio click"));
set_tip (sync_button, _("Enable/Disable external positional sync"));
set_tip (time_master_button, _("Does Ardour control the time?"));
set_tip (time_master_button, string_compose (_("Does %1 control the time?"), PROGRAM_NAME));
set_tip (shuttle_box, _("Shuttle speed control"));
set_tip (shuttle_units_button, _("Select semitones or %%-age for speed display"));
set_tip (speed_display_box, _("Current transport speed"));

View File

@ -4640,7 +4640,7 @@ Editor::first_idle ()
if (track_views.size() > 1) {
dialog = new MessageDialog (*this,
_("Please wait while Ardour loads visual data"),
string_compose (_("Please wait while %1 loads visual data"), PROGRAM_NAME),
true,
Gtk::MESSAGE_INFO,
Gtk::BUTTONS_NONE);

View File

@ -959,7 +959,7 @@ EngineControl::find_jack_servers (vector<string>& strings)
if (getenv ("ARDOUR_WITH_JACK")) {
/* no other options - only use the JACK we supply */
if (strings.empty()) {
fatal << _("JACK appears to be missing from the Ardour bundle") << endmsg;
fatal << string_compose (_("JACK appears to be missing from the %1 bundle"), PROGRAM_NAME) << endmsg;
/*NOTREACHED*/
}
return;

View File

@ -132,7 +132,7 @@ ArdourKeyboard::setup_keybindings ()
if ( ! find_file_in_search_path (spath, keybindings_path, keybindings_file)) {
if (keybindings_path == default_bindings) {
error << _("Default keybindings not found - Ardour will be hard to use!") << endmsg;
error << string_compose (_("Default keybindings not found - %1 will be hard to use!"), PROGRAM_NAME) << endmsg;
return;
} else {
warning << string_compose (_("Key bindings file \"%1\" not found. Default bindings used instead"),
@ -156,7 +156,7 @@ ArdourKeyboard::setup_keybindings ()
if (!Glib::file_test (keybindings_path, Glib::FILE_TEST_EXISTS)) {
if (keybindings_path == default_bindings) {
error << _("Default keybindings not found - Ardour will be hard to use!") << endmsg;
error << string_compose (_("Default keybindings not found - %1 will be hard to use!"), PROGRAM_NAME) << endmsg;
return;
} else {
warning << string_compose (_("Key bindings file \"%1\" not found. Default bindings used instead"),

View File

@ -66,7 +66,7 @@ static const char* localedir = LOCALEDIR;
void
gui_jack_error ()
{
MessageDialog win (_("Ardour could not connect to JACK."),
MessageDialog win (string_compose (_("%1 could not connect to JACK."), PROGRAM_NAME),
false,
Gtk::MESSAGE_INFO,
(Gtk::ButtonsType)(Gtk::BUTTONS_NONE));
@ -348,7 +348,7 @@ int main (int argc, char *argv[])
return curvetest (curvetest_file);
}
cout << _("Ardour/GTK ")
cout << PROGRAM_NAME
<< VERSIONSTRING
<< _(" (built using ")
<< svn_revision
@ -366,7 +366,7 @@ int main (int argc, char *argv[])
cerr << _("Copyright (C) 1999-2008 Paul Davis") << endl
<< _("Some portions Copyright (C) Steve Harris, Ari Johnson, Brett Viren, Joel Baker") << endl
<< endl
<< _("Ardour comes with ABSOLUTELY NO WARRANTY") << endl
<< string_compose (_("%1 comes with ABSOLUTELY NO WARRANTY"), PROGRAM_NAME) << endl
<< _("not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.") << endl
<< _("This is free software, and you are welcome to redistribute it ") << endl
<< _("under certain conditions; see the source for copying conditions.")

View File

@ -59,7 +59,7 @@ print_help (const char *execname)
<< _(" -d, --disable-plugins Disable all plugins in an existing session\n")
<< _(" -D, --debug <options> Set debug flags. Use \"-D list\" to see available options\n")
<< _(" -n, --show-splash Show splash screen\n")
<< _(" -m, --menus file Use \"file\" for Ardour menus\n")
<< _(" -m, --menus file Use \"file\" to define menus\n")
<< _(" -N, --new session-name Create a new session from the command line\n")
<< _(" -O, --no-hw-optimizations Disable h/w specific optimizations\n")
<< _(" -S, --sync Draw the gui synchronously \n")

View File

@ -408,8 +408,8 @@ PlugUIBase::PlugUIBase (boost::shared_ptr<PluginInsert> pi)
focus_button.add (*focus_out_image);
ARDOUR_UI::instance()->set_tip (&focus_button, _("Click to allow the plugin to receive keyboard events that Ardour would normally use as a shortcut"), "");
ARDOUR_UI::instance()->set_tip (&bypass_button, _("Click to enable/disable this plugin"), "");
ARDOUR_UI::instance()->set_tip (focus_button, string_compose (_("Click to allow the plugin to receive keyboard events that %1 would normally use as a shortcut"), PROGRAM_NAME));
ARDOUR_UI::instance()->set_tip (bypass_button, _("Click to enable/disable this plugin"));
plugin_analysis_expander.property_expanded().signal_changed().connect( sigc::mem_fun(*this, &PlugUIBase::toggle_plugin_analysis));
plugin_analysis_expander.set_expanded(false);
@ -538,13 +538,13 @@ PlugUIBase::focus_toggled (GdkEventButton*)
focus_button.remove ();
focus_button.add (*focus_out_image);
focus_out_image->show ();
ARDOUR_UI::instance()->set_tip (&focus_button, _("Click to allow the plugin to receive keyboard events that Ardour would normally use as a shortcut"), "");
ARDOUR_UI::instance()->set_tip (focus_button, string_compose (_("Click to allow the plugin to receive keyboard events that %1 would normally use as a shortcut"), PROGRAM_NAME));
} else {
Keyboard::the_keyboard().magic_widget_grab_focus();
focus_button.remove ();
focus_button.add (*focus_in_image);
focus_in_image->show ();
ARDOUR_UI::instance()->set_tip (&focus_button, _("Click to allow normal use of Ardour keyboard shortcuts"), "");
ARDOUR_UI::instance()->set_tip (focus_button, string_compose (_("Click to allow normal use of %1 keyboard shortcuts"), PROGRAM_NAME));
}
return true;

View File

@ -796,7 +796,7 @@ ProcessorBox::weird_plugin_dialog (Plugin& p, Route::ProcessorStreams streams)
text += string_compose("\t%1 ", streams.count.n_audio()) + _("audio channel(s)\n");
}
text += _("\nArdour is unable to insert this plugin here.\n");
text += string_compose (_("\n%1 is unable to insert this plugin here.\n"), PROGRAM_NAME);
label.set_text(text);
dialog.get_vbox()->pack_start (label);

View File

@ -924,8 +924,8 @@ private:
RCOptionEditor::RCOptionEditor ()
: OptionEditor (Config, _("Ardour Preferences")),
_rc_config (Config)
: OptionEditor (Config, string_compose (_("%1 Preferences"), PROGRAM_NAME))
, _rc_config (Config)
{
/* MISC */

View File

@ -674,7 +674,7 @@ SessionMetadataImporter::run ()
Gtk::FileFilter session_filter;
session_filter.add_pattern ("*.ardour");
session_filter.set_name (_("Ardour sessions"));
session_filter.set_name (string_compose (_("%1 sessions"), PROGRAM_NAME));
session_selector.add_filter (session_filter);
session_selector.set_filter (session_filter);
@ -705,7 +705,7 @@ SessionMetadataImporter::run ()
string filename = Glib::build_filename (path, name + ".ardour");
XMLTree session_tree;
if (!session_tree.read (filename)) {
warn_user (_("A proper ardour session file was not selected!"));
warn_user (_("This session file could not be read!"));
return;
}

View File

@ -42,7 +42,7 @@ Splash::Splash ()
layout = create_pango_layout ("");
string str = "<b>";
string i18n = _("Ardour loading ...");
string i18n = string_compose (_("%1 loading ..."), PROGRAM_NAME);
str += i18n;
str += "</b>";

View File

@ -43,7 +43,7 @@ ArdourStartup::ArdourStartup ()
, ic_existing_session_button (_("Open an existing session"))
, monitor_via_hardware_button (_("Use an external mixer or the hardware mixer of your audio interface.\n\
Ardour will play NO role in monitoring"))
, monitor_via_ardour_button (_("Ask Ardour to playback material as it is being recorded"))
, monitor_via_ardour_button (string_compose (_("Ask %1 to playback material as it is being recorded"), PROGRAM_NAME))
, new_folder_chooser (FILE_CHOOSER_ACTION_SELECT_FOLDER)
, more_new_session_options_button (_("I'd like more options for this session"))
, _output_limit_count_adj (1, 0, 100, 1, 10, 0)
@ -226,15 +226,15 @@ ArdourStartup::setup_new_user_page ()
{
Label* foomatic = manage (new Label);
foomatic->set_markup (_("\
<span size=\"larger\">Ardour is a digital audio workstation. You can use it to\n\
foomatic->set_markup (string_compose (_("\
<span size=\"larger\">%1 is a digital audio workstation. You can use it to\n\
record, edit and mix multi-track audio. You can produce your\n\
own CDs, mix video soundtracks, or just experiment with new\n\
ideas about music and sound.\n\
\n\
There are a few things that need to configured before you start\n\
using the program.</span>\
"));
"), PROGRAM_NAME));
HBox* hbox = manage (new HBox);
HBox* vbox = manage (new HBox);
@ -265,7 +265,7 @@ ArdourStartup::default_dir_changed ()
void
ArdourStartup::setup_first_time_config_page ()
{
default_dir_chooser = manage (new FileChooserButton (_("Default folder for Ardour sessions"),
default_dir_chooser = manage (new FileChooserButton (string_compose (_("Default folder for %1 sessions"), PROGRAM_NAME),
FILE_CHOOSER_ACTION_SELECT_FOLDER));
Gtk::Label* txt = manage (new Label);
HBox* hbox = manage (new HBox);
@ -417,7 +417,7 @@ ArdourStartup::setup_session_page ()
void
ArdourStartup::setup_final_page ()
{
final_page.set_text ("Ardour is ready for use");
final_page.set_text (string_compose (_("%1 is ready for use"), PROGRAM_NAME));
final_page.show ();
final_page_index = append_page (final_page);
set_page_complete (final_page, true);

View File

@ -193,9 +193,8 @@ load_rc_file (const string& filename, bool themechange)
spath += system_config_search_path();
if (!find_file_in_search_path (spath, filename, rc_file_path)) {
warning << string_compose(
_("Unable to find UI style file %1 in search path %2. Ardour will look strange"),
filename, spath.to_string())
warning << string_compose (_("Unable to find UI style file %1 in search path %2. %3 will look strange"),
filename, spath.to_string(), PROGRAM_NAME)
<< endmsg;
return;
}

View File

@ -1080,7 +1080,7 @@ AUPlugin::set_state(const XMLNode& node)
return ret;
#else
if (!seen_set_state_message) {
info << _("Restoring AudioUnit settings is not supported in this build of Ardour. Consider paying for a newer version")
info << string_compose (_("Restoring AudioUnit settings is not supported in this build of %1. Consider paying for a newer version", PROGRAM_NAME)
<< endmsg;
}
return 0;
@ -1110,7 +1110,7 @@ AUPlugin::load_preset (const string& preset_label)
return ret;
#else
if (!seen_loading_message) {
info << _("Loading AudioUnit presets is not supported in this build of Ardour. Consider paying for a newer version")
info << string_compose (_("Loading AudioUnit presets is not supported in this build of %1. Consider paying for a newer version", PROGRAM_NAME)
<< endmsg;
seen_loading_message = true;
}
@ -1171,7 +1171,7 @@ AUPlugin::save_preset (string preset_name)
return ret;
#else
if (!seen_saving_message) {
info << _("Saving AudioUnit presets is not supported in this build of Ardour. Consider paying for a newer version")
info << string_compose (_("Saving AudioUnit presets is not supported in this build of %1. Consider paying for a newer version"), PROGRAM_NAME)
<< endmsg;
seen_saving_message = true;
}

View File

@ -631,7 +631,7 @@ AudioEngine::port_registration_failure (const std::string& portname)
if (p) {
reason = string_compose (_("a port with the name \"%1\" already exists: check for duplicated track/bus names"), portname);
} else {
reason = _("No more JACK ports are available. You will need to stop Ardour and restart JACK with ports if you need this many tracks.");
reason = string_compose (_("No more JACK ports are available. You will need to stop %1 and restart JACK with ports if you need this many tracks."), PROGRAM_NAME);
}
throw PortRegistrationFailure (string_compose (_("AudioEngine: cannot register port \"%1\": %2"), portname, reason).c_str());

View File

@ -104,7 +104,7 @@ ARDOUR::find_session (string str, string& path, string& snapshot, bool& isnew)
suffix = snapshot.find (statefile_suffix);
if (suffix == string::npos) {
error << string_compose (_("%1 is not an Ardour snapshot file"), str) << endmsg;
error << string_compose (_("%1 is not a snapshot file"), str) << endmsg;
return -1;
}