Browse Source

Translation key added for drop down selection dialog

master
Preyea Regmi 5 years ago
parent
commit
c4dde91d7d
  1. 21
      app/src/main/java/com/gmeremit/online/gmeremittance_native/recipientV3/view/recipientaddeditV3/RecipientAddEditV3Activity.java
  2. 9
      app/src/main/res/values/strings.xml

21
app/src/main/java/com/gmeremit/online/gmeremittance_native/recipientV3/view/recipientaddeditV3/RecipientAddEditV3Activity.java

@ -1120,7 +1120,7 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien
countryListingDialog.dismiss();
});
countryListingDialog.setHintAndTitle(getString(R.string.search_country_text), getString(R.string.select_country_text), getString(R.string.no_country_found_text));
countryListingDialog.setHintAndTitle(getString(R.string.search_payout_country_text), getString(R.string.payout_country_placeholder_text), getString(R.string.no_payout_country_found_text));
countryListingDialog.disableSearch(false);
if (!countryListingDialog.isAdded())
countryListingDialog.show(getSupportFragmentManager(), this.getClass().getSimpleName());
@ -1140,7 +1140,7 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien
presenter.onNativeCountryServiceSelected(countryServiceModel);
nativeCountryListingDialog.dismiss();
});
nativeCountryListingDialog.setHintAndTitle(getString(R.string.search_country_text), getString(R.string.select_country_text), getString(R.string.no_country_found_text));
nativeCountryListingDialog.setHintAndTitle(getString(R.string.search_native_country_text), getString(R.string.native_country_placeholder_text), getString(R.string.no_native_country_found_text));
nativeCountryListingDialog.disableSearch(false);
if (!nativeCountryListingDialog.isAdded())
nativeCountryListingDialog.show(getSupportFragmentManager(), this.getClass().getSimpleName());
@ -1160,7 +1160,8 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien
presenter.onServiceTypeSelected(selectedPaymentMethod);
serviceMethodListingDialog.dismiss();
});
serviceMethodListingDialog.setHintAndTitle("Search payment method", "Select payment method", "No payment method found.");
serviceMethodListingDialog.setHintAndTitle(getString(R.string.search_payment_method_text), getString(R.string.payment_mode_placeholder_text ), getString(R.string.no_payment_method_found_text));
serviceMethodListingDialog.disableSearch(false);
if (!serviceMethodListingDialog.isAdded())
serviceMethodListingDialog.show(getSupportFragmentManager(), this.getClass().getSimpleName());
@ -1180,7 +1181,7 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien
presenter.onBankSelected(selectedBank);
bankListingDialog.dismiss();
});
bankListingDialog.setHintAndTitle("Search bank", "Search bank", "No bank found.");
bankListingDialog.setHintAndTitle(getString(R.string.search_bank_text), getString(R.string.bank_placeholder_text ), getString(R.string.no_bank_found_text));
bankListingDialog.disableSearch(false);
if (!bankListingDialog.isAdded())
bankListingDialog.show(getSupportFragmentManager(), this.getClass().getSimpleName());
@ -1217,6 +1218,7 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien
}
}
);
if (!branchListingDialog.isAdded())
branchListingDialog.show(getSupportFragmentManager(), "BranchListingFragment");
}
@ -1235,7 +1237,7 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien
presenter.onProvinceSelected(selectedState);
stateListingDialog.dismiss();
});
stateListingDialog.setHintAndTitle("Search state", "Select state", "No state found.");
stateListingDialog.setHintAndTitle(getString(R.string.search_province_text), getString(R.string.state_province_placeholder_text), getString(R.string.no_province_found_text));
stateListingDialog.disableSearch(false);
if (!stateListingDialog.isAdded())
stateListingDialog.show(getSupportFragmentManager(), this.getClass().getSimpleName());
@ -1255,7 +1257,8 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien
presenter.onDistrictSelected(selectedDistrict);
districtListingDialog.dismiss();
});
districtListingDialog.setHintAndTitle("Search district", "Select district", "No district found.");
districtListingDialog.setHintAndTitle(getString(R.string.search_district_text), getString(R.string.district_placeholder_text), getString(R.string.no_district_found_text));
districtListingDialog.disableSearch(false);
if (!districtListingDialog.isAdded())
districtListingDialog.show(getSupportFragmentManager(), this.getClass().getSimpleName());
@ -1275,7 +1278,7 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien
presenter.onRelationSelected(selectedRelation);
relationMethodListingDialog.dismiss();
});
relationMethodListingDialog.setHintAndTitle("Search relation", "Select relation", "No relation found.");
relationMethodListingDialog.setHintAndTitle(getString(R.string.search_relation_text), getString(R.string.relation_placeholder_text), getString(R.string.no_relation_found_text));
relationMethodListingDialog.disableSearch(false);
if (!relationMethodListingDialog.isAdded())
relationMethodListingDialog.show(getSupportFragmentManager(), this.getClass().getSimpleName());
@ -1295,7 +1298,7 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien
presenter.onTransferReasonSelected(selectedTransferReason);
transferListingDialog.dismiss();
});
transferListingDialog.setHintAndTitle("Search transfer reason", "Select transfer reason", "No transfer reason found.");
transferListingDialog.setHintAndTitle(getString(R.string.search_reason_text), getString(R.string.reason_placeholder_text), getString(R.string.no_reason_found_text));
transferListingDialog.disableSearch(false);
if (!transferListingDialog.isAdded())
transferListingDialog.show(getSupportFragmentManager(), this.getClass().getSimpleName());
@ -1315,7 +1318,7 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien
presenter.onIDTypeSelected(selectedPaymentMethod);
idTypeListingDialog.dismiss();
});
idTypeListingDialog.setHintAndTitle("Search Id Type", "Select Id Type", "No Id Type found.");
idTypeListingDialog.setHintAndTitle(getString(R.string.search_id_type_text), getString(R.string.id_type_text), getString(R.string.no_id_type_found_text));
idTypeListingDialog.disableSearch(false);
if (!idTypeListingDialog.isAdded())
idTypeListingDialog.show(getSupportFragmentManager(), this.getClass().getSimpleName());

9
app/src/main/res/values/strings.xml

@ -584,6 +584,15 @@
<string name="middle_name_text">Middle Name</string>
<string name="recipient_profile_update_prompt_text">Your recipient information is not up-to-date. Do you want to update it now?</string>
<string name="recipient_bank_update_prompt_text">Your selected bank is not currently available at moment. Please select another bank inorder to proceed.</string>
<string name="search_payout_country_text">Search Payout Country</string>
<string name="no_payout_country_found_text">No payout country found</string>
<string name="search_native_country_text">Search Native Country</string>
<string name="no_native_country_found_text">No native country found</string>
<string name="search_payment_method_text">Search Payment Mode</string>
<string name="no_payment_method_found_text">No payment mode found</string>
<string name="search_reason_text">Search Transfer Reason</string>
<string name="no_reason_found_text">No transfer reason found</string>
<string name="search_id_type_text">Search ID Type</string>
</resources>
Loading…
Cancel
Save