Commit Graph

2081 Commits

Author SHA1 Message Date
Eduardo d24357eb4c Translated using Weblate (Portuguese (Brazil))
Currently translated at 95.7% (536 of 560 strings)

Co-authored-by: Eduardo <edu200399lim@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/pt_BR/
Translation: Tusky/Tusky
2023-01-31 18:22:07 +00:00
Przemysław Wilde 577d19aff1 Translated using Weblate (Polish)
Currently translated at 99.8% (559 of 560 strings)

Co-authored-by: Przemysław Wilde <przemyslawwilde@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/pl/
Translation: Tusky/Tusky
2023-01-31 18:22:07 +00:00
Grzegorz Cichocki 4ddab53802 Translated using Weblate (Polish)
Currently translated at 99.8% (559 of 560 strings)

Co-authored-by: Grzegorz Cichocki <grzegorz.cichocki@pollub.edu.pl>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/pl/
Translation: Tusky/Tusky
2023-01-31 18:22:07 +00:00
Quentí 5ee51e32ed Translated using Weblate (Occitan)
Currently translated at 100.0% (560 of 560 strings)

Co-authored-by: Quentí <quentinantonin@free.fr>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/oc/
Translation: Tusky/Tusky
2023-01-31 18:22:06 +00:00
puf f2b3d570d9 Translated using Weblate (Welsh)
Currently translated at 100.0% (560 of 560 strings)

Translated using Weblate (Welsh)

Currently translated at 100.0% (560 of 560 strings)

Co-authored-by: puf <puffinux@tutanota.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/cy/
Translation: Tusky/Tusky
2023-01-31 18:22:06 +00:00
ButterflyOfFire 18218ad956 Translated using Weblate (French)
Currently translated at 85.1% (477 of 560 strings)

Translated using Weblate (Arabic)

Currently translated at 98.2% (550 of 560 strings)

Co-authored-by: ButterflyOfFire <butterflyoffire@protonmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ar/
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/fr/
Translation: Tusky/Tusky
2023-01-31 18:22:06 +00:00
Aitor Salaberria 30a5991fa0 Translated using Weblate (Basque)
Currently translated at 83.0% (465 of 560 strings)

Translated using Weblate (Spanish)

Currently translated at 94.1% (527 of 560 strings)

Translated using Weblate (Basque)

Currently translated at 78.5% (440 of 560 strings)

Translated using Weblate (Basque)

Currently translated at 78.5% (440 of 560 strings)

Translated using Weblate (Basque)

Currently translated at 78.5% (440 of 560 strings)

Translated using Weblate (Basque)

Currently translated at 78.5% (440 of 560 strings)

Co-authored-by: Aitor Salaberria <trslbrr@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/es/
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/eu/
Translation: Tusky/Tusky
2023-01-31 18:22:06 +00:00
Hồ Nhất Duy bbb639648c Translated using Weblate (Vietnamese)
Currently translated at 100.0% (560 of 560 strings)

