summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/schemes/about/profiles.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c
index 4b2a1d6..b699d44 100644
--- a/src/schemes/about/profiles.c
+++ b/src/schemes/about/profiles.c
@@ -26,6 +26,7 @@
#include "../../application.h"
#include "../../config/profiles.h"
+#include "../../i18n.h"
#include "../../utils/html.h"
#include "../../utils/profile-icon.h"
#include "../about.h"
@@ -260,7 +261,7 @@ generate_div(MqProfiles *profiles, gchar *id)
name = mq_profiles_get_name(profiles, id);
color = mq_profiles_get_color(profiles, id);
} else {
- name = g_strdup("New Profile");
+ name = g_strdup(_("New Profile"));
color = g_strdup("#00ff00");
}
@@ -294,18 +295,18 @@ generate_div(MqProfiles *profiles, gchar *id)
mq_html_container("div", "slide-indicator",
NULL),
NULL),
- mq_html_buttonbox(NULL, "OK", NULL, "Cancel"),
+ mq_html_buttonbox(NULL, _("OK"), NULL, _("Cancel")),
NULL),
mq_html_container("span", is_current ? "current" : NULL, name,
NULL),
mq_html_input_text(name_str, NULL, name, id == NULL),
mq_html_container("script", NULL, g_strdup(cp_script), NULL),
- mq_html_submit(launch_str, "Launch", !id),
- mq_html_submit(default_str, "Make Default",
+ mq_html_submit(launch_str, _("Launch"), !id),
+ mq_html_submit(default_str, _("Make Default"),
!id || mq_profiles_is_default(profiles, id)),
- mq_html_submit(delete_str, "Delete", is_current),
- mq_html_label(editing_str, "Edit", FALSE),
- mq_html_submit(save_str, "Save", FALSE),
+ mq_html_submit(delete_str, _("Delete"), is_current),
+ mq_html_label(editing_str, _("Edit"), FALSE),
+ mq_html_submit(save_str, _("Save"), FALSE),
NULL);
g_free(editing_str);
@@ -347,8 +348,8 @@ generate_document(MqProfiles *profiles, gboolean adding)
"colorpicker.js\"></script>\n"
);
- document = mq_html_document("Profiles", styles, cp_res,
- mq_html_form_v("add", "Add Profile", NULL, NULL, divs),
+ document = mq_html_document(_("Profiles"), styles, cp_res,
+ mq_html_form_v("add", _("Add Profile"), NULL, NULL, divs),
NULL);
g_free(cp_res);