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/io/Project_Reader.cxx | |
| parent | 088d98389cdc4c0ed38d05e4a8e59fab88198515 (diff) | |
FLUID: Move i18n settings into its own class
Diffstat (limited to 'fluid/io/Project_Reader.cxx')
| -rw-r--r-- | fluid/io/Project_Reader.cxx | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/fluid/io/Project_Reader.cxx b/fluid/io/Project_Reader.cxx index 4ef0c6523..c420824aa 100644 --- a/fluid/io/Project_Reader.cxx +++ b/fluid/io/Project_Reader.cxx @@ -261,38 +261,8 @@ Node *Project_Reader::read_children(Node *p, int merge, Strategy strategy, char proj_.avoid_early_includes=1; goto CONTINUE; } - if (!strcmp(c,"i18n_type")) { - proj_.i18n_type = static_cast<fld::I18n_Type>(atoi(read_word())); - goto CONTINUE; - } - if (!strcmp(c,"i18n_gnu_function")) { - proj_.i18n_gnu_function = read_word(); - goto CONTINUE; - } - if (!strcmp(c,"i18n_gnu_static_function")) { - proj_.i18n_gnu_static_function = read_word(); - goto CONTINUE; - } - if (!strcmp(c,"i18n_pos_file")) { - proj_.i18n_pos_file = read_word(); - goto CONTINUE; - } - if (!strcmp(c,"i18n_pos_set")) { - proj_.i18n_pos_set = read_word(); - goto CONTINUE; - } - if (!strcmp(c,"i18n_include")) { - if (proj_.i18n_type == fld::I18n_Type::GNU) - proj_.i18n_gnu_include = read_word(); - else if (proj_.i18n_type == fld::I18n_Type::POSIX) - proj_.i18n_pos_include = read_word(); - goto CONTINUE; - } - if (!strcmp(c,"i18n_conditional")) { - if (proj_.i18n_type == fld::I18n_Type::GNU) - proj_.i18n_gnu_conditional = read_word(); - else if (proj_.i18n_type == fld::I18n_Type::POSIX) - proj_.i18n_pos_conditional = read_word(); + if (strncmp(c, "i18n_", 5) == 0) { + proj_.i18n.read(*this, c); goto CONTINUE; } if (!strcmp(c,"header_name")) { |
