summaryrefslogtreecommitdiff
path: root/fluid/io/String_Writer.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-06-27 14:34:49 +0200
committerMatthias Melcher <github@matthiasm.com>2025-06-27 14:34:49 +0200
commit3459e43ca830959d2b4ca71796a34ae7b21a819e (patch)
tree0e4bee6696fea137b1f0eff93b4f04f369bfed6f /fluid/io/String_Writer.cxx
parent088d98389cdc4c0ed38d05e4a8e59fab88198515 (diff)
FLUID: Move i18n settings into its own class
Diffstat (limited to 'fluid/io/String_Writer.cxx')
-rw-r--r--fluid/io/String_Writer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/io/String_Writer.cxx b/fluid/io/String_Writer.cxx
index 6b70ec1f3..e96d2068e 100644
--- a/fluid/io/String_Writer.cxx
+++ b/fluid/io/String_Writer.cxx
@@ -56,7 +56,7 @@ static int write_escaped_strings(FILE *out, const char *text) {
/**
Write a file that contains all label and tooltip strings for internationalization.
The user is responsible to set the right file name extension. The file format
- is determined by `proj_.i18n_type`.
+ is determined by `proj_.i18n.type`.
\param[in] filename file path and name to a file that will hold the strings
\return 1 if the file could not be opened for writing, or the result of `fclose`.
*/
@@ -68,7 +68,7 @@ int fld::io::write_strings(Project &proj, const std::string &filename) {
FILE *fp = fl_fopen(filename.c_str(), "wb");
if (!fp) return 1;
- switch (proj.i18n_type) {
+ switch (proj.i18n.type) {
case fld::I18n_Type::NONE : /* None, just put static text out */
fprintf(fp, "# generated by Fast Light User Interface Designer (fluid) version %.4f\n",
FL_VERSION);
@@ -115,7 +115,7 @@ int fld::io::write_strings(Project &proj, const std::string &filename) {
case fld::I18n_Type::POSIX : /* POSIX catgets, put a .msg file out */
fprintf(fp, "$ generated by Fast Light User Interface Designer (fluid) version %.4f\n",
FL_VERSION);
- fprintf(fp, "$set %s\n", proj.i18n_pos_set.c_str());
+ fprintf(fp, "$set %s\n", proj.i18n.posix_set.c_str());
fputs("$quote \"\n", fp);
for (i = 1, p = proj.tree.first; p; p = p->next) {