diff --git a/handlers/application/mpesa.go b/handlers/application/mpesa.go index b37e9c3..cdb5415 100644 --- a/handlers/application/mpesa.go +++ b/handlers/application/mpesa.go @@ -535,7 +535,7 @@ func (h *MenuHandlers) SendMpesaMinLimit(ctx context.Context, sym string, input kshFormatted, _ := store.TruncateDecimalString(ksh, 0) res.Content = l.Get( - "Enter the amount of credit to receive: (Minimum %s Ksh)\n", + "Enter the amount of credit to deposit: (Minimum %s Ksh)\n", kshFormatted, ) @@ -607,7 +607,7 @@ func (h *MenuHandlers) SendMpesaPreview(ctx context.Context, sym string, input [ defaultAsset := config.DefaultMpesaAsset() res.Content = l.Get( - "You will get a prompt for your M-Pesa PIN shortly to send %s ksh and receive ~ %s %s", + "You will get a prompt for your Mpesa PIN shortly to send %s ksh and receive ~ %s %s", inputStr, estimateFormatted, defaultAsset, ) diff --git a/handlers/application/paydebt.go b/handlers/application/paydebt.go index 21dd5d1..8b5033c 100644 --- a/handlers/application/paydebt.go +++ b/handlers/application/paydebt.go @@ -238,7 +238,7 @@ func (h *MenuHandlers) ConfirmDebtRemoval(ctx context.Context, sym string, input } res.Content = l.Get( - "Please confirm that you will use %s %s to remove your debt of %s %s\n", + "Please confirm that you will use %s %s to remove your debt of %s %s\nEnter your PIN:", inputStr, payDebtVoucher.TokenSymbol, qouteStr, string(activeSym), ) diff --git a/handlers/application/poolswap.go b/handlers/application/poolswap.go index 3b9b1a3..a0a89ed 100644 --- a/handlers/application/poolswap.go +++ b/handlers/application/poolswap.go @@ -175,6 +175,10 @@ func (h *MenuHandlers) SwapMaxLimit(ctx context.Context, sym string, input []byt return res, nil } + code := codeFromCtx(ctx) + l := gotext.NewLocale(translationDir, code) + l.AddDomain("default") + userStore := h.userdataStore metadata, err := store.GetSwapToVoucherData(ctx, userStore, sessionId, inputStr) if err != nil { @@ -235,7 +239,7 @@ func (h *MenuHandlers) SwapMaxLimit(ctx context.Context, sym string, input []byt return res, err } - res.Content = fmt.Sprintf( + res.Content = l.Get( "Maximum: %s %s\n\nEnter amount of %s to swap for %s:", maxStr, swapData.ActiveSwapFromSym, swapData.ActiveSwapFromSym, swapData.ActiveSwapToSym, ) @@ -323,8 +327,8 @@ func (h *MenuHandlers) SwapPreview(ctx context.Context, sym string, input []byte // Format to 2 decimal places qouteStr, _ := store.TruncateDecimalString(string(quoteAmountStr), 2) - res.Content = fmt.Sprintf( - "You will swap:\n%s %s for %s %s:", + res.Content = l.Get( + "You will swap %s %s for %s %s:", inputStr, swapData.ActiveSwapFromSym, qouteStr, swapData.ActiveSwapToSym, ) diff --git a/services/registration/confirm_debt_removal b/services/registration/confirm_debt_removal index 3943b54..4e58995 100644 --- a/services/registration/confirm_debt_removal +++ b/services/registration/confirm_debt_removal @@ -1,2 +1 @@ -{{.confirm_debt_removal}} -Enter your PIN: \ No newline at end of file +{{.confirm_debt_removal}} \ No newline at end of file diff --git a/services/registration/locale/swa/default.po b/services/registration/locale/swa/default.po index 9af2a3a..a921f51 100644 --- a/services/registration/locale/swa/default.po +++ b/services/registration/locale/swa/default.po @@ -59,7 +59,7 @@ msgid "Enter the amount of M-Pesa to get: (Max %s Ksh)\n" msgstr "Weka kiasi cha M-Pesa cha kupata: (Kikomo %s Ksh)\n" msgid "You are sending %s %s in order to receive ~ %s ksh" -msgstr "Unatuma ~ %s %s ili upoke %s ksh" +msgstr "Unatuma ~ %s %s ili upokee %s ksh" msgid "Your request has been sent. Please await confirmation" msgstr "Ombi lako limetumwa. Tafadhali subiri" @@ -67,8 +67,8 @@ msgstr "Ombi lako limetumwa. Tafadhali subiri" msgid "Enter the amount of M-Pesa to send: (Minimum %s Ksh)\n" msgstr "Weka kiasi cha M-Pesa cha kutuma: (Kima cha chini %s Ksh)\n" -msgid "You will get a prompt for your M-Pesa PIN shortly to send %s ksh and receive ~ %s cUSD" -msgstr "Utapokea kidokezo cha PIN yako ya M-Pesa hivi karibuni kutuma %s ksh na kupokea ~ %s cUSD" +msgid "You will get a prompt for your Mpesa PIN shortly to send %s ksh and receive ~ %s %s" +msgstr "Utapokea kidokezo cha PIN yako ya Mpesa hivi karibuni kutuma %s ksh na kupokea ~ %s %s" msgid "Your request has been sent. Thank you for using Sarafu" msgstr "Ombi lako limetumwa. Asante kwa kutumia huduma ya Sarafu" @@ -76,7 +76,7 @@ msgstr "Ombi lako limetumwa. Asante kwa kutumia huduma ya Sarafu" msgid "You can remove a max of %s %s from '%s' pool\nEnter amount of %s:(Max: %s)" msgstr "Unaweza kuondoa kiwango cha juu cha %s %s kutoka kwenye '%s'\n\nWeka kiwango cha %s:(Kikomo: %s)" -msgid "Please confirm that you will use %s %s to remove your debt of %s %s\n" +msgid "Please confirm that you will use %s %s to remove your debt of %s %s\nEnter your PIN:" msgstr "Tafadhali thibitisha kwamba utatumia %s %s kulipa deni lako la %s %s.\nWeka PIN yako:" msgid "Your active voucher %s is already set" @@ -95,4 +95,19 @@ msgid "%s will receive %s %s from %s" msgstr %s atapokea %s %s kutoka kwa %s" msgid "You need another voucher to proceed. Only found %s." -msgstr "Unahitaji kua na sarafu nyingine. Tumepata tu %s." \ No newline at end of file +msgstr "Unahitaji kua na sarafu nyingine. Tumepata tu %s." + +msgid "Maximum: %s %s\n\nEnter amount of %s to swap for %s:" +msgstr "Kikimo: %s %s\n\nWeka kiasi cha %s kitakacho badilishwa kua %s:" + +msgid "You will swap %s %s for %s %s:" +msgstr "Utabadilisha %s %s kua %s %s:" + +msgid "Your request has been sent. You will receive an SMS when your debt of %s %s has been removed from %s." +msgstr "Ombi lako limetumwa. Utapokea ujumbe wakati deni lako la %s %s litatolewa kwa %s." + +msgid "Enter the amount of Mpesa to withdraw: (Min: Ksh %s, Max %s Ksh)\n" +msgstr "Weka kiasi cha Mpesa utakacho toa: (Min: Ksh %s, Max %s Ksh)\n" + +msgid "Enter the amount of credit to deposit: (Minimum %s Ksh)\n" +msgstr "Weka kiasi utakacho weka (Kima cha chini: %s Ksh)\n" \ No newline at end of file diff --git a/services/registration/send_mpesa_confirmation b/services/registration/send_mpesa_confirmation index 5c07792..eab58a3 100644 --- a/services/registration/send_mpesa_confirmation +++ b/services/registration/send_mpesa_confirmation @@ -1,3 +1,2 @@ {{.send_mpesa_preview}} - -Please enter your account PIN to confirm: \ No newline at end of file +Enter your PIN to confirm: \ No newline at end of file diff --git a/services/registration/send_mpesa_confirmation_swa b/services/registration/send_mpesa_confirmation_swa index 7ef61b3..73f4934 100644 --- a/services/registration/send_mpesa_confirmation_swa +++ b/services/registration/send_mpesa_confirmation_swa @@ -1,3 +1,2 @@ {{.send_mpesa_preview}} - -Tafadhali weka PIN ya akaunti yako kudhibitisha: \ No newline at end of file +Weka PIN yako kudhibitisha: \ No newline at end of file diff --git a/services/registration/swap_to_list.vis b/services/registration/swap_to_list.vis index 1cd7c08..39517f8 100644 --- a/services/registration/swap_to_list.vis +++ b/services/registration/swap_to_list.vis @@ -12,7 +12,7 @@ INCMP > 88 INCMP < 98 INCMP _ 0 INCMP quit 99 -LOAD swap_max_limit 64 +LOAD swap_max_limit 138 RELOAD swap_max_limit CATCH api_failure flag_api_call_error 1 CATCH . flag_incorrect_voucher 1