Quincy Morgan
bbbf401232
Add en fallback in coreLocalizer instead of utilDetect.browserLocales
...
Include all preferred and fallback langauges in coreLocalizer.localeCodes even if higher-priority ones have 100% string coverage
Fallback to the user's preferred languages instead of directly to English when querying OSM wikibase documentation and Wikidata (re: #7996 )
Add `lang` attribute to tag documentation text loaded from OSM wikibase or Wikidata (re: #7963 )
2020-09-23 16:15:34 -04:00
Quincy Morgan
7b5df1bc40
Add lang attribute to issue fix labels (re: #7963 )
2020-09-22 17:48:35 -04:00
Quincy Morgan
8883c2f36d
Fix uiFlash issues
...
Clean up a few things from prior commit
2020-09-22 12:19:54 -04:00
Quincy Morgan
5435082d9c
Revert t function to returning the plain string by default
...
Add `t.html` function for getting the string with the `lang` attribute
2020-09-22 12:03:29 -04:00
Quincy Morgan
32f8274929
Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963 )
...
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
Quincy Morgan
7aa6c1d1a3
Fix infinite recursion error for en-US
2020-09-15 18:27:26 -04:00
Quincy Morgan
a9979f6534
Fallback to the user's preferred locales instead of immediately to English ( close #7996 )
2020-09-15 17:56:13 -04:00
Quincy Morgan
7ab9f268d9
Don't fetch the English strings if the preferred locale has 100% coverage ( close #7994 )
2020-09-15 16:09:08 -04:00
Quincy Morgan
8ecada3b79
Move languageNames and scriptNames data to the individual locale files instead of always loading them via locales.json (re: #7994 )
2020-09-15 14:41:56 -04:00
Quincy Morgan
f28d41b44e
Localize the format of numbers in translated strings ( close #7993 )
2020-09-15 11:34:56 -04:00
Quincy Morgan
a1c2b7f73d
Support language-specific pluralization (re: #597 , #4964 )
2020-09-14 17:21:00 -04:00
Quincy Morgan
4050940268
Lazy load photo overlay resources ( close #7982 )
2020-09-13 11:52:37 -04:00
Quincy Morgan
4b7bc73ef1
Set development version number
2020-09-08 15:20:25 -04:00
Quincy Morgan
3747e0a881
v2.18.5
2020-09-08 15:10:35 -04:00
Peter Newman
4205ca1d07
Fix the seemingly safe spellings found by codespell
...
Untested, only checked by inspection.
(cherry picked from commit 2c47a11008 )
2020-08-10 17:32:37 +01:00
Quincy Morgan
029f58f6e9
Set development version number
2020-07-31 10:34:28 -04:00
Quincy Morgan
1370160bc1
v2.18.4
2020-07-31 10:25:05 -04:00
Quincy Morgan
b3da3d3879
Set development version number
2020-07-22 11:42:27 -04:00
Quincy Morgan
3dec7b3f5e
v2.18.3
2020-07-22 11:38:28 -04:00
Quincy Morgan
b3714fac66
Set development version number
2020-07-21 10:27:57 -04:00
Quincy Morgan
b64f0b793c
v2.18.2
2020-07-21 10:23:51 -04:00
Quincy Morgan
3d0590de87
Properly instantiate context.connection before init
2020-07-21 10:19:40 -04:00
Quincy Morgan
1455eb3e3d
Set development version number
2020-07-20 16:09:19 -04:00
Quincy Morgan
d71e854489
v2.18.1
2020-07-20 16:05:34 -04:00
Quincy Morgan
c2065dbd27
Re-add endpoint to set the preferred locale code programmatically
2020-07-20 15:58:47 -04:00
Quincy Morgan
911244631c
Set development version number
2020-07-20 13:08:42 -04:00
Quincy Morgan
8f4d26ed24
v2.18.0
2020-07-20 12:37:39 -04:00
Quincy Morgan
36236d776b
Use metric by default for non-english locales with US country
2020-07-20 11:34:39 -04:00
Quincy Morgan
0bc56f9471
Start touch support for walkthrough (re: #7692 )
2020-06-26 15:48:57 -04:00
Quincy Morgan
d9ca889dcd
Account for possible null segment extents
2020-06-25 14:42:10 -04:00
Quincy Morgan
aec734100a
Improve general performance when lots of OSM data is downloaded (re: #7656 )
2020-06-25 10:08:07 -04:00
Quincy Morgan
d179f791a9
Significantly improve the performance of the crossing_ways validation in areas with long ways ( close #7656 )
2020-06-22 16:49:32 -04:00
Quincy Morgan
2b4a5d9e66
Fix lint error
2020-06-22 15:36:34 -04:00
Quincy Morgan
fd180ff60c
Improve performance somewhat in some scenarios (re: #7656 )
2020-06-22 13:35:51 -04:00
Quincy Morgan
cc5da9b9c3
Add endpoints to customize or disable iD's changing of the document title ( close #7503 )
...
Use the initial title as the default base title
2020-06-10 15:47:41 -04:00
Quincy Morgan
874c412b74
Enforce max unicode charachter length of keys, values, and relation roles through truncation upon input rather than HTML maxlength attribute ( close #6817 )
...
Normalize unicode when changing keys, values, and relation roles
2020-06-10 14:11:55 -04:00
Quincy Morgan
762307bd7d
Restrict key, value, and role character limits based on unicode characters, not UTF-16 code units (re: #6817 )
2020-06-09 15:41:15 -04:00
Quincy Morgan
cb698fb9d3
Add endpoints for setting the default changeset parameters ( close #7614 )
...
Make the cached changeset a property of the context
Properly clear cached changeset when resetting iD
2020-05-20 14:48:27 -04:00
Quincy Morgan
084d9336c4
Anchor pasted features to the position they were copied if done so with the edit menu (re: #2508 )
2020-05-15 10:55:23 -04:00
Quincy Morgan
5dcd0bfe37
Update for 2.17.3 release
2020-04-24 16:37:33 -07:00
Quincy Morgan
d7e5aa6735
Keep track of the initial hash parameters through multiple loads of the UI ( close #7504 )
2020-04-14 14:03:18 -07:00
Quincy Morgan
e7fbc4bba7
Update privacy policy to account for removal of master branch (re: #7453 )
2020-04-07 11:45:59 -07:00
Quincy Morgan
ca3a0f9dbc
Fix lint warnings
2020-04-02 11:12:10 -07:00
Quincy Morgan
8734b67821
Remove the context.intersects passthrough function
2020-04-01 15:36:53 -07:00
Quincy Morgan
60f7dc7c0b
Replace presets property of context with singleton
...
Remove utilPreset
2020-04-01 13:08:45 -07:00
Quincy Morgan
527faa7b42
Remove need for coreContext in presetIndex
2020-04-01 11:25:45 -07:00
Quincy Morgan
a58abe3c6f
Move localStorage interface from a property of coreContext to a corePreferences function
2020-04-01 11:00:48 -07:00
Quincy Morgan
170cf0beea
Add isFirstSession property to context
2020-03-31 15:45:52 -07:00
Quincy Morgan
a1af118f0e
Ensure locales and presets are loaded before the UI loads ( close #7406 )
...
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan
0931459dba
Reduce use of global selection (re: #7445 )
2020-03-24 13:02:06 -07:00