summaryrefslogtreecommitdiff
path: root/fluid/proj/i18n.cxx
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 19:04:24 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 19:04:24 +0500
commit793fa5a91f24358aa7ce21abf6ee4e93a17b04ee (patch)
treee81d1e60ffdf068ac1e93e8d36d9c2046b2d7c50 /fluid/proj/i18n.cxx
parentb4995f979d127cea667b4e2b71c91e9db4ab52ef (diff)
wip
Diffstat (limited to 'fluid/proj/i18n.cxx')
-rw-r--r--fluid/proj/i18n.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/fluid/proj/i18n.cxx b/fluid/proj/i18n.cxx
index 71ba892a1..c726a56d0 100644
--- a/fluid/proj/i18n.cxx
+++ b/fluid/proj/i18n.cxx
@@ -23,7 +23,7 @@ static char *dup_str(const char *s) {
return s ? fl_strdup(s) : 0;
}
-fld::proj::I18n::I18n(Project &p) : project_(p) {
+I18n::I18n(Project &p) : project_(p) {
type = FLD_I18N_TYPE_NONE;
gnu_include = fl_strdup("<libintl.h>");
gnu_conditional = 0;
@@ -35,7 +35,7 @@ fld::proj::I18n::I18n(Project &p) : project_(p) {
posix_set = fl_strdup("1");
}
-fld::proj::I18n::~I18n() {
+I18n::~I18n() {
if (gnu_include) free(gnu_include);
if (gnu_conditional) free(gnu_conditional);
if (gnu_function) free(gnu_function);
@@ -46,42 +46,42 @@ fld::proj::I18n::~I18n() {
if (posix_set) free(posix_set);
}
-void fld::proj::I18n::set_gnu_include(const char *s) {
+void I18n::set_gnu_include(const char *s) {
if (gnu_include) free(gnu_include);
gnu_include = dup_str(s);
}
-void fld::proj::I18n::set_gnu_conditional(const char *s) {
+void I18n::set_gnu_conditional(const char *s) {
if (gnu_conditional) free(gnu_conditional);
gnu_conditional = dup_str(s);
}
-void fld::proj::I18n::set_gnu_function(const char *s) {
+void I18n::set_gnu_function(const char *s) {
if (gnu_function) free(gnu_function);
gnu_function = dup_str(s);
}
-void fld::proj::I18n::set_gnu_static_function(const char *s) {
+void I18n::set_gnu_static_function(const char *s) {
if (gnu_static_function) free(gnu_static_function);
gnu_static_function = dup_str(s);
}
-void fld::proj::I18n::set_posix_include(const char *s) {
+void I18n::set_posix_include(const char *s) {
if (posix_include) free(posix_include);
posix_include = dup_str(s);
}
-void fld::proj::I18n::set_posix_conditional(const char *s) {
+void I18n::set_posix_conditional(const char *s) {
if (posix_conditional) free(posix_conditional);
posix_conditional = dup_str(s);
}
-void fld::proj::I18n::set_posix_file(const char *s) {
+void I18n::set_posix_file(const char *s) {
if (posix_file) free(posix_file);
posix_file = dup_str(s);
}
-void fld::proj::I18n::set_posix_set(const char *s) {
+void I18n::set_posix_set(const char *s) {
if (posix_set) free(posix_set);
posix_set = dup_str(s);
}
@@ -89,7 +89,7 @@ void fld::proj::I18n::set_posix_set(const char *s) {
/**
Reset all project setting to create a new empty project.
*/
-void fld::proj::I18n::reset() {
+void I18n::reset() {
type = FLD_I18N_TYPE_NONE;
set_gnu_include("<libintl.h>");
@@ -103,9 +103,9 @@ void fld::proj::I18n::reset() {
set_posix_set("1");
}
-void fld::proj::I18n::read(io::Project_Reader &f, const char *key) {
+void I18n::read(Project_Reader &f, const char *key) {
if (!strcmp(key, "i18n_type")) {
- type = (fld::I18n_Type)(atoi(f.read_word()));
+ type = (I18n_Type)(atoi(f.read_word()));
} else if (!strcmp(key, "i18n_gnu_function")) {
set_gnu_function(f.read_word());
} else if (!strcmp(key, "i18n_gnu_static_function")) {
@@ -129,7 +129,7 @@ void fld::proj::I18n::read(io::Project_Reader &f, const char *key) {
}
}
-void fld::proj::I18n::write(io::Project_Writer &f) const {
+void I18n::write(Project_Writer &f) const {
if ((type != FLD_I18N_TYPE_NONE)) {
f.write_string("\ni18n_type %d", (int)(type));
switch (type) {