[editor] Clarify building_levels description in editor hint #10069

Open
DeshDeepakKant wants to merge 1 commit from DeshDeepakKant/fix/building_levels_hint into master
DeshDeepakKant commented 2025-01-14 21:36:06 +00:00 (Migrated from github.com)

Description

Updated the hint text for building levels in the editor to make it clearer that:

  • Ground floor should be included in the count
  • Roof levels should be excluded
  • Removed the maximum value mention from the hint as it's already shown in the error popup

Changed from:
"Number of floors (maximum of %d)"

To:
"Floors (inc. ground floor, excl. roof levels)"

Before

3aae0c78-6d4a-4103-8c88-17fcb7c2d322

After

843e8a36-f949-4041-9309-7a999e5d9e3e

Alternative Solutions Considered

  1. Tried longer, more explicit version:
    "Number of floors (including ground floor, excluding roof levels)"
    Issues found:
    • Text was getting truncated in the UI
      4fe59c56-ab4f-42c7-aff7-5a2260e1301b

Signed-off-by: Desh Deepak Kant deshdeepakkant@gmail.com

# Description Updated the hint text for building levels in the editor to make it clearer that: - Ground floor should be included in the count - Roof levels should be excluded - Removed the maximum value mention from the hint as it's already shown in the error popup ## Related Issue - Fixes **#10025**. Changed from: ```"Number of floors (maximum of %d)"``` To: ```"Floors (inc. ground floor, excl. roof levels)"``` ## Before ![3aae0c78-6d4a-4103-8c88-17fcb7c2d322](https://github.com/user-attachments/assets/97a54e94-0ecb-4f6a-9823-a5a55b1cde3d) ## After ![843e8a36-f949-4041-9309-7a999e5d9e3e](https://github.com/user-attachments/assets/ed1a288b-207a-4fdd-84b1-e554c8396aae) ## Alternative Solutions Considered 1. Tried longer, more explicit version: ```"Number of floors (including ground floor, excluding roof levels)"``` Issues found: - Text was getting truncated in the UI ![4fe59c56-ab4f-42c7-aff7-5a2260e1301b](https://github.com/user-attachments/assets/55991daf-7a03-4828-b809-2867da9bcf66) Signed-off-by: Desh Deepak Kant <deshdeepakkant@gmail.com>
map-per requested changes 2025-01-15 12:26:28 +00:00
map-per left a comment
Contributor

Thanks for the PR, here a few remarks:

  • The code that programmatically injects "50" into the string should be removed
  • The editor_storey_number string is also used in iOS. To not brake iOS it's probably best to create a separate string that can be used just for Android until iOS is changed as well.
  • The string should be translated into all languages (see: TRANSLATIONS.md).

General tip: You can use tools/unix/generate_localizations.sh to distribute changes from strings.txt to the Android and iOS translation files.

Thanks for the PR, here a few remarks: - The code that programmatically injects "50" into the string should be removed - The `editor_storey_number` string is also used in iOS. To not brake iOS it's probably best to create a separate string that can be used just for Android until iOS is changed as well. - The string should be translated into all languages (see: [TRANSLATIONS.md](https://github.com/organicmaps/organicmaps/blob/master/docs/TRANSLATIONS.md)). General tip: You can use `tools/unix/generate_localizations.sh` to distribute changes from _strings.txt_ to the Android and iOS translation files.
This repo is archived. You cannot comment on pull requests.
No reviewers
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#10069
No description provided.