Removed special chars from xtrans demosaic methods language keys
This commit is contained in:
@@ -1686,8 +1686,8 @@ TP_RAWEXPOS_LINEAR;White-point correction
|
|||||||
TP_RAWEXPOS_PRESER;Highlight preservation
|
TP_RAWEXPOS_PRESER;Highlight preservation
|
||||||
TP_RAWEXPOS_RGB;Red, Green, Blue
|
TP_RAWEXPOS_RGB;Red, Green, Blue
|
||||||
TP_RAWEXPOS_TWOGREEN;Link greens
|
TP_RAWEXPOS_TWOGREEN;Link greens
|
||||||
TP_RAW_1-PASS (MEDIUM);1-Pass (Medium)
|
TP_RAW_1PASSMEDIUM;1-Pass (Medium)
|
||||||
TP_RAW_3-PASS (BEST);3-Pass (Best)
|
TP_RAW_3PASSBEST;3-Pass (Best)
|
||||||
TP_RAW_AHD;AHD
|
TP_RAW_AHD;AHD
|
||||||
TP_RAW_AMAZE;AMaZE
|
TP_RAW_AMAZE;AMaZE
|
||||||
TP_RAW_DCB;DCB
|
TP_RAW_DCB;DCB
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
#include "xtransprocess.h"
|
#include "xtransprocess.h"
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "guiutils.h"
|
#include "guiutils.h"
|
||||||
|
#include <regex>
|
||||||
using namespace rtengine;
|
using namespace rtengine;
|
||||||
using namespace rtengine::procparams;
|
using namespace rtengine::procparams;
|
||||||
|
|
||||||
@@ -29,7 +30,10 @@ XTransProcess::XTransProcess () : FoldableToolPanel(this, "xtransprocess", M("TP
|
|||||||
method = Gtk::manage (new MyComboBoxText ());
|
method = Gtk::manage (new MyComboBoxText ());
|
||||||
|
|
||||||
for( size_t i = 0; i < procparams::RAWParams::XTransSensor::numMethods; i++) {
|
for( size_t i = 0; i < procparams::RAWParams::XTransSensor::numMethods; i++) {
|
||||||
method->append(M("TP_RAW_" + Glib::ustring(procparams::RAWParams::XTransSensor::methodstring[i]).uppercase()));
|
std::string langKey(procparams::RAWParams::XTransSensor::methodstring[i]);
|
||||||
|
static const std::regex what ("[\\-() ]");
|
||||||
|
langKey = std::regex_replace (langKey, what, "");
|
||||||
|
method->append(M("TP_RAW_" + Glib::ustring(langKey).uppercase()));
|
||||||
}
|
}
|
||||||
|
|
||||||
method->set_active(0);
|
method->set_active(0);
|
||||||
|
Reference in New Issue
Block a user