From 0cfd560b260d0a34c4a1dc19db092c9e842028a8 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 10 Feb 2014 21:37:12 +0100 Subject: [PATCH] Add owner name in "map of the maps" popup --- umap/locale/da/LC_MESSAGES/django.mo | Bin 2658 -> 2658 bytes umap/locale/da/LC_MESSAGES/django.po | 16 ++++++++++------ umap/locale/de/LC_MESSAGES/django.mo | Bin 3152 -> 3152 bytes umap/locale/de/LC_MESSAGES/django.po | 18 +++++++++++------- umap/locale/en/LC_MESSAGES/django.mo | Bin 378 -> 378 bytes umap/locale/en/LC_MESSAGES/django.po | 14 +++++++++----- umap/locale/es/LC_MESSAGES/django.mo | Bin 2200 -> 2200 bytes umap/locale/es/LC_MESSAGES/django.po | 16 ++++++++++------ umap/locale/fi/LC_MESSAGES/django.mo | Bin 2924 -> 2924 bytes umap/locale/fi/LC_MESSAGES/django.po | 16 ++++++++++------ umap/locale/fr/LC_MESSAGES/django.mo | Bin 3110 -> 3153 bytes umap/locale/fr/LC_MESSAGES/django.po | 16 ++++++++++------ umap/locale/it/LC_MESSAGES/django.mo | Bin 2832 -> 2832 bytes umap/locale/it/LC_MESSAGES/django.po | 16 ++++++++++------ umap/locale/ja/LC_MESSAGES/django.mo | Bin 2924 -> 2924 bytes umap/locale/ja/LC_MESSAGES/django.po | 16 ++++++++++------ umap/locale/lt/LC_MESSAGES/django.mo | Bin 2867 -> 2867 bytes umap/locale/lt/LC_MESSAGES/django.po | 16 ++++++++++------ umap/locale/nl/LC_MESSAGES/django.mo | Bin 465 -> 465 bytes umap/locale/nl/LC_MESSAGES/django.po | 16 ++++++++++------ umap/locale/pt/LC_MESSAGES/django.mo | Bin 1785 -> 1785 bytes umap/locale/pt/LC_MESSAGES/django.po | 16 ++++++++++------ umap/views.py | 12 +++++++++++- 23 files changed, 121 insertions(+), 67 deletions(-) diff --git a/umap/locale/da/LC_MESSAGES/django.mo b/umap/locale/da/LC_MESSAGES/django.mo index e07a44cde4f596663d3cde939658b376d13042a4..34a6ebc4eedf1efb2dc3ff6a58b7eb29ba33b939 100644 GIT binary patch delta 28 icmaDP@sSDdXbA@Z delta 28 icmaDP@sSDdAPD~e diff --git a/umap/locale/da/LC_MESSAGES/django.po b/umap/locale/da/LC_MESSAGES/django.po index 960804e9..93aa26cb 100644 --- a/umap/locale/da/LC_MESSAGES/django.po +++ b/umap/locale/da/LC_MESSAGES/django.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: uMap\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-10 14:50+0100\n" -"PO-Revision-Date: 2014-02-10 13:50+0000\n" +"POT-Creation-Date: 2014-02-10 21:29+0100\n" +"PO-Revision-Date: 2014-02-10 20:29+0000\n" "Last-Translator: yohanboniface \n" "Language-Team: Danish (http://www.transifex.com/projects/p/umap/language/da/)\n" "MIME-Version: 1.0\n" @@ -18,15 +18,19 @@ msgstr "" "Language: da\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "" + +#: views.py:158 +msgid "View the map" +msgstr "" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "Browse %(current_user)s's kort" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "Mere" diff --git a/umap/locale/de/LC_MESSAGES/django.mo b/umap/locale/de/LC_MESSAGES/django.mo index 5ddf458be42904ef532492cc3a80c9b8618868db..d4b74b3fb9f86499c3435f2369b54a33e1cdb073 100644 GIT binary patch delta 69 zcmca0aY153Asefap_P&4J+-K$ Ws5HePJvT8kM=v=)ck@lQa#jEfb{D\n" +"POT-Creation-Date: 2014-02-10 21:29+0100\n" +"PO-Revision-Date: 2014-02-10 20:29+0000\n" +"Last-Translator: yohanboniface \n" "Language-Team: German (http://www.transifex.com/projects/p/umap/language/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -18,15 +18,19 @@ msgstr "" "Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "von" + +#: views.py:158 +msgid "View the map" +msgstr "" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "Schaue dir %(current_user)s's Karten an" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "von" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "Mehr" diff --git a/umap/locale/en/LC_MESSAGES/django.mo b/umap/locale/en/LC_MESSAGES/django.mo index baf550180efb2f7b4cfc6e19784bba65c347d778..5384bdb3b1fff0f4750e6f0fb3ec42bb9d7a6351 100644 GIT binary patch delta 15 Xcmeyx^owc2BvvCsDF_8u{ delta 15 Xcmeyx^owc2BvwNcD^r7s(;ou>F^L8* diff --git a/umap/locale/en/LC_MESSAGES/django.po b/umap/locale/en/LC_MESSAGES/django.po index 659dbd78..715df84f 100644 --- a/umap/locale/en/LC_MESSAGES/django.po +++ b/umap/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-10 14:50+0100\n" +"POT-Creation-Date: 2014-02-10 21:29+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,15 +17,19 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "" + +#: views.py:158 +msgid "View the map" +msgstr "" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "" diff --git a/umap/locale/es/LC_MESSAGES/django.mo b/umap/locale/es/LC_MESSAGES/django.mo index 1bbadfd50562b0977b7485859eae5056fb485f78..65e8422ebbddae5e1991ac235ae921484b9c151c 100644 GIT binary patch delta 28 jcmbOsI74v59u`(3Ln|Z8$p=}KS&a;Utj#Z3)-wYDemDrJ delta 28 jcmbOsI74v59u`(Z6Dw1L$p=}KSq+VWtj#Z3)-wYDeeejO diff --git a/umap/locale/es/LC_MESSAGES/django.po b/umap/locale/es/LC_MESSAGES/django.po index 71be435d..4f472052 100644 --- a/umap/locale/es/LC_MESSAGES/django.po +++ b/umap/locale/es/LC_MESSAGES/django.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: uMap\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-10 14:50+0100\n" -"PO-Revision-Date: 2014-02-10 13:50+0000\n" +"POT-Creation-Date: 2014-02-10 21:29+0100\n" +"PO-Revision-Date: 2014-02-10 20:29+0000\n" "Last-Translator: yohanboniface \n" "Language-Team: Spanish (http://www.transifex.com/projects/p/umap/language/es/)\n" "MIME-Version: 1.0\n" @@ -18,15 +18,19 @@ msgstr "" "Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "" + +#: views.py:158 +msgid "View the map" +msgstr "" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "Mapas de %(current_user)s" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "Más" diff --git a/umap/locale/fi/LC_MESSAGES/django.mo b/umap/locale/fi/LC_MESSAGES/django.mo index 807ee796c5b1559099dcf526b0f204599d86a502..770007f99d4377664d2815255135c2dce37f9f3a 100644 GIT binary patch delta 28 icmaDO_C{>Oc2-s+Ln|Z8$$MCpS&a;Utj$kYJ6Hjb0SPJq delta 28 icmaDO_C{>Oc2-tH6Dw1L$$MCpSq+VWtj$kYJ6Hjaxd|cw diff --git a/umap/locale/fi/LC_MESSAGES/django.po b/umap/locale/fi/LC_MESSAGES/django.po index ad1aba58..323acfc3 100644 --- a/umap/locale/fi/LC_MESSAGES/django.po +++ b/umap/locale/fi/LC_MESSAGES/django.po @@ -9,8 +9,8 @@ msgid "" msgstr "" "Project-Id-Version: uMap\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-10 14:50+0100\n" -"PO-Revision-Date: 2014-02-10 13:50+0000\n" +"POT-Creation-Date: 2014-02-10 21:29+0100\n" +"PO-Revision-Date: 2014-02-10 20:29+0000\n" "Last-Translator: yohanboniface \n" "Language-Team: Finnish (http://www.transifex.com/projects/p/umap/language/fi/)\n" "MIME-Version: 1.0\n" @@ -19,15 +19,19 @@ msgstr "" "Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "" + +#: views.py:158 +msgid "View the map" +msgstr "" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "Selaa %(current_user)s:n karttoja" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "Lisää" diff --git a/umap/locale/fr/LC_MESSAGES/django.mo b/umap/locale/fr/LC_MESSAGES/django.mo index 293bf723b4d8fb9c3e5ca6a609f930554e2cfa7e..ffd45c9ddb23b69651853198b2fea61bc7322771 100644 GIT binary patch delta 601 zcmXZZPbdUY9KiA4&d#hqyMt_L$udZhuvRH6<)EZExJ)^qO0k=o+KNpX@KlyV{Y{>p3K`@A>J`@P?9-f`?cmV2r+w}e(lucb!+))i*k%(J+`ABG>TDlQ4^WPHVRrrn{}R`{9HN1ZM;DLJ>Uf5zHM~c zdi%Pa3zfRlVPh&7akClES)R!_^XWxDZ{1qSu2izuUkNo?$waEV=X5{xZrbibcFCDb OJJac<<&3`(-unXwq({C0 delta 574 zcmXZYF)Ra77{Kwb*Sjh$P9>DIltxg4YuXNq!6b&R5(XU%9c_$VF$lRdHJA)SB$i7f z(RA!!Fmw@?#wMgO8pZ!pFZbT>-Me?+`@YwTUPa68h*=R@oF1c_K9PCspte&(#KJS2 z!74h~z-9cx2~7FBF*Y#4dkMpMh*7Ly5btmd?=c`!mKKv97G6-3c*9lvK^s@hZlD74 z$ToxSFX8}}FoOH22OS}S\n" "Language-Team: French (http://www.transifex.com/projects/p/umap/language/fr/)\n" "MIME-Version: 1.0\n" @@ -21,15 +21,19 @@ msgstr "" "Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "par" + +#: views.py:158 +msgid "View the map" +msgstr "Voir la carte" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "Consulter les cartes de %(current_user)s" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "par" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "Plus" diff --git a/umap/locale/it/LC_MESSAGES/django.mo b/umap/locale/it/LC_MESSAGES/django.mo index a54cc166624f32d3247589edb6047d4ef510046d..0009f90161270d584ba1336006814702a6496286 100644 GIT binary patch delta 28 icmbOrHbHE|c2-s+Ln|Z8$$MCpS&a;Utj$kYbyxv=;RqH0 delta 28 icmbOrHbHE|c2-tH6Dw1L$$MCpSq+VWtj$kYbyxv=nFtO5 diff --git a/umap/locale/it/LC_MESSAGES/django.po b/umap/locale/it/LC_MESSAGES/django.po index 7c58305f..b7550cc0 100644 --- a/umap/locale/it/LC_MESSAGES/django.po +++ b/umap/locale/it/LC_MESSAGES/django.po @@ -10,8 +10,8 @@ msgid "" msgstr "" "Project-Id-Version: uMap\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-10 14:50+0100\n" -"PO-Revision-Date: 2014-02-10 13:50+0000\n" +"POT-Creation-Date: 2014-02-10 21:29+0100\n" +"PO-Revision-Date: 2014-02-10 20:29+0000\n" "Last-Translator: yohanboniface \n" "Language-Team: Italian (http://www.transifex.com/projects/p/umap/language/it/)\n" "MIME-Version: 1.0\n" @@ -20,15 +20,19 @@ msgstr "" "Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "" + +#: views.py:158 +msgid "View the map" +msgstr "" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "Vedi %(current_user)s delle mappe" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "Altre mappe" diff --git a/umap/locale/ja/LC_MESSAGES/django.mo b/umap/locale/ja/LC_MESSAGES/django.mo index 46abce1e874846e8b8c89313cc24955410235ebb..99190375f9b436df63f241838216c4236a743620 100644 GIT binary patch delta 28 icmaDO_C{>Oc2-s+Ln|Z8$$MCpS&a;Utj$kYJ6Hjb0SPJq delta 28 icmaDO_C{>Oc2-tH6Dw1L$$MCpSq+VWtj$kYJ6Hjaxd|cw diff --git a/umap/locale/ja/LC_MESSAGES/django.po b/umap/locale/ja/LC_MESSAGES/django.po index 62ac3822..bacbdc9e 100644 --- a/umap/locale/ja/LC_MESSAGES/django.po +++ b/umap/locale/ja/LC_MESSAGES/django.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: uMap\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-10 14:50+0100\n" -"PO-Revision-Date: 2014-02-10 13:50+0000\n" +"POT-Creation-Date: 2014-02-10 21:29+0100\n" +"PO-Revision-Date: 2014-02-10 20:29+0000\n" "Last-Translator: yohanboniface \n" "Language-Team: Japanese (http://www.transifex.com/projects/p/umap/language/ja/)\n" "MIME-Version: 1.0\n" @@ -18,15 +18,19 @@ msgstr "" "Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "" + +#: views.py:158 +msgid "View the map" +msgstr "" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "%(current_user)sのマップを閲覧" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "次" diff --git a/umap/locale/lt/LC_MESSAGES/django.mo b/umap/locale/lt/LC_MESSAGES/django.mo index 1b67a68b94fbb630bf693256506c68769d741f91..9ac3110a745ad8fdee27abab65b612405dd79442 100644 GIT binary patch delta 28 icmdliwpnb$c2-s+Ln|Z8$$MCpS&a;Utj$kY{aFEni3ooH delta 28 icmdliwpnb$c2-tH6Dw1L$$MCpSq+VWtj$kY{aFEnK?rvM diff --git a/umap/locale/lt/LC_MESSAGES/django.po b/umap/locale/lt/LC_MESSAGES/django.po index 982ea64a..f3866d32 100644 --- a/umap/locale/lt/LC_MESSAGES/django.po +++ b/umap/locale/lt/LC_MESSAGES/django.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: uMap\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-10 14:50+0100\n" -"PO-Revision-Date: 2014-02-10 13:50+0000\n" +"POT-Creation-Date: 2014-02-10 21:29+0100\n" +"PO-Revision-Date: 2014-02-10 20:29+0000\n" "Last-Translator: yohanboniface \n" "Language-Team: Lithuanian (http://www.transifex.com/projects/p/umap/language/lt/)\n" "MIME-Version: 1.0\n" @@ -18,15 +18,19 @@ msgstr "" "Language: lt\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "" + +#: views.py:158 +msgid "View the map" +msgstr "" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "Peržiūrėti %(current_user)s žemėlapius" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "Daugiau" diff --git a/umap/locale/nl/LC_MESSAGES/django.mo b/umap/locale/nl/LC_MESSAGES/django.mo index 513b4e82dea751c0c73165bf8af87700bdc3e6c7..f56708daf3cc974859eab136b7f6379437fec4be 100644 GIT binary patch delta 25 fcmcb}e35xVJFAhQm67Gd9%WV|10ZAL7Fk9BYTE~# delta 25 fcmcb}e35xVJFB6Im8rqR9%WWTV<2PW7Fk9BYM%#` diff --git a/umap/locale/nl/LC_MESSAGES/django.po b/umap/locale/nl/LC_MESSAGES/django.po index a77c5994..bb7e9c45 100644 --- a/umap/locale/nl/LC_MESSAGES/django.po +++ b/umap/locale/nl/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: uMap\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-10 14:50+0100\n" -"PO-Revision-Date: 2014-02-10 13:50+0000\n" +"POT-Creation-Date: 2014-02-10 21:29+0100\n" +"PO-Revision-Date: 2014-02-10 20:29+0000\n" "Last-Translator: yohanboniface \n" "Language-Team: Dutch (http://www.transifex.com/projects/p/umap/language/nl/)\n" "MIME-Version: 1.0\n" @@ -17,15 +17,19 @@ msgstr "" "Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "" + +#: views.py:158 +msgid "View the map" +msgstr "" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "" diff --git a/umap/locale/pt/LC_MESSAGES/django.mo b/umap/locale/pt/LC_MESSAGES/django.mo index cf12a944e61d171e8ad747288528bcadbdc189d2..150e402be873453d81fb1c5e34029182f6b4e11c 100644 GIT binary patch delta 27 hcmey#`;&LWWoA|*Ln|Z8$v2plS&a;UtW7LGnE;9j2<`v? delta 27 hcmey#`;&LWWoA}G6Dw1L$v2plSq+VWtW7LGnE;8&2<89) diff --git a/umap/locale/pt/LC_MESSAGES/django.po b/umap/locale/pt/LC_MESSAGES/django.po index 4ea52655..031dfcb8 100644 --- a/umap/locale/pt/LC_MESSAGES/django.po +++ b/umap/locale/pt/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: uMap\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-10 14:50+0100\n" -"PO-Revision-Date: 2014-02-10 13:50+0000\n" +"POT-Creation-Date: 2014-02-10 21:29+0100\n" +"PO-Revision-Date: 2014-02-10 20:29+0000\n" "Last-Translator: yohanboniface \n" "Language-Team: Portuguese (http://www.transifex.com/projects/p/umap/language/pt/)\n" "MIME-Version: 1.0\n" @@ -17,15 +17,19 @@ msgstr "" "Language: pt\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: views.py:154 templates/leaflet_storage/map_list.html:7 +msgid "by" +msgstr "" + +#: views.py:158 +msgid "View the map" +msgstr "" + #: templates/auth/user_detail.html:7 #, python-format msgid "Browse %(current_user)s's maps" msgstr "Consulta os mapas de %(current_user)s" -#: templates/leaflet_storage/map_list.html:7 -msgid "by" -msgstr "" - #: templates/leaflet_storage/map_list.html:11 msgid "More" msgstr "Mais" diff --git a/umap/views.py b/umap/views.py index 79888678..a28c526f 100644 --- a/umap/views.py +++ b/umap/views.py @@ -8,6 +8,8 @@ from django.contrib.gis.measure import D from django.conf import settings from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import HttpResponse +from django.utils.translation import ugettext as _ +from django.core.urlresolvers import reverse from sesql.shortquery import shortquery @@ -145,7 +147,15 @@ class MapsShowCase(View): maps = Map.public.filter(center__distance_gt=(DEFAULT_CENTER, D(km=1))).order_by('-modified_at')[:2000] def make(m): - description = u"{}\n\n[[{}|{}]]".format(m.description or "", m.get_absolute_url(), "View the map") + description = m.description or "" + if m.owner: + description = u"{description}\n{by} [[{url}|{name}]]".format( + description=description, + by=_("by"), + url=reverse('user_maps', kwargs={"username": m.owner.username}), + name=m.owner, + ) + description = u"{}\n[[{}|{}]]".format(description, m.get_absolute_url(), _("View the map")) geometry = m.settings['geometry'] if "geometry" in m.settings else simplejson.loads(m.center.geojson) return { "type": "Feature",