Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: update translation (#7666)

Lucase2ff12415c23
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/setting/settings_popup_menu.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/setting/settings_popup_menu.dart
index cbbda8362a..521fca4fdf 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/setting/settings_popup_menu.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/setting/settings_popup_menu.dart
@@ -16,6 +16,7 @@ enum _MobileSettingsPopupMenuItem {
members,
trash,
help,
+ helpAndDocumentation,
}
class HomePageSettingsPopupMenu extends StatelessWidget {
@@ -62,10 +63,16 @@ class HomePageSettingsPopupMenu extends StatelessWidget {
text: LocaleKeys.settings_popupMenuItem_trash.tr(),
),
const PopupMenuDivider(height: 0.5),
+ _buildItem(
+ value: _MobileSettingsPopupMenuItem.helpAndDocumentation,
+ svg: FlowySvgs.help_and_documentation_s,
+ text: LocaleKeys.settings_popupMenuItem_helpAndDocumentation.tr(),
+ ),
+ const PopupMenuDivider(height: 0.5),
_buildItem(
value: _MobileSettingsPopupMenuItem.help,
svg: FlowySvgs.message_support_s,
- text: LocaleKeys.settings_popupMenuItem_helpAndSupport.tr(),
+ text: LocaleKeys.settings_popupMenuItem_getSupport.tr(),
),
],
onSelected: (_MobileSettingsPopupMenuItem value) {
@@ -82,6 +89,9 @@ class HomePageSettingsPopupMenu extends StatelessWidget {
case _MobileSettingsPopupMenuItem.help:
_openHelpPage(context);
break;
+ case _MobileSettingsPopupMenuItem.helpAndDocumentation:
+ _openHelpAndDocumentationPage(context);
+ break;
}
},
child: const Padding(
@@ -123,6 +133,10 @@ class HomePageSettingsPopupMenu extends StatelessWidget {
void _openSettingsPage(BuildContext context) {
context.push(MobileHomeSettingPage.routeName);
}
+
+ void _openHelpAndDocumentationPage(BuildContext context) {
+ afLaunchUrlString('https://appflowy.com/guide');
+ }
}
class _PopupButton extends StatelessWidget {
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart
index d666e606f6..e3117c7f86 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart
@@ -86,7 +86,7 @@ class _BubbleActionListState extends State<BubbleActionList> {
),
buildChild: (controller) {
return FlowyTooltip(
- message: LocaleKeys.questionBubble_help.tr(),
+ message: LocaleKeys.questionBubble_getSupport.tr(),
child: MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
@@ -121,22 +121,22 @@ class _BubbleActionListState extends State<BubbleActionList> {
if (action is BubbleActionWrapper) {
switch (action.inner) {
case BubbleAction.whatsNews:
- afLaunchUrlString("https://www.appflowy.io/what-is-new");
+ afLaunchUrlString('https://www.appflowy.io/what-is-new');
break;
- case BubbleAction.help:
- afLaunchUrlString("https://discord.gg/9Q2xaN37tV");
+ case BubbleAction.getSupport:
+ afLaunchUrlString('https://discord.gg/9Q2xaN37tV');
break;
case BubbleAction.debug:
_DebugToast().show();
break;
case BubbleAction.shortcuts:
afLaunchUrlString(
- "https://docs.appflowy.io/docs/appflowy/product/shortcuts",
+ 'https://docs.appflowy.io/docs/appflowy/product/shortcuts',
);
break;
case BubbleAction.markdown:
afLaunchUrlString(
- "https://docs.appflowy.io/docs/appflowy/product/markdown",
+ 'https://docs.appflowy.io/docs/appflowy/product/markdown',
);
break;
case BubbleAction.github:
@@ -144,6 +144,11 @@ class _BubbleActionListState extends State<BubbleActionList> {
'https://github.com/AppFlowy-IO/AppFlowy/issues/new/choose',
);
break;
+ case BubbleAction.helpAndDocumentation:
+ afLaunchUrlString(
+ 'https://appflowy.com/guide',
+ );
+ break;
}
}
@@ -155,7 +160,7 @@ class _BubbleActionListState extends State<BubbleActionList> {
class _DebugToast {
void show() async {
- String debugInfo = "";
+ String debugInfo = '';
debugInfo += await _getDeviceInfo();
debugInfo += await _getDocumentPath();
await Clipboard.setData(ClipboardData(text: debugInfo));
@@ -168,20 +173,21 @@ class _DebugToast {
final deviceInfo = await deviceInfoPlugin.deviceInfo;
return deviceInfo.data.entries
- .fold('', (prev, el) => "$prev${el.key}: ${el.value}\n");
+ .fold('', (prev, el) => '$prev${el.key}: ${el.value}\n');
}
Future<String> _getDocumentPath() async {
return appFlowyApplicationDataDirectory().then((directory) {
final path = directory.path.toString();
- return "Document: $path\n";
+ return 'Document: $path\n';
});
}
}
enum BubbleAction {
whatsNews,
- help,
+ helpAndDocumentation,
+ getSupport,
debug,
shortcuts,
markdown,
@@ -204,8 +210,10 @@ extension QuestionBubbleExtension on BubbleAction {
switch (this) {
case BubbleAction.whatsNews:
return LocaleKeys.questionBubble_whatsNew.tr();
- case BubbleAction.help:
- return LocaleKeys.questionBubble_help.tr();
+ case BubbleAction.helpAndDocumentation:
+ return LocaleKeys.questionBubble_helpAndDocumentation.tr();
+ case BubbleAction.getSupport:
+ return LocaleKeys.questionBubble_getSupport.tr();
case BubbleAction.debug:
return LocaleKeys.questionBubble_debug_name.tr();
case BubbleAction.shortcuts:
@@ -221,7 +229,12 @@ extension QuestionBubbleExtension on BubbleAction {
switch (this) {
case BubbleAction.whatsNews:
return const FlowySvg(FlowySvgs.star_s);
- case BubbleAction.help:
+ case BubbleAction.helpAndDocumentation:
+ return const FlowySvg(
+ FlowySvgs.help_and_documentation_s,
+ size: Size.square(16.0),
+ );
+ case BubbleAction.getSupport:
return const FlowySvg(FlowySvgs.message_support_s);
case BubbleAction.debug:
return const FlowySvg(FlowySvgs.debug_s);
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/social_media_section.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/social_media_section.dart
index 43b3ab9b62..8b58557455 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/social_media_section.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/social_media_section.dart
@@ -25,18 +25,13 @@ class SocialMediaSection extends CustomActionCell {
action: SocialMediaWrapper(social),
itemHeight: ActionListSizes.itemHeight,
onSelected: (action) {
- switch (action.inner) {
- case SocialMedia.reddit:
- afLaunchUrlString(
- 'https://www.reddit.com/r/AppFlowy/',
- );
- case SocialMedia.twitter:
- afLaunchUrlString(
- 'https://x.com/appflowy',
- );
- case SocialMedia.forum:
- afLaunchUrlString('https://forum.appflowy.io/');
- }
+ final url = switch (action.inner) {
+ SocialMedia.reddit => 'https://www.reddit.com/r/AppFlowy/',
+ SocialMedia.twitter => 'https://x.com/appflowy',
+ SocialMedia.forum => 'https://forum.appflowy.com/',
+ };
+
+ afLaunchUrlString(url);
},
);
},
@@ -85,11 +80,11 @@ extension QuestionBubbleExtension on SocialMedia {
String get name {
switch (this) {
case SocialMedia.forum:
- return "Community Forum";
+ return 'Community Forum';
case SocialMedia.twitter:
- return "Twitter – @appflowy";
+ return 'Twitter – @appflowy';
case SocialMedia.reddit:
- return "Reddit – r/appflowy";
+ return 'Reddit – r/appflowy';
}
}
diff --git a/frontend/resources/flowy_icons/16x/help_and_documentation.svg b/frontend/resources/flowy_icons/16x/help_and_documentation.svg
new file mode 100644
index 0000000000..e4c68c2583
--- /dev/null
+++ b/frontend/resources/flowy_icons/16x/help_and_documentation.svg
@@ -0,0 +1,3 @@
+<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M18 8.8V10C18 13.7712 18 15.6569 16.8284 16.8284C15.6569 18 13.7712 18 10 18C6.22876 18 4.34314 18 3.17158 16.8284C2 15.6569 2 13.7712 2 10C2 6.22876 2 4.34314 3.17158 3.17158C4.34314 2 6.22876 2 10 2H11.2M6 11H13M6 14H10M13 4.5C13 5.16304 13.2634 5.79893 13.7322 6.26777C14.2011 6.73661 14.837 7 15.5 7C16.163 7 16.7989 6.73661 17.2678 6.26777C17.7366 5.79893 18 5.16304 18 4.5C18 3.83696 17.7366 3.20107 17.2678 2.73223C16.7989 2.26339 16.163 2 15.5 2C14.837 2 14.2011 2.26339 13.7322 2.73223C13.2634 3.20107 13 3.83696 13 4.5Z" stroke="#21232A" stroke-width="1.25" stroke-linecap="round"/>
+</svg>
diff --git a/frontend/resources/translations/el-GR.json b/frontend/resources/translations/el-GR.json
index 34f43b87ac..6d6524a8bf 100644
--- a/frontend/resources/translations/el-GR.json
+++ b/frontend/resources/translations/el-GR.json
@@ -723,7 +723,7 @@
},
"url": {
"launch": "Άνοιγμα συνδέσμου στο πρόγραμμα περιήγησης",
- "copy": "Copy link to clipboard",
+ "copy": "Copied link to clipboard",
"textFieldHint": "Enter a URL",
"copiedNotification": "Copied to clipboard!"
},
@@ -1403,4 +1403,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.json
index e0c735e2ff..f498538a1a 100644
--- a/frontend/resources/translations/en.json
+++ b/frontend/resources/translations/en.json
@@ -307,7 +307,8 @@
"questionBubble": {
"shortcuts": "Shortcuts",
"whatsNew": "What's new?",
- "help": "Help & Support",
+ "helpAndDocumentation": "Help & documentation",
+ "getSupport": "Get support",
"markdown": "Markdown",
"debug": {
"name": "Debug Info",
@@ -507,7 +508,8 @@
"settings": "Settings",
"members": "Members",
"trash": "Trash",
- "helpAndSupport": "Help & Support"
+ "helpAndDocumentation": "Help & documentation",
+ "getSupport": "Get Support"
},
"sites": {
"title": "Sites",
@@ -1645,7 +1647,7 @@
},
"url": {
"launch": "Open link in browser",
- "copy": "Copy link to clipboard",
+ "copy": "Copied link to clipboard",
"textFieldHint": "Enter a URL",
"copiedNotification": "Copied to clipboard!"
},