Skip to content

Commit

Permalink
TW-1437: Remove subtitle for chat button in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev authored and hoangdat committed Feb 1, 2024
1 parent ebd4d7d commit 93fb364
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 18 deletions.
6 changes: 2 additions & 4 deletions assets/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2864,8 +2864,6 @@
"@editProfileDescriptions": {},
"workIdentitiesInfo": "WORK IDENTITIES INFO",
"@workIdentitiesInfo": {},
"editWorkIdentitiesDescriptions": "Edit your work identity settings such as Matrix ID, email or company name.",
"@editWorkIdentitiesDescriptions": {},
"copiedMatrixIdToClipboard": "Copied Matrix ID to clipboard.",
"@copiedMatrixIdToClipboard": {},
"changeProfileAvatar": "Change profile avatar",
Expand Down Expand Up @@ -2969,7 +2967,6 @@
"groupName": "Group name",
"descriptionHelper": "You can provide an optional description for your group.",
"groupNameCannotBeEmpty": "Group name cannot be empty",
"sharedMediaAndLinks": "Shared media and links",
"unpinAllMessages": "Unpin all messages",
"pinnedMessagesTooltip": "Pinned messages",
"jumpToMessage": "Jump to message",
Expand Down Expand Up @@ -3004,5 +3001,6 @@
}
}
},
"twakeChatUser": "Twake Chat User"
"twakeChatUser": "Twake Chat User",
"sharedMediaAndLinks": "Shared media and links"
}
2 changes: 0 additions & 2 deletions assets/l10n/intl_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2842,8 +2842,6 @@
},
"blankChatTitle": "Choisissez une discussion ou appuyez sur #EditIcon# pour en créer une.",
"@blankChatTitle": {},
"editWorkIdentitiesDescriptions": "Modifiez les paramètres de votre identité professionnelle, tels que l'identifiant Matrix, l'adresse électronique ou le nom de l'entreprise.",
"@editWorkIdentitiesDescriptions": {},
"links": "Liens",
"@links": {},
"downloadImageSuccess": "Image sauvegardée dans Images",
Expand Down
4 changes: 0 additions & 4 deletions assets/l10n/intl_ru.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2830,8 +2830,6 @@
"@select": {},
"blankChatTitle": "Выберите чат или нажмите на #EditIcon#, чтобы создать его.",
"@blankChatTitle": {},
"editWorkIdentitiesDescriptions": "Изменяйте свои идентификаторы, такие как Matrix ID, адрес электронной почты или название компании.",
"@editWorkIdentitiesDescriptions": {},
"links": "Ссылки",
"@links": {},
"downloadImageSuccess": "Изображение сохранено",
Expand Down Expand Up @@ -3037,8 +3035,6 @@
"@descriptionHelper": {},
"groupNameCannotBeEmpty": "Добавьте название чата",
"@groupNameCannotBeEmpty": {},
"sharedMediaAndFiles": "Ссылки и медиа-файлы",
"@sharedMediaAndFiles": {},
"unpinAllMessages": "Открепить все сообщения",
"@unpinAllMessages": {},
"pinnedMessagesTooltip": "Закрепленные сообщения",
Expand Down
2 changes: 0 additions & 2 deletions assets/l10n/intl_vi.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2829,8 +2829,6 @@
"@displayName": {},
"select": "Chọn",
"@select": {},
"editWorkIdentitiesDescriptions": "Chỉnh sửa định danh công việc.",
"@editWorkIdentitiesDescriptions": {},
"links": "Liên kết",
"@links": {},
"downloadImageSuccess": "Lưu trữ hình ảnh",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:fluffychat/pages/settings_dashboard/settings/settings_app_bar.da
import 'package:fluffychat/pages/settings_dashboard/settings_app_language/settings_app_language.dart';
import 'package:fluffychat/pages/settings_dashboard/settings_app_language/settings_app_language_view_style.dart';
import 'package:fluffychat/presentation/extensions/localizations/locale_extension.dart';
import 'package:fluffychat/utils/string_color.dart';
import 'package:fluffychat/utils/extension/string_extension.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:linagora_design_flutter/linagora_design_flutter.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/enum/settings/settings_enum.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ enum SettingEnum {
String subtitleSettings(BuildContext context) {
switch (this) {
case SettingEnum.chatSettings:
return L10n.of(context)!.settingsChatSubtitle;
return '';
case SettingEnum.privacyAndSecurity:
return L10n.of(context)!.settingsPrivacyAndSecuritySubtitle;
case SettingEnum.notificationAndSounds:
Expand Down
5 changes: 5 additions & 0 deletions lib/utils/extension/string_extension.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extension StringExtension on String {
String capitalize() {
return "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
}
}
4 changes: 0 additions & 4 deletions lib/utils/string_color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,4 @@ extension StringColor on String {
_colorCache[this] ??= {};
return _colorCache[this]![0.5] ??= _getColorLight(0.5);
}

String capitalize() {
return "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
}
}

0 comments on commit 93fb364

Please sign in to comment.