]> git.ktnx.net Git - mobile-ledger.git/commitdiff
rewording and translations
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 13 Dec 2018 20:54:37 +0000 (20:54 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 13 Dec 2018 20:54:37 +0000 (20:54 +0000)
app/src/main/java/net/ktnx/mobileledger/AccountSummary.java
app/src/main/res/menu/account_summary.xml
app/src/main/res/values-bg/strings.xml
app/src/main/res/values/strings.xml
app/src/main/res/xml/pref_interface.xml

index c1f834b183f427bbb49e4ee2c947681b0525b1a4..b6b3cfd09dfb7b4a5359c901836fdf1cc4eb1602 100644 (file)
@@ -162,7 +162,7 @@ public class AccountSummary extends AppCompatActivity {
         getMenuInflater().inflate(R.menu.account_summary, menu);
         optMenu = menu;
 
-        mShowHiddenAccounts = menu.findItem(R.id.menu_acc_summary_show_hidden);
+        mShowHiddenAccounts = menu.findItem(R.id.menu_acc_summary_only_starred);
         if (mShowHiddenAccounts == null) throw new AssertionError();
 
         sBindPreferenceSummaryToValueListener = (preference, value) -> mShowHiddenAccounts
@@ -195,7 +195,7 @@ public class AccountSummary extends AppCompatActivity {
     }
 
     public
-    void onShowHiddenAccountsClicked(MenuItem mi) {
+    void onShowOnlyStarredClicked(MenuItem mi) {
         SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
         boolean flag = pref.getBoolean("show_hidden_accounts", false);
 
index 0a4b43617d2e56f37f6ca36800f9eb833e33c627..65abb6dd6fc4c357af7ef99a357983f4a471523c 100644 (file)
@@ -3,12 +3,12 @@
     xmlns:android="http://schemas.android.com/apk/res/android">
 
     <item
-        android:id="@+id/menu_acc_summary_show_hidden"
+        android:id="@+id/menu_acc_summary_only_starred"
         android:checkable="true"
         android:checked="false"
-        android:title="@string/menu_acc_summary_show_hidden_accounts_title"
+        android:title="@string/menu_acc_summary_show_only_starred_title"
         app:actionLayout="@layout/switch_item"
-        android:onClick="onShowHiddenAccountsClicked"
+        android:onClick="onShowOnlyStarredClicked"
         app:showAsAction="never" />
     <item android:id="@+id/menu_acc_summary_hide_selected"
         android:icon="@drawable/ic_star_white_24dp"
index 96f08c4cb9ba5dd109fac390f1f4286feb3a25d4..205775e6bf7e6c6421ce1d7fc645f1ea2329c896 100644 (file)
     <string name="menu_hide_acc_title">Скриване на сметката</string>
     <string name="menu_acc_summary_refresh_title">Обновяване</string>
     <string name="err_net_error">Мрежова грешка</string>
-    <string name="menu_acc_summary_show_hidden_accounts_title">Показване на скритите сметки</string>
+    <string name="menu_acc_summary_show_only_starred_title">Показване само на любимите</string>
     <string name="action_reset_new_transaction_activity_title">Отначало</string>
     <string name="ime_action_next_title">Следващ</string>
+    <string name="interface_pref_header_title">Интерфейс</string>
+    <string name="pref_show_only_starred_off_summary">Списъкът на сметките съдържа всички сметки</string>
+    <string name="pref_show_only_starred_on_summary">Показват се само отбелязаните със звезда</string>
+    <string name="menu_acc_summary_cancel_selection_title">Отказ</string>
+    <string name="err_bad_auth">Грешно потребителско име или парола</string>
+    <string name="new_transaction_amount_hint">0,00</string>
 </resources>
\ No newline at end of file
index c05401623beeafab92f3b773e891cc1b7acf01dd..a57104ea32997b557b69bdd894d0acaa0239e05a 100644 (file)
@@ -57,7 +57,7 @@
     <string name="title_activity_new_transaction">New Transaction</string>
     <string name="new_transaction_account_hint">Account</string>
     <string name="new_transaction_date_hint">today</string>
-    <string name="new_transaction_amount_hint" translatable="false">0.00</string>
+    <string name="new_transaction_amount_hint">0.00</string>
     <string name="menu_add_account">Add another acount</string>
     <string name="msg_at_least_two_accounts_are_required">At least two accounts are required</string>
     <string name="err_bad_backend_url">Invalid backend URL</string>
     <string name="menu_acc_summary_refresh_title">Refresh</string>
     <string name="menu_hide_acc_title">Hide account</string>
     <string name="menu_hide_acc_condensed_title">Hide</string>
-    <string name="menu_acc_summary_show_hidden_accounts_title">Show hidden accounts</string>
+    <string name="menu_acc_summary_show_only_starred_title">Show only starred</string>
     <string name="err_bad_auth">Invalid username or password</string>
     <string name="action_reset_new_transaction_activity_title">Reset</string>
     <string name="ime_action_next_title">Next</string>
     <string name="interface_pref_header_title">Interface</string>
-    <string name="pref_show_hidden_accounts_off_summary">Hidden accounts are not visible in the account list</string>
-    <string name="pref_show_hidden_accounts_on_summary">Hidden accounts are shown in the account list</string>
+    <string name="pref_show_only_starred_off_summary">Account list contains all accounts</string>
+    <string name="pref_show_only_starred_on_summary">Only starred accounts are shown</string>
     <string name="menu_acc_summary_hide_selected_title">Hide selected accounts</string>
     <string name="menu_acc_summary_cancel_selection_title">Cancel selection</string>
 </resources>
index 218ab0e494ae989e5789f373b5d703aa0d9b97b3..bc832f8820d1217946ac58843656dde71cb7a0d9 100644 (file)
@@ -5,7 +5,7 @@
         android:id="@+id/pref_show_hidden_accounts"
         android:defaultValue="false"
         android:key="show_hidden_accounts"
-        android:summaryOff="@string/pref_show_hidden_accounts_off_summary"
-        android:summaryOn="@string/pref_show_hidden_accounts_on_summary"
-        android:title="@string/menu_acc_summary_show_hidden_accounts_title" />
+        android:summaryOff="@string/pref_show_only_starred_off_summary"
+        android:summaryOn="@string/pref_show_only_starred_on_summary"
+        android:title="@string/menu_acc_summary_show_only_starred_title" />
 </PreferenceScreen>
\ No newline at end of file