Commit graph

17 commits

Author SHA1 Message Date
Ivan Kupalov
8770fbe986 ComposeActivity refactor (#1541)
* Convert ComposeActivity to Kotlin

* More ComposeActivity cleanups

* Move ComposeActivity to it's own package

* Remove ComposeActivity.IntentBuilder

* Re-do part of the media downsizing/uploading

* Add sending of status to ViewModel, draft media descriptions

* Allow uploading video, update description after uploading

* Enable camera, enable upload cancelling

* Cleanup of ComposeActivity

* Extract CaptionDialog, extract ComposeActivity methods

* Fix handling of redrafted media

* Add initial state and media uploading out of Activity

* Change ComposeOptions.mentionedUsernames to be Set rather than List

We probably don't want repeated usernames when we are writing a post
and Set provides such guarantee for free plus it tells it to the
callers. The only disadvantage is lack of order but it shouldn't be a
problem.

* Add combineOptionalLiveData. Add docs.

It it useful for nullable LiveData's. I think we cannot differentiate
between value not being set and value being null so I just added the
variant without null check.

* Add poll support to Compose.

* cleanup code

* move more classes into compose package

* cleanup code

* fix button behavior

* add error handling for media upload

* add caching for instance data again

* merge develop

* fix scheduled toots

* delete unused string

* cleanup ComposeActivity

* fix restoring media from drafts

* make media upload code a little bit clearer

* cleanup autocomplete search code

* avoid duplicate object creation in SavedTootActivity

* perf: avoid unnecessary work when initializing ComposeActivity

* add license header to new files

* use small toot button on bigger displays

* fix ComposeActivityTest

* fix bad merge

* use Singles.zip instead of Single.zip
2019-12-19 19:09:40 +01:00
Anonymous
cfcb5d1aa1 Translated using Weblate (Persian)
Currently translated at 100.0% (401 of 401 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/fa/

Translated using Weblate (Tamil)

Currently translated at 61.8% (248 of 401 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ta/

Translated using Weblate (Slovenian)

Currently translated at 100.0% (401 of 401 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/sl/

Translated using Weblate (Malayalam)

Currently translated at 14.0% (56 of 401 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ml/

Translated using Weblate (French)

Currently translated at 100.0% (401 of 401 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/fr/

Translated using Weblate (Bengali (India))

Currently translated at 100.0% (401 of 401 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/bn_IN/

Translated using Weblate (Malayalam)

Currently translated at 13.5% (54 of 401 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ml/
2019-11-16 06:42:00 +00:00
Danial Behzadi
ecb4494278 set title_tag as non-translatable (#1551)
* set title_tag as non-translatable

* add title_tag to donottranslate.xml and remove from strings.xml
2019-11-08 17:46:40 +01:00
Levi Bard
a308b4c139 Don't interpret html inside poll options. (#1527)
* Don't interpret html inside poll options.
Closes #1362

* Update translations

* Mark poll_percent_format as untranslatable
2019-10-11 17:35:22 +02:00
Anonymous
4be7f35b30 Translated using Weblate (Swedish)
Currently translated at 100.0% (395 of 395 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/sv/

Translated using Weblate (German)

Currently translated at 91.6% (362 of 395 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/de/

Translated using Weblate (French)

Currently translated at 100.0% (395 of 395 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/fr/

Translated using Weblate (Dutch)

Currently translated at 98.7% (390 of 395 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/nl/

Translated using Weblate (Czech)

Currently translated at 95.7% (378 of 395 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/cs/

Translated using Weblate (Bengali (India))

Currently translated at 100.0% (395 of 395 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/bn_IN/
2019-08-27 18:27:57 +00:00
Konrad Pozniak
51c6852492
Create polls (#1452)
* add AddPollDialog

* add support for pleroma poll options

* add PollPreviewView

* add Poll support to drafts

* add license header, cleanup

* rename drawable files to correct size

* fix tests

* fix bug with Poll having wrong duration after delete&redraft

* add input validation

* grey out poll button when its disabled

* code cleanup & small improvements
2019-08-22 20:30:08 +02:00
Konrad Pozniak
d13a341a35
enable reporting users without statuses (#1445) 2019-08-17 09:08:58 +02:00
Anonymous
b69207dd65 Translated using Weblate (Bengali (India))
Currently translated at 100.0% (383 of 383 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/bn_IN/

Translated using Weblate (Swedish)

Currently translated at 100.0% (383 of 383 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/sv/

Translated using Weblate (Welsh)

Currently translated at 68.8% (263 of 382 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/cy/

Translated using Weblate (Esperanto)

Currently translated at 100.0% (382 of 382 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/eo/

Translated using Weblate (Slovenian)

Currently translated at 100.0% (382 of 382 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/sl/
2019-08-04 18:34:57 +00:00
Conny Duck
d631305e20 fix number not shown in bold for fav/boost count in some languages 2019-07-11 19:41:09 +02:00
Konrad Pozniak
3a81559c95 fix strings 2019-06-29 08:34:58 +02:00
Akarshan Biswas
a3a143bbdb Translated using Weblate (Bengali (India))
Currently translated at 100.0% (380 of 380 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/bn_IN/
2019-06-27 19:17:50 +00:00
Konrad Pozniak
707f3e605c
fix build warnings (#1331) 2019-06-24 22:15:31 +02:00
Anonymous
ae54188194 Translated using Weblate (Bengali (India))
Currently translated at 100.0% (371 of 371 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/bn_IN/
2019-06-17 11:43:15 +00:00
Akarshan Biswas
86dd27663b Translated using Weblate (Bengali (India))
Currently translated at 100.0% (361 of 361 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/bn_IN/
2019-06-10 17:40:12 +00:00
Anonymous
5fcd973245 Translated using Weblate (Bengali (India))
Currently translated at 100.0% (361 of 361 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/bn_IN/
2019-06-10 17:40:12 +00:00
Akarshan Biswas
2d7050e531 Translated using Weblate (Bengali (India))
Currently translated at 70.9% (256 of 361 strings)

Translation: Tusky/Tusky
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/bn_IN/
2019-06-10 17:40:12 +00:00
Akarshan Biswas
47f98a4000 Added translation using Weblate (Bengali (India)) 2019-06-10 17:40:12 +00:00