translated some text
This commit is contained in:
parent
3a0d8cbf7f
commit
e05f223075
|
@ -170,11 +170,11 @@ class AddAbstractProductActivity : AppCompatActivity() {
|
||||||
) != null
|
) != null
|
||||||
) {
|
) {
|
||||||
AlertDialog.Builder(this)
|
AlertDialog.Builder(this)
|
||||||
.setMessage("You've got an abstract product with such barcode in your database")
|
.setMessage(getString(R.string.abstract_product_already_exists))
|
||||||
.setPositiveButton("Quit") { _: DialogInterface, _: Int ->
|
.setPositiveButton(getString(R.string.quit)) { _: DialogInterface, _: Int ->
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
.setNegativeButton("Edit existing") { _: DialogInterface, _: Int ->
|
.setNegativeButton(getString(R.string.edit_existing)) { _: DialogInterface, _: Int ->
|
||||||
val addProductIntent = Intent(this, AddAbstractProductActivity::class.java)
|
val addProductIntent = Intent(this, AddAbstractProductActivity::class.java)
|
||||||
val extras = Bundle()
|
val extras = Bundle()
|
||||||
val existingAbstractProduct = DBStorageController(this).findAbstractProductByBarcode(
|
val existingAbstractProduct = DBStorageController(this).findAbstractProductByBarcode(
|
||||||
|
@ -194,7 +194,7 @@ class AddAbstractProductActivity : AppCompatActivity() {
|
||||||
}
|
}
|
||||||
if (requester.response == "Not found 404") {
|
if (requester.response == "Not found 404") {
|
||||||
runOnUiThread {
|
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()
|
.show()
|
||||||
}
|
}
|
||||||
return@thread
|
return@thread
|
||||||
|
|
|
@ -80,4 +80,10 @@
|
||||||
<string name="abstract_product_does_not_exist">Абстрактный продукт с таким штрихкодом не существует. Хотите его добавить?. </string>
|
<string name="abstract_product_does_not_exist">Абстрактный продукт с таким штрихкодом не существует. Хотите его добавить?. </string>
|
||||||
<string name="drop_filters">Убрать фильтры</string>
|
<string name="drop_filters">Убрать фильтры</string>
|
||||||
<string name="category_name_required">Требуется название категории</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>
|
</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="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="drop_filters">Drop filters</string>
|
||||||
<string name="category_name_required">Category name required</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>
|
</resources>
|
Loading…
Reference in New Issue