Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Aug 20, 2024
1 parent bdb72e9 commit 3b0f64c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import arrow.core.raise.ensure
value class VoucherCode private constructor(val value: String) {

companion object {
// Parsing reference: docs/adr/0018-distinguish-voucher-codes-from-account-numbers.md
// Parsing reference:
// <services-repository>/services/docs/adr/0018-distinguish-voucher-codes-from-account-numbers.md
fun fromString(value: String): Either<ParseVoucherCodeError, VoucherCode> = either {
val trimmedValue = value.trim()
ensure(trimmedValue.length >= MIN_VOUCHER_LENGTH) {
Expand Down
2 changes: 1 addition & 1 deletion android/lib/resource/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<string name="redeem">Redeem</string>
<string name="invalid_voucher">Voucher code is invalid.</string>
<string name="voucher_already_used">Voucher code has already been used.</string>
<string name="voucher_is_account_number">It looks like you\’ve entered an account number instead of a voucher code. If you would like to change the active account, please log out first.</string>
<string name="voucher_is_account_number">It looks like you’ve entered an account number instead of a voucher code. If you would like to change the active account, please log out first.</string>
<string name="error_occurred">An error occurred.</string>
<string name="settings">Settings</string>
<string name="no_internet_connection">No internet connection</string>
Expand Down
2 changes: 1 addition & 1 deletion gui/locales/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2321,7 +2321,7 @@ msgstr ""
msgid "Invalid or missing value \"%s\""
msgstr ""

msgid "It looks like you\\’ve entered an account number instead of a voucher code. If you would like to change the active account, please log out first."
msgid "It looks like you’ve entered an account number instead of a voucher code. If you would like to change the active account, please log out first."
msgstr ""

msgid "Lets you select apps that should access the Internet directly without going through the VPN tunnel."
Expand Down

0 comments on commit 3b0f64c

Please sign in to comment.