Tom Hughes
1db05339d3
Don't set the Status header - it is set automatically by the FastCGI code
...
and this manually set one conflicts with that and causes a 200 response
in rails 2.3.2 it seems.
2009-06-04 22:53:05 +00:00
Tom Hughes
2f3e23f6eb
Move to version 2.3.2 of rails.
2009-06-04 08:08:24 +00:00
Tom Hughes
afb13ad93e
Refactor potlatch error handling.
2009-06-03 16:51:33 +00:00
Tom Hughes
6bc03625a1
Send a Content-Language header with any localised pages.
2009-06-03 12:29:26 +00:00
Tom Hughes
f0f111aced
Make a few more things translatable.
2009-06-03 08:06:03 +00:00
Tom Hughes
11f457e842
Use "confirm_email" instead "confirm email" in resource names so it
...
matches the method name.
2009-06-03 07:42:40 +00:00
Ævar Arnfjörð Bjarmason
9a051df2d2
* Made "Account not active" and "Couldn't log in with those details" translatable
2009-06-03 01:42:55 +00:00
Ævar Arnfjörð Bjarmason
6bcc50e274
* Made the "Confirmed your account/email" messages translatable
...
* Changed "Something went wrong" error to "you've already used that token". From reading the code that's the only time it's displayed
2009-06-03 01:31:35 +00:00
Ævar Arnfjörð Bjarmason
e70e2dbe9f
Change /index.php/ in wiki.openstreetmap.org links to /wiki/. This looks nicer
2009-06-02 12:23:37 +00:00
Tom Hughes
cd48e2d1f7
Remove left over code from original diary language implementation that
...
was stopping editing from being able to change the language.
2009-06-02 08:56:49 +00:00
Tom Hughes
0f7301b64f
Correct translation name.
2009-06-02 08:40:16 +00:00
Tom Hughes
1be7bb8a04
Make a few more strings translatable in the diary entry controller
...
and tidy up the translations for some of the partials.
2009-06-02 08:13:41 +00:00
Tom Hughes
95595ee7f0
Internationalise the trace controller. Fixes #1894 .
2009-06-02 07:45:31 +00:00
Shaun McDonald
2875a2c4b3
more tranlations for validations. Bug fix for the missing translation of the gps upload
2009-06-01 18:09:24 +00:00
Tom Hughes
705f93e810
Fix misspelt resource name.
2009-06-01 08:50:20 +00:00
Shaun McDonald
f3bcdd85d7
Some more i18n html titles
2009-05-31 16:51:20 +00:00
Tom Hughes
168036d3a2
Add a simple edit control for the user's preferred languages.
2009-05-31 15:22:59 +00:00
Tom Hughes
0e96027a20
Sort out storage and use of user preferred languages.
2009-05-31 14:55:45 +00:00
Tom Hughes
3d906fe8c6
Merge 15165:15373 from trunk.
2009-05-31 11:32:32 +00:00
Tom Hughes
5b3b288fc2
Add a list of languages and fix a few issues with the schema. Also get
...
language selection for diary entries working.
2009-05-30 16:37:21 +00:00
Shaun McDonald
f508cfb05f
Fix a few typos
2009-05-30 15:57:49 +00:00
Shaun McDonald
3a599519eb
Some more of the user account translations. Custom generate method for languages, that doesn't appear to work. Setting user language on create. Start translations in controllers. Diary entries can now be saved.
2009-05-30 14:04:42 +00:00
Shaun McDonald
035254c5fb
Might be useful to set the locale everywhere we need the web, rather than just the diary entries.
2009-05-29 14:11:12 +00:00
Shaun McDonald
b377927a64
Diary entries pretty much i18n'd. Additional test that checks there are no missing translation strings, need more like it.
2009-05-27 17:19:59 +00:00
Shaun McDonald
4ee48d2ad9
Actually set the locale from the users browser request, rather than just parsing it.
2009-05-27 12:57:28 +00:00
Tom Hughes
2bf56c7be3
Don't ask the backend directly for the available locales - just ask
...
the I18n module and let it worry about where to find them.
2009-05-22 23:42:17 +00:00
Shaun McDonald
53b4d645d8
First stage of i18n. Some migrations and extra plugins.
2009-05-22 18:36:17 +00:00
Tom Hughes
4a4d89138c
Rationalise API error classes by getting of the render_opts method which
...
was never used except to extract the data it contained. Instead each class
now has a status method that returns the HTTP status code to use and a
to_s method to return a textual description of the error.
2009-05-21 19:28:39 +00:00
Tom Hughes
912f708d62
Fix some comments to reflect reality.
2009-05-21 17:30:20 +00:00
Matt Amos
94c89838d4
Use utility method for error reporting.
2009-05-21 14:55:25 +00:00
Shaun McDonald
d4954bc7b1
Raising an exception in Ruby requires a .new. Add a timeout line to the capabilities call.
2009-05-21 14:05:09 +00:00
Tom Hughes
97769170fd
Give the API error handler a generic rescue that returns 500 with
...
the exception details.
2009-05-21 10:02:26 +00:00
Richard Fairhurst
8100be1e8d
Potlatch 1.0
2009-05-21 00:30:33 +00:00
Tom Hughes
b38684e59e
Add a global timeout that is applied to most API requests.
2009-05-20 22:18:36 +00:00
Matt Amos
3d0ca940d2
Using an around_handler for catching and rendering errors in most of the API controller methods. This simplifies the code and makes errors and error messages a bit more consistent. Also added a utility method for checking the HTTP method.
2009-05-20 17:39:59 +00:00
Tom Hughes
058d942c7c
Log arguments to AMF read methods.
2009-05-20 13:24:59 +00:00
Tom Hughes
fe13e13d16
Arrays of object IDs are a bad idea.
2009-05-15 09:18:10 +00:00
Tom Hughes
fa13a11a94
Optimise retrieval of full relations.
2009-05-15 09:10:50 +00:00
Richard Fairhurst
add2d223a6
Apply #1824 .
2009-05-14 08:38:32 +00:00
Richard Fairhurst
ced42cf101
always set new node id when updating/deleting (to be read in conjunction with zere's patch)
2009-05-13 19:23:59 +00:00
Shaun McDonald
807070f818
Actually mark a trace as being public based on the saved preference, rather than simply ignoring the saved preference.
2009-05-12 15:29:27 +00:00
Matt Amos
ed0a1658df
Removed updatetimeout method, as it isn't needed any more.
2009-05-12 14:38:22 +00:00
Matt Amos
1ceb4ab9ba
Fixed bug #1816 - the timeout updating logic should have been in a before_save handler, not in save_with_tags.
2009-05-12 13:54:37 +00:00
Tom Hughes
3a8a2ebb1a
Add an internal geocoder for lat/lon positions.
2009-05-10 11:57:10 +00:00
Tom Hughes
69c2400997
Add a warning about whitelisting webmaster@openstreetmap.org in antispam
...
systems.
2009-05-09 16:46:36 +00:00
Tom Hughes
f7cbff9a5a
Move geocoder constants to application configuration to avoid test warnings.
2009-05-08 18:21:39 +00:00
Shaun McDonald
a41f1b297b
No need to define a constand for the appconfig var. Removes a warning when running under rails 2.2.2
2009-05-08 14:20:26 +00:00
Richard Fairhurst
8696d144ad
Potlatch 0.11b
2009-05-04 23:37:06 +00:00
Thomas Wood
22292debda
Data browser changes, make links more user friendly, displaying name tag where possible.
...
Changes to models ok'd (and suggested as temporary solution) by TomH
References #1777
2009-05-02 00:26:37 +00:00
Shaun McDonald
33d32bf737
We don't need an extra method for the amf controller for saving nodes, just catch the exception and do nothing with that exception.
2009-04-30 15:16:15 +00:00