Skip to content

Commit

Permalink
Remove obsolete "disambiguation prefix" translator comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fellen committed Sep 9, 2019
1 parent e6e2258 commit fa4fc55
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 25 deletions.
3 changes: 1 addition & 2 deletions gnucash/gnome-search/dialog-search.c
Expand Up @@ -1094,8 +1094,7 @@ type_label_to_new_button(const gchar* type_label)
else
{
PWARN("No translatable new-button label found for search type \"%s\", please add one into dialog-search.c!", type_label);
/* Translators: This string has a disambiguation prefix. Translate only the part behind '|' */
return Q_("Item represents an unknown object type (in the sense of bill, customer, invoice, transaction, split,...)|New item");
return C_("Item represents an unknown object type (in the sense of bill, customer, invoice, transaction, split,...)!", "New item");
}
}

Expand Down
7 changes: 2 additions & 5 deletions gnucash/gnome-utils/gnc-tree-model-split-reg.c
Expand Up @@ -2851,9 +2851,7 @@ gnc_tree_model_split_reg_update_action_list (GncTreeModelSplitReg *model)
/* broken ! FIXME bg ????????? What is broken */
case SEARCH_LEDGER2:

/* Translators: This string has a context prefix; the translation
must only contain the part after the | character. */
gtk_list_store_insert_with_values (store, &iter, 100, 0, Q_("Action Column|Deposit"), -1);
gtk_list_store_insert_with_values (store, &iter, 100, 0, C_("Action Column", "Deposit"), -1);
gtk_list_store_insert_with_values (store, &iter, 100, 0, _("Withdraw"), -1);
gtk_list_store_insert_with_values (store, &iter, 100, 0, _("Check"), -1);
gtk_list_store_insert_with_values (store, &iter, 100, 0, _("Interest"), -1);
Expand Down Expand Up @@ -2952,8 +2950,7 @@ gnc_tree_model_split_reg_update_action_list (GncTreeModelSplitReg *model)
gtk_list_store_insert_with_values (store, &iter, 100, 0, _("Income"), -1);
/* Action: Distribution */
gtk_list_store_insert_with_values (store, &iter, 100, 0, _("Dist"), -1);
/* Translators: This string has a disambiguation prefix */
gtk_list_store_insert_with_values (store, &iter, 100, 0, Q_("Action Column|Split"), -1);
gtk_list_store_insert_with_values (store, &iter, 100, 0, C_("Action Column", "Split"), -1);
break;

default:
Expand Down
4 changes: 1 addition & 3 deletions gnucash/gnome-utils/gnc-tree-view-commodity.c
Expand Up @@ -404,9 +404,7 @@ gnc_tree_view_commodity_new (QofBook *book,
g_object_set_data(G_OBJECT(col), DEFAULT_VISIBLE, GINT_TO_POINTER(1));
gnc_tree_view_add_toggle_column(
view, _("Get Quotes"),
/* Translators: This string has a context prefix; the translation
must only contain the part after the | character. */
Q_("Column letter for 'Get Quotes'|Q"), "quote_flag",
C_("Column letter for 'Get Quotes'", "Q"), "quote_flag",
GNC_TREE_MODEL_COMMODITY_COL_QUOTE_FLAG,
GNC_TREE_MODEL_COMMODITY_COL_VISIBILITY,
sort_by_quote_flag,
Expand Down
4 changes: 1 addition & 3 deletions gnucash/gnome-utils/gnc-tree-view-owner.c
Expand Up @@ -476,9 +476,7 @@ gnc_tree_view_owner_new (GncOwnerType owner_type)
GNC_TREE_VIEW_COLUMN_VISIBLE_ALWAYS,
sort_by_string);
gnc_tree_view_add_toggle_column (view, _("Active"),
/* Translators: This string has a context prefix; the translation
must only contain the part after the | character. */
Q_("Column letter for 'Active'|A"),
C_("Column letter for 'Active'", "A"),
GNC_OWNER_TREE_ACTIVE_COL,
GNC_TREE_MODEL_OWNER_COL_ACTIVE,
GNC_TREE_VIEW_COLUMN_VISIBLE_ALWAYS,
Expand Down
4 changes: 1 addition & 3 deletions gnucash/gnome-utils/gnc-tree-view-sx-list.c
Expand Up @@ -138,9 +138,7 @@ gnc_tree_view_sx_list_new(GncSxInstanceModel *sx_instances)
g_object_set_data(G_OBJECT(col), DEFAULT_VISIBLE, GINT_TO_POINTER(1));

col = gnc_tree_view_add_toggle_column(view, _("Enabled"),
/* Translators: This string has a context prefix; the translation
must only contain the part after the | character. */
Q_("Single-character short column-title form of 'Enabled'|E"),
C_("Single-character short column-title form of 'Enabled'", "E"),
"enabled", SXLTMA_COL_ENABLED,
GNC_TREE_VIEW_COLUMN_VISIBLE_ALWAYS,
NULL, NULL);
Expand Down
4 changes: 2 additions & 2 deletions gnucash/gnome/assistant-stock-split.c
Expand Up @@ -378,8 +378,8 @@ gnc_stock_split_assistant_finish (GtkAssistant *assistant,
xaccSplitMakeStockSplit (split);
/* Set split-action with gnc_set_num_action which is the same as
* xaccSplitSetAction with these arguments */
/* Translators: This string has a disambiguation prefix */
gnc_set_num_action (NULL, split, NULL, Q_("Action Column|Split"));

gnc_set_num_action (NULL, split, NULL, C_("Action Column", "Split"));

amount = gnc_amount_edit_get_amount (GNC_AMOUNT_EDIT (info->price_edit));
if (gnc_numeric_positive_p (amount))
Expand Down
7 changes: 2 additions & 5 deletions gnucash/register/ledger-core/split-register.c
Expand Up @@ -2574,9 +2574,7 @@ gnc_split_register_config_action (SplitRegister *reg)
case BANK_REGISTER:
/* broken ! FIXME bg */
case SEARCH_LEDGER:
/* Translators: This string has a context prefix; the translation
must only contain the part after the | character. */
gnc_combo_cell_add_menu_item (cell, Q_("Action Column|Deposit"));
gnc_combo_cell_add_menu_item (cell, C_("Action Column", "Deposit"));
gnc_combo_cell_add_menu_item (cell, _("Withdraw"));
gnc_combo_cell_add_menu_item (cell, _("Check"));
gnc_combo_cell_add_menu_item (cell, _("Interest"));
Expand Down Expand Up @@ -2675,8 +2673,7 @@ gnc_split_register_config_action (SplitRegister *reg)
gnc_combo_cell_add_menu_item (cell, _("Income"));
/* Action: Distribution */
gnc_combo_cell_add_menu_item (cell, _("Dist"));
/* Translators: This string has a disambiguation prefix */
gnc_combo_cell_add_menu_item (cell, Q_("Action Column|Split"));
gnc_combo_cell_add_menu_item (cell, C_("Action Column", "Split"));
break;

default:
Expand Down
3 changes: 1 addition & 2 deletions libgnucash/engine/Split.c
Expand Up @@ -1609,8 +1609,7 @@ xaccSplitGetCorrAccountCode(const Split *sa)
if (!get_corr_account_split(sa, &other_split))
{
if (!split_const)
/* Translators: This string has a disambiguation prefix */
split_const = Q_("Displayed account code of the other account in a multi-split transaction|Split");
split_const = C_("Displayed account code of the other account in a multi-split transaction", "Split");

return split_const;
}
Expand Down

0 comments on commit fa4fc55

Please sign in to comment.