fix(assets): Change naming to conventional and consistent 'username'

pull/135/head
NaiJi ✨ 2022-10-08 19:28:07 +00:00
parent f4e588c435
commit a305e0b53f
3 changed files with 15 additions and 15 deletions

View File

@ -20,7 +20,7 @@
"connect": "Connect",
"domain": "Domain",
"saving": "Saving…",
"nickname": "Nickname",
"username": "Username",
"loading": "Loading…",
"later": "Skip to setup later",
"connect_to_existing": "Connect to an existing server",
@ -258,7 +258,7 @@
"could_not_create_user": "Couldn't create user",
"could_not_delete_user": "Couldn't delete user",
"could_not_add_ssh_key": "Couldn't add SSH key",
"username_rule": "Must contain only lowercase latin letters, digits and underscores, should not start with a digit",
"username_rule": "Username must contain only lowercase latin letters, digits and underscores, should not start with a digit",
"email_login": "Email login",
"no_ssh_notice": "Only email and SSH accounts are created for this user. Single Sign On for all services is coming soon."
},
@ -287,7 +287,7 @@
"check": "Check",
"one_more_restart": "One more restart to apply your security certificates.",
"create_master_account": "Create master account",
"enter_nickname_and_password": "Enter a nickname and strong password",
"enter_username_and_password": "Enter username and strong password",
"finish": "Everything is initialized",
"checks": "Checks have been completed \n{} out of {}"
},

View File

@ -20,7 +20,7 @@
"connect": "Подключить",
"domain": "Домен",
"saving": "Сохранение…",
"nickname": "Никнейм",
"username": "Имя пользователя",
"loading": "Загрузка…",
"later": "Пропустить и настроить потом",
"connect_to_existing": "Подключиться к существующему серверу",
@ -258,7 +258,7 @@
"could_not_create_user": "Не удалось создать пользователя",
"could_not_delete_user": "Не удалось стереть пользователя",
"could_not_add_ssh_key": "Не удалось создать SSH ключить",
"username_rule": "Может содержать только маленькие латинские буквы, цифры, подчёркивания, не может начинаться с цифр",
"username_rule": "Имя может содержать только маленькие латинские буквы, цифры, подчёркивания, не может начинаться с цифр",
"email_login": "Авторизация по Email",
"no_ssh_notice": "Для этого пользователя созданы только SSH и Email аккаунты. Единая авторизация для всех сервисов ещё не реализована."
},
@ -287,7 +287,7 @@
"check": "Проверка",
"one_more_restart": "Сейчас будет дополнительная перезагрузка для активации сертификатов безопасности.",
"create_master_account": "Создайте главную учетную запись",
"enter_nickname_and_password": "Введите никнейм и сложный пароль",
"enter_username_and_password": "Введите имя пользователя и сложный пароль",
"finish": "Всё инициализировано",
"checks": "Проверок выполнено: \n{} / {}"
},

View File

@ -415,23 +415,23 @@ class InitializingPage extends StatelessWidget {
BrandText.h2('initializing.create_master_account'.tr()),
const SizedBox(height: 10),
BrandText.body2(
'initializing.enter_nickname_and_password'.tr(),
'initializing.enter_username_and_password'.tr(),
),
const Spacer(),
if (formCubitState.isErrorShown)
Text(
'users.username_rule'.tr(),
style: TextStyle(
color: Theme.of(context).colorScheme.error,
),
),
const SizedBox(height: 10),
Text(
'users.username_rule'.tr(),
style: TextStyle(
color: Theme.of(context).colorScheme.error,
),
),
const SizedBox(height: 10),
CubitFormTextField(
formFieldCubit: context.read<RootUserFormCubit>().userName,
textAlign: TextAlign.center,
scrollPadding: const EdgeInsets.only(bottom: 70),
decoration: InputDecoration(
hintText: 'basis.nickname'.tr(),
hintText: 'basis.username'.tr(),
),
),
const SizedBox(height: 10),