Commit graph

3466 commits

Author SHA1 Message Date
Tom Hughes
127880a73f Switch to using the zeitwork autoloader 2020-12-29 18:42:22 +00:00
translatewiki.net
1f2653d476 Localisation updates from https://translatewiki.net. 2020-12-29 09:03:29 +01:00
Andy Allan
547459314b Refactor diary entry forms to use a custom form builder 2020-12-24 13:32:41 +00:00
translatewiki.net
279787943e Localisation updates from https://translatewiki.net. 2020-12-22 14:04:52 +01:00
translatewiki.net
c63637f304 Localisation updates from https://translatewiki.net. 2020-12-17 15:21:34 +01:00
Tom Hughes
aeb9c4df97 Merge remote-tracking branch 'upstream/pull/3002' 2020-12-16 19:17:22 +00:00
translatewiki.net
2168ad2108 Localisation updates from https://translatewiki.net. 2020-12-14 15:14:05 +01:00
translatewiki.net
0297cec87b Localisation updates from https://translatewiki.net. 2020-12-10 13:56:16 +01:00
Tom Hughes
efef67447b Add actions workflow to run tests 2020-12-09 22:07:40 +00:00
translatewiki.net
1985142ff5 Localisation updates from https://translatewiki.net. 2020-12-08 16:01:22 +01:00
translatewiki.net
f8f327179c Localisation updates from https://translatewiki.net. 2020-12-07 15:56:26 +01:00
Frédéric Rodrigo
bab39572a1 Add CyclOSM layer 2020-12-06 21:29:36 +01:00
Tom Hughes
92712591c9 Merge remote-tracking branch 'upstream/pull/2993' into master 2020-12-06 18:44:33 +00:00
translatewiki.net
2d2b1f1f31 Localisation updates from https://translatewiki.net. 2020-12-03 15:51:48 +01:00
Andy Allan
78dd142df4 Avoid using raw in html mailer views
Use the _html suffix to mark that we expect the translations to contain links.

Unfortunately, we can't use the _html keys for the plain text emails, since the input options (e.g. username, url) will be html-escaped,
before it is passed to the view. So we need to use non-html-suffix keys for the plaintext views, in most cases. Only when the translation
options (e.g. url) are guaranteed to not contain any escapable characters can the same translation key be shared.
2020-12-02 15:13:09 +00:00
Andy Allan
48b85a7fee
Merge pull request #2969 from tuckerrc/diary-updated-date
Add last updated date to diary entry page
2020-12-02 11:30:22 +00:00
Sarah Hoffmann
a7b95e2a63 Improve guessing of labels for Nominatim results
This adapts to two changes in place handling by Nominatim:

* Place links that are computed by Nominatim are now found in
  extratags['linked_places']. Keep the check for extratags['place']
  as this may contain an explicitly mapped place label.
* Use address rank for guessing the admin level. This gets normalised
  by Nominatim with respect to country-specific use of admin_level.

Also adds additional labels for admin levels, so that we now have
complete coverage for all levels that are in use in OSM.
2020-12-01 22:52:40 +01:00
translatewiki.net
78137c93b5 Localisation updates from https://translatewiki.net. 2020-11-30 17:11:29 +01:00
Tucker Chapman
c274d22fd6 Update translate string and only show if different from creation time 2020-11-26 22:04:54 -05:00
translatewiki.net
c6144501cd Localisation updates from https://translatewiki.net. 2020-11-26 18:03:18 +01:00
Andy Allan
342e25dd5a Remove duplicate translation strings, and use short form translation lookups 2020-11-25 18:28:35 +00:00
Andy Allan
8f157ab2b1 Rename subject translation key, for consistency 2020-11-25 18:28:35 +00:00
Tom Hughes
5d96da3b67 Merge remote-tracking branch 'upstream/pull/2983' into master 2020-11-25 16:59:23 +00:00
Andy Allan
7b0de13c61 Allow smtp settings to be configured through the settings system
This allows easier configuration using the settings.local.yml files

Fixes #2571
2020-11-25 16:12:49 +00:00
Tom Hughes
a6dd1ec4b8 Merge remote-tracking branch 'upstream/pull/2970' into master 2020-11-25 15:18:39 +00:00
Andy Allan
5368f9f9b4
Merge pull request #2971 from tomhughes/table
Add bootstrap classes to markdown tables
2020-11-25 11:55:05 +00:00
translatewiki.net
dbe67d0a75 Localisation updates from https://translatewiki.net. 2020-11-23 15:29:08 +01:00
translatewiki.net
ca41f1f981 Localisation updates from https://translatewiki.net. 2020-11-19 15:55:28 +01:00
Tom Hughes
d516ba5335 Add bootstrap classes to markdown tables 2020-11-19 10:17:21 +00:00
Andy Allan
f635b98b8c Refactor trace notifications to reduce lego translations
Fixes #2268.

Unfortunately there's still a lego translation when both halves of the sentence are joined together, but this at least reduces the number of combinations to translate.
2020-11-18 18:14:55 +00:00
Tucker Chapman
f4239f8fc5 Add last updated date to diary entry page 2020-11-17 20:33:27 -05:00
translatewiki.net
39a04dc751 Localisation updates from https://translatewiki.net. 2020-11-16 15:24:21 +01:00
translatewiki.net
aaae55ffda Localisation updates from https://translatewiki.net. 2020-11-09 12:47:12 +01:00
translatewiki.net
f6ded967a8 Localisation updates from https://translatewiki.net. 2020-11-05 13:28:49 +01:00
translatewiki.net
1870f1ddf9 Localisation updates from https://translatewiki.net. 2020-11-02 12:51:54 +01:00
translatewiki.net
484cb3f415 Localisation updates from https://translatewiki.net. 2020-10-29 13:26:26 +01:00
Andy Allan
847536c80d Avoid some uses of html_safe
We can use `html_safe` on non-interpolated strings, since that's trusted content.
2020-10-28 14:45:20 +01:00
translatewiki.net
c1de6a5f91 Localisation updates from https://translatewiki.net. 2020-10-26 16:06:52 +01:00
translatewiki.net
0084ed303a Localisation updates from https://translatewiki.net. 2020-10-22 13:08:56 +02:00
Tom Hughes
e9ad6d852c Merge remote-tracking branch 'upstream/pull/2901' 2020-10-21 20:51:03 +01:00
Andy Allan
c233bec67b Use flexbox to position the close icon on the sidebars
This ensures that the text and the close icon don't overlap, regardless
of the length of the title. The title div grows to use all available
space, while ensuring the text breaks if necessary to prevent it from
pushing the close icon offscreen.
2020-10-21 17:11:28 +02:00
Tom Hughes
843635e1b3 Merge remote-tracking branch 'upstream/pull/2899' 2020-10-21 15:12:05 +01:00
Andy Allan
2559226be3 Avoid various uses of html_safe
We can avoid using `html_safe` in various circumstances, through alternative approaches like i18n keys ending in `_html` or using `safe_join` to avoid converting via unsafe string types.

The `_html` keys approach only work for ActionView helper version of `t`, not the base `I18n.t` method.
2020-10-21 15:43:14 +02:00
Andy Allan
790ffed9b8 Remove unused translation
The code that used this was removed in 9a9e13af90
2020-10-21 15:38:53 +02:00
Andy Allan
465926ebeb Remove unused translations
The code that used these translations was removed in aaeca5b534
2020-10-21 15:37:57 +02:00
translatewiki.net
b39251810b Localisation updates from https://translatewiki.net. 2020-10-19 15:01:22 +02:00
Andy Allan
2c1033f62d Rename Notifier to UserMailer
It's a convention in rails to name your mailers with a Mailer suffix, and is also common to name the class after the recipient (e.g. User, Admin). So UserMailer seems a reasonable choice.
2020-10-14 15:04:58 +02:00
translatewiki.net
c64e819edc Localisation updates from https://translatewiki.net. 2020-10-12 15:58:23 +02:00
translatewiki.net
88c6b41e29 Localisation updates from https://translatewiki.net. 2020-10-08 16:01:10 +02:00
translatewiki.net
0b421c9314 Localisation updates from https://translatewiki.net. 2020-10-05 16:05:15 +02:00