kopia lustrzana https://github.com/hholzgra/maposmatic/
Merge branch 'site-osm-baustelle' of https://github.com/hholzgra/maposmatic into site-osm-baustelle
commit
2f52991ccc
|
@ -7,14 +7,15 @@
|
|||
# Rodrigo de Avila <rodrigo@avila.net.br>, 2013,2015
|
||||
# Thiago Vieira <thipvieira@gmail.com>, 2014
|
||||
# André Marcelo Alvarenga <andrealvarenga@gmx.net>, 2019.
|
||||
# Andre Luis Lourenço Raposo <andreluiz09444@gmail.com>, 2019.
|
||||
#: www/maposmatic/feeds.py:46 www/maposmatic/feeds.py:103
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: MapOSMatic\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-10 22:23+0200\n"
|
||||
"PO-Revision-Date: 2019-04-13 10:21+0000\n"
|
||||
"Last-Translator: André Marcelo Alvarenga <andrealvarenga@gmx.net>\n"
|
||||
"PO-Revision-Date: 2019-08-16 17:41+0000\n"
|
||||
"Last-Translator: Andre Luis Lourenço Raposo <andreluiz09444@gmail.com>\n"
|
||||
"Language-Team: Portuguese (Brazil) <http://translate.get-map.org/projects/"
|
||||
"maposmatic/maposmatic/pt_BR/>\n"
|
||||
"Language: pt_BR\n"
|
||||
|
@ -29,7 +30,6 @@ msgid "maps"
|
|||
msgstr "mapas"
|
||||
|
||||
#: www/maposmatic/feeds.py:46 www/maposmatic/feeds.py:103
|
||||
#, fuzzy
|
||||
msgid "[DEV]"
|
||||
msgstr "[DEV]"
|
||||
|
||||
|
@ -771,9 +771,9 @@ msgstr ""
|
|||
"MapOSMatic quando se realizam as <i>hackfests</i> (reuniões de \n"
|
||||
"desenvolvedores). Você pode ler nosso <a href=\"http://news.maposmatic.org\""
|
||||
">blog</a> para \n"
|
||||
"saber mais sobre o que nós fazemos durante as <i>hackfests</i>. Nós "
|
||||
"normalmente implementamos um número grande de melhorias, novas "
|
||||
"funcionalidades e correções de bugs nessas reuniões. \n"
|
||||
"saber mais sobre o que nós fazemos durante as hackfests. Nós normalmente "
|
||||
"implementamos um número grande de melhorias, novas funcionalidades e "
|
||||
"correções de bugs nessas reuniões. \n"
|
||||
"Elas acontecem durante os feriados dos desenvolvedores, e nós gostaríamos "
|
||||
"de, pelo menos, \n"
|
||||
"compensar seus gastos de viagem."
|
||||
|
|
|
@ -232,7 +232,8 @@ def _jobs_post(request):
|
|||
|
||||
if 'paper_size' in input:
|
||||
try:
|
||||
p = ocitysmap.OCitySMap.get_paper_size_by_name(input['paper_size'])
|
||||
_ocitysmap = ocitysmap.OCitySMap(www.settings.OCITYSMAP_CFG_PATH)
|
||||
p = _ocitysmap.get_paper_size_by_name(input['paper_size'])
|
||||
if 'orientation' in input:
|
||||
if input['orientation'] == 'landscape':
|
||||
p[1], p[0] = p[0], p[1]
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block body-class %}about{% endblock %}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
{% endcomment %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block body-class %}about{% endblock %}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block body-class %}about{% endblock %}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block body-class %}donate{% endblock %}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block body-class %}donate{% endblock %}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
<div class="alert alert-info">
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block body-class %}home{% endblock %}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block body-class %}maps{% endblock %}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block body-class %}maps{% endblock %}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block body-class %}new{% endblock %}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
{% endcomment %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% ifnotequal data.paginator.num_pages 1 %}
|
||||
|
|
|
@ -370,17 +370,23 @@ def api_geosearch(request):
|
|||
|
||||
exclude = request.GET.get('exclude', '')
|
||||
squery = request.GET.get('q', '')
|
||||
squery = squery.lower()
|
||||
|
||||
contents = { "entries": [] }
|
||||
|
||||
cursor = None
|
||||
query = """SELECT name, display_name, class, type
|
||||
, osm_type, osm_id
|
||||
, lat, lon, west, east, north, south
|
||||
, place_rank, importance, country_code
|
||||
FROM place
|
||||
WHERE LOWER(name) = LOWER('%s')
|
||||
ORDER BY place_rank, importance DESC""" % squery
|
||||
query = """SELECT p.name, p.display_name, p.class, p.type
|
||||
, p.osm_type, p.osm_id
|
||||
, p.lat, p.lon, p.west, p.east, p.north, p.south
|
||||
, p.place_rank, p.importance, p.country_code
|
||||
FROM place p
|
||||
LEFT JOIN planet_osm_hstore_point pt
|
||||
ON p.osm_id = pt.osm_id
|
||||
LEFT JOIN planet_osm_hstore_polygon poly
|
||||
ON - p.osm_id = poly.osm_id
|
||||
WHERE LOWER(p.name) = '%s'
|
||||
AND ( pt.osm_id IS NOT NULL OR poly.osm_id IS NOT NULL)
|
||||
ORDER BY p.place_rank, p.importance DESC""" % squery
|
||||
|
||||
try:
|
||||
cursor = connections['osm'].cursor()
|
||||
|
|
|
@ -52,6 +52,7 @@ SITE_ID = 1
|
|||
# If you set this to False, Django will make some optimizations so as not
|
||||
# to load the internationalization machinery.
|
||||
USE_I18N = True
|
||||
USE_L10N = True
|
||||
|
||||
|
||||
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block title %}Not found!{% endblock %}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block title %}Server error!{% endblock %}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load extratags %}
|
||||
|
||||
{% block title %}Server error!{% endblock %}
|
||||
|
|
Ładowanie…
Reference in New Issue