| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
language.h
Go to the documentation of this file.
1
11
12#ifndef __LANGUAGE_H__
13#define __LANGUAGE_H__
14
15#include <stdbool.h>
16
17#ifdef __cplusplus
18 extern "C" {
19#endif /* __cplusplus */
20
21#define USE_SYSTEM_LANGUAGE "system"
22
28 char* get_language_used(void);
29/* XXX - This should be temporary until all UI preferences are in place */
35 void set_language_used(const char* lang);
36
40 extern void language_init(void);
41
45 extern void language_cleanup(void);
46
52 extern void read_language_prefs(const char* app_env_var_prefix);
53
61 extern bool write_language_prefs(const char* app_env_var_prefix, char** err_info);
62
63#ifdef __cplusplus
64}
65#endif /* __cplusplus */
66
67#endif /* language.h */
write_language_prefs
bool write_language_prefs(const char *app_env_var_prefix, char **err_info)
Writes language preferences to a configuration file.
Definition language.c:108
read_language_prefs
void read_language_prefs(const char *app_env_var_prefix)
Reads language preferences from a file.
Definition language.c:89
set_language_used
void set_language_used(const char *lang)
Sets the language used for the application.
Definition language.c:36
language_cleanup
void language_cleanup(void)
Cleans up language-related resources.
Definition language.c:84
get_language_used
char * get_language_used(void)
Get the currently used language.
Definition language.c:31
language_init
void language_init(void)
Initializes the language settings.
Definition language.c:73