Tom Hughes
f4dba81b64
Modify the existing i18n() javascript function to lookup strings in
...
the javascript i18n array as well as expanding arguments, and make all
lookups go through it.
2009-10-02 23:41:19 +00:00
Tom Hughes
596ab82461
Move javascript translations to a separate key based on the path to
...
the javascript file that uses them and amend the layout to automatically
find and output all javascript strings.
2009-10-02 23:33:17 +00:00
Tom Hughes
52126dc3c1
There is no need to translate the names of layers which are not shown
...
in the layer switcher.
2009-10-02 23:03:42 +00:00
Ævar Arnfjörð Bjarmason
4c84709c80
Follow up to [17948]: Make the layer switcher translatable too!
2009-10-02 20:39:47 +00:00
Ævar Arnfjörð Bjarmason
b0e1560875
Some of our JavaScript files have UI messages but we don't want to
...
make them dynamic.
So I'm creating a globally scoped JavaScript array called rails_i18n
which holds some of these messages. It's loaded in <head> before any
of the JavaScript files so it should always be available.
2009-10-02 20:19:28 +00:00
Tom Hughes
d0f2288797
Add parentheses to avoid warnings.
2009-10-02 14:40:25 +00:00
Ævar Arnfjörð Bjarmason
8c1d3fdd6b
Amend [17942]:
...
* Center-align donation text
* Add title="" to the donate link
* Use an official cc_button.png from http://1.1.1.1/bmi/i.creativecommons.org/l/by-sa/2.0/88x31.png that doesn't include English text
* Add rel=license to license link as suggested by CC
* Add width/height to CC button
2009-10-02 13:04:47 +00:00
Tom Hughes
968e6c417f
Replace the donate button with a text version that can be translated.
2009-10-02 12:29:44 +00:00
Ævar Arnfjörð Bjarmason
2dab83d57b
use {{count}} instead of {{sent_count}} so rails plural forms will kick in
2009-10-02 10:41:47 +00:00
Ævar Arnfjörð Bjarmason
801182d2ea
Actually make the last commit work. I thought Ruby's string interpolation syntax worked differently
2009-09-29 10:12:01 +00:00
Ævar Arnfjörð Bjarmason
0197460689
Escape user-supplied JavaScript. Fixes http://lists.openstreetmap.org/pipermail/talk/2009-September/042846.ht
2009-09-29 09:23:11 +00:00
Thomas Wood
ec26e06706
5 character patch to only output duplicated nodes once in a way/full call
...
Unit tests not run - problems on this system
Fixes #2327
2009-09-29 02:55:35 +00:00
Tom Hughes
b8afd4fbf3
Fix comment typo.
2009-09-24 23:27:45 +00:00
Tom Hughes
77ce1b2809
Ignore empty tags. Closes #2311 .
2009-09-24 23:27:13 +00:00
Tom Hughes
2297dc9074
Wrap GPX API calls with the API error handler, and make sure the create
...
method throws on error so it can be trapped and reported. Closes #2310 .
2009-09-24 23:15:35 +00:00
Ævar Arnfjörð Bjarmason
9b7e39dc49
I moved Potlatch's locales but didn't update this, which broke all i18n
2009-09-23 23:34:43 +00:00
Ævar Arnfjörð Bjarmason
5a76b08868
oops, removing debugging code
2009-09-23 17:36:51 +00:00
Ævar Arnfjörð Bjarmason
65eec82978
[2304]: Split the default English i18n parameter in Potlatch out to a YAML file
2009-09-23 17:08:46 +00:00
Tom Hughes
fc5261ece5
Remove remaining trailing spaces from translations.
2009-09-22 20:15:09 +00:00
Ævar Arnfjörð Bjarmason
421b611389
Use i18n() parameters for this JavaScript message instead of ad-hoc
...
string concatenation.
See [17712] for why I'm changing this.
2009-09-20 10:41:57 +00:00
Ævar Arnfjörð Bjarmason
185c7c24ae
See [17712] for why I'm changing this
...
The 'user.view.mapper since' message is broken. It should be done with
translation parameters. But messages can't include HTML like <b> and I
don't want to experiment with making that work or changing this into a
HTML table that doesn't look crappy.
2009-09-20 10:25:31 +00:00
Richard Fairhurst
00332614f9
add ability to specify custom background in the query string
2009-09-18 14:11:18 +00:00
Ævar Arnfjörð Bjarmason
658a34714f
When displaying objects in /browse/* and in the JavaScript "Data"
...
feature use the name key corresponding to the user's
locale. E.g. "name:is" for Icelandic.
This will fall back on "name". The interface will be equivalent unless
the user has selected another language than English in the preferences
and objects with localized name:* tags corresponding to the user's
language are being displayed.
2009-09-17 23:36:54 +00:00
Tom Hughes
6fafe7f309
Display the changeset comment (if any) as part of the description of
...
any object in the data browser. Closes #2282 .
2009-09-15 22:03:09 +00:00
Ævar Arnfjörð Bjarmason
da28349f51
So the way [17620] did it sucked but [17624] broke it unless you
...
didn't have any changes because .item_count is the number of edits,
not pages.
Using .page_count works though, Whee!
2009-09-14 23:36:21 +00:00
Ævar Arnfjörð Bjarmason
835e12925e
auto_link() changeset comments in the global/user/bbox/etc history too
...
(as well as in changeset detail & atom feeds)
2009-09-14 23:26:36 +00:00
Tom Hughes
26bd59a1da
Output tags to the feed as raw HTML so that links are not escaped (any
...
real HTML in the tag has already been escaped). Closes #2264 .
2009-09-14 23:17:52 +00:00
Tom Hughes
9200520395
Escape tag values - there is no reason at all to render things which
...
might look like HTML tags in a tag value.
2009-09-14 23:17:02 +00:00
Tom Hughes
253e8a272d
Improve handling of the case where there is only one page of changesets.
2009-09-14 23:04:06 +00:00
Ævar Arnfjörð Bjarmason
466f640138
While we don't have the sanitizing backend to safely solve ticket
...
#2264 I'm going to remove the auto_link feature of changeset tags. The
links are broken in all conforming Atom readers at the moment.
2009-09-14 21:08:17 +00:00
Ævar Arnfjörð Bjarmason
332f8d3a4f
Now when all the entries fit on one page a trailing slash won't be
...
included after "Showing page %d (%d of %d)"
2009-09-14 19:42:32 +00:00
Ævar Arnfjörð Bjarmason
2118dd06af
Link to username in "Send message to" message
2009-09-14 19:32:29 +00:00
Tom Hughes
06a17b6bc6
Treat an explicit public=0 argument as meaning private.
2009-09-12 16:46:25 +00:00
Ævar Arnfjörð Bjarmason
b3ff342e6b
There was no "Sorry not found" message for changesets so
...
/browse/changeset/123456789 would return the message "Sorry, the with
the id 123456789, could not be found.". It now says "Sorry, the
changeset with the id 123456789, could not be found."
2009-09-07 12:16:17 +00:00
Tom Hughes
63b399c9b2
Update to rails 2.3.4 for security fixes.
2009-09-04 08:45:38 +00:00
Tom Hughes
73340e1780
Add support for reloading the language table.
2009-09-03 21:55:42 +00:00
Matt Amos
69ab396f08
Fixed bug when oauthorizing with a token which no longer exists (merged 17416 from oauth branch).
2009-09-01 10:25:53 +00:00
Tom Hughes
e72ebb7eac
Fix file_column plugin to generate absolute URLs without falling over
...
in a heap and then use that in the user details view.
2009-08-31 23:43:15 +00:00
Tom Hughes
783748b1e5
Tidy up.
2009-08-31 23:32:03 +00:00
Tom Hughes
543e8c5503
Fix backwards compatibility code to handle an old style public
...
attribute correctly. Closes #2242 .
2009-08-31 23:28:51 +00:00
Matt Amos
ade96da19f
Added user ID, description, languages and image link to the user details API call.
2009-08-31 23:11:15 +00:00
Tom Hughes
096459404c
Format dates in the changeset list so the year is shown. Closes #2232 .
2009-08-28 07:55:34 +00:00
Matt Amos
b34b898451
Added referer URL in user_token so that redirections (e.g: from oauth token requests) are followed after the user has confirmed the sign-up. Added test for the same.
2009-08-25 15:00:32 +00:00
Tom Hughes
1ce8368f64
Remove debugging.
2009-08-19 08:04:42 +00:00
Tom Hughes
173e92edb8
Cleanup some of the oauth stuff:
...
- Detabify views.
- Move translations to correct names.
- Make flash messages translatable.
2009-08-19 07:59:15 +00:00
Tom Hughes
9fec2fd137
Call the set_locale filter for oauth methods which display web
...
pages to the user. Closes #2203 .
2009-08-19 07:45:24 +00:00
Tom Hughes
43d9b32012
Remove explicit specification of I18n.local as the locale in resource
...
lookups - it's the default anyway.
2009-08-18 20:21:25 +00:00
Tom Hughes
885d29345d
Add parentheses to fix warning.
2009-08-18 20:06:33 +00:00
Tom Hughes
d227589a63
Merge oauth branch at r17138 to trunk.
2009-08-18 20:01:56 +00:00
Štefan Baebler
803acea032
fixing interpolation error with per language rss feeds that was introduced in [16903]
2009-08-18 19:36:58 +00:00