Commit graph

435 commits

Author SHA1 Message Date
Cthulhux
cc8d63e656
Update Localizable.strings (#1282) 2023-03-21 06:24:43 +01:00
Cthulhux
af245da273
de: translated the whole lot of new strings (#1279)
Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
2023-03-20 06:36:31 +01:00
Andrzej Rózga
e066ef8dc9
Polish localization update (#1280)
Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
2023-03-20 06:35:47 +01:00
Yusuke Arakawa
8f09841f96
Update Localizable.strings (#1281)
Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com>
Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
2023-03-20 06:35:14 +01:00
Chris Kolbu
eab69ce9fa
Timeline tab accessibility uplift (#1277)
* Refine Profile tab VoiceOver order to prioritise user information

Previously, VoiceOver user would have to traverse through header image, “follows you”, and the profile image before getting to the display name of the user.

Now, this element is the first element after the navigation bar.

* Add accessibility label to Timeline Compose post button

Previously, this button was using the SF symbol fallback label.

Now, it has a localized equivalent in addition to two other options: “New”, and “Create”

* Change accessible representation of Timeline nav bar menu

Previously, this would present as a static text.

Now, it has the header trait. In addition, by changing the representation, VoiceOver will read it out as “Home, Pop-up button, Header”, indicating that it opens a menu.

* Add accessibilityHint to Timeline tab Accounts selector

* Add accessibilityLabel and hint to PendingStatusesObserver

Previously, this button would have a label equal to the count of unread posts. Now, it states “X new posts” with the hint “Scrolls the timeline”
2023-03-20 06:33:42 +01:00
Chris Kolbu
9a6b2129b2
Profile tab accessibility uplift (#1274)
* Combine `joinedAtView` into one accessibility element

Previously, the calendar image was visible with a nonsensical label.

We use the `.combine` operator here to maintain the proper string formatting of the date.

* Improve the accessibility of the AccountDetailHeaderView

Previously, this image had no description and no indication that it had an associated interaction. Now, we wrap it in a button that performs the tap gesture action, and remove the element altogether if there is no avatar image set.

This commit also handles the checkmark for supporter users

* Tweak accessibility of Profile CustomInfoLabels

This commit:
- Reverses the order of title and value
- Sets the value as an `accessibilityValue`
- Adds a hint indicating what the button does, as they perform slightly different actions

* Make Profile tab header image into a Button

This element has an action associated with it (quicklook), so it makes more sense to have it as a button, and hide it if the user does not have an image set.

Without the action it would have been considered decorative and should be hidden.

* Change accessibilityLabel of Profile tab nav bar item to ‘Options’

“More” is considered overly generic.

This commit also adds two additional user input label options

* Add accessibility labels for the Profile tab `Picker`

Previously, these labels were the default accessibility label provided by the SF symbol, that almost, but not quite, made sense

* Remove StatusRowView swipe actions if VoiceOver is running

These swipe actions are automagically added to the accessibility element’s custom actions, in addition to the ones already there, which means that there is a significant (and confusing) amount of doubling up going on.

* Fix typo in StatusRowView.accessibilityActions

* Add accessibilityLabels to all StatusRowActionsView actions

* Provide explicit combined accessibility label for unfocused StatusRowView

Previously, this was a synthesized label, which read the elements in their traversal order, and didn’t provide any context for which of the three numbers corresponded to replies, boosts or favourites.

Now, we create an explicit combined label when the post isn’t being viewed by itself.

* Improve accessibility of StatusRow(Reblog|Reply)View

They are now combined elements and don’t vend the icon as its own element.

* Add missing punctuation to accessibility hints

* Remove interaction from Profile tab @username and profile note elements

These elements open the profile photo url, which is already provided explicitly through the profile photo

* Prefer spoiler warning for StatusRowView accessibility label

…but place the full, unredacted content in an `AccessibilityCustomContent` field for easy access.

Additionally, if VoiceOver is running, an action to expand the warning is also available.

* Represent `FollowButton` elements as Toggles to accessibility

Since these buttons have two states (though arguable in the case of following, but handled here by not changing the representation if a request is pending), it makes sense to handle them as toggles, so they will be read as “Following, On, <Trait>”

* Remove errant comment

* Add “Verified” accessibilityValue to profile fields

* Fix bug StatusRowView default action bug affecting VoiceOver users

Previously, the default (‘Activate’) action for VoiceOver users would be to share a link to the toot, rather than navigate to its detail. It’s hard to say exactly what caused this, but the root was the inclusion of the `contextMenu` in the `accessibilityActions`.

Now, double-tapping on a a non-focused `StatusRowView` will take you to the toot detail.

* Add header trait to Profile tab display name and familiar followers

These stand out as being header-like in presentation and represent the beginning of specific parts of the screen.

* Add conditional accessibility modifier to Profile tab user-defined fields that opens the correct link

* Add accessibility container that contextualises the user-defined fields

When VoiceOver users first enter a user-defined field, the container label will be read out before the element’s spoken description.

* Improve StatusRowView combined accessibility label

It will now start with:

“X boosted Y”, “X replied to @Y”, or “X…” depending on the context of the toot.

* Change familiar follows thumbnail to a Button; add display name as accessibility label

Previously, this button had no context, and would just be a series of images with nothing to allow users to disambiguate them.

* Revert changes from ZStack with tap gesture to Button

Using a Button for this purpose caused high weirdness in tap zones. Basically everything down to the familiar followers triggered both image buttons.

* Add image alt text to StatusRowView and StatusRowMediaPreviewView

Previously, there was no way for the intended audience for the alt text to find said text. There is a tap gesture on each image in the focused status row, but this is not advertised to the user.

Now, the first image’s alt text is read as part of the non-focused, combined representation, and each image has its own alt text attributed in the focused representation.

* Add Profile tab accessibility labels to indicate private/bot/muted/blocked accounts

Previously, the icon did not have any accessible representation (an empty text string).

* Add header trait to Profile “pinned post”

* Use the Account.Field.name for the user input label

* Replace spaces with commas in StatusRowView.combinedAccessibilityLabel
2023-03-19 16:27:18 +01:00
Jerry
a08587643d
Update Simplified Chinese localization (#1265) 2023-03-19 06:45:40 +01:00
Andrzej Rózga
09dc56fcd3
Polish localization update (#1271) 2023-03-18 14:08:54 +01:00
Cthulhux
7d8516474c
de: translated AI strings (#1261) 2023-03-18 06:02:20 +01:00
Xabi
68f1a3e47d
Update Basque localisation (#1262) 2023-03-18 06:02:14 +01:00
Yusuke Arakawa
072c980157
Update Localizable.strings (#1263) 2023-03-18 06:02:06 +01:00
Chris Kolbu
4d588e4a18
Compose Post Screen Accessibility Tweaks (#1259)
* Add localized label for the AI prompt status accessory view

Previously, this icon would have an accessibility label matching its SF symbol key, ‘faxmachine’.

* Darken status editor character count foreground color

By changing it to .secondary, it gets to an APCA contrast of 61, which is a _just_ passing Bronze score for that text size.

It’s still quite short of WCAG 2.1 AA at 3.3:1 (recommended is 4.5:1)

* Change remaining character count color to red when < 0

* Refine remaining character count accessibility

In this commit, we
- Change its trait to `.updatesFrequently`
- Set a localized `accessibilityLabel`
- Set its `accessibilityValue` to the remaining character count
- Disable user interaction (which is presumably set automatically by virtue of being enclosed in a `Menu`)

* Set accessibilitySortPriority on Status editor ScrollView

Previously, the traversal order placed the elements inside the `ScrollView` last. Now, they follow on from the navigation bar contents in the expected order.

* Hide the AvatarView from status creation accessibility

When there is only one account available, there is no functionality associated with this element, so it is considered decorative-only, and should be hidden

* Set TextView placeholder’s `accessibilityValue` to placeholder text when empty

This behaviour matches `UITextField`

* Hide TextView custom `placeholderView` from accessibility

Previously, TextView would vend two accessibility elements when the placeholder was visible. This causes needless confusion for users.

Now, the TextView matches the accessible behaviour of text inputs elsewhere.

* Improve accessibility of post `privacyMenu`

Previously, it would be presented as `Everyone, Button`. Now, we move the visibility to its `value` and use `Visibility` for its label, in conjunction with a hint that states it `Changes post audience`.

* Add `.button` trait and accessible label to emojis in `customEmojisSheet`

Previously, these would all present as `image` with no description, making it very hard to discern what kind of emoji you were adding.

* Change drafts sheet item type to `Button`

A button with an action has a more accessible representation than a `Text` with a tap gesture.
2023-03-17 06:39:31 +01:00
Ico Davids
5ef39e7a09
Add navigation title to the Translation Settings view (#1257) 2023-03-17 06:06:09 +01:00
Yusuke Arakawa
ae51ea0c1c
Update Japanese Localizable.strings (#1255)
Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com>
2023-03-16 07:08:29 +01:00
Chanhwi Joo
1a4d552e06
Update Korean localization (#1252) 2023-03-15 14:58:58 +01:00
Cthulhux
8803f1524a
de: fixed grammar (#1247) 2023-03-15 07:06:51 +01:00
Andrzej Rózga
aa72c35718
Polish localization update (#1249) 2023-03-15 07:06:40 +01:00
Xabi
62438d669f
Update Basque localisation (#1250) 2023-03-15 07:06:32 +01:00
Jerry
e52a3c0416
Update Simplified Chinese localization (#1251) 2023-03-15 07:06:24 +01:00
Paul Schuetz
baf853f46e
Add the ability to translate using deepl even if the instance offers its own service (#1237)
* Allow forced translation with DeepL

Translation with DeepL can now be forced either per post or on the system level.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Require the use of a private API key

A private API key of the user is now required to allow "always translate via
DeepL".

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Persist a stored API key

An API key is stored even if useOnlyDeepL is disabled. If the API key is empty,
the setting is still disabled.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Localize the texts

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Save API key while writing

The API key is now saved, even if the app is closed before leaving the
translation settings view.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Fix build

* Fix theme

* Transition to KeychainSwift, clean up

KeychainHelper is replaced with the already-used KeychainSwift package, the
functions are cleaned up so that the process is easier to understand. The
deactivateToggleIfNoKey function doesn't change the behavior of the buttons or
context menus in the timeline, only demonstrates the necessity of an API key to
the user. Consequently, it's only called when the settings view is shown.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Swiftformat + fixes

---------

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>
Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
2023-03-14 18:50:19 +01:00
Vitaly Kovalyshyn
f263c57858
update uk localizations (#1244) 2023-03-14 12:17:14 +01:00
Ico Davids
c818dbf744
Updated NL localization (#1238) 2023-03-14 07:22:44 +01:00
Yusuke Arakawa
c56ef64f55
Update Localizable.strings (#1223)
Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com>
2023-03-11 14:42:49 +01:00
Cthulhux
0db1b889b4
Update Localizable.strings (#1225) 2023-03-11 14:42:42 +01:00
Jerry
0d2454886e
Update Localizable.strings (#1213) 2023-03-11 07:22:00 +01:00
Chanhwi Joo
b574cdfbda
Update Korean localization (#1216) 2023-03-11 07:21:52 +01:00
Andrzej Rózga
77468d4560
Polish localization update (#1218) 2023-03-11 07:21:39 +01:00
Xabi
45b9d2886e
Update Basque localisation (#1219) 2023-03-11 07:21:30 +01:00
Thomas Ricouard
9057740162 Add upload from file browsing + better compression for images 2023-03-10 18:22:45 +01:00
Xabi
fd8906ecd5
Undo last changes (EU plurals) (#1211) 2023-03-10 07:12:01 +01:00
Jerry
7b646c770a
Update Simplified Chinese localization (#1212) 2023-03-10 07:11:50 +01:00
Cthulhux
21363d1bdf
de: translated #tags (#1202) 2023-03-09 20:36:01 +01:00
Yusuke Arakawa
cbe7d8e8af
Update Localizable.strings (#1203) 2023-03-09 20:35:53 +01:00
Andrzej Rózga
498d6b950e
Polish localization update (#1204) 2023-03-09 20:35:40 +01:00
Ico Davids
25925f11d7
Updated NL localization (#1205)
* Updated NL localization

* Updated NL localization
2023-03-09 20:35:32 +01:00
Xabi
58e4a8df49
Update Basque localisation (#1208)
New:
- status.editor.ai-prompt.add-tags
- status.editor.ai-prompt.insert-tags
2023-03-09 20:35:23 +01:00
Thomas Ricouard
93d9ded447 Switch to new Chat completion API + Add Tags completion 2023-03-09 13:46:04 +01:00
Xabi
eaaa8cd1c9
Update Basque plurals (#1189)
New:
- tag.suggested.mentions-%lld

Edited:
- notifications-others-count %lld
- notifications.label.favorite %lld
- notifications.label.follow %lld
- notifications.label.mention %lld
- notifications.label.reblog %lld
(they were ok in 1.6.3, just trying to improve it)
2023-03-07 07:05:10 +01:00
Xabi
0e3493bdb8
Update Basque localisation (#1190)
Moved to plurals:
- tag.suggested.mentions-%lld [not needed here anymore]

Edited:
- enum.durations.custom [capitalisation]
- settings.general.browser.in-app [shortening]
- settings.general.browser.system [shortening]
2023-03-07 07:05:02 +01:00
Andrzej Rózga
b0ee77caed
Polish localization (#1174)
* Fixed problem with with the translation of "mentions" in plural form
- Localizable.stringsdict needs a digit (not string) to make a choice of a correct plural form.
- fixed StatusEditorAutoCompleteView
- changed %@ format specifier in Localizable.strings with %lld

* Polish localization update

---------

Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
2023-03-06 07:07:35 +01:00
Xabi
af63692afa
Update Basque localisation (#1179)
New:
- enum.durations.custom
- tag.suggested.mentions-%@

Fixed:
- notifications.label.status
- status.editor.mode.reply-%@
- filter.action.warning
2023-03-06 07:06:08 +01:00
Xabi
2a95678b4f
Update Basque plurals (#1178)
I seem to be unable to get plurals right but I want to believe I'm getting close 😉
2023-03-06 07:06:00 +01:00
sh95014
310a5fba99
Traditional Chinese (zh-Hant) localization (#1170)
* checkpoint

* checkpoint

* plurals and a couple of minor fixes
2023-03-05 07:25:34 +01:00
Chanhwi Joo
07231d0e14
Update Korean localization (#1173) 2023-03-05 07:23:18 +01:00
Ico Davids
0483c28f80
Updated Dutch localization (#1166)
- Mentions of suggested tags
2023-03-05 07:22:48 +01:00
Jerry
f1cff5514e
Update Localizable.strings (#1162) 2023-03-05 07:22:40 +01:00
Yusuke Arakawa
1af66896f9
Update Localizable.strings (#1160) 2023-03-04 17:10:14 +01:00
Stian Øverbye
60fb706eec
Minor language fix (#1161) 2023-03-04 17:09:57 +01:00
Cthulhux
546167b461
de: new string.. (#1164) 2023-03-04 17:09:44 +01:00
Thomas Ricouard
761c8ed3be Composer: Sort suggested tags by usage + display it 2023-03-04 09:50:13 +01:00