Mercurial > molko
comparison libmlk-core/core/translate.c @ 298:196264679079
misc: remove usage of bool
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 10 Mar 2021 18:49:08 +0100 |
parents | 71b3b7036de7 |
children | f04b4ee04db3 |
comparison
equal
deleted
inserted
replaced
297:6151152d009c | 298:196264679079 |
---|---|
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 */ | 17 */ |
18 | 18 |
19 #include <stdio.h> | |
20 | |
19 #include "sysconfig.h" | 21 #include "sysconfig.h" |
20 | 22 |
21 #if defined(MOLKO_WITH_NLS) | 23 #if defined(MOLKO_WITH_NLS) |
22 # include <libintl.h> | 24 # include <libintl.h> |
23 #endif | 25 #endif |
24 | 26 |
25 #include "sys.h" | 27 #include "sys.h" |
26 #include "translate.h" | 28 #include "translate.h" |
27 #include "util.h" | 29 #include "util.h" |
28 | 30 |
29 #include <stdio.h> | 31 int |
30 | |
31 bool | |
32 translate_init(const char *name) | 32 translate_init(const char *name) |
33 { | 33 { |
34 #if defined(MOLKO_WITH_NLS) | 34 #if defined(MOLKO_WITH_NLS) |
35 if (!bindtextdomain(name, sys_dir(SYS_DIR_LOCALE))) | 35 if (!bindtextdomain(name, sys_dir(SYS_DIR_LOCALE))) |
36 return false; | 36 return -1; |
37 #endif | 37 #endif |
38 return true; | 38 return 0; |
39 } | 39 } |
40 | 40 |
41 void | 41 void |
42 translate_finish(void) | 42 translate_finish(void) |
43 { | 43 { |