Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/Dialogs/StripeDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,16 @@ public class AppCenter.Widgets.StripeDialog : Granite.Dialog {
var custom_amount = new Gtk.SpinButton.with_range (0, 100, 1) {
activates_default = true,
hexpand = true,
primary_icon_name = "currency-dollar-symbolic",
value = amount
};

// Account for languages that places the monetary sign after the number
if (_("$%d").split ("%d", 2)[0]._strip ().length > 0) {
custom_amount.primary_icon_name = "currency-dollar-symbolic";
} else {
custom_amount.secondary_icon_name = "currency-dollar-symbolic";
}

var selection_list = new Gtk.Grid () {
column_spacing = 6
};
Expand Down