diff libui/ui/ui.c @ 241:76afe639fd72

misc: add support for NLS, closes #22510 @4h While here cleanup the path functions in sys.c/sys.h
author David Demelier <markand@malikania.fr>
date Sat, 28 Nov 2020 18:00:05 +0100
parents c3a40062acc2
children 4c24604efcab
line wrap: on
line diff
--- a/libui/ui/ui.c	Fri Nov 27 21:34:07 2020 +0100
+++ b/libui/ui/ui.c	Sat Nov 28 18:00:05 2020 +0100
@@ -16,12 +16,19 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <core/translate.h>
+
+#include "ui_p.h"
 #include "ui.h"
 #include "theme.h"
 
 bool
 ui_init(void)
 {
+#if defined(MOLKO_WITH_NLS)
+	translate_init("mlk-libui");
+#endif
+
 	return theme_init();
 }