Merge pull request #809 from pangeachat/copyeditting

copyeditting and updated order of main menu options
pull/1428/head
ggurdin 1 year ago committed by GitHub
commit 04b3fd6840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2563,7 +2563,7 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"interactiveTranslatorAllowedDesc": "Students can choose whether to use translation assistance in space group chats in Main Menu > My Learning Settings.", "interactiveTranslatorAllowedDesc": "Students can choose whether to use translation assistance in space group chats in Main Menu > Learning Settings.",
"@interactiveTranslatorAllowedDesc": { "@interactiveTranslatorAllowedDesc": {
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
@ -3030,9 +3030,9 @@
"errorDisableLanguageAssistanceClassDesc": "Translation assistance and grammar assistance are turned off for the space that this chat is in.", "errorDisableLanguageAssistanceClassDesc": "Translation assistance and grammar assistance are turned off for the space that this chat is in.",
"itIsDisabled": "Interactive Translation is disabled", "itIsDisabled": "Interactive Translation is disabled",
"igcIsDisabled": "Interactive Grammar Checking is disabled", "igcIsDisabled": "Interactive Grammar Checking is disabled",
"goToLearningSettings": "Go to My Learning Settings", "goToLearningSettings": "Go to Learning Settings",
"error405Title": "Languages not set", "error405Title": "Languages not set",
"error405Desc": "Please set your languages in Main Menu > My Learning Settings.", "error405Desc": "Please set your languages in Main Menu > Learning Settings.",
"loginOrSignup": "Sign in with", "loginOrSignup": "Sign in with",
"@loginOrSignup": { "@loginOrSignup": {
"type": "text", "type": "text",
@ -3095,7 +3095,7 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"learningSettings": "My Learning Settings", "learningSettings": "Learning settings",
"classNameRequired": "Please enter a space name", "classNameRequired": "Please enter a space name",
"@classNameRequired": { "@classNameRequired": {
"type": "text", "type": "text",

@ -41,44 +41,41 @@ class ClientChooserButton extends StatelessWidget {
], ],
), ),
), ),
PopupMenuItem( // PopupMenuItem(
value: SettingsAction.learning, // value: SettingsAction.newGroup,
child: Row( // child: Row(
children: [ // children: [
const Icon(Icons.psychology_outlined), // const Icon(Icons.group_add_outlined),
const SizedBox(width: 18), // const SizedBox(width: 18),
Expanded(child: Text(L10n.of(context)!.learningSettings)), // Text(L10n.of(context)!.createGroup),
], // ],
), // ),
), // ),
// Pangea# // Pangea#
PopupMenuItem( PopupMenuItem(
value: SettingsAction.newGroup, value: SettingsAction.newSpace,
child: Row( child: Row(
children: [ children: [
const Icon(Icons.group_add_outlined), const Icon(Icons.workspaces_outlined),
const SizedBox(width: 18), const SizedBox(width: 18),
// #Pangea // #Pangea
Expanded(child: Text(L10n.of(context)!.createGroup)), Text(L10n.of(context)!.createNewSpace),
// Text(L10n.of(context)!.createGroup), // Text(L10n.of(context)!.createNewSpace),
// Pangea# // Pangea#
], ],
), ),
), ),
// #Pangea
PopupMenuItem( PopupMenuItem(
value: SettingsAction.newSpace, value: SettingsAction.learning,
child: Row( child: Row(
children: [ children: [
const Icon(Icons.workspaces_outlined), const Icon(Icons.psychology_outlined),
const SizedBox(width: 18), const SizedBox(width: 18),
// #Pangea Expanded(child: Text(L10n.of(context)!.learningSettings)),
Text(L10n.of(context)!.createNewSpace),
// Text(L10n.of(context)!.createNewSpace),
// Pangea#
], ],
), ),
), ),
// #Pangea
// PopupMenuItem( // PopupMenuItem(
// value: SettingsAction.setStatus, // value: SettingsAction.setStatus,
// child: Row( // child: Row(
@ -306,9 +303,11 @@ class ClientChooserButton extends StatelessWidget {
if (consent != OkCancelResult.ok) return; if (consent != OkCancelResult.ok) return;
context.go('/rooms/settings/addaccount'); context.go('/rooms/settings/addaccount');
break; break;
case SettingsAction.newGroup: // #Pangea
context.go('/rooms/newgroup'); // case SettingsAction.newGroup:
break; // context.go('/rooms/newgroup');
// break;
// Pangea#
case SettingsAction.newSpace: case SettingsAction.newSpace:
controller.createNewSpace(); controller.createNewSpace();
break; break;
@ -416,7 +415,9 @@ class ClientChooserButton extends StatelessWidget {
enum SettingsAction { enum SettingsAction {
addAccount, addAccount,
newGroup, // #Pangea
// newGroup,
// Pangea#
newSpace, newSpace,
// #Pangea // #Pangea
// setStatus, // setStatus,

@ -24,7 +24,10 @@ class NewGroupView extends StatelessWidget {
onPressed: controller.loading ? null : Navigator.of(context).pop, onPressed: controller.loading ? null : Navigator.of(context).pop,
), ),
), ),
title: Text(L10n.of(context)!.createGroup), // #Pangea
// title: Text(L10n.of(context)!.createGroup),
title: Text(L10n.of(context)!.newChat),
// Pangea#
), ),
body: MaxWidthBody( body: MaxWidthBody(
child: Column( child: Column(

Loading…
Cancel
Save