#include "file_picker_ctrl.h"
#include "lib/config.h"
#include "lib/util.h"
-#include <dcp/raw_convert.h>
+#include <dcp/locale_convert.h>
#include <wx/spinctrl.h>
#include <boost/thread.hpp>
using namespace std;
using namespace boost;
+using dcp::locale_convert;
/** Add a wxStaticText to a wxSizer, aligning it at vertical centre.
* @param s Sizer to add to.
vector<pair<string, string> > items;
for (int i = minimum; i <= 16; i += 2) {
if (i == 2) {
- items.push_back (make_pair (wx_to_std (_("2 - stereo")), dcp::raw_convert<string> (i)));
+ items.push_back (make_pair (wx_to_std (_("2 - stereo")), locale_convert<string> (i)));
} else if (i == 4) {
- items.push_back (make_pair (wx_to_std (_("4 - L/C/R/Lfe")), dcp::raw_convert<string> (i)));
+ items.push_back (make_pair (wx_to_std (_("4 - L/C/R/Lfe")), locale_convert<string> (i)));
} else if (i == 6) {
- items.push_back (make_pair (wx_to_std (_("6 - 5.1")), dcp::raw_convert<string> (i)));
+ items.push_back (make_pair (wx_to_std (_("6 - 5.1")), locale_convert<string> (i)));
} else if (i == 8) {
- items.push_back (make_pair (wx_to_std (_("8 - 5.1/HI/VI")), dcp::raw_convert<string> (i)));
+ items.push_back (make_pair (wx_to_std (_("8 - 5.1/HI/VI")), locale_convert<string> (i)));
} else if (i == 12) {
- items.push_back (make_pair (wx_to_std (_("12 - 7.1/HI/VI")), dcp::raw_convert<string> (i)));
+ items.push_back (make_pair (wx_to_std (_("12 - 7.1/HI/VI")), locale_convert<string> (i)));
} else {
- items.push_back (make_pair (dcp::raw_convert<string> (i), dcp::raw_convert<string> (i)));
+ items.push_back (make_pair (locale_convert<string> (i), locale_convert<string> (i)));
}
}