2332 Commits

Author SHA1 Message Date
zxkmm
99335c6161
translations fixes (#745) 2024-03-27 10:15:46 +01:00
MM20
15d91cfee3
Merge branch 'main' of github.com:MM2-0/Kvaesitso 2024-03-26 21:53:33 +01:00
MM20
5a7f7efab8
Disable DEPENDENCY_INFO_BLOCK 2024-03-26 21:52:43 +01:00
MM20
38ec6a16c6
Remove WRITE_CONTACTS permission 2024-03-26 21:51:57 +01:00
MM2-0
1170cea7fd Translated using Weblate (German)
Currently translated at 99.7% (688 of 690 strings)

Translation: Kvaesitso/i18n
2024-03-26 18:34:36 +00:00
MM20
1c742b0c44
Merge branch 'main' of github.com:MM2-0/Kvaesitso 2024-03-26 19:34:25 +01:00
MM20
eb89f2652d
Remove comment 2024-03-26 19:34:05 +01:00
MM2-0
44e86385f7 Translated using Weblate (German)
Currently translated at 99.4% (687 of 691 strings)

Translation: Kvaesitso/i18n
2024-03-26 18:26:57 +00:00
MM2-0
19035302d8 Translated using Weblate (English)
Currently translated at 100.0% (691 of 691 strings)

Translation: Kvaesitso/i18n
2024-03-26 18:26:57 +00:00
MM20
d782398dcf
Merge branch 'main' of github.com:MM2-0/Kvaesitso 2024-03-26 19:26:44 +01:00
MM20
559b65f20a
Remove map bug report dialog, launch fixme url right away 2024-03-26 19:22:35 +01:00
MM2-0
ff89a98381 Translated using Weblate (German)
Currently translated at 97.8% (677 of 692 strings)

Translation: Kvaesitso/i18n
2024-03-26 18:15:10 +00:00
MM2-0
f732acfff2 Translated using Weblate (English)
Currently translated at 100.0% (692 of 692 strings)

Translation: Kvaesitso/i18n
2024-03-26 18:15:10 +00:00
MM20
dfb76bd3af
Remove overpass server string resource 2024-03-26 19:14:49 +01:00
Christoph
cba387c832
Add OSM search provider (#611)
* add openstreetmaps module in data

* fix injection

* retrofit2 implementation

* tokenization

* partial rewrite of OpeningTime.fromOverpassElement

* finish rewrite of OpeningTime.fromOverpassElement

* fix merge x)

* configurable search radius

* add settings section and disable setting explicit timeout values for http-client to alleviate issues during debugging

* settings screen localization

* enable radius slider only when locations are enabled

* fix dayRange parsing, add barebones UI

* add files to git

* add location listener in SearchableItemVM that gets activated by LocationItem

* add heading listener

* Calculations, UI additions

* rename settings to LocationsSettings

* use android location library for bearing calculations

* location fix

* rotation fix, demo UI

* working buttons for launching map and website (if available)

* finish botched UI

* improve overpass query by utilizing regex for fuzzy search results

* add link to documentation for further reference

* localization comments

* remove wikipedia minification setting

* schema version, default radius 1.5km

* move osm-specific opening-time parsing to OsmLocation

* refactor with callbackFlow

* remember flow and set minimum distance update to 1m

* refactor for replacementIcon, add imperial unit option

* 'open until' UI fix

* implement serializers

* catch errors in deserializer

* hacky live sorting by distance

* give max priority to bestmatch determined by SearchVM

* add yards as additional step to metersToLocalizzedString

* move http-client from serializers of osmlocation to companion object for cache updating

* add setting for custom URL

* round yards to int

* add botched map preview

* unbotch map tiles, draw user location in map (proof of concept)

* - create MapTiles Composable
- add border around map
- add indicators for location and userlocation, when on map

* fix default imperial units setting

* fix tint color

* add OSM attribution string

* display loading animation when tiles can't be shown yet

* create compose preview of maptiles

* UI work

* being glad that API's just return null instead of throwing information

* tryStartActivity

* aniimate card row placement

* Text alignment, padding

* Rotation -PI/PI wrap fix

* fix direction arrow rotation when screen is upside down

* more icons

* icons, settings, localization
- consider other tags than "amenity" when determining location category
- add many more location categories with corresponding icons
- add settings to disable map theming and hide search results with
  LocationCategory.OTHER
- add default localizations for settings

* catch errors when deserializing location category

* move location and heading functions to Context.kt in extensions

* fix hideUncategorized criterion

* add pre-sorting by distance for location results in SearchVM by injecting Context into search()

* specify receiver parameters in ktx.Context lambdas

* move pose logic and context dependency to new module devicepose with DevicePoseProvider

* git, add the frickin' module

* search overpass for nodes and ways
include category for parcel_locker
already start searching for queries extending length 2

* make openingTimes immutable

* OsmRepository changes
- include telephone number
- don't try to repeatedly update cache if there is no value to be
  updated to
- deduplicate results with same label by category and distance (100m)
- include fixmeurl to point to openstreetmaps.org/fixthemap

* ask for center in overpass API to compute center coordinates of ways

* search for brand

* add chemist location category

* restaurant / fastfood icon shenanigans

* actually add the icons :|

* add leisure tag for leisure:fitness_centre

* return to 'open until'/'opens in'/'open next'

* adding missing UI features
- bug report dialog
- call button if phone number exists
- grid item popup

* refactor to handle 24/7 locations more comfortably

* hide hours in 'opens_in' when they are zero

* show maptiles such that user is always in view

* drawing adjustments

* cache previous zoom level to speed up tile coordinate calculations

* using remember

* using MutableIntState

* fix logic that determines whether tiles are loading

* fix for numTiles == 9

* one plus one is two plus one makes three quick maths

* animate user location indicator, remember calculations

* fix off by one when determining next opening hour

* second attempt to fix upside down arrow rotation (probably fine now)

* logging

* reconsider declination, inject samplingPeriod

* undoing the merge undo

* move localization string to i18n

* revert reordering by distance

* refactor .distanceTo

* make Location abstract class to override compareTo with cached distance to correct sort order in search results

* when it is if when you could use when

* replace Pair with dataclass

* condition check order

* not creating objects with undefined locations, removing suspend from getCategory()

* inject permissionsmanager as constructor parameter

* Store OSM settings in decentralized datastore

* Update searchable content in database on launch

* Refactor, add mechanism to load updated searchable data lazily

* Cache all OSM data in launcher database

* Add pin to favorites button to location results

* Add sealed class UpdateResult
that is returned by awaiting updatedSelf of DeferredSearchable

- update on success
- set flag on temporarily unavailable (TODO add some UI indication)
- delete and invalidate VM on permanently unavailable (Display some
  message window to user?)

* Move sorting of Locations from OsmRepository
to SearchVM using cached location in DevicePoseProvider, if available

* make use of cached location in code

* make use of DevicePoseProvider in WeatherRepository

* inject via koin

* increase getLocation().timeout() to 10 minutes since we are asking for locations only every hour, so 10 minutes seem reasonable (?)

* poll new location every time

* add icon for cached results where results are temporarily unavailable

* Refactor DeferredSearchable to UpdatableSearchable
that receives a closure to retrieve an updated self.

- moved timestamp (formerly `updatedAt`) to UpdatableSearchable
- moved logic whether to update searchable to `requestUpdatedSearchable`
  in SearchableItemVM, which gets triggered every time the details of
  the item are shown
- keep track in SearchableVM whether we should retry updating, possibly
  bypassing a timestamp value that is not old enough
- show toast upon permanently unavailable
- animate "cached_searchable" icon
- make "cached_searchable" icon clickable to show toast explaining the
  situation

* logging on PermanentlyUnavailable

* refactor OsmRepository.update()

* MapTheming adjustments. There is now darkmode, hooray!

* remove outdated comment

* code tidying

* remove unnecessary LaunchedEffect

* make outdated badge only clickable when actually outdated

* deserialize opening schedule

* set deserialized props to null if strings are blank

* also consider contact:* tagging scheme for website & phone

* tweaks

* git add Result.kt

* don't search for locations if network is not allowed

* merge fixes

* Move location search settings to preferences module

* Change wording and order of location search preferences

* Limit location search results

* Order location search results by distance

* Use a sequence

* Android Studio's suggestion wasn't as fleshed out as one would hope

* Add proguard rules

* Rename TileMapRepository to MapTileLoader

---------

Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
2024-03-26 19:06:19 +01:00
Sérgio Marques
4b30b13266 Translated using Weblate (Portuguese)
Currently translated at 49.7% (329 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-25 15:59:19 +00:00
eeelbrens
50c7cbd1e2 Translated using Weblate (Arabic)
Currently translated at 37.0% (40 of 108 strings)

Translation: Kvaesitso/units
2024-03-23 21:37:16 +00:00
Imran Molla
8ae1d72b9a Translated using Weblate (Bengali)
Currently translated at 9.2% (10 of 108 strings)

Translation: Kvaesitso/units
2024-03-23 11:48:46 +00:00
Imran Molla
dda0dc8ee1 Translated using Weblate (Bengali)
Currently translated at 31.7% (210 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-23 11:48:45 +00:00
Weblate
2a33ec09ff Added translation using Weblate (Bengali) 2024-03-23 08:22:56 +00:00
Weblate
2819da35fe Added translation using Weblate (Bengali) 2024-03-23 08:22:49 +00:00
Imran Molla
69800bd6b6 Added translation using Weblate (Bengali) 2024-03-23 08:22:44 +00:00
carlin978
43c930438f Translated using Weblate (Portuguese)
Currently translated at 85.1% (92 of 108 strings)

Translation: Kvaesitso/units
2024-03-20 17:59:20 +00:00
cat
87af66e481 Translated using Weblate (Danish)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/da/
2024-03-20 17:59:20 +00:00
cat
3943b32a70 Translated using Weblate (Danish)
Currently translated at 99.8% (660 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-20 17:59:20 +00:00
cat
1e7b280230 Translated using Weblate (Danish)
Currently translated at 87.0% (94 of 108 strings)

Translation: Kvaesitso/units
2024-03-20 17:59:19 +00:00
Crazy Unicorn
6f16a3c20d Translated using Weblate (French)
Currently translated at 100.0% (661 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-20 17:59:19 +00:00
Benoit Lecardonnel
8a43aae5b2 Translated using Weblate (French)
Currently translated at 100.0% (661 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-20 17:59:19 +00:00
Trond Kjetil
90e4aeb41c Translated using Weblate (Norwegian Bokmål)
Currently translated at 69.4% (459 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-17 22:00:35 +00:00
cat
cd42a97c50 Translated using Weblate (Danish)
Currently translated at 77.4% (512 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-17 22:00:34 +00:00
summoner001
080ad150bd Translated using Weblate (Hungarian)
Currently translated at 100.0% (661 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-17 22:00:33 +00:00
Sérgio Marques
de0da4d694 Translated using Weblate (Portuguese)
Currently translated at 31.7% (210 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-15 16:19:42 +00:00
cat
e9c03c218e Translated using Weblate (Danish)
Currently translated at 43.1% (285 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-15 16:19:42 +00:00
Yayi23
2f143ee666 Translated using Weblate (Spanish)
Currently translated at 100.0% (661 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-15 16:19:41 +00:00
Massimo Pissarello
03febba3fa Translated using Weblate (Italian)
Currently translated at 100.0% (661 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-15 16:19:41 +00:00
MM20
2877888674
Merge branch 'main' of github.com:MM2-0/Kvaesitso 2024-03-15 16:13:55 +01:00
MM2-0
2168508ff4
Merge pull request #705 from inson1/patch-1
Update Copyright to 2024
2024-03-15 16:13:24 +01:00
MM20
8bceb0110b
Add .idea/copilot to .gitignore 2024-03-15 16:08:21 +01:00
Trond Kjetil
a3e0d4bb2c Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/nb_NO/
2024-03-13 13:15:39 +00:00
Trond Kjetil
34a8d82172 Translated using Weblate (Norwegian Bokmål)
Currently translated at 85.1% (92 of 108 strings)

Translation: Kvaesitso/units
2024-03-13 13:15:39 +00:00
Trond Kjetil
8cd20a9ad3 Translated using Weblate (Norwegian Bokmål)
Currently translated at 37.9% (251 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-13 13:15:38 +00:00
Weblate
14595fef70 Added translation using Weblate (Norwegian Bokmål) 2024-03-12 17:49:20 +00:00
Weblate
df1f260097 Added translation using Weblate (Norwegian Bokmål) 2024-03-12 17:49:14 +00:00
Trond Kjetil
8b468c847e Added translation using Weblate (Norwegian Bokmål) 2024-03-12 17:49:09 +00:00
softinterlingua
9875460505 Translated using Weblate (Interlingua)
Currently translated at 33.3% (1 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/ia/
2024-03-04 00:59:18 +00:00
softinterlingua
bf6fca176b Translated using Weblate (Interlingua)
Currently translated at 24.8% (164 of 661 strings)

Translation: Kvaesitso/i18n
2024-03-04 00:59:18 +00:00
Trond Kjetil
8f1186ecbe Translated using Weblate (Swedish)
Currently translated at 99.0% (107 of 108 strings)

Translation: Kvaesitso/units
2024-03-01 05:26:31 +00:00
softinterlingua
9b5a434d08 Translated using Weblate (Interlingua)
Currently translated at 24.2% (160 of 661 strings)

Translation: Kvaesitso/i18n
2024-02-29 11:59:18 +00:00
softinterlingua
9ef7606c00 Translated using Weblate (Interlingua)
Currently translated at 24.0% (159 of 661 strings)

Translation: Kvaesitso/i18n
2024-02-26 13:47:51 +00:00
Sérgio Marques
bd054802d3 Translated using Weblate (Portuguese)
Currently translated at 100.0% (3 of 3 strings)

Translation: Kvaesitso/Plugin SDK
Translate-URL: https://i18n.mm20.de/projects/kvaesitso/plugins/plugin-sdk/pt/
2024-02-25 11:57:20 +00:00