From e6afa7fb9a3025f077a97502121a2e0a3adf9b20 Mon Sep 17 00:00:00 2001 From: Rashed <38612386+rashedswen@users.noreply.github.com> Date: Tue, 28 Feb 2023 21:20:49 +0300 Subject: [PATCH 1/6] extract most strings to strings.xml and add arabic language to strings.xml file --- .idea/compiler.xml | 2 +- .idea/inspectionProfiles/Project_Default.xml | 3 + .idea/misc.xml | 2 +- .../amethyst/service/relays/Relay.kt | 2 +- .../amethyst/ui/actions/ImageSaver.kt | 9 +- .../amethyst/ui/actions/ImageUploader.kt | 7 +- .../amethyst/ui/actions/NewChannelView.kt | 13 +- .../amethyst/ui/actions/NewPostView.kt | 11 +- .../amethyst/ui/actions/NewPostViewModel.kt | 6 +- .../amethyst/ui/actions/NewRelayListView.kt | 53 ++++-- .../ui/actions/NewUserMetadataView.kt | 28 +-- .../amethyst/ui/actions/SaveToGallery.kt | 9 +- .../amethyst/ui/actions/UploadFromGallery.kt | 10 +- .../amethyst/ui/buttons/NewChannelButton.kt | 4 +- .../ui/components/ExpandableRichTextViewer.kt | 4 +- .../amethyst/ui/components/InvoicePreview.kt | 13 +- .../amethyst/ui/components/InvoiceRequest.kt | 11 +- .../components/TranslateableRichTextViewer.kt | 23 ++- .../amethyst/ui/components/UrlPreview.kt | 6 +- .../amethyst/ui/components/UrlPreviewCard.kt | 4 +- .../ui/components/ZoomableAsyncImage.kt | 18 +- .../amethyst/ui/navigation/AppTopBar.kt | 3 +- .../amethyst/ui/navigation/DrawerContent.kt | 18 +- .../amethyst/ui/note/BlankNote.kt | 8 +- .../amethyst/ui/note/ChatroomCompose.kt | 16 +- .../ui/note/ChatroomMessageCompose.kt | 30 +-- .../amethyst/ui/note/NoteCompose.kt | 43 ++--- .../amethyst/ui/note/ReactionsRow.kt | 29 +-- .../amethyst/ui/note/RelayCompose.kt | 13 +- .../amethyst/ui/note/ReplyInformation.kt | 16 +- .../amethyst/ui/note/TimeAgoFormatter.kt | 18 +- .../amethyst/ui/note/ZapNoteCompose.kt | 5 +- .../amethyst/ui/note/ZapSetCompose.kt | 8 +- .../amethyst/ui/qrcode/ShowQRDialog.kt | 12 +- .../amethyst/ui/screen/FeedView.kt | 12 +- .../amethyst/ui/screen/ThreadFeedView.kt | 5 +- .../ui/screen/loggedIn/AccountViewModel.kt | 3 +- .../ui/screen/loggedIn/ChannelScreen.kt | 16 +- .../ui/screen/loggedIn/ChatroomListScreen.kt | 6 +- .../ui/screen/loggedIn/ChatroomScreen.kt | 6 +- .../ui/screen/loggedIn/FiltersScreen.kt | 4 +- .../amethyst/ui/screen/loggedIn/HomeScreen.kt | 6 +- .../ui/screen/loggedIn/ProfileScreen.kt | 59 +++--- .../ui/screen/loggedIn/SearchScreen.kt | 5 +- .../ui/screen/loggedOff/LoginScreen.kt | 28 +-- app/src/main/res/values-ar/strings.xml | 173 +++++++++++++++++ app/src/main/res/values/strings.xml | 175 +++++++++++++++++- 47 files changed, 714 insertions(+), 241 deletions(-) create mode 100644 app/src/main/res/values-ar/strings.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml index fb7f4a8a4..b589d56e9 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index ed76bea38..d7cb58b81 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -5,6 +5,9 @@