Changed 'Invite' to 'Referral' where it displays ot the end user.

root21 created

Change summary

forms/admin_add_invites.rb     | 4 ++--
forms/admin_menu.rb            | 2 +-
forms/registration/activate.rb | 4 ++--
sgx_jmp.rb                     | 7 +++++--
4 files changed, 10 insertions(+), 7 deletions(-)

Detailed changes

forms/admin_add_invites.rb 🔗

@@ -1,10 +1,10 @@
 form!
-instructions "Add Invites"
+instructions "Add Referrals"
 
 field(
 	var: "to_add",
 	type: "text-single",
 	datatype: "xs:integer",
-	label: "How many invites to add",
+	label: "How many referral codes to add",
 	value: "0"
 )

forms/admin_menu.rb 🔗

@@ -22,7 +22,7 @@ field(
 		{ value: "undo", label: "Undo" },
 		{ value: "reset_declines", label: "Reset Declines" },
 		{ value: "set_trust_level", label: "Set Trust Level" },
-		{ value: "add_invites", label: "Add Invites" },
+		{ value: "add_invites", label: "Add Referral Codes" },
 		{ value: "number_change", label: "Number Change" },
 		{ value: "add_transaction", label: "Add Transaction" }
 	]

forms/registration/activate.rb 🔗

@@ -4,7 +4,7 @@ title "Activate JMP"
 center = " (#{@rate_center})" if @rate_center
 instructions <<~I
 	You've selected #{@tel}#{center} as your JMP number.
-	To activate your account, you can either deposit $#{CONFIG[:activation_amount]} to your balance or enter your invite code if you have one.
+	To activate your account, you can either deposit $#{CONFIG[:activation_amount]} to your balance or enter your referral code if you have one.
 	(If you'd like to pay in a cryptocurrency other than Bitcoin, currently we recommend using a service like simpleswap.io, morphtoken.com, changenow.io, or godex.io. Manual payment via Bitcoin Cash is also available if you contact support.)
 I
 
@@ -24,7 +24,7 @@ field(
 		},
 		{
 			value: "code",
-			label: "Invite Code"
+			label: "Referral Code"
 		},
 		{
 			value: "mail",

sgx_jmp.rb 🔗

@@ -680,11 +680,14 @@ Command.new(
 ) {
 	Command.customer.then(&:unused_invites).then do |invites|
 		if invites.empty?
-			Command.finish("You have no more invites right now, try again later.")
+			Command.finish(
+				"You have no more referral codes right now, " \
+				"try again later."
+			)
 		else
 			Command.finish do |reply|
 				reply.form.type = :result
-				reply.form.title = "Unused Invite Codes"
+				reply.form.title = "Unused Referral Codes"
 				reply.form.instructions =
 					"Each of these codes is single use and gives the person using " \
 					"them a free month of JMP service. You will receive credit " \