tilfluktsrom/app/src/main/res/values/strings.xml
Ole-Morten Duesund 55761718e1 Improve lifecycle management, compass reliability, and accessibility
- Use repeatOnLifecycle(STARTED) for location updates so GPS stops
  when Activity is paused (battery conservation)
- Pair enableMyLocation/disableMyLocation with onResume/onPause
- Add low-pass filter for accelerometer+magnetometer compass fallback
  to reduce arrow jitter
- Detect missing compass sensors and show warning instead of frozen
  arrow
- Monitor compass accuracy via onAccuracyChanged and indicate
  degraded readings
- Show permission rationale dialog using existing i18n strings
- Guide user to Settings when location permission is permanently
  denied
- Check cacheMapArea return value and show banner on failure
- Add error handling around shelter Flow and location Flow collection
- Add contentDescription to direction arrow views for screen readers
- Use safe casts for system services (as? instead of as)
- Use explicit dark theme parent (Theme.Material3.Dark.NoActionBar)
  instead of DayNight with hardcoded dark colors
- Add error_no_compass and direction_arrow_description strings in
  en/nb/nn

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 17:54:06 +01:00

49 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Tilfluktsrom</string>
<!-- Status messages -->
<string name="status_ready">Ready</string>
<string name="status_loading">Loading shelter data&#8230;</string>
<string name="status_updating">Updating&#8230;</string>
<string name="status_offline">Offline mode</string>
<string name="status_shelters_loaded">%d shelters loaded</string>
<string name="status_no_location">Waiting for GPS&#8230;</string>
<string name="status_caching_map">Caching map for offline use&#8230;</string>
<!-- Loading screen -->
<string name="loading_shelters">Downloading shelter data&#8230;</string>
<string name="loading_map">Caching map tiles&#8230;</string>
<string name="loading_map_explanation">Preparing offline map.\nThe map will scroll briefly to cache your surroundings.</string>
<string name="loading_first_time">Setting up for first use&#8230;</string>
<!-- Shelter info -->
<string name="shelter_capacity">%d places</string>
<string name="shelter_room_nr">Room %d</string>
<string name="nearest_shelter">Nearest shelter</string>
<string name="no_shelters">No shelter data available</string>
<!-- Actions -->
<string name="action_refresh">Refresh data</string>
<string name="action_toggle_view">Toggle map/compass view</string>
<string name="action_skip">Skip</string>
<string name="action_cache_ok">Cache map</string>
<string name="action_cache_now">Cache now</string>
<string name="action_reset_navigation">Reset navigation view</string>
<string name="warning_no_map_cache">No offline map cached. Map requires internet.</string>
<!-- Permissions -->
<string name="permission_location_title">Location permission required</string>
<string name="permission_location_message">This app needs your location to find the nearest shelter. Please grant location access.</string>
<string name="permission_denied">Location permission denied. The app cannot find nearby shelters without it.</string>
<!-- Errors -->
<string name="error_download_failed">Could not download shelter data. Check your internet connection.</string>
<string name="error_no_data_offline">No cached data available. Connect to the internet to download shelter data.</string>
<string name="error_no_compass">Compass not available on this device</string>
<string name="update_success">Shelter data updated</string>
<string name="update_failed">Update failed — using cached data</string>
<!-- Accessibility -->
<string name="direction_arrow_description">Direction to shelter, %s away</string>
</resources>