Co-authored-by: Hồ Nhất Duy <mastoduy@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/vi/
Translation: Tusky/Tusky
2023-01-28 11:40:17 +00:00
Ihor Hordiichuk f97ac85905 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (560 of 560 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/uk/
Translation: Tusky/Tusky
2023-01-28 11:40:17 +00:00
Eric 5c94dd49ed Translated using Weblate (Chinese (zh_SG))
Currently translated at 57.5% (322 of 560 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (560 of 560 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/zh_Hans/
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/zh_SG/
Translation: Tusky/Tusky
2023-01-28 11:40:17 +00:00
Przemysław Wilde aabd479340 Translated using Weblate (Polish)
Currently translated at 93.7% (525 of 560 strings)

Co-authored-by: Przemysław Wilde <przemyslawwilde@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/pl/
Translation: Tusky/Tusky
2023-01-28 11:40:17 +00:00
TAKAHASHI Shuuji 10c64df0bb Translated using Weblate (Japanese)
Currently translated at 97.5% (546 of 560 strings)

Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ja/
Translation: Tusky/Tusky
2023-01-28 11:40:17 +00:00
Aitor Salaberria a1777cf9e6 Translated using Weblate (Basque)
Currently translated at 78.5% (440 of 560 strings)

Co-authored-by: Aitor Salaberria <trslbrr@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/eu/
Translation: Tusky/Tusky
2023-01-28 11:40:17 +00:00
mcclure b2511d782d
Dialog notifying user of failure when media upload fails (#3135)
* First attempt at user notifications of failure when media upload fails

* Drafts alert displays alert

* ktLint

* Fix defaced 46.json, add 47.json

* Mock draftsNeedUserAlert in MainActivityTest to prevent spurious failure

* Friendlier posts-failed message

* Create DraftsAlert object

* DraftsAlert works

* Not the cleanest, but DraftsAlert works with multiple accounts

* Use plural strings

* KtLint

* Clean up debug prints

* Simplify DraftsAlert per Conny suggestions

* Text change suggested by Conny

* ktLint again

* Back out test changes

* Fix MainActivityTest for new approach

* Tweak debug log

* Do not use GlobalScope for coroutines
2023-01-27 20:50:45 +01:00
Ihor Hordiichuk 6732841425 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (555 of 555 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/uk/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
Eric 9ef7e80674 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (555 of 555 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/zh_Hans/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
Eduardo d719d30f77 Translated using Weblate (Portuguese (Brazil))
Currently translated at 82.5% (458 of 555 strings)

Co-authored-by: Eduardo <edu200399lim@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/pt_BR/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
Aitor Salaberria effa52f183 Translated using Weblate (Basque)
Currently translated at 79.2% (440 of 555 strings)

Co-authored-by: Aitor Salaberria <trslbrr@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/eu/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
puf 1bdc5164b2 Translated using Weblate (Welsh)
Currently translated at 100.0% (555 of 555 strings)

Co-authored-by: puf <puffinux@tutanota.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/cy/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
Quentí bece600512 Translated using Weblate (Occitan)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Quentí <quentinantonin@free.fr>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/oc/
Translation: Tusky/Tusky
2023-01-27 16:23:16 +00:00
Mārtiņš Bruņenieks 3c7f283ced Translated using Weblate (Latvian)
Currently translated at 88.4% (488 of 552 strings)

Translated using Weblate (Latvian)

Currently translated at 86.7% (479 of 552 strings)

Translated using Weblate (Latvian)

Currently translated at 84.4% (466 of 552 strings)

Co-authored-by: Mārtiņš Bruņenieks <martinsb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/lv/
Translation: Tusky/Tusky
2023-01-27 16:23:15 +00:00
Hồ Nhất Duy a16f875706 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (555 of 555 strings)

Translated using Weblate (Vietnamese)

Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Hồ Nhất Duy <mastoduy@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/vi/
Translation: Tusky/Tusky
2023-01-27 16:23:15 +00:00
Oliebol bddb75fea0 Translated using Weblate (Dutch)
Currently translated at 96.5% (533 of 552 strings)

Co-authored-by: Oliebol <schrijfmedan@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/nl/
Translation: Tusky/Tusky
2023-01-27 16:23:15 +00:00
TAKAHASHI Shuuji 4d943ba415 Translated using Weblate (Japanese)
Currently translated at 94.2% (520 of 552 strings)

Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ja/
Translation: Tusky/Tusky
2023-01-27 16:23:15 +00:00
Rhoslyn Prys 96639a0096 Translated using Weblate (Welsh)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Rhoslyn Prys <post@meddal.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/cy/
Translation: Tusky/Tusky
2023-01-27 16:23:15 +00:00
Levi Bard 412a28e9a9
Reinstate optional login via custom browser tab (#3165)
* Reinstate optional login via custom browser tab

* Clarify the buttons for the different login options

* Add informative labels for the different login options

* Move "Login with Browser" to the options menu
2023-01-25 19:26:29 +01:00
Mikalai 066c7428f9 Translated using Weblate (Belarusian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Mikalai <mikalai.hryb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
Sveinn í Felli 100fbe796a Translated using Weblate (Icelandic)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/is/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
TAKAHASHI Shuuji ec5fa814c4 Translated using Weblate (Japanese)
Currently translated at 91.3% (504 of 552 strings)

Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ja/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
xzFantom 2872253cb6 Translated using Weblate (Belarusian)
Currently translated at 100.0% (552 of 552 strings)

Translated using Weblate (Belarusian)

Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: xzFantom <xzfantom@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
Mikalai db433e6f59 Translated using Weblate (Belarusian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Mikalai <mikalai.hryb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
Andrej Zabavin 023033243c Translated using Weblate (Belarusian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Andrej Zabavin <andre.zabavin@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-17 12:35:55 +00:00
Mikalai a76e6dff1e Translated using Weblate (Belarusian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Mikalai <mikalai.hryb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-17 12:35:54 +00:00
Hồ Nhất Duy 1dc0f8d78e Translated using Weblate (Vietnamese)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Hồ Nhất Duy <mastoduy@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/vi/
Translation: Tusky/Tusky
2023-01-17 12:35:54 +00:00
Ihor Hordiichuk cb7e4c76b6 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/uk/
Translation: Tusky/Tusky
2023-01-17 12:35:54 +00:00
Eric e09efd48ad Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/zh_Hans/
Translation: Tusky/Tusky
2023-01-17 12:35:54 +00:00
Gera, Zoltan 4b02ba0816 Translated using Weblate (Hungarian)
Currently translated at 100.0% (552 of 552 strings)

Co-authored-by: Gera, Zoltan <gerazo@manioka.hu>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/hu/
Translation: Tusky/Tusky
2023-01-17 12:35:54 +00:00
Artsiom 2df6a83e42
Add Belarusian language to the in-app language picker (#3170)
* Add Belarusian language to the in-app language picker

* added Belarusian to locales_config.xml
2023-01-15 15:03:46 +01:00
Mārtiņš Bruņenieks e68f45058a Translated using Weblate (Latvian)
Currently translated at 80.4% (439 of 546 strings)

Co-authored-by: Mārtiņš Bruņenieks <martinsb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/lv/
Translation: Tusky/Tusky
2023-01-13 18:59:52 +00:00
xzFantom 1e04973c6a Translated using Weblate (Belarusian)
Currently translated at 100.0% (546 of 546 strings)

Co-authored-by: xzFantom <xzfantom@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-13 18:59:52 +00:00
Motasem Jouda ce522489af Translated using Weblate (Arabic)
Currently translated at 100.0% (546 of 546 strings)

Co-authored-by: Motasem Jouda <matsm123@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ar/
Translation: Tusky/Tusky
2023-01-13 18:59:52 +00:00
Nik Clayton aa96d02923
Implement HTTP proxy summary as a SummaryProvider (#3091)
* Handle preference fragments using the framework

The previous code started new preference "screens" as activities, even though
each one hosted a single fragment.

Modify this to use the framework's support for swapping in/out different
preference fragments.

PreferencesActivity:
- Remove the code for launching tab and proxy preferences
- Remove the code for setting titles, each fragment is responsible for that
- Implement OnPreferenceStartFragmentCallback to swap fragments in/out with
  the correct animation

PreferencesFragment:
- Use `fragment` property instead of `setOnPreferenceClickListener`
- Set the activity title when resuming

Everything else:
- Set the activity title when resuming

* Implement HTTP proxy summary as a SummaryProvider

Uses the frameworks's support for setting summaries instead of rolling our
own.

Also fix a tiny bug -- the minimum port number to connect to should be 1,
not 0.

* Lint
2023-01-13 19:28:46 +01:00
Nik Clayton 9cf4882f41
Keep scroll position when loading missing statuses (#3000)
* Change "Load more" to load oldest statuses first in home timeline

Previous behaviour loaded missing statuses by using "since_id" and "max_id".
This loads the most recent N statuses, looking backwards from "max_id".

Change to load the oldest statuses first, assuming the user is scrolling
up through the timeline and will want to load statuses in reverse
chronological order.

* Scroll to the bottom of new entries added by "Load more"

- Remember the position of the "Load more" placeholder
- Check the position of inserted entries
- If they match, scroll to the bottom

* Change "Load more" to load oldest statuses first in home timeline

Previous behaviour loaded missing statuses by using "since_id" and "max_id".
This loads the most recent N statuses, looking backwards from "max_id".

Change to load the oldest statuses first, assuming the user is scrolling
up through the timeline and will want to load statuses in reverse
chronological order.

* Scroll to the bottom of new entries added by "Load more"

- Remember the position of the "Load more" placeholder
- Check the position of inserted entries
- If they match, scroll to the bottom

* Ensure the user can't have two simultaneous "Load more" coroutines

Having two simultanous coroutines would break the calculation used to figure
out which item in the list to scroll to after a "Load more" in the timeline.

Do this by:

- Creating a TimelineUiState and associated flow that tracks the "Load more"
  state
- Updating this in the (Cached|Network)TimelineViewModel
- Listening for changes to it in TimelineFragment, and notifying the adapter
- The adapter will disable any placeholder views while "Load more" is active

* Revert changes that loaded the oldest statuses instead of the newest

* Be more robust about locating the status to scroll to

Weirdness with the PagingData library meant that positionStart could still be
wrong after "Load more" was clicked.

Instead, remember the position of the "Load more" item and the ID of the
status immediately after it.

When new items are added, search for the remembered status at the position of
the "Load more" item. This is quick, testing at most LOAD_AT_ONCE items in
the adapter.

If the remembered status is not visible on screen then scroll to it.

* Lint

* Add a preference to specify the reading order

Default behaviour (oldest first) is for "load more" to load statuses and
stay at the oldest of the new statuses.

Alternative behaviour (if the user is reading from top to bottom) is to
stay at the newest of the new statuses.

* Move ReadingOrder enum construction logic in to the enum

* Jump to top if swipe/refresh while preferring newest-first order

* Show a circular progress spinner during "Load more" operations

Remove a dedicated view, and use an icon on the button instead.

Adjust the placeholder attributes and styles accordingly.

* Remove the "loadMoreActive" property

Complicates the code and doesn't really achieve the desired effect. If the
user wants to tap multiple "Load more" buttons they can.

* Update comments in TimelineFragment

* Respect the user's reading order preference if it changes

* Add developer tools

This is for functionality that makes it easier for developers to interact
with the app, or get it in to a known-state.

These features are for use by users, so are only visible in debug builds.

* Adjust how content is loaded based on preferred reading order

- Add the readingOrder to TimelineViewModel so derived classes can use it.
- Update the homeTimeline API to support the `minId` parameter and update
  calls in NetworkTimelineViewModel

In CachedTimelineViewModel:
- Set the bounds of the load to be the status IDs on either side of the
  placeholder ID (update TimelineDao with a new query for this)
- Load statuses using either minId or sinceId depending on the reading order
- Is there was no overlap then insert the new placeholder at the start/end
  of the list depending on reading order

* Lint

* Rename unused dialog parameter to _

* Update API arguments in tests

* Simplify ReadingOrder preference handling

* Fix bug with Placeholder and the "expanded" property

If a status is a Placeholder the "expanded" propery is used to indicate
whether or not it is loading.

replaceStatusRange() set this property based on the old value, and the user's
alwaysOpenSpoiler preference setting.

This shouldn't have been used if the status is a Placeholder, as it can lead
to incorrect loading states.

Fix this.

While I'm here, introduce an explicit computed property for whether a
TimelineStatusEntity is a placeholder, and use that for code clarity.

* Set the "Load more" button background to transparent

* Fix typo.

* Inline spec, update comment

* Revert 1480c6aa3ac5c0c2d362fb271f47ea2259ab14e2

Turns out the behaviour is not desired.

* Remove unnecessary Log call

* Extract function

* Change default to newest first
2023-01-13 19:26:24 +01:00
XoseM ad59ae9b3f Translated using Weblate (Galician)
Currently translated at 100.0% (546 of 546 strings)

Co-authored-by: XoseM <xosem@disroot.org>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/gl/
Translation: Tusky/Tusky
2023-01-12 18:36:12 +00:00
Jan Lindblom de74d06836 Translated using Weblate (Swedish)
Currently translated at 100.0% (546 of 546 strings)

Co-authored-by: Jan Lindblom <janlindblom@fastmail.fm>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/sv/
Translation: Tusky/Tusky
2023-01-12 18:36:12 +00:00
Newidyn f4f6abc8f2 Translated using Weblate (Welsh)
Currently translated at 100.0% (546 of 546 strings)

Co-authored-by: Newidyn <grugallt@protonmail.ch>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/cy/
Translation: Tusky/Tusky
2023-01-12 18:36:12 +00:00
xzFantom 57bc55b03d Translated using Weblate (Belarusian)
Currently translated at 98.5% (538 of 546 strings)

Translated using Weblate (Belarusian)

Currently translated at 90.4% (494 of 546 strings)

Translated using Weblate (Belarusian)

Currently translated at 81.1% (438 of 540 strings)

Translated using Weblate (Belarusian)

Currently translated at 77.2% (417 of 540 strings)

Co-authored-by: xzFantom <xzfantom@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/be/
Translation: Tusky/Tusky
2023-01-12 18:36:12 +00:00
Hồ Nhất Duy 0fecd230d3 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (546 of 546 strings)

Translated using Weblate (Vietnamese)

Currently translated at 100.0% (540 of 540 strings)

Co-authored-by: Hồ Nhất Duy <mastoduy@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/vi/
Translation: Tusky/Tusky
2023-01-12 18:36:12 +00:00
Manuel ef506a28ce Translated using Weblate (Italian)
Currently translated at 98.1% (530 of 540 strings)

Co-authored-by: Manuel <mannivuwiki@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/it/
Translation: Tusky/Tusky
2023-01-12 18:36:12 +00:00
Mārtiņš Bruņenieks eceb47e2f8 Translated using Weblate (Latvian)
Currently translated at 79.6% (435 of 546 strings)

Translated using Weblate (Latvian)

Currently translated at 75.0% (410 of 546 strings)

Translated using Weblate (Latvian)

Currently translated at 72.9% (394 of 540 strings)

Translated using Weblate (Latvian)

Currently translated at 62.4% (337 of 540 strings)

Co-authored-by: Mārtiņš Bruņenieks <martinsb@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/lv/
Translation: Tusky/Tusky
2023-01-12 18:36:12 +00:00