qulogic/talkatu

Parents c21412136b32
Children 641e5617f19d
Actually tried i18n.. found out it didn't work, so this fixes it..
--- a/demo/talkatudemo.c Tue Aug 06 01:48:24 2019 +0000
+++ b/demo/talkatudemo.c Mon Aug 05 21:55:51 2019 -0500
@@ -15,6 +15,8 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#include <locale.h>
+
#include <glib/gi18n.h>
#include <gtk/gtk.h>
@@ -53,7 +55,12 @@
GOptionContext *ctx = NULL;
GOptionGroup *group = NULL;
- ctx = g_option_context_new("");
+ setlocale(LC_ALL, "");
+ bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
+ textdomain(GETTEXT_PACKAGE);
+
+ ctx = g_option_context_new(NULL);
g_option_context_set_summary(ctx, _("Talkatu Demo"));
g_option_context_set_translation_domain(ctx, GETTEXT_PACKAGE);
g_option_context_add_main_entries(ctx, entries, NULL);