From 3a7227b77b09c5d8d07725e60623367e2810074f Mon Sep 17 00:00:00 2001 From: bjoern Date: Mon, 19 Sep 2022 10:01:43 +0200 Subject: [PATCH] reword "Webxdc content" (#2377) * reword "Webxdc [content]" to "Webxdc Apps" adding "App" to the term makes things much clearer to the user, was "Webxdc" is about. eg. on iOS, we have an app selector meanwhile, calling that _just_ "Webxdc" in the menu or in the title makes it pretty unclear to the user what this is about. same for the tab "Webxdc" on desktop or the default description in the summary. otoh, calling it _only_ "Apps" (as now), may also raise false expectations and may be mixed with "normal" apps. so, "Webxdc App" seems to be a good approach. there is also the term "Mini App" [^1], we could also go for that, but this is a broader discussion as this would give up the term "Webxdc" partly. in any case, if there is few space in the UI, it seems to be okay to abbreviate with just "App" or "Apps" as needed, if it is otherwise clear that the thing is a "Webxdc App" or "Mini App". [^1]: the term "Mini App" is aleady known for similar types of apps (some "small app" running in a "super app") cmp. https://www.w3.org/TR/mini-app-white-paper/#what-is-miniapp . of course, our "Webxdc Apps" are not compatible with other "Mini Apps" however, this is also not the case between "Mini Apps" of other vendors which also have different focuses. so "Mini App" seems to be a broader term and does not imply compatibiliy. * use term 'Private Apps' for webxdc content * add some translator hints --- res/values/strings.xml | 7 ++++++- src/org/thoughtcrime/securesms/ConversationItem.java | 2 +- .../thoughtcrime/securesms/ProfileDocumentsAdapter.java | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 9f9694c90..d5cb698fd 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -155,6 +155,11 @@ Images and Videos File Files + + Private App + + Private Apps + Files and Private Apps Unknown Green @@ -445,7 +450,7 @@ Images shared in this chat will appear here. Videos shared in this chat will appear here. Audio files and voice messages shared in this chat will appear here. - Webxdc content shared in this chat will appear here. + Private apps shared in this chat will appear here. Media Preview Send Message diff --git a/src/org/thoughtcrime/securesms/ConversationItem.java b/src/org/thoughtcrime/securesms/ConversationItem.java index b79ad47ad..414ba21fe 100644 --- a/src/org/thoughtcrime/securesms/ConversationItem.java +++ b/src/org/thoughtcrime/securesms/ConversationItem.java @@ -469,7 +469,7 @@ public class ConversationItem extends BaseConversationItem if (documentViewStub.resolved()) documentViewStub.get().setVisibility(View.GONE); if (stickerStub.resolved()) stickerStub.get().setVisibility(View.GONE); - webxdcViewStub.get().setWebxdc(messageRecord, "Webxdc"); + webxdcViewStub.get().setWebxdc(messageRecord, context.getString(R.string.webxdc_app)); webxdcViewStub.get().setWebxdcClickListener(new ThumbnailClickListener()); webxdcViewStub.get().setOnLongClickListener(passthroughClickListener); diff --git a/src/org/thoughtcrime/securesms/ProfileDocumentsAdapter.java b/src/org/thoughtcrime/securesms/ProfileDocumentsAdapter.java index 8341d5c16..6ebedaa0d 100644 --- a/src/org/thoughtcrime/securesms/ProfileDocumentsAdapter.java +++ b/src/org/thoughtcrime/securesms/ProfileDocumentsAdapter.java @@ -116,7 +116,7 @@ class ProfileDocumentsAdapter extends StickyHeaderGridAdapter { viewHolder.documentView.setVisibility(View.GONE); viewHolder.webxdcView.setVisibility(View.VISIBLE); - viewHolder.webxdcView.setWebxdc(dcMsg, "Webxdc"); + viewHolder.webxdcView.setWebxdc(dcMsg, context.getString(R.string.webxdc_app)); viewHolder.webxdcView.setOnClickListener(view -> itemClickListener.onMediaClicked(dcMsg)); viewHolder.webxdcView.setOnLongClickListener(view -> { itemClickListener.onMediaLongClicked(dcMsg); return true; }); viewHolder.itemView.setOnClickListener(view -> itemClickListener.onMediaClicked(dcMsg));