- My part of auditing was completed
- Many missing strings to gettext-ize git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1267 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
a37be5231b
commit
9aa6bf39cb
|
@ -281,8 +281,3 @@ XMLSerializerFactory::create_subrequest(Parameters& parameters)
|
|||
}
|
||||
// add a sub request - Request, resource_key, duration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* comment */
|
||||
|
|
|
@ -27,13 +27,12 @@
|
|||
#include <sgpemv2/simulation.hh>
|
||||
#include <sgpemv2/resource.hh>
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#include "gettext.h"
|
||||
|
||||
#include <gtkmm/spinbutton.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <cassert>
|
||||
|
||||
using namespace sgpem;
|
||||
|
@ -249,7 +248,5 @@ AddRequestDialog::_on_row_removed(const Gtk::TreePath& path)
|
|||
void
|
||||
AddRequestDialog::_on_combo_selection_changed()
|
||||
{
|
||||
_add_button->set_sensitive(
|
||||
static_cast<bool>(_resource_combo->get_active()));
|
||||
_add_button->set_sensitive(static_cast<bool>(_resource_combo->get_active()));
|
||||
}
|
||||
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
// along with SGPEMv2; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
|
||||
#include "gettext.h"
|
||||
|
||||
#include <sgpemv2/ready_queue.hh>
|
||||
|
||||
using sgpem::ReadyQueue;
|
||||
|
|
|
@ -85,8 +85,8 @@ ResourcePoliciesGatekeeper::get_current_policy(History* history) throw(runtime_e
|
|||
PolicyIterator policy = _active_policies.find(history);
|
||||
|
||||
if (policy == _active_policies.end())
|
||||
throw runtime_error("No active policy associated with this "
|
||||
"history is available.");
|
||||
throw runtime_error(_("No active policy associated with this ")
|
||||
_("history is available."));
|
||||
|
||||
return *policy->second;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
#include <sgpemv2/resource_policy.hh>
|
||||
using namespace std;
|
||||
|
||||
using namespace sgpem;
|
||||
|
||||
ResourcePolicy::~ResourcePolicy()
|
||||
|
|
|
@ -84,7 +84,6 @@ ResourcePolicyPriorityInheritance::enforce(Environment& environment, Environment
|
|||
// increase the priority of a the thread to the maximum priority of any process waiting
|
||||
int push = pmax - (**i).get_request().get_thread().get_current_priority();
|
||||
(**i).get_request().get_thread().set_priority_push(push);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -173,7 +173,7 @@ GuiBuilder::on_file_open_activate()
|
|||
Simulation& sim = Simulation::get_instance();
|
||||
|
||||
// open file dialog...
|
||||
Gtk::FileChooserDialog dialog("Please choose a file", Gtk::FILE_CHOOSER_ACTION_OPEN);
|
||||
Gtk::FileChooserDialog dialog(_("Please choose a file"), Gtk::FILE_CHOOSER_ACTION_OPEN);
|
||||
dialog.set_transient_for(get_initial_window());
|
||||
if(!_filename.empty()) // Please test the following line extensively:
|
||||
dialog.set_current_folder(Glib::path_get_dirname(_filename));
|
||||
|
@ -193,7 +193,7 @@ GuiBuilder::on_file_open_activate()
|
|||
}
|
||||
|
||||
Gtk::FileFilter filter_any;
|
||||
filter_any.set_name("Any files");
|
||||
filter_any.set_name(_("Any files"));
|
||||
filter_any.add_pattern("*");
|
||||
dialog.add_filter(filter_any);
|
||||
|
||||
|
@ -205,7 +205,7 @@ GuiBuilder::on_file_open_activate()
|
|||
sim.stop(); // It would work anyhow, but it'd look strange
|
||||
History& history = sim.get_history();
|
||||
serializer.restore_snapshot(_filename, history);
|
||||
msg = "File: " + _filename + " loaded.";
|
||||
msg = _("File: ") + _filename + _(" loaded.");
|
||||
} // end - if(result==Gtk::RESPONSE_OK)
|
||||
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ GuiBuilder::on_file_save_activate()
|
|||
History& history = Simulation::get_instance().get_history();
|
||||
|
||||
serializer.save_snapshot(_filename, history);
|
||||
msg = "File: " + _filename + " saved.";
|
||||
msg = _("File: ") + _filename + _(" saved.");
|
||||
}
|
||||
catch (std::out_of_range e)
|
||||
{
|
||||
|
@ -296,7 +296,7 @@ GuiBuilder::on_file_saveas_activate()
|
|||
History& history = Simulation::get_instance().get_history();
|
||||
|
||||
// open file dialog...
|
||||
Gtk::FileChooserDialog dialog("Please choose a file", Gtk::FILE_CHOOSER_ACTION_SAVE);
|
||||
Gtk::FileChooserDialog dialog(_("Please choose a file"), Gtk::FILE_CHOOSER_ACTION_SAVE);
|
||||
dialog.set_transient_for(get_initial_window());
|
||||
|
||||
//Add response buttons the the dialog:
|
||||
|
@ -310,7 +310,7 @@ GuiBuilder::on_file_saveas_activate()
|
|||
dialog.add_filter(filter_sgpem);
|
||||
|
||||
Gtk::FileFilter filter_any;
|
||||
filter_any.set_name("Any files");
|
||||
filter_any.set_name(_("Any files"));
|
||||
filter_any.add_pattern("*");
|
||||
dialog.add_filter(filter_any);
|
||||
|
||||
|
@ -329,7 +329,7 @@ GuiBuilder::on_file_saveas_activate()
|
|||
|
||||
serializer.save_snapshot(_filename, history);
|
||||
|
||||
msg = "File: " + _filename + " saved.";
|
||||
msg = _("File: ") + _filename + _(" saved.");
|
||||
} // end - if(result==Gtk::RESPONSE_OK)
|
||||
|
||||
}
|
||||
|
|
|
@ -21,27 +21,24 @@
|
|||
|
||||
#include "gettext.h"
|
||||
|
||||
|
||||
#include "schedulables_statistics_widget.hh"
|
||||
#include <sgpemv2/simulation.hh>
|
||||
|
||||
#include <sgpemv2/history.hh>
|
||||
#include <sgpemv2/simulation.hh>
|
||||
#include <sgpemv2/simulation_statistics.hh>
|
||||
#include <sgpemv2/statistics.hh>
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#include <sgpemv2/simulation_statistics.hh>
|
||||
|
||||
using namespace sgpem;
|
||||
using namespace std;
|
||||
|
||||
using namespace Gtk;
|
||||
using namespace Glib;
|
||||
|
||||
|
||||
TabularSchedulableStatisticsWidget::TabularSchedulableStatisticsWidget()
|
||||
{
|
||||
|
||||
_show_runs = _show_perc = _show_inactive = _show_turn =
|
||||
_show_resp = _show_effic =
|
||||
_show_ris_usage = _show_ris_block = true;
|
||||
|
@ -86,10 +83,10 @@ TabularSchedulableStatisticsWidget::update(const History& changed_history)
|
|||
for(unsigned int i_p = 0; i_p < p_stats.size(); i_p++)
|
||||
{
|
||||
TreeModel::Row riga_P = *(_model->append());
|
||||
|
||||
riga_P[_col_name] = p_stats[i_p]->get_core()->get_name();
|
||||
riga_P[_col_runs] = p_stats[i_p]->get_execution_time();
|
||||
stringstream s1; s1 << p_stats[i_p]->get_execution_progress() << "%";
|
||||
stringstream s1;
|
||||
s1 << p_stats[i_p]->get_execution_progress() << "%";
|
||||
riga_P[_col_perc] = Glib::ustring(s1.str());
|
||||
riga_P[_col_inactive] = p_stats[i_p]->get_total_inactivity();
|
||||
stringstream s2;
|
||||
|
@ -115,7 +112,8 @@ TabularSchedulableStatisticsWidget::update(const History& changed_history)
|
|||
TreeModel::Row riga_T = *(_model->append(riga_P.children()));
|
||||
riga_T[_col_name] = t_stats[i_t]->get_core()->get_name();
|
||||
riga_T[_col_runs] = t_stats[i_t]->get_execution_time();
|
||||
stringstream s1; s1 << t_stats[i_t]->get_execution_progress() << "%";
|
||||
stringstream s1;
|
||||
s1 << t_stats[i_t]->get_execution_progress() << "%";
|
||||
riga_T[_col_perc] = Glib::ustring(s1.str());
|
||||
riga_T[_col_inactive] = t_stats[i_t]->get_total_inactivity();
|
||||
stringstream s2;
|
||||
|
@ -172,8 +170,6 @@ TabularSchedulableStatisticsWidget::update_columns()
|
|||
|
||||
if (_show_ris_block)
|
||||
append_column(_("Res. block"), _col_ris_block);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue