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 {
|
||||
|
||||
if (InvenTreeAPI().checkPermission('part', 'change')) {
|
||||
if (InvenTreeAPI().checkPermission('part', 'view')) {
|
||||
await part.update(context, values: {"starred": "${!part.starred}"});
|
||||
refresh();
|
||||
}
|
||||
@ -105,7 +105,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
||||
final bool result = await part.update(context, values: values);
|
||||
|
||||
if (result) {
|
||||
showSnackIcon("Part edited", success: true);
|
||||
showSnackIcon(L10().partEdited, success: true);
|
||||
}
|
||||
/*
|
||||
showSnackIcon(
|
||||
@ -130,14 +130,15 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
||||
L10().imageUploadSuccess,
|
||||
success: true
|
||||
);
|
||||
|
||||
refresh();
|
||||
|
||||
} else {
|
||||
showSnackIcon(
|
||||
L10().imageUploadFailure,
|
||||
success: false,
|
||||
);
|
||||
}
|
||||
|
||||
refresh();
|
||||
}
|
||||
|
||||
void _selectImage() {
|
||||
|
@ -141,7 +141,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
||||
void _stockUpdateMessage(bool result) {
|
||||
|
||||
if (result) {
|
||||
showSnackIcon("Stock item updated", success: true);
|
||||
showSnackIcon(L10().stockItemUpdated, success: true);
|
||||
}
|
||||
}
|
||||
|
||||
@ -258,7 +258,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
||||
refresh();
|
||||
|
||||
if (result) {
|
||||
showSnackIcon("Stock item transferred", success: true);
|
||||
showSnackIcon(L10().stockItemTransferred, success: true);
|
||||
}
|
||||
}
|
||||
|
||||
@ -287,7 +287,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
||||
controller: _selectedController,
|
||||
autofocus: true,
|
||||
decoration: InputDecoration(
|
||||
hintText: "Search for location",
|
||||
hintText: L10().searchLocation,
|
||||
border: OutlineInputBorder()
|
||||
)
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user