We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3ce71f commit 6f3cb5fCopy full SHA for 6f3cb5f
src/Dialogs/StripeDialog.vala
@@ -120,10 +120,16 @@ public class AppCenter.Widgets.StripeDialog : Granite.Dialog {
120
var custom_amount = new Gtk.SpinButton.with_range (0, 100, 1) {
121
activates_default = true,
122
hexpand = true,
123
- primary_icon_name = "currency-dollar-symbolic",
124
value = amount
125
};
126
+ // Account for languages that places the monetary sign after the number
127
+ if (_("$%d").split ("%d", 2)[0]._strip ().length > 0) {
128
+ custom_amount.primary_icon_name = "currency-dollar-symbolic";
129
+ } else {
130
+ custom_amount.secondary_icon_name = "currency-dollar-symbolic";
131
+ }
132
+
133
var selection_list = new Gtk.Grid () {
134
column_spacing = 6
135
0 commit comments