Commit Graph

6055 Commits

Author SHA1 Message Date
Weblate Translation Memory e3ca89fbba fix(l10n): Update Czech translations
Currently translated at 100.0% (28 of 28 strings)

Translation: Pachli/Core/Preferences : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/corepreferences-main/cs/
2024-10-24 22:47:26 +02:00
LibreTranslate 1b6bfb4305 fix(l10n): Update Czech translations
Currently translated at 100.0% (28 of 28 strings)

Translation: Pachli/Core/Preferences : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/corepreferences-main/cs/
2024-10-24 22:47:26 +02:00
Weblate Translation Memory f6c4f86806 fix(l10n): Update Catalan translations
Currently translated at 100.0% (28 of 28 strings)

Translation: Pachli/Core/Preferences : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/corepreferences-main/ca/
2024-10-24 22:47:26 +02:00
LibreTranslate e84fbfb256 fix(l10n): Update Catalan translations
Currently translated at 100.0% (28 of 28 strings)

Translation: Pachli/Core/Preferences : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/corepreferences-main/ca/
2024-10-24 22:47:26 +02:00
Weblate Translation Memory 8442b6cc58 fix(l10n): Update Bulgarian translations
Currently translated at 50.0% (14 of 28 strings)

Translation: Pachli/Core/Preferences : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/corepreferences-main/bg/
2024-10-24 22:47:26 +02:00
Weblate Translation Memory fdff828c46 fix(l10n): Update Arabic translations
Currently translated at 100.0% (28 of 28 strings)

Translation: Pachli/Core/Preferences : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/corepreferences-main/ar/
2024-10-24 22:47:26 +02:00
LibreTranslate 8f4dea5618 fix(l10n): Update Arabic translations
Currently translated at 100.0% (28 of 28 strings)

Translation: Pachli/Core/Preferences : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/corepreferences-main/ar/
2024-10-24 22:47:26 +02:00
Kalle Kniivilä 87c58a8a4e fix(l10n): Update Finnish translations
Currently translated at 100.0% (726 of 726 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/fi/
2024-10-24 22:47:26 +02:00
Nik Clayton b9459d558b
feat: Show share sheet when long clicking links/hashtags/mentions (#1047)
This makes it easier to share links from a regular timeline (where text
is not selectable).

Listen for long clicks on spans by launching a delayed runnable that
waits `getLongPressTimeout()` ms before sending an intent that shows the
share sheet for the clicked span.

If the span's link is not the same as the text (e.g., it's a mention or
a hashtag) then the text of the span is also sent as the title to show
in the share sheet.

While I'm here, the official LinkMovementMethodCompat does the same job
as NoTrailingSpaceLinkMovementMethod, so delete the latter code in
favour of the former.

Fixes #695
2024-10-24 22:35:26 +02:00
Nik Clayton e7068da7e5
feat: Show text counter on caption dialog, request focus (#1045)
Previous layout didn't enable the character counter for entered text, so
it was difficult for the user to see how much they had used.

Fix that. To get the layout to play nicely switch to a ConstraintLayout
with a chain to split the dialog roughly 50/50 between the image and the
caption views.

While I'm here:

- Remove the margins around the image, so it's clearer, and is more
consistent with the "set focus" dialog.
- Set focus on the description immediately, so the keyboard pops up.
- Remove focusability from the image, since the user shouldn't be able
to interact with it.
2024-10-24 15:21:16 +02:00
Juan M Sevilla 8a649393d9 fix(l10n): Update Spanish translations
Currently translated at 100.0% (724 of 724 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/es/
2024-10-23 16:00:27 +02:00
Juan M Sevilla 0ea7ad5601 fix(l10n): Update Spanish translations
Currently translated at 100.0% (17 of 17 strings)

Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/es/
2024-10-23 16:00:27 +02:00
Kalle Kniivilä 41595d63f9 fix(l10n): Update Finnish translations
Currently translated at 100.0% (724 of 724 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/fi/
2024-10-23 16:00:27 +02:00
Anonymous 33e1881dd5 fix(l10n): Update Chinese (Simplified Han script) translations
Currently translated at 71.7% (518 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/zh_Hans/
2024-10-23 16:00:27 +02:00
Anonymous bef1d47982 fix(l10n): Update Vietnamese translations
Currently translated at 71.7% (518 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/vi/
2024-10-23 16:00:27 +02:00
Anonymous 0027de1319 fix(l10n): Update Ukrainian translations
Currently translated at 71.3% (515 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/uk/
2024-10-23 16:00:27 +02:00
Anonymous 371f53a50e fix(l10n): Update Turkish translations
Currently translated at 71.4% (516 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/tr/
2024-10-23 16:00:27 +02:00
Anonymous 5f44989b90 fix(l10n): Update Swedish translations
Currently translated at 76.3% (551 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/sv/
2024-10-23 16:00:27 +02:00
Anonymous de7f188479 fix(l10n): Update Portuguese (Brazil) translations
Currently translated at 76.0% (549 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/pt_BR/
2024-10-23 16:00:27 +02:00
Anonymous 8fa4e271e7 fix(l10n): Update Occitan translations
Currently translated at 71.3% (515 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/oc/
2024-10-23 16:00:27 +02:00
Anonymous 1c64500a09 fix(l10n): Update Dutch translations
Currently translated at 76.7% (554 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/nl/
2024-10-23 16:00:27 +02:00
Anonymous 3d407cbbdc fix(l10n): Update Norwegian Bokmål translations
Currently translated at 99.5% (719 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/nb_NO/
2024-10-23 16:00:27 +02:00
Anonymous 4ca7540850 fix(l10n): Update Japanese translations
Currently translated at 76.0% (549 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/ja/
2024-10-23 16:00:27 +02:00
Anonymous e35d9d8791 fix(l10n): Update Italian translations
Currently translated at 75.3% (544 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/it/
2024-10-23 16:00:27 +02:00
Anonymous 040f8237d5 fix(l10n): Update Icelandic translations
Currently translated at 71.1% (514 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/is/
2024-10-23 16:00:27 +02:00
Anonymous f7114432b9 fix(l10n): Update Hungarian translations
Currently translated at 71.1% (514 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/hu/
2024-10-23 16:00:27 +02:00
Anonymous 737dad1acb fix(l10n): Update Galician translations
Currently translated at 99.5% (719 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/gl/
2024-10-23 16:00:27 +02:00
Anonymous 3bf80165be fix(l10n): Update Gaelic translations
Currently translated at 71.3% (515 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/gd/
2024-10-23 16:00:27 +02:00
Anonymous 071e58ad04 fix(l10n): Update French translations
Currently translated at 75.0% (542 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/fr/
2024-10-23 16:00:27 +02:00
Anonymous 37be6fa7cb fix(l10n): Update Finnish translations
Currently translated at 99.8% (721 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/fi/
2024-10-23 16:00:27 +02:00
Anonymous ad7e7b10d2 fix(l10n): Update Persian translations
Currently translated at 71.7% (518 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/fa/
2024-10-23 16:00:27 +02:00
Anonymous 009076b2cd fix(l10n): Update Spanish translations
Currently translated at 99.8% (721 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/es/
2024-10-23 16:00:27 +02:00
Anonymous 40df2cc610 fix(l10n): Update German translations
Currently translated at 76.0% (549 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/de/
2024-10-23 16:00:27 +02:00
Anonymous e17bc558b6 fix(l10n): Update Welsh translations
Currently translated at 71.7% (518 of 722 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/cy/
2024-10-23 16:00:27 +02:00
Nik Clayton 5a35009e35
change: Remove unused code (#1044) 2024-10-23 15:16:07 +02:00
Nik Clayton 2bdab8bec9
fix: Make "Open boost author" open the correct profile (#1043)
Previous code passed the actionable status, so "Open boost author"
actually opened the account that posted the original status.

Pass the status representing the boost, so the correct account is
opened.

Fixes #1042
2024-10-23 13:56:47 +02:00
Nik Clayton 90bb85ba00
feat: Show "copy" button for links/hashtags/mentions in accessibility dialogs (#1041)
Users report that copying items can be difficult using Talkback.

Make this easier in the dialogs that appear for links, mentions, and
hashtags by using a dedicated adapter that displays a "Copy" button at
the end of each item.

Fixes #1038
2024-10-23 13:39:51 +02:00
Nik Clayton a012f94c94
fix: Show links, mentions, and hashtag accessibility actions for notifications (#1040)
Previous code checked the item was a `StatusViewData`, which is not true
for notifications, and meant the links, mentions, and hashtags
accessibility features were not available.

Change this to `IStatusViewData`, which notifications do implement.

Fixes #1037
2024-10-23 12:34:28 +02:00
Nik Clayton 84aae1de7d
fix: Always create per-timeline menu (#1039)
Previous code only inflated the timeline fragment menu if swipe/refresh
was enabled -- a hold over from when "Refresh" was the only menu item.

There are other menu items now, and they were also hidden. Fix this by
always inflating the menu.
2024-10-23 12:15:24 +02:00
Nik Clayton 850b702092
change: Use checkboxes to show whether an account is a member of a list (#1036)
User reports suggested that the "x" / "+" icons used to add / remove
accounts from lists could be difficult to visually distinguish.

Replace with checkboxes. Checked indicates the account is in the list,
unchecked indicates it isn't. Clicking the checkbox to change state
changes the presence in the list.

Fixes #812
2024-10-22 16:57:03 +02:00
Nik Clayton 2234c4c782
feat: Add accessibility options for tab justification and content (#1035)
Provide two new lab preferences for controlling the layout and content
of main navigation tabs.

Tabs can now be justfied to start, end, or fully (if room). Start/end
justification may put the tabs closer to the user's fingers, depending
on how they hold the device. Fully justified uses the full width of the
tab bar (if the tabs don't require scrolling).

The content can be set to one of:

- Icon only (previous behaviour)
- Text only
- Icon with text beside
- Icon with text below

Fixes #336
2024-10-21 17:49:19 +02:00
Nik Clayton 8fe2850229
fix: Don't prompt to discard/save unedited scheduled posts (#1034)
Previous code didn't send the language to ComposeActivity when editing a
scheduled status so it always appeared to be dirty. This prompted the
user to save/discard changes when backing out, even if they hadn't made
any changes.

Fix this by collecting the language code when fetching scheduled posts
and passing it in `ComposeOptions`.
2024-10-20 20:48:53 +02:00
Nik Clayton 51769773d1
feat: Show each post's scheduled time in the list of scheduled posts (#1033)
Fixes #293
2024-10-20 20:33:31 +02:00
Nik Clayton 0fe84f1611
refactor: Use Date type for scheduled post date / times (#1032)
Previous code accepted the `scheduledAt` value as a String, and kept it
as a String (including when serialising as part of a draft). Then it was
converted to an actual Date for display.

Refactor to keep it as a Date for as long as possible. Moshi decodes
Dates correctly over the network, and the database is configured to
serialise Dates as Longs.

This necessitates two migration steps to preserve any existing
`scheduledAt` values for drafts. The first step adds a new column to
store the date as a Long and copies over existing data. The second step
replaces the old column with the new column.
2024-10-20 16:29:32 +02:00
Nik Clayton e68ab54f95
feat: Ignore suggested accounts that haven't posted in 28 days (#1031)
The "Suggested accounts" API returns dormant accounts. See this bug
report: https://github.com/mastodon/mastodon/issues/30674.

That's bad UX, so filter out any account that hasn't posted in the last
28 days.

Fixes #1029
2024-10-19 14:38:00 +02:00
Nik Clayton ffb585b349
fix: Ensure suggested account information is not cut off (#1030)
Previous layout didn't constraint the metadata elements to the parent's
edge, so could run off the screen if the content was too long.

Constrain them so the content wraps correctly.

Fixes #876
2024-10-19 14:20:51 +02:00
Nik Clayton a43ebab69b
feat: Add "Don't ask again" option when confirming the posting language (#1027)
For some users this feature has too many false positives, particularly
when emojis are used.

Provide a preference that enables/disables the feature, default to
"enable".

When the user is prompted the dialog has a third "Don't ask again"
option. If chosen the preference is set to prevent future prompts and
the status is sent as-is.

Fixes #893
2024-10-18 17:26:50 +02:00
Nik Clayton ba83e971b1
fix: Show all search operators on 4.3.0+ servers (#1026)
Previous code didn't include the 4.2.x search operators on a 4.3.x
servers, so only the "in:public" operator was exposed.
2024-10-18 16:45:20 +02:00
Nik Clayton c8aa4fd374
fix: Disable "Scheduled post" support on GoToSocial accounts (#1025)
GoToSocial servers don't support scheduled posts; they return the wrong
type, and this can cause a loop of posting.

The GoToSocial bug to implement scheduled posts is
https://github.com/superseriousbusiness/gotosocial/issues/1006.

Fix this by adding a new server capability for scheduled post support,
using it for most servers, and disabling it for GoToSocial.

If scheduled post support is not available for an account:

- The "Scheduled posts" menu option is not shown.
- The scheduling button (clock) when composing a post is hidden, so the
user cannot set scheduling parameters.

Fixes #963
2024-10-18 15:37:10 +02:00
Nik Clayton 8fac5c3d4d
fix: Don't clip buttons when choosing scheduled post time (#1024)
The MaterialTimePicker library has a bug that results in the "Cancel"
and "Ok" buttons on the dialog being cut off.

See
https://github.com/material-components/material-components-android/issues/3584

Work around this by updating their layout params and explicitly setting
the "bottomToBottom" constraint to their parent.
2024-10-18 15:13:17 +02:00