Skip to content

Commit

Permalink
add custom contributions endpoint and layer
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Apr 29, 2024
1 parent 88794b4 commit 34ac7d2
Show file tree
Hide file tree
Showing 34 changed files with 181 additions and 67 deletions.
2 changes: 1 addition & 1 deletion georiviere/contribution/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-29 07:55+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/contribution/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-29 07:55+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/description/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/description/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: 2021-11-23 14:20+0000\n"
"Last-Translator: Jean-Etienne Castagnede <jecastagnede@vivaldi.net>, 2021\n"
"Language-Team: French (https://www.transifex.com/georiviere/teams/128005/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: 2021-11-23 14:22+0000\n"
"Last-Translator: Jean-Etienne Castagnede <jecastagnede@vivaldi.net>, 2021\n"
"Language-Team: French (https://www.transifex.com/georiviere/teams/128005/"
Expand All @@ -38,7 +38,7 @@ msgid "Revised budget"
msgstr "Budget révisé"

msgid "Revised budget of this phase"
msgstr ""
msgstr "Budget révisé pour cette phase"

msgid "Actual budget"
msgstr "Budget réel"
Expand Down Expand Up @@ -282,6 +282,3 @@ msgstr "Ajouter un dossier administratif"

msgid "Edit phase for"
msgstr "Éditer les phases pour"

#~ msgid "Create operation on"
#~ msgstr "Créer une opération sur"
2 changes: 1 addition & 1 deletion georiviere/flatpages/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/flatpages/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/knowledge/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/knowledge/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: 2021-11-23 15:08+0000\n"
"Last-Translator: Jean-Etienne Castagnede <jecastagnede@vivaldi.net>, 2021\n"
"Language-Team: French (https://www.transifex.com/georiviere/teams/128005/"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/main/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/main/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: 2021-11-23 15:31+0000\n"
"Last-Translator: Jean-Etienne Castagnede <jecastagnede@vivaldi.net>, 2021\n"
"Language-Team: French (https://www.transifex.com/georiviere/teams/128005/"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/maintenance/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/maintenance/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: 2021-11-23 15:31+0000\n"
"Last-Translator: Jean-Etienne Castagnede <jecastagnede@vivaldi.net>, 2021\n"
"Language-Team: French (https://www.transifex.com/georiviere/teams/128005/"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/observations/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
2 changes: 1 addition & 1 deletion georiviere/observations/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: 2021-11-23 15:31+0000\n"
"Last-Translator: Jean-Etienne Castagnede <jecastagnede@vivaldi.net>, 2021\n"
"Language-Team: French (https://www.transifex.com/georiviere/teams/128005/"
Expand Down
16 changes: 14 additions & 2 deletions georiviere/portal/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -39,6 +39,12 @@ msgstr ""
msgid "Portal"
msgstr ""

msgid "Stations"
msgstr ""

msgid "Custom contributions"
msgstr ""

msgid "URL"
msgstr ""

Expand Down Expand Up @@ -87,7 +93,10 @@ msgstr ""
msgid "Category is not valid"
msgstr ""

msgid "An error occured"
msgid "An error occurred"
msgstr ""

msgid "Password mismatch."
msgstr ""

msgid "Watershed"
Expand All @@ -108,6 +117,9 @@ msgstr ""
msgid "Stream"
msgstr ""

msgid "Station"
msgstr ""

msgid "Georiviere : Contribution"
msgstr ""

Expand Down
36 changes: 15 additions & 21 deletions georiviere/portal/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 19:23+0000\n"
"POT-Creation-Date: 2024-04-29 13:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -39,6 +39,12 @@ msgstr "Fonds de cartes"
msgid "Portal"
msgstr "Portail"

msgid "Stations"
msgstr "Stations"

msgid "Custom contributions"
msgstr "Contributions personnalisées"

msgid "URL"
msgstr "URL"

Expand Down Expand Up @@ -87,8 +93,11 @@ msgstr "Portails"
msgid "Category is not valid"
msgstr "La catégorie n'est pas valide"

msgid "An error occured"
msgstr "Une erreur s'es produite"
msgid "An error occurred"
msgstr "Une erreur s'est produite"

msgid "Password mismatch."
msgstr "Le mot de passe ne correspond pas."

msgid "Watershed"
msgstr "Bassin versant"
Expand All @@ -108,6 +117,9 @@ msgstr "Contribution"
msgid "Stream"
msgstr "Rivière"

msgid "Station"
msgstr "Station"

msgid "Georiviere : Contribution"
msgstr "Georiviere : Contribution"

Expand All @@ -131,21 +143,3 @@ msgstr ""
"\n"
"L'équipe Georiviere\n"
"http://georiviere.fr"

#~ msgid "watersheds"
#~ msgstr "bassins versants"

#~ msgid "cities"
#~ msgstr "villes"

#~ msgid "sensitivities"
#~ msgstr "zones sensibles"

#~ msgid "districts"
#~ msgstr "secteurs"

#~ msgid "contributions"
#~ msgstr "contributions"

#~ msgid "streams"
#~ msgstr "rivières"
30 changes: 30 additions & 0 deletions georiviere/portal/migrations/0008_auto_20240429_1233.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 3.1.14 on 2024-04-29 12:33

from django.db import migrations
from django.utils.translation import gettext_lazy as _


def add_custom_contributions_map_layer_to_portals(apps, schema_editor):
MapLayer = apps.get_model("portal", "MapLayer")
Portal = apps.get_model("portal", "Portal")

for portal in Portal.objects.all():
MapLayer.objects.create(
portal=portal,
layer_type="contributions-custom",
label=_("Custom contributions"),
hidden=True,
)


class Migration(migrations.Migration):

dependencies = [
("portal", "0007_auto_20240423_1647"),
]

operations = [
migrations.RunPython(
add_custom_contributions_map_layer_to_portals, reverse_code=migrations.RunPython.noop
),
]
Loading

0 comments on commit 34ac7d2

Please sign in to comment.