[ios] Change text "X objects" to "Y places, Z tracks" in Bookmarks and Tracks dialog #8245
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/organicmaps-tmp#8245
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "8217"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes: #8217
Switch is less readable here, and it also has lookingly unnecessary case. When is this default used?
@ -11,1 +5,3 @@
return String(format: L("tracks"), trackCount)
let bookmarks = String(format: L("bookmarks_places"), bookmarksCount)
let tracks = String(format: L("tracks"), trackCount)
I think that [objects] string can be removed from strings.txt as unused, right?
Thanks! We usually split string regeneration commit into a separate one, to help with merge conflicts. Do you know how to amend commit and split it into two?
Thanks for your patience and contribution!
Дзякуй!
Ooops, sorry, I've somehow missed failed Android checks, there is one usage of the deleted string:
We can make it better for the zero case (btw, it should also иу handled in the iOS code).
What about changing Android code to use
bookmarks_empty_list_title
translation and add the same translation to iOS when there are 0 items?Looks like translations for 1 bookmark or 1 track are incorrect, can you please check it/fix it too?
It would be great to avoid creating a string if it's not needed, by moving this code into the condition.
Braces are not needed for one-liners.
iOS uses
bookmarks_places
string, it would be better to use it on Android too, and delete theplaces
string.@kirylkaveryn for some reason, singular forms are not printed with this code on iOS 15 simulator. Do you have any ideas why it doesn't work?
Hmm it seems like the plurals have only the
other
field and miss theone
for EN.I didn't check the other translations.
@kirylkaveryn thanks for the hint. Looks like our Twine tool does not generate plurals from a generic language (en) into sublanguage (en-GB):
Thanks for your hard work!
@ -1,3 +1,4 @@
6aa73face8b5eb8e026cfafa40d1983d4a0502c0
480fa6c2fcf53be296504ac6ba8e6b3d70f92b42
a6ede2b1466f0c9d8a443600ef337ba6b5832e58
1377b81bf1cac72bb6da192da7fed6696d5d5281
This is to have a cleaner git history for data/strings.txt
@ -1,3 +1,4 @@
6aa73face8b5eb8e026cfafa40d1983d4a0502c0
480fa6c2fcf53be296504ac6ba8e6b3d70f92b42
a6ede2b1466f0c9d8a443600ef337ba6b5832e58
1377b81bf1cac72bb6da192da7fed6696d5d5281
I prefer to keep history. I see that other strings also was affected (accidently?)
Please, put additional braces to clear show what you mean (yes, I know that || goes after &&, but anyway).
? Unprintable symbols here and below.
? Unprintable symbols here and below.
Oh wow, good catch! @itfarrier which editor did you use to edit strings.txt?Looks like it's our python script that cleans strings breaks the encoding. I'll take a look.