mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-30 14:36:47 +00:00
Update string translations
This commit is contained in:
parent
b741e0100b
commit
7c44d212d5
2
lib/l10n
2
lib/l10n
@ -1 +1 @@
|
|||||||
Subproject commit c2348a65593f92e8fa4c2dc643baf8fdafd48ca4
|
Subproject commit 05a5cbf63b4b5479162905def9fdadf21041212e
|
@ -94,7 +94,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
|
|
||||||
void _toggleStar() async {
|
void _toggleStar() async {
|
||||||
|
|
||||||
if (InvenTreeAPI().checkPermission('part', 'change')) {
|
if (InvenTreeAPI().checkPermission('part', 'view')) {
|
||||||
await part.update(context, values: {"starred": "${!part.starred}"});
|
await part.update(context, values: {"starred": "${!part.starred}"});
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
final bool result = await part.update(context, values: values);
|
final bool result = await part.update(context, values: values);
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
showSnackIcon("Part edited", success: true);
|
showSnackIcon(L10().partEdited, success: true);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
showSnackIcon(
|
showSnackIcon(
|
||||||
@ -130,14 +130,15 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
L10().imageUploadSuccess,
|
L10().imageUploadSuccess,
|
||||||
success: true
|
success: true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
refresh();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
showSnackIcon(
|
showSnackIcon(
|
||||||
L10().imageUploadFailure,
|
L10().imageUploadFailure,
|
||||||
success: false,
|
success: false,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
refresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _selectImage() {
|
void _selectImage() {
|
||||||
|
@ -141,7 +141,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||||||
void _stockUpdateMessage(bool result) {
|
void _stockUpdateMessage(bool result) {
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
showSnackIcon("Stock item updated", success: true);
|
showSnackIcon(L10().stockItemUpdated, success: true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -258,7 +258,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
showSnackIcon("Stock item transferred", success: true);
|
showSnackIcon(L10().stockItemTransferred, success: true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -287,7 +287,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||||||
controller: _selectedController,
|
controller: _selectedController,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: "Search for location",
|
hintText: L10().searchLocation,
|
||||||
border: OutlineInputBorder()
|
border: OutlineInputBorder()
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user