diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-06-27 14:34:49 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-06-27 14:34:49 +0200 |
| commit | 3459e43ca830959d2b4ca71796a34ae7b21a819e (patch) | |
| tree | 0e4bee6696fea137b1f0eff93b4f04f369bfed6f /fluid/nodes/Widget_Node.cxx | |
| parent | 088d98389cdc4c0ed38d05e4a8e59fab88198515 (diff) | |
FLUID: Move i18n settings into its own class
Diffstat (limited to 'fluid/nodes/Widget_Node.cxx')
| -rw-r--r-- | fluid/nodes/Widget_Node.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fluid/nodes/Widget_Node.cxx b/fluid/nodes/Widget_Node.cxx index 95be9493d..2082941ce 100644 --- a/fluid/nodes/Widget_Node.cxx +++ b/fluid/nodes/Widget_Node.cxx @@ -1601,19 +1601,19 @@ void Widget_Node::write_code1(fld::io::Code_Writer& f) { } if (label() && *label()) { f.write_c(", "); - switch (Fluid.proj.i18n_type) { + switch (Fluid.proj.i18n.type) { case fld::I18n_Type::NONE : /* None */ f.write_cstring(label()); break; case fld::I18n_Type::GNU : /* GNU gettext */ - f.write_c("%s(", Fluid.proj.i18n_gnu_function.c_str()); + f.write_c("%s(", Fluid.proj.i18n.gnu_function.c_str()); f.write_cstring(label()); f.write_c(")"); break; case fld::I18n_Type::POSIX : /* POSIX catgets */ f.write_c("catgets(%s,%s,%d,", - Fluid.proj.i18n_pos_file.empty() ? "_catalog" : Fluid.proj.i18n_pos_file.c_str(), - Fluid.proj.i18n_pos_set.c_str(), msgnum()); + Fluid.proj.i18n.posix_file.empty() ? "_catalog" : Fluid.proj.i18n.posix_file.c_str(), + Fluid.proj.i18n.posix_set.c_str(), msgnum()); f.write_cstring(label()); f.write_c(")"); break; @@ -1675,19 +1675,19 @@ void Widget_Node::write_widget_code(fld::io::Code_Writer& f) { if (tooltip() && *tooltip()) { f.write_c("%s%s->tooltip(",f.indent(), var); - switch (Fluid.proj.i18n_type) { + switch (Fluid.proj.i18n.type) { case fld::I18n_Type::NONE : /* None */ f.write_cstring(tooltip()); break; case fld::I18n_Type::GNU : /* GNU gettext */ - f.write_c("%s(", Fluid.proj.i18n_gnu_function.c_str()); + f.write_c("%s(", Fluid.proj.i18n.gnu_function.c_str()); f.write_cstring(tooltip()); f.write_c(")"); break; case fld::I18n_Type::POSIX : /* POSIX catgets */ f.write_c("catgets(%s,%s,%d,", - Fluid.proj.i18n_pos_file.empty() ? "_catalog" : Fluid.proj.i18n_pos_file.c_str(), - Fluid.proj.i18n_pos_set.c_str(), + Fluid.proj.i18n.posix_file.empty() ? "_catalog" : Fluid.proj.i18n.posix_file.c_str(), + Fluid.proj.i18n.posix_set.c_str(), msgnum() + 1); f.write_cstring(tooltip()); f.write_c(")"); |
