diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2016-12-31 16:35:57 +0100 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2016-12-31 16:50:30 +0100 |
commit | d6aaf74a2c3203fe643091df1c4d385172f8a8a4 (patch) | |
tree | 4fae8face422d5c15cd348aaeba4fb290f3e49d7 /shell | |
parent | dfe93c7beec8d994095e8e86b89a27cca82365ad (diff) |
Make auto-updatable fields translatable
Diffstat (limited to 'shell')
-rw-r--r-- | shell/shell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/shell.c b/shell/shell.c index dcf14b2d..bf866e84 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -752,7 +752,7 @@ static gboolean update_field(gpointer data) /* if the entry is still selected, update it */ if (iter && fu->entry->selected && fu->entry->fieldfunc) { GtkTreeStore *store = GTK_TREE_STORE(shell->info->model); - gchar *value = fu->entry->fieldfunc(fu->field_name); + gchar *value = fu->entry->fieldfunc(_(fu->field_name)); /* * this function is also used to feed the load graph when ViewType @@ -1107,7 +1107,7 @@ group_handle_normal(GKeyFile * key_file, ShellModuleEntry * entry, value = g_key_file_get_value(key_file, group, key, NULL); if (entry->fieldfunc && value && g_str_equal(value, "...")) { g_free(value); - value = entry->fieldfunc(key); + value = entry->fieldfunc(_(key)); } if ((key && value) && g_utf8_validate(key, -1, NULL) && g_utf8_validate(value, -1, NULL)) { @@ -1146,7 +1146,7 @@ group_handle_normal(GKeyFile * key_file, ShellModuleEntry * entry, g_strfreev(tmp); } else { - gtk_tree_store_set(store, &child, INFO_TREE_COL_NAME, key, + gtk_tree_store_set(store, &child, INFO_TREE_COL_NAME, _(key), INFO_TREE_COL_DATA, NULL, -1); } |