forked from urdt/ussd
Merge remote-tracking branch 'refs/remotes/origin/minor-bug-fixes' into minor-bug-fixes
This commit is contained in:
commit
a17cf78d29
@ -817,7 +817,8 @@ func (h *Handlers) CheckBalance(ctx context.Context, sym string, input []byte) (
|
|||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
|
||||||
res.Content = l.Get("Balance: %s\n", fmt.Sprintf("%s %s", activeBal, activeSym))
|
balStr := fmt.Sprintf("%s %s", activeBal, activeSym)
|
||||||
|
res.Content = l.Get("Balance: %s\n", balStr)
|
||||||
|
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
@ -1546,6 +1547,10 @@ func (h *Handlers) ViewVoucher(ctx context.Context, sym string, input []byte) (r
|
|||||||
return res, fmt.Errorf("missing session")
|
return res, fmt.Errorf("missing session")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
code := codeFromCtx(ctx)
|
||||||
|
l := gotext.NewLocale(translationDir, code)
|
||||||
|
l.AddDomain("default")
|
||||||
|
|
||||||
flag_incorrect_voucher, _ := h.flagManager.GetFlag("flag_incorrect_voucher")
|
flag_incorrect_voucher, _ := h.flagManager.GetFlag("flag_incorrect_voucher")
|
||||||
|
|
||||||
inputStr := string(input)
|
inputStr := string(input)
|
||||||
@ -1570,7 +1575,7 @@ func (h *Handlers) ViewVoucher(ctx context.Context, sym string, input []byte) (r
|
|||||||
}
|
}
|
||||||
|
|
||||||
res.FlagReset = append(res.FlagReset, flag_incorrect_voucher)
|
res.FlagReset = append(res.FlagReset, flag_incorrect_voucher)
|
||||||
res.Content = fmt.Sprintf("%s\n%s", metadata.TokenSymbol, metadata.Balance)
|
res.Content = l.Get("Symbol: %s\nBalance: %s", metadata.TokenSymbol, metadata.Balance)
|
||||||
|
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ msgstr "Kwa usaidizi zaidi,piga: 0757628885"
|
|||||||
msgid "Balance: %s\n"
|
msgid "Balance: %s\n"
|
||||||
msgstr "Salio: %s\n"
|
msgstr "Salio: %s\n"
|
||||||
|
|
||||||
msid "Your invite request for %s to Sarafu Network failed. Please try again later."
|
msgid "Your invite request for %s to Sarafu Network failed. Please try again later."
|
||||||
msgstr "Ombi lako la kumwalika %s kwa matandao wa Sarafu halikufaulu. Tafadhali jaribu tena baadaye."
|
msgstr "Ombi lako la kumwalika %s kwa matandao wa Sarafu halikufaulu. Tafadhali jaribu tena baadaye."
|
||||||
|
|
||||||
msgid "Your invitation to %s to join Sarafu Network has been sent."
|
msgid "Your invitation to %s to join Sarafu Network has been sent."
|
||||||
@ -23,4 +23,7 @@ msgid "Your request failed. Please try again later."
|
|||||||
msgstr "Ombi lako halikufaulu. Tafadhali jaribu tena baadaye."
|
msgstr "Ombi lako halikufaulu. Tafadhali jaribu tena baadaye."
|
||||||
|
|
||||||
msgid "Community Balance: 0.00"
|
msgid "Community Balance: 0.00"
|
||||||
msgid "Salio la Kikundi: 0.00"
|
msgstr "Salio la Kikundi: 0.00"
|
||||||
|
|
||||||
|
msgid "Symbol: %s\nBalance: %s"
|
||||||
|
msgstr "Sarafu: %s\nSalio: %s"
|
||||||
|
@ -1 +1 @@
|
|||||||
Salio lako ni: 0.00 SRF
|
{{.check_balance}}
|
Loading…
Reference in New Issue
Block a user