[strings] Add nl-Dutch translations #3338

Merged
jimcarst merged 2 commits from strings-nl-dutch into master 2022-09-04 20:39:12 +00:00
jimcarst commented 2022-09-04 14:41:05 +00:00 (Migrated from github.com)

Added all missing Dutch translations in strings.txt and types_strings.txt.

Encountered some errors in string_utils.py on Windows.

  • Incorrect paths
  • Writing the sorted file crashes at non-Latin characters
  File "./organicmaps\tools\python\strings_utils.py", line 642, in <module>
    strings.write_formatted(target_file=args.output, langs=args.langs, keep_resolved=args.keep_resolved)
  File "./organicmaps\tools\python\strings_utils.py", line 359, in write_formatted
    self._write_translations_for_langs(outfile, sorted_langs, tran, ref_tran)
  File "./organicmaps\tools\python\strings_utils.py", line 365, in _write_translations_for_langs
    outfile.write("    {0} = {1}\n".format(
  File "./cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 9-17: character maps to <undefined>

Because of this the files still need to be sorted, and regenerated.

Added all missing Dutch translations in `strings.txt` and `types_strings.txt`. Encountered some errors in `string_utils.py` on Windows. - Incorrect paths - Writing the sorted file crashes at non-Latin characters ```py File "./organicmaps\tools\python\strings_utils.py", line 642, in <module> strings.write_formatted(target_file=args.output, langs=args.langs, keep_resolved=args.keep_resolved) File "./organicmaps\tools\python\strings_utils.py", line 359, in write_formatted self._write_translations_for_langs(outfile, sorted_langs, tran, ref_tran) File "./organicmaps\tools\python\strings_utils.py", line 365, in _write_translations_for_langs outfile.write(" {0} = {1}\n".format( File "./cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 9-17: character maps to <undefined> ``` Because of this the files still need to be sorted, and regenerated.
vng (Migrated from github.com) approved these changes 2022-09-04 16:19:01 +00:00
vng (Migrated from github.com) left a comment

Thanks a lot! Is it possible to put "nl = ..." into the list with sorted order? We try to keep sorted list of languages to make it easy for other contributors.

Thanks a lot! Is it possible to put "nl = ..." into the list with sorted order? We try to keep sorted list of languages to make it easy for other contributors.
jimcarst commented 2022-09-04 18:21:07 +00:00 (Migrated from github.com)

@vng Sorted, and fixed string_utils.py.

@vng Sorted, and fixed `string_utils.py`.
biodranik (Migrated from github.com) approved these changes 2022-09-04 20:38:50 +00:00
biodranik (Migrated from github.com) left a comment

Thank you for the contribution!

Thank you for the contribution!
501Ghost commented 2022-09-05 15:51:00 +00:00 (Migrated from github.com)

I just made more Dutch translations for types_strings.txt (the one I found at https://github.com/organicmaps/organicmaps/blob/master/data/strings/types_strings.txt). It includes both new translations and edits of existing ones.
I also added a single Italian translation for highway=motorway and an update for the English wlan tag.

This is my first time uploading anything to Github so I hope this won't cause any conflicts or other issues. Please let me know if I did this correctly.

types_strings.txt

I just made more Dutch translations for types_strings.txt (the one I found at https://github.com/organicmaps/organicmaps/blob/master/data/strings/types_strings.txt). It includes both new translations and edits of existing ones. I also added a single Italian translation for highway=motorway and an update for the English wlan tag. This is my first time uploading anything to Github so I hope this won't cause any conflicts or other issues. Please let me know if I did this correctly. [types_strings.txt](https://github.com/organicmaps/organicmaps/files/9491062/types_strings.txt)
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
1 participant
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#3338
No description provided.