summaryrefslogtreecommitdiff
path: root/merchant-terminal/src/main/res/values
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-03-18 14:24:41 -0300
committerTorsten Grote <t@grobox.de>2020-03-18 14:24:41 -0300
commita4796ec47d89a851b260b6fc195494547208a025 (patch)
treed2941b68ff2ce22c523e7aa634965033b1100560 /merchant-terminal/src/main/res/values
downloadtaler-android-a4796ec47d89a851b260b6fc195494547208a025.tar.gz
taler-android-a4796ec47d89a851b260b6fc195494547208a025.tar.bz2
taler-android-a4796ec47d89a851b260b6fc195494547208a025.zip
Merge all three apps into one repository
Diffstat (limited to 'merchant-terminal/src/main/res/values')
-rw-r--r--merchant-terminal/src/main/res/values/colors.xml14
-rw-r--r--merchant-terminal/src/main/res/values/dimens.xml6
-rw-r--r--merchant-terminal/src/main/res/values/strings.xml68
-rw-r--r--merchant-terminal/src/main/res/values/styles.xml21
4 files changed, 109 insertions, 0 deletions
diff --git a/merchant-terminal/src/main/res/values/colors.xml b/merchant-terminal/src/main/res/values/colors.xml
new file mode 100644
index 0000000..bf0c849
--- /dev/null
+++ b/merchant-terminal/src/main/res/values/colors.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="colorPrimary">#795548</color>
+ <color name="colorPrimaryDark">#5D4037</color>
+ <color name="colorAccent">#FFEB3B</color>
+
+ <color name="highlightedBackground">#E4E4E4</color>
+ <color name="selectedBackground">#DADADA</color>
+ <color name="bottomButtons">#9E9D24</color>
+
+ <color name="green">#388E3C</color>
+ <color name="red">#C62828</color>
+
+</resources>
diff --git a/merchant-terminal/src/main/res/values/dimens.xml b/merchant-terminal/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..eedc3c6
--- /dev/null
+++ b/merchant-terminal/src/main/res/values/dimens.xml
@@ -0,0 +1,6 @@
+<resources>
+ <dimen name="activity_horizontal_margin">16dp</dimen>
+ <dimen name="activity_vertical_margin">16dp</dimen>
+ <dimen name="nav_header_vertical_spacing">8dp</dimen>
+ <dimen name="nav_header_height">176dp</dimen>
+</resources> \ No newline at end of file
diff --git a/merchant-terminal/src/main/res/values/strings.xml b/merchant-terminal/src/main/res/values/strings.xml
new file mode 100644
index 0000000..77c7e03
--- /dev/null
+++ b/merchant-terminal/src/main/res/values/strings.xml
@@ -0,0 +1,68 @@
+<resources>
+ <string name="app_name">Taler Merchant PoS Terminal</string>
+ <string name="app_name_short">Merchant Terminal</string>
+ <string name="project_name">GNU Taler</string>
+
+ <string name="menu_order">Orders</string>
+ <string name="menu_history">History</string>
+ <string name="menu_settings">Settings</string>
+
+ <string name="order_label_title">Order #%s</string>
+ <!-- The first placeholder is the amount and the second the currency -->
+ <string name="order_total">Total: %1$.2f %2$s</string>
+ <string name="order_restart">Restart</string>
+ <string name="order_undo">Undo</string>
+ <string name="order_previous">Prev</string>
+ <string name="order_next">Next</string>
+ <string name="order_complete">Complete</string>
+
+ <string name="config_label">Merchant Settings</string>
+ <string name="config_url">Configuration URL</string>
+ <string name="config_username">Username</string>
+ <string name="config_password">Password</string>
+ <string name="config_ok">Fetch Configuration</string>
+ <string name="config_auth_error">Error: Invalid username or password</string>
+ <string name="config_error_network">Error: Could not connect to configuration server</string>
+ <string name="config_error_category">Error: No valid product category found</string>
+ <string name="config_error_malformed">Error: The configuration JSON is malformed</string>
+ <string name="config_error_currency">Error: Product %1$s has currency %2$s, but %3$s expected</string>
+ <string name="config_error_product_category_id">Error: Product %1$s references unknown category ID %2$d</string>
+ <string name="config_error_product_zero">Error: No valid products found</string>
+ <string name="config_error_unknown">Error: Invalid Configuration</string>
+ <string name="config_fetching">Fetching Configuration…</string>
+ <string name="config_save_password">Remember Password</string>
+ <string name="config_forget_password">Forget</string>
+ <string name="config_changed">Changed to new merchant using %s</string>
+ <string name="config_fetching_label">Fetching Configuration</string>
+ <string name="config_docs">Please refer to <a href="https://docs.taler.net/taler-merchant-pos-terminal.html#apis-and-data-formats">the documentation</a> for the configuration format.</string>
+
+ <string name="payment_intro_nfc">Please scan QR Code or use NFC to pay</string>
+ <string name="payment_intro">Please scan QR Code to pay</string>
+ <string name="payment_cancel">Cancel Payment</string>
+ <string name="payment_received">Payment received</string>
+ <string name="payment_back_button">Continue</string>
+ <string name="payment_order_ref">Order Reference: %s</string>
+ <string name="payment_process_label">Customer Payment Required</string>
+ <string name="payment_canceled">Payment Canceled</string>
+
+ <string name="history_label">Payment History</string>
+ <string name="history_received_at">Received at</string>
+ <string name="history_ref_no">Ref. No: %s</string>
+ <string name="history_refund">Refund Order</string>
+ <string name="refund_amount">Amount</string>
+ <string name="refund_reason">Refund reason</string>
+ <string name="refund_abort">Abort</string>
+ <string name="refund_confirm">Give Refund</string>
+ <string name="refund_error_max_amount">Greater than order amount of %s</string>
+ <string name="refund_error_zero">Needs to be positive amount</string>
+ <string name="refund_error_backend">Error processing refund</string>
+ <string name="refund_error_deadline">Refund deadline has passed</string>
+ <string name="refund_intro_nfc">Please scan QR Code or use NFC to give refund</string>
+ <string name="refund_intro">Please scan QR Code to give refund</string>
+ <string name="refund_order_ref">Order Reference: %1$s\n\n%2$s</string>
+
+ <string name="error_network">Network Error</string>
+
+ <string name="toast_back_to_exit">Click BACK again to exit</string>
+
+</resources>
diff --git a/merchant-terminal/src/main/res/values/styles.xml b/merchant-terminal/src/main/res/values/styles.xml
new file mode 100644
index 0000000..4445a01
--- /dev/null
+++ b/merchant-terminal/src/main/res/values/styles.xml
@@ -0,0 +1,21 @@
+<resources>
+ <!-- Base application theme. -->
+ <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
+ <!-- Customize your theme here. -->
+ <item name="colorPrimary">@color/colorPrimary</item>
+ <item name="colorOnPrimary">@android:color/white</item>
+ <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+ <item name="colorAccent">@color/colorAccent</item>
+ </style>
+
+ <style name="AppTheme.NoActionBar">
+ <item name="windowActionBar">false</item>
+ <item name="windowNoTitle">true</item>
+ <item name="android:statusBarColor">@android:color/transparent</item>
+ </style>
+
+ <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
+
+ <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
+
+</resources>