Commit graph

573 commits

Author SHA1 Message Date
6e37398cf1 [strings] Switch to Weblate
https://github.com/orgs/organicmaps/discussions/4515

Weblate works fine. There is no longer a need to maintain a
homegrown, non-standard translation toolchain.

Categories are not in Weblate yet, but they weren't supported by
the previous toolkit too. This issue can be addressed later.

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2025-03-05 18:07:24 +00:00
Viktor Govako
d6f1d1174c [generator] Do not generate traffic keys
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2025-02-18 06:59:42 +03:00
Viktor Govako
1e31f4c8c0 [generator] Do not copy local planet.o5m dump, but make a symlink instead
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-02-18 06:59:42 +03:00
vng
76584aaa52 [generator] Updated doc and removed obsolete
Signed-off-by: vng <viktor.govako@gmail.com>
2025-02-18 06:59:42 +03:00
082b36b541 Use htmlmin2 to work on newer python versions
Signed-off-by: map-per <map-per@gmx.de>
2025-01-21 19:33:02 +03:00
c738109066 Add mwm_diff_tool to generator instructions
Signed-off-by: map-per <map-per@gmx.de>
2025-01-08 14:23:17 +00:00
3e6eb90be6 Remove unused mwm_names_en.txt
Signed-off-by: Harry Bond <me@hbond.xyz>
2025-01-04 13:53:07 +03:00
Rudo Kemper
62acf49cd5 Support fetching cid data
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
9e670d7752 Code cleanup
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
38b5c9188c Fix possible edge cases and clarify that we can't do CID
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
5d94959498 Script doesn't exit if unable to retrieve coords
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
87e7230570 For 0,0 coordinates, request from google API using query param value
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
130a531bcd Only parse coords from q= param if it's in coord format
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
696e28bc74 Handle null GeoJSON coords with q param
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
8b5eafc4ec Make it possible to run script from cli or programmatically
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
ceee774b1a Clarify instructions
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
456321e24f Remove mimetype comment
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
021c18760b Move print command to end of convert method
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
19f98c06f5 Use datetime instead of dateutil
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
b032cfaac1 Import specific os functions only
Signed-off-by: Rudo Kemper <31662219+rudokemper@users.noreply.github.com>
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
Rudo Kemper
8589c5766e Add option to download GeoJSON and export as GPX to google maps script
Signed-off-by: Rudo Kemper <31662219+rudokemper@users.noreply.github.com>
Signed-off-by: Rudo Kemper <rtakemper@gmail.com>
2024-11-02 22:18:43 -03:00
vng
165b81e263 [generator][script] Fixed diffs building.
Signed-off-by: vng <viktor.govako@gmail.com>
2024-10-23 13:14:38 -03:00
Alexander Borsuk
b7557fc9e5 [strings] Latvian translations from @ttrasuns
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-10-12 16:33:48 -03:00
Fabian Wüthrich
53787dd05e [bookmarks] Script to convert Google Maps Places to KML
This script converts a CSV file exported from Google Takeout to a KML file. A
user can import this KML file to Organic Maps to transfer saved places in Google
Maps to Organic Maps bookmarks. The script requires an API key because it needs
to look up the coordinates from the Google Places API.

See https://github.com/orgs/organicmaps/discussions/928

Signed-off-by: Fabian Wüthrich <me@fabwu.ch>
2024-08-20 09:59:46 +02:00
Alexander Borsuk
d8ff238648 [tools] Use formal translations instead of informal for DeepL languages
Except for pt-BR, where informal looks better.

Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-08-09 12:20:52 +02:00
0c7f9040e9 Update tools/python/stylesheet/drules_merge.py
Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
Signed-off-by: Sergiy Kozyr <s.trump@gmail.com>
2024-07-29 15:14:48 -03:00
66f04c6090 Fixed styles merging
Signed-off-by: Sergiy Kozyr <s.trump@gmail.com>
2024-07-29 15:14:48 -03:00
Alexander Borsuk
fecccafba4 [tools] Fixed clean_strings_txt.py to include iOS app tips
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-07-10 21:00:42 +02:00
Viktor Govako
402e5b26a4 [generator] Updated generator_tool and added test.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2024-07-01 13:58:24 -03:00
David Martinez
1276dc76f2 [styles] Rename styles to default/vehicle/outdoors + light/dark
clear/style-clear    -> default/style-light
clear/style-night    -> default/style-dark
vehicle/style-clear  -> vehicle/style-light
vehicle/style-night  -> vehicle/style-dark
outdoors/style-clear -> outdoors/style-light
outdoors/style-night -> outdoors/style-dark

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2024-05-23 00:16:43 -03:00
Viktor Govako
6a5d934b40 [generator][search] Restore external postcodes.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2024-05-22 17:06:20 -03:00
Andrew Shkrob
aacbe403fb [data] Remove drules_proto-bw
Signed-off-by: Andrew Shkrob <andrew.shkrob.social@yandex.by>
2024-05-08 23:29:24 +02:00
fde252347f [tools] fail with warning when OMIM_PATH doesn't exist
otherwise it fails later when trying to access `{OMIM_PATH}/data`, with the unhelpful message "AssertError: USER_RESOURCE_PATH is not None"
Signed-off-by: Harry Bond <me@hbond.xyz>
2024-05-06 14:17:55 +02:00
Alexander Borsuk
45b1100c93 Save produced json in a more compact UTF-8 format
This change will reduce the size of generated countries.txt from 405K to 355K
and speed up loading/decoding of the countries list.

Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-04-28 23:37:10 +02:00
Alexander Borsuk
9c7fc19a4a [tools] Updated translate.py script
- Correct/filter out pt-PT and zh translations
- Use ar in DeepL
- Remove es-MX as it is not supported by Google

Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-04-11 21:26:23 +02:00
eae8ebd449 [tools] properly warn if translate-shell isn't installed
Signed-off-by: Harry Bond <me@hbond.xyz>
2024-04-08 23:03:25 +02:00
Alexander Borsuk
ef5d3fa80f [tools] Fallback to Google Translations if DeepL fails
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-04-04 08:46:08 +03:00
921cdaad34 [oauth2] I accidentally removed OAuth2 application from master.apis.dev.openstreetmap.org
Have to create new one and update Debug credentials

Signed-off-by: S. Kozyr <s.trump@gmail.com>
2024-04-04 08:45:39 +03:00
388217fa58 Formatting
Removed EditorHostFragment.clearNoobAlertFlag() method

Signed-off-by: S. Kozyr <s.trump@gmail.com>
2024-04-04 08:45:39 +03:00
98e2e328b5 Added OAuth2 flow test
Signed-off-by: S. Kozyr <s.trump@gmail.com>
2024-04-04 08:45:39 +03:00
Meenbeese
d7c4c99101 [tools] Migrate all the scripts to Python3
Signed-off-by: Meenbeese <meenbeese@tutanota.com>
2024-03-18 19:10:27 +02:00
Alexander Borsuk
a9b45f9ebd [tools] Faster localizations generation
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-03-15 21:59:31 +01:00
Alexander Borsuk
11895d7ecd [android] Fix missing category strings removed by R8 from AGP 8.3
- Renamed search categories to keep them all by an R8 rule in res/raw/keep.xml
- clean strings script retrieves categories from data/categories.txt

Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-03-14 08:31:42 +02:00
1467ac4afe Added Google subfolder to string usage search
Signed-off-by: S. Kozyr <s.trump@gmail.com>
2024-03-11 08:44:47 +01:00
Alexander Borsuk
62f5c53eec [tools] Fixed warning with wrong escape sequence
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-03-09 23:28:35 +02:00
Viktor Govako
94f2d8a47c [generator] Build popularity.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2024-02-04 22:24:54 -03:00
a9973ec907 [strings] Fix messy formatting of countries_names.txt
This huge diff is necessary to re-enable automatic tooling.

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2024-01-28 12:23:58 +02:00
9d245b2d12 [strings] Add Azerbaijani translations
Machine-translated from Türkçe and reviewed.

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2024-01-07 18:35:56 +02:00
732baca186 [tools] Add a command for translating into a new language
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2024-01-07 18:35:56 +02:00
Alexander Borsuk
3c38de1a10 [tools] Enabled af, lt translations for strings
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-12-09 15:00:15 +01:00