summaryrefslogtreecommitdiffhomepage
path: root/android/src/main/res/values
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-05-08 20:12:58 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-05-11 12:24:27 +0000
commitc9950eb5a266e352cb24df67be1193ac5b9cf95f (patch)
tree30830cb3817980a54790e07c2b07c81619d1389f /android/src/main/res/values
parent9d4ca9d4d1d916f6fb3180ad8198f1ee3f091c44 (diff)
downloadmullvadvpn-c9950eb5a266e352cb24df67be1193ac5b9cf95f.tar.xz
mullvadvpn-c9950eb5a266e352cb24df67be1193ac5b9cf95f.zip
Format Android XML files
Diffstat (limited to 'android/src/main/res/values')
-rw-r--r--android/src/main/res/values/attrs.xml54
-rw-r--r--android/src/main/res/values/strings.xml188
-rw-r--r--android/src/main/res/values/styles.xml21
3 files changed, 114 insertions, 149 deletions
diff --git a/android/src/main/res/values/attrs.xml b/android/src/main/res/values/attrs.xml
index 85e9c24dd5..362af43680 100644
--- a/android/src/main/res/values/attrs.xml
+++ b/android/src/main/res/values/attrs.xml
@@ -1,30 +1,48 @@
<resources>
<declare-styleable name="Button">
- <attr name="buttonColor" format="enum">
- <enum name="blue" value="0"/>
- <enum name="green" value="1"/>
+ <attr name="buttonColor"
+ format="enum">
+ <enum name="blue"
+ value="0" />
+ <enum name="green"
+ value="1" />
</attr>
- <attr name="detailImage" format="reference"/>
- <attr name="showSpinner" format="boolean"/>
- <attr name="text" format="reference|string"/>
+ <attr name="detailImage"
+ format="reference" />
+ <attr name="showSpinner"
+ format="boolean" />
+ <attr name="text"
+ format="reference|string" />
</declare-styleable>
<declare-styleable name="CopyableInformationView">
- <attr name="clipboardLabel" format="reference|string"/>
- <attr name="copiedToast" format="reference|string"/>
+ <attr name="clipboardLabel"
+ format="reference|string" />
+ <attr name="copiedToast"
+ format="reference|string" />
</declare-styleable>
<declare-styleable name="InformationView">
- <attr name="description" format="reference|string"/>
- <attr name="errorColor" format="reference|color"/>
- <attr name="informationColor" format="reference|color"/>
- <attr name="maxLength" format="integer"/>
- <attr name="whenMissing" format="enum">
- <enum name="nothing" value="0"/>
- <enum name="hide" value="1"/>
- <enum name="showSpinner" value="2"/>
+ <attr name="description"
+ format="reference|string" />
+ <attr name="errorColor"
+ format="reference|color" />
+ <attr name="informationColor"
+ format="reference|color" />
+ <attr name="maxLength"
+ format="integer" />
+ <attr name="whenMissing"
+ format="enum">
+ <enum name="nothing"
+ value="0" />
+ <enum name="hide"
+ value="1" />
+ <enum name="showSpinner"
+ value="2" />
</attr>
</declare-styleable>
<declare-styleable name="UrlButton">
- <attr name="url" format="reference|string"/>
- <attr name="withToken" format="boolean"/>
+ <attr name="url"
+ format="reference|string" />
+ <attr name="withToken"
+ format="boolean" />
</declare-styleable>
</resources>
diff --git a/android/src/main/res/values/strings.xml b/android/src/main/res/values/strings.xml
index a2d06c83cc..4e03f847ee 100644
--- a/android/src/main/res/values/strings.xml
+++ b/android/src/main/res/values/strings.xml
@@ -5,102 +5,79 @@
<string name="disconnecting">Disconnecting</string>
<string name="secured">Secured</string>
<string name="unsecured">Unsecured</string>
- <string name="critical_error">Critical error (your attention is
- required)</string>
- <string name="blocking_all_connections">Blocking all
- connections</string>
- <string name="foreground_notification_channel_name">VPN tunnel
+ <string name="critical_error">Critical error (your attention is required)</string>
+ <string name="blocking_all_connections">Blocking all connections</string>
+ <string name="foreground_notification_channel_name">VPN tunnel status</string>
+ <string name="foreground_notification_channel_description">Shows current VPN tunnel
status</string>
- <string name="foreground_notification_channel_description">
- Shows current VPN tunnel status</string>
- <string name="connecting_to_daemon">Connecting to Mullvad
- system service...</string>
+ <string name="connecting_to_daemon">Connecting to Mullvad system service...</string>
<string name="login_title">Login</string>
- <string name="login_description">Enter your account
- number</string>
+ <string name="login_description">Enter your account number</string>
<string name="login_hint">0000 0000 0000 0000</string>
<string name="logging_in_title">Logging in</string>
- <string name="logging_in_description">Checking account
- number</string>
+ <string name="logging_in_description">Checking account number</string>
<string name="logged_in_title">Login successful</string>
<string name="login_fail_title">Login failed</string>
- <string name="login_fail_description">Invalid account number,
- try again</string>
- <string name="dont_have_an_account">Don\'t have an account
- number?</string>
+ <string name="login_fail_description">Invalid account number, try again</string>
+ <string name="dont_have_an_account">Don\'t have an account number?</string>
<string name="create_account">Create account</string>
<string name="creating_new_account">Creating new account</string>
<string name="failed_to_create_account">Failed to create account</string>
<string name="account_created">Account created</string>
<string name="congrats">Congrats!</string>
- <string name="here_is_your_account_number">Here\'s your account number.
- Save it!</string>
- <string name="pay_to_start_using">To start using the app, you first need
- to add time to you account. Buy credit on our website.</string>
+ <string name="here_is_your_account_number">Here\'s your account number. Save it!</string>
+ <string name="pay_to_start_using">To start using the app, you first need to add time to you
+ account. Buy credit on our website.</string>
<string name="buy_credit">Buy credit</string>
<string name="settings">Settings</string>
<string name="settings_account">Account</string>
- <string name="less_than_a_day_left">less than a day
- left</string>
- <string name="less_than_a_minute_ago">less than a minute
- ago</string>
+ <string name="less_than_a_day_left">less than a day left</string>
+ <string name="less_than_a_minute_ago">less than a minute ago</string>
<string name="out_of_time">Out of time</string>
<string name="settings_preferences">Preferences</string>
<string name="settings_advanced">Advanced</string>
<string name="app_version">App version</string>
- <string name="update_available_footer">Update available,
- download to remain safe.</string>
+ <string name="update_available_footer">Update available, download to remain safe.</string>
<string name="report_a_problem">Report a problem</string>
<string name="quit">Quit</string>
<string name="account_number">Account number</string>
- <string name="mullvad_account_number">Mullvad account
- number</string>
- <string name="copied_mullvad_account_number">Copied Mullvad
- account number to clipboard</string>
+ <string name="mullvad_account_number">Mullvad account number</string>
+ <string name="copied_mullvad_account_number">Copied Mullvad account number to
+ clipboard</string>
<string name="paid_until">Paid until</string>
<string name="log_out">Log out</string>
- <string name="local_network_sharing">Local network
- sharing</string>
- <string name="allow_lan_footer">Allows access to other devices
- on the same network for sharing, printing etc.</string>
+ <string name="local_network_sharing">Local network sharing</string>
+ <string name="allow_lan_footer">Allows access to other devices on the same network for sharing,
+ printing etc.</string>
<string name="auto_connect">Auto-connect</string>
- <string name="auto_connect_footer">Automatically connect to a
- server when the app launches.</string>
+ <string name="auto_connect_footer">Automatically connect to a server when the app
+ launches.</string>
<string name="wireguard_mtu">WireGuard MTU</string>
- <string name="wireguard_mtu_footer">Set WireGuard MTU value. Valid range:
- %1$d - %2$d.</string>
+ <string name="wireguard_mtu_footer">Set WireGuard MTU value. Valid range: %1$d - %2$d.</string>
<string name="hint_default">Default</string>
- <string name="problem_report_description">To help you more
- effectively, your app\'s log file will be attached to this
- message. Your data will remain secure and private, as it is
- anonymised before being sent over an encrypted
- channel.</string>
+ <string name="problem_report_description">To help you more effectively, your app\'s log file
+ will be attached to this message. Your data will remain secure and private, as it is anonymised
+ before being sent over an encrypted channel.</string>
<string name="user_email_hint">Your email (optional)</string>
<string name="user_message_hint">Describe your problem</string>
<string name="send">Send</string>
<string name="sending">Sending...</string>
<string name="sent">Sent</string>
<string name="failed_to_send">Failed to send</string>
- <string name="confirm_no_email">You are about to send the
- problem report without a way for us to get back to you. If you
- want an answer to your report you will have to enter an email
+ <string name="confirm_no_email">You are about to send the problem report without a way for us
+ to get back to you. If you want an answer to your report you will have to enter an email
address.</string>
<string name="send_anyway">Send anyway</string>
<string name="back">Back</string>
- <string name="sent_thanks">Thanks! We will look into
- this.</string>
- <string name="sent_contact">If needed we will contact you
- on</string>
- <string name="failed_to_send_details">You may need to go back
- to the app\'s main screen and click Disconnect before trying
- again. Don\'t worry, the information you entered will remain in
+ <string name="sent_thanks">Thanks! We will look into this.</string>
+ <string name="sent_contact">If needed we will contact you on</string>
+ <string name="failed_to_send_details">You may need to go back to the app\'s main screen and
+ click Disconnect before trying again. Don\'t worry, the information you entered will remain in
the form.</string>
<string name="edit_message">Edit message</string>
<string name="try_again">Try again</string>
- <string name="unsecured_connection">Unsecured
- connection</string>
- <string name="creating_secure_connection">Creating secure
- connection</string>
+ <string name="unsecured_connection">Unsecured connection</string>
+ <string name="creating_secure_connection">Creating secure connection</string>
<string name="secure_connection">Secure connection</string>
<string name="blocked_connection">Blocked connection</string>
<string name="error_state">Failed to secure connection</string>
@@ -115,51 +92,37 @@
<string name="in_address">In %1$s:%2$d %3$s</string>
<string name="out_address">Out %1$s</string>
<string name="blocking_internet">Blocking internet</string>
- <string name="not_blocking_internet">You might be leaking
- network traffic</string>
- <string name="failed_to_block_internet">Failed to block all
- network traffic. Please troubleshoot or report the problem to
- us.</string>
- <string name="auth_failed">Account authentication
- failed.</string>
- <string name="ipv6_unavailable">Could not configure
- IPv6</string>
- <string name="set_firewall_policy_error">Failed to apply
- firewall rules. The device might currently be
- unsecured</string>
- <string name="set_dns_error">Failed to set system DNS
- server</string>
- <string name="start_tunnel_error">Failed to start tunnel
- connection</string>
- <string name="vpn_permission_denied_error">VPN permission was
- denied when creating the tunnel. Please try connecting
- again.</string>
- <string name="no_matching_relay">No relay server matches the
- current settings</string>
- <string name="no_matching_bridge_relay">No bridge relay server
- matches the current settings</string>
+ <string name="not_blocking_internet">You might be leaking network traffic</string>
+ <string name="failed_to_block_internet">Failed to block all network traffic. Please
+ troubleshoot or report the problem to us.</string>
+ <string name="auth_failed">Account authentication failed.</string>
+ <string name="ipv6_unavailable">Could not configure IPv6</string>
+ <string name="set_firewall_policy_error">Failed to apply firewall rules. The device might
+ currently be unsecured</string>
+ <string name="set_dns_error">Failed to set system DNS server</string>
+ <string name="start_tunnel_error">Failed to start tunnel connection</string>
+ <string name="vpn_permission_denied_error">VPN permission was denied when creating the tunnel.
+ Please try connecting again.</string>
+ <string name="no_matching_relay">No relay server matches the current settings</string>
+ <string name="no_matching_bridge_relay">No bridge relay server matches the current
+ settings</string>
<string name="no_wireguard_key">No WireGuard key set</string>
- <string name="custom_tunnel_host_resolution_error">Failed to
- resolve the hostname of custom server</string>
- <string name="is_offline">This device is offline, no tunnels
- can be established</string>
+ <string name="custom_tunnel_host_resolution_error">Failed to resolve the hostname of custom
+ server</string>
+ <string name="is_offline">This device is offline, no tunnels can be established</string>
<string name="tap_adapter_problem">TAP adapter error</string>
<string name="wireguard_error">WireGuard error</string>
- <string name="too_many_keys">Too many WireGuard keys registered
- to account</string>
- <string name="failed_to_generate_key">Failed to generate
- WireGuard key</string>
+ <string name="too_many_keys">Too many WireGuard keys registered to account</string>
+ <string name="failed_to_generate_key">Failed to generate WireGuard key</string>
<string name="update_available">Update available</string>
- <string name="update_available_description">Install Mullvad VPN
- (%1$s) to stay up to date</string>
+ <string name="update_available_description">Install Mullvad VPN (%1$s) to stay up to
+ date</string>
<string name="unsupported_version">Unsupported version</string>
- <string name="unsupported_version_description">You are running
- an unsupported app version. Please upgrade to %1$s now to
- ensure your security</string>
+ <string name="unsupported_version_description">You are running an unsupported app version.
+ Please upgrade to %1$s now to ensure your security</string>
<string name="select_location">Select location</string>
- <string name="select_location_description">While connected,
- your real location is masked with a private and secure location
- in the selected region</string>
+ <string name="select_location_description">While connected, your real location is masked with a
+ private and secure location in the selected region</string>
<string name="wireguard_key">WireGuard key</string>
<string name="public_key">Public key</string>
<string name="wireguard_key_generated">Key generated</string>
@@ -168,26 +131,17 @@
<string name="wireguard_replace_key">Regenerate key</string>
<string name="wireguard_manage_keys">Manage keys</string>
<string name="wireguard_key_age">Key generated on</string>
- <string name="wireguard_key_reconnecting">Reconnecting with new
- WireGuard key...</string>
- <string name="wireguard_key_blocked_state_message">Unable to
- manage keys while in a blocked state</string>
+ <string name="wireguard_key_reconnecting">Reconnecting with new WireGuard key...</string>
+ <string name="wireguard_key_blocked_state_message">Unable to manage keys while in a blocked
+ state</string>
<string name="wireguard_key_valid">Key is valid</string>
<string name="wireguard_key_invalid">Key is invalid</string>
- <string name="wireguard_key_verification_failure">Key verification
- failed</string>
- <string name="wireguard_public_key">WireGuard public key
- </string>
- <string name="copied_wireguard_public_key">Copied WireGuard
- public key to clipboard</string>
- <string name="account_url">
- https://mullvad.net/en/account</string>
- <string name="wg_key_url">
- https://mullvad.net/account/ports</string>
- <string name="create_account_url">
- https://mullvad.net/en/account/create</string>
- <string name="download_url">
- https://mullvad.net/en/download</string>
- <string name="copied_to_clipboard">Copied to
- clipboard</string>
+ <string name="wireguard_key_verification_failure">Key verification failed</string>
+ <string name="wireguard_public_key">WireGuard public key</string>
+ <string name="copied_wireguard_public_key">Copied WireGuard public key to clipboard</string>
+ <string name="account_url">https://mullvad.net/en/account</string>
+ <string name="wg_key_url">https://mullvad.net/account/ports</string>
+ <string name="create_account_url">https://mullvad.net/en/account/create</string>
+ <string name="download_url">https://mullvad.net/en/download</string>
+ <string name="copied_to_clipboard">Copied to clipboard</string>
</resources>
diff --git a/android/src/main/res/values/styles.xml b/android/src/main/res/values/styles.xml
index c380a2f51c..1191d0c61f 100644
--- a/android/src/main/res/values/styles.xml
+++ b/android/src/main/res/values/styles.xml
@@ -7,18 +7,15 @@
<style name="InputText"
parent="Widget.AppCompat.EditText">
<item name="android:padding">14dp</item>
- <item name="android:background">
- @drawable/input_text_background</item>
- <item name="android:textCursorDrawable">
- @drawable/text_input_cursor</item>
+ <item name="android:background">@drawable/input_text_background</item>
+ <item name="android:textCursorDrawable">@drawable/text_input_cursor</item>
<item name="android:textColorHint">@color/blue40</item>
<item name="android:textColor">@color/blue</item>
<item name="android:textSize">13sp</item>
</style>
<style name="Button"
parent="Widget.AppCompat.Button.Borderless">
- <item name="android:layout_height">
- @dimen/normal_button_height</item>
+ <item name="android:layout_height">@dimen/normal_button_height</item>
<item name="android:layout_width">match_parent</item>
<item name="android:padding">0dp</item>
<item name="android:textAllCaps">false</item>
@@ -28,22 +25,18 @@
</style>
<style name="GreenButton"
parent="Button">
- <item name="android:background">
- @drawable/green_button_background</item>
+ <item name="android:background">@drawable/green_button_background</item>
</style>
<style name="RedButton"
parent="Button">
- <item name="android:background">
- @drawable/red_button_background</item>
+ <item name="android:background">@drawable/red_button_background</item>
</style>
<style name="BlueButton"
parent="Button">
- <item name="android:background">
- @drawable/blue_button_background</item>
+ <item name="android:background">@drawable/blue_button_background</item>
</style>
<style name="White20Button"
parent="Button">
- <item name="android:background">
- @drawable/white20_button_background</item>
+ <item name="android:background">@drawable/white20_button_background</item>
</style>
</resources>