translated some text
This commit is contained in:
parent
3a0d8cbf7f
commit
e05f223075
|
@ -170,11 +170,11 @@ class AddAbstractProductActivity : AppCompatActivity() {
|
|||
) != null
|
||||
) {
|
||||
AlertDialog.Builder(this)
|
||||
.setMessage("You've got an abstract product with such barcode in your database")
|
||||
.setPositiveButton("Quit") { _: DialogInterface, _: Int ->
|
||||
.setMessage(getString(R.string.abstract_product_already_exists))
|
||||
.setPositiveButton(getString(R.string.quit)) { _: DialogInterface, _: Int ->
|
||||
finish()
|
||||
}
|
||||
.setNegativeButton("Edit existing") { _: DialogInterface, _: Int ->
|
||||
.setNegativeButton(getString(R.string.edit_existing)) { _: DialogInterface, _: Int ->
|
||||
val addProductIntent = Intent(this, AddAbstractProductActivity::class.java)
|
||||
val extras = Bundle()
|
||||
val existingAbstractProduct = DBStorageController(this).findAbstractProductByBarcode(
|
||||
|
@ -194,7 +194,7 @@ class AddAbstractProductActivity : AppCompatActivity() {
|
|||
}
|
||||
if (requester.response == "Not found 404") {
|
||||
runOnUiThread {
|
||||
Toast.makeText(this, "Product not found. Please, try again or type manually", Toast.LENGTH_LONG)
|
||||
Toast.makeText(this, getString(R.string.no_product_in_online_database), Toast.LENGTH_LONG)
|
||||
.show()
|
||||
}
|
||||
return@thread
|
||||
|
|
|
@ -80,4 +80,10 @@
|
|||
<string name="abstract_product_does_not_exist">Абстрактный продукт с таким штрихкодом не существует. Хотите его добавить?. </string>
|
||||
<string name="drop_filters">Убрать фильтры</string>
|
||||
<string name="category_name_required">Требуется название категории</string>
|
||||
<string name="abstract_product_already_exists">Такой абстрактный продукт в ваше базе данных уже есть</string>
|
||||
<string name="quit">Выйти</string>
|
||||
<string name="edit_existing">Редактировать существующий</string>
|
||||
<string name="no_product_in_online_database">Продукт не найден в онлайн базе данных. Попробуйте снова, если это
|
||||
ошибка сканирования или введите данные вручную
|
||||
</string>
|
||||
</resources>
|
|
@ -78,4 +78,10 @@
|
|||
<string name="abstract_product_does_not_exist">Abstract product with such barcode does not exist. Do you want to add one?</string>
|
||||
<string name="drop_filters">Drop filters</string>
|
||||
<string name="category_name_required">Category name required</string>
|
||||
<string name="abstract_product_already_exists">You've got an abstract product with such barcode in your database.</string>
|
||||
<string name="quit">Quit</string>
|
||||
<string name="edit_existing">Edit existing</string>
|
||||
<string name="no_product_in_online_database">Product not found. Please, try again if you beleive barcode scanned
|
||||
wrongly or type manually
|
||||
</string>
|
||||
</resources>
|
Loading…
Reference in New Issue