#define _GNU_SOURCE
#include <glib/gstdio.h>
+#include <glib/gi18n.h>
#include <libintl.h>
#include <locale.h>
+#include "announcements.h"
#include "speak.h"
static gboolean enable_speach=TRUE;
{
gchar buffer[64];
if (distance>climit) {
- snprintf(buffer, sizeof(buffer), "Distance to destination: %.0f %s", distance, unit);
+ g_snprintf(buffer, sizeof(buffer), _("Distance to destination: %.01f %s"), distance, unit);
} else {
- snprintf(buffer, sizeof(buffer), "Distance to destination: %.02f %s", distance, unit);
+ g_snprintf(buffer, sizeof(buffer), _("Distance to destination: %.02f %s"), distance, unit);
}
if (enable_speach)
speak_text(buffer);
announce_destination_reached(void)
{
if (enable_speach)
- speak_text("You have reached your destination.");
+ speak_text(_("You have reached your destination."));
}
+#if 0
+void
+announce_continue(gchar *to_name, gchar *to_ref)
+{
+}
+
+void
+announce_turn(gdouble direction, gchar *to_name, gchar *to_ref, gdouble next_wpt_dist, gchar unit)
+{
+gchar buffer[64];
+gchar *turn, *amount;
+
+turn=(direction > 0) ? _("left") : _("right");
+amount= (fabs(direction)<25)
+g_snprintf(buffer, sizeof(buffer), "Turn %s to %s", );
+}
+
+#endif