2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 13:36:50 +00:00

I18N updates

This commit is contained in:
Oliver Walters 2021-02-08 21:28:16 +11:00
parent e8a88997b4
commit 7fe1b32bf6

View File

@ -93,24 +93,26 @@ class _InvenTreeLoginSettingsState extends State<InvenTreeLoginSettingsWidget> {
fields: <Widget> [ fields: <Widget> [
StringField( StringField(
label: I18N.of(context).name, label: I18N.of(context).name,
initial: "profile", hint: "Enter profile name",
onSaved: (value) => _name = value, onSaved: (value) => _name = value,
validator: _validateProfileName, validator: _validateProfileName,
), ),
StringField( StringField(
label: "Server", label: I18N.of(context).server,
initial: "http://127.0.0.1:8000", initial: "http://127.0.0.1:8000",
hint: "http[s]://<server>:<port>", hint: "http[s]://<server>:<port>",
validator: _validateServer, validator: _validateServer,
onSaved: (value) => _server = value, onSaved: (value) => _server = value,
), ),
StringField( StringField(
label: "Username", label: I18N.of(context).username,
hint: "Enter username",
onSaved: (value) => _username = value, onSaved: (value) => _username = value,
validator: _validateUsername, validator: _validateUsername,
), ),
StringField( StringField(
label: "Password", label: I18N.of(context).password,
hint: "Enter password",
onSaved: (value) => _password = value, onSaved: (value) => _password = value,
validator: _validatePassword, validator: _validatePassword,
) )