Commit graph

1537 commits

Author SHA1 Message Date
Tom Hughes
0884e7b431 Add _html suffixes to some resource strings which have changed
Where a translatable string contains (directly or indirectly via
interpolations) some HTML it is better to add an _html suffix to
the key rather than wrap the result in raw so that escaping is
handled automatically for interpolations.

It's not worth doing until a string is changed and needs to be
retranslated though, as it will just break translations.
2012-03-14 18:29:04 +00:00
Tom MacWright
dc48c9a510 Front page copy revision
This edits the front page copy to be more direct, link off to more
useful resources, and guide people to register for an account. It
also moves partner links to below the donate link.
2012-03-14 17:33:00 +00:00
Tom Hughes
97f31cbf3b Add missing translation for new community submenu 2012-03-14 14:25:55 +00:00
Tom Hughes
9980904f98 Fix broken interpolations in translations 2012-03-14 14:21:42 +00:00
Tom Hughes
21855aa355 Allow POST requests to the home page so OpenSearch works 2012-03-14 13:44:03 +00:00
Sarah Hoffmann
5ef841085e Update prefixes for nominatim search 2012-03-14 00:02:29 +00:00
Siebrand Mazeland
3e5a10eb01 Localisation updates from http://translatewiki.net. 2012-03-11 21:59:53 +01:00
Tom Hughes
58d889436f Fix various routing and route generation errors 2012-03-09 23:15:39 +00:00
Tom Hughes
d5bdf633bf Remove some unecessary routes and add lots of method constraints 2012-03-09 20:15:34 +00:00
Tom Hughes
4d7c3db62c Use cache store for sessions when memcached is not available
Using cookie store is problematic because there is a limit to the
amount of session data you can store, and we sometimes overflow.
2012-03-06 10:42:37 +00:00
Tom Hughes
c5a54b779c Add a temporary hack to suppress some broken rails translations
See https://github.com/svenfuchs/rails-i18n/issues/194 for more
information and progress on an upstream fix.
2012-03-06 09:21:26 +00:00
Tom Hughes
1340fca8f1 Turn on mass assignment protection
Require any attribute that is going to be mass assigned to be
whitelisted, and whitelist those attributes which need it
2012-03-06 08:54:45 +00:00
Tom Hughes
a1321f2c50 Remove translation reload that is no longer needed
Now that we are using the rails-i18n gem the rails locales are added
to the path early on and we don't need to reload to get them.
2012-03-04 15:10:51 +00:00
Tom Hughes
10d8bbfedb Remove dummy locales as they are no longer needed 2012-03-04 14:26:38 +00:00
Tom Hughes
be6a33b805 Fix interpolation variable errors 2012-03-04 14:24:45 +00:00
Siebrand Mazeland
15725cfc81 Localisation updates from http://translatewiki.net. 2012-03-03 13:43:40 +01:00
Tom Hughes
06934ad375 Update rails-i18n to 0.5.1
This update allows us to drop our pluralization support, as rails-i18n
now takes care of that, and for a far wider range of locales.
2012-03-02 09:19:12 +00:00
Tom Hughes
a678a330ef Fix broken interpolations 2012-03-01 15:53:35 +00:00
Siebrand Mazeland
5ebb07c6d4 Localisation updates from http://translatewiki.net. 2012-03-01 16:27:53 +01:00
Tom Hughes
dffd5fe2d0 Remove references to mapnik in the export pane 2012-03-01 12:19:44 +00:00
Tom Hughes
b61e414356 Rename "Mapnik" to "Standard" in the layer switcher 2012-03-01 12:18:55 +00:00
Tom Hughes
acbd254e4a Remove the osmarender map layer 2012-03-01 09:45:41 +00:00
Tom MacWright
7b6d0f0313 Simplify login page
Moves action buttons to be with the form instead of way over on
the opposite side of the page.

Reorganizes "remember me" to a more typical spot on the page.

Get rid of separate "create account" panel and replace it with an
above the fold link.
2012-02-29 00:13:09 +00:00
Tom Hughes
c9a4ec5e63 Improve the diary comments view
Make sure all strings are translatable; replace a manually constructed
link with link_to; improve date formatting; and use cycle to alternate
colours for the table rows.
2012-02-28 21:49:41 +00:00
Steve Singer
1944372af8 Add a view to show diary comments left by a user 2012-02-28 21:29:18 +00:00
Grant Slater
e45f8855c4 Add additional notice to UMP attribution per request of LWG 2012-02-28 18:05:34 +00:00
Grant Slater
6a8bf56c8c Add "South Africa Chief Directorate: National Geo-Spatial Information" to copyright notices 2012-02-28 18:05:14 +00:00
Tom Hughes
24a26e015a Pipeline memcache requests to the cache 2012-02-27 09:01:48 +00:00
Tom Hughes
57ba7d6f0b Switch to using memcache as the session store
As a temporary measure any session which is not found in memcache
will be looked for in the database instead.
2012-02-27 09:01:48 +00:00
Tom Hughes
f778b61c03 Refactor memcache connection handling 2012-02-27 09:01:47 +00:00
Tom Hughes
af13c42322 Refactor session persistence code 2012-02-26 21:44:17 +00:00
Siebrand Mazeland
43bbb3f651 Correct misspellings of CC BY[-SA] 2012-02-25 15:56:30 +01:00
Tom Hughes
35273947f0 Add a stub locale file for "no" so that fallback works 2012-02-25 00:12:04 +00:00
Tom Hughes
f2150a94cf Serve up paperclip attachments in a cache friendly way 2012-02-21 12:31:38 +00:00
Tom Hughes
9c02133098 Don't double up newlines in the log 2012-02-19 10:52:54 +00:00
Tom Hughes
21e3047ba6 CompressedMemCacheStore has been replaced by MemCacheStore 2012-02-19 10:44:36 +00:00
Tom Hughes
478f30d69f Remove backported code now we are using mail 2.4.1 2012-02-15 17:48:16 +00:00
Tom Hughes
4de07696d5 Turn session-persistence plugin into a library 2012-02-15 17:48:15 +00:00
Tom Hughes
e70396d70b Replace the file_column plugin with paperclip 2012-02-15 17:48:15 +00:00
Tom Hughes
29c1bab0e6 Turn output_compression plugin into a library 2012-02-15 17:48:15 +00:00
Tom Hughes
ca8e1bf188 Turn classic_pagination plugin into a library 2012-02-15 17:48:15 +00:00
Tom Hughes
10fb373e5e Switch to using http_accept_language as a gem 2012-02-15 17:48:15 +00:00
Tom Hughes
ee411e5154 Update to rails 3.2.0 2012-02-15 17:48:14 +00:00
Tom Hughes
3121d1b5a0 Put pretty route for /copyright/locale first 2012-02-14 11:54:16 +00:00
Tom Hughes
beb0ef6357 Stop pretending we support MySQL 2012-02-08 14:08:49 +00:00
Tom Hughes
0605d4aa8b Don't eager load models when the database is offline 2012-02-04 00:42:47 +00:00
Tom Hughes
870c36ecf6 Correct mistakenly translated interpolation variable name 2012-01-30 22:33:41 +00:00
Tom Hughes
d405637b05 Monkey patch mail to handle character encodings on ruby 1.8 2012-01-30 21:42:41 +00:00
Siebrand Mazeland
507882a576 Localisation updates from http://translatewiki.net. 2012-01-30 17:43:01 +01:00
Tom Hughes
2c666b42d7 Fix exception when a suspended user tries to login 2012-01-23 14:31:06 +00:00