mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Add button to launch translation service weblink
This commit is contained in:
parent
89b48876fc
commit
0adfdd2a2e
3 changed files with 19 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- Added ability for user to submit feedback
|
- Added ability for user to submit feedback
|
||||||
|
- Update translations
|
||||||
|
|
||||||
### 0.1.4 - April 2021
|
### 0.1.4 - April 2021
|
||||||
---
|
---
|
||||||
|
|
|
||||||
2
lib/l10n
2
lib/l10n
|
|
@ -1 +1 @@
|
||||||
Subproject commit 37f45c92ec284ba97cae97b15cfc59d0400d18e1
|
Subproject commit 8d5f69f355632939c9b6550625066ca779930bfe
|
||||||
|
|
@ -71,6 +71,15 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
||||||
|
ListTile(
|
||||||
|
title: Text(L10().translate),
|
||||||
|
subtitle: Text(L10().translateHelp),
|
||||||
|
leading: FaIcon(FontAwesomeIcons.language),
|
||||||
|
onTap: () {
|
||||||
|
_translate();
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(L10().feedback),
|
title: Text(L10().feedback),
|
||||||
subtitle: Text(L10().submitFeedback),
|
subtitle: Text(L10().submitFeedback),
|
||||||
|
|
@ -94,6 +103,14 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _translate() async {
|
||||||
|
final String url = "https://crowdin.com/project/inventree";
|
||||||
|
|
||||||
|
if (await canLaunch(url)) {
|
||||||
|
await launch(url);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void _editServerSettings() async {
|
void _editServerSettings() async {
|
||||||
|
|
||||||
Navigator.push(context, MaterialPageRoute(builder: (context) => InvenTreeLoginSettingsWidget()));
|
Navigator.push(context, MaterialPageRoute(builder: (context) => InvenTreeLoginSettingsWidget()));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue