Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 4.4.x] [Fixes #12858] Fixed missing translations for facets labels #12860

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion geonode/facets/providers/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import logging

from django.db.models import Count
from django.utils.translation import gettext_lazy as _

from geonode.base.models import TopicCategory
from geonode.facets.models import FacetProvider, DEFAULT_FACET_PAGE_SIZE, FACET_TYPE_CATEGORY
Expand All @@ -40,7 +41,7 @@ def get_info(self, lang="en", **kwargs) -> dict:
return {
"name": self.name,
"filter": "filter{category.identifier.in}",
"label": "Category",
"label": _("Category"),
"type": FACET_TYPE_CATEGORY,
}

Expand Down
4 changes: 3 additions & 1 deletion geonode/facets/providers/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@

import logging

from django.utils.translation import gettext_lazy as _
from django.db.models import Count

from geonode.facets.models import FacetProvider, DEFAULT_FACET_PAGE_SIZE, FACET_TYPE_GROUP
from geonode.groups.models import GroupProfile
from geonode.security.utils import get_user_visible_groups
Expand All @@ -41,7 +43,7 @@ def get_info(self, lang="en", **kwargs) -> dict:
return {
"name": self.name,
"filter": "filter{group.in}",
"label": "Group",
"label": _("Group"),
"type": FACET_TYPE_GROUP,
}

Expand Down
3 changes: 2 additions & 1 deletion geonode/facets/providers/keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import logging

from django.db.models import Count
from django.utils.translation import gettext_lazy as _

from geonode.base.models import HierarchicalKeyword
from geonode.facets.models import FacetProvider, DEFAULT_FACET_PAGE_SIZE, FACET_TYPE_KEYWORD
Expand All @@ -40,7 +41,7 @@ def get_info(self, lang="en", **kwargs) -> dict:
return {
"name": self.name,
"filter": "filter{keywords.slug.in}",
"label": "Keyword",
"label": _("Keyword"),
"type": FACET_TYPE_KEYWORD,
}

Expand Down
3 changes: 2 additions & 1 deletion geonode/facets/providers/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import logging

from django.db.models import Count
from django.utils.translation import gettext_lazy as _

from geonode.base.models import Region
from geonode.facets.models import FacetProvider, DEFAULT_FACET_PAGE_SIZE, FACET_TYPE_PLACE
Expand All @@ -40,7 +41,7 @@ def get_info(self, lang="en", **kwargs) -> dict:
return {
"name": self.name,
"filter": "filter{regions.code.in}",
"label": "Region",
"label": _("Region"),
"type": FACET_TYPE_PLACE,
}

Expand Down
3 changes: 2 additions & 1 deletion geonode/facets/providers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import logging

from django.utils.translation import gettext_lazy as _
from django.contrib.auth import get_user_model
from django.db.models import Count

Expand All @@ -40,7 +41,7 @@ def get_info(self, lang="en", **kwargs) -> dict:
return {
"name": "owner",
"filter": "filter{owner.pk.in}",
"label": "Owner",
"label": _("Owner"),
"type": FACET_TYPE_USER,
}

Expand Down
Binary file modified geonode/locale/de/LC_MESSAGES/django.mo
Binary file not shown.
6 changes: 6 additions & 0 deletions geonode/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ msgstr ""
"Eine durch Kommata getrennte Liste an Schlüsselwörtern. Benutzen Sie das "
"widget um eine Auswahl aus dem hierarchischen Baum zu wählen."

msgid "Region"
msgstr "Region"

msgid "Regions"
msgstr "Regionen"

Expand Down Expand Up @@ -350,6 +353,9 @@ msgstr "DOI"
msgid "maintenance frequency"
msgstr "Wartungshäufigkeit"

msgid "Keyword"
msgstr "Schlüssel"

msgid "keywords"
msgstr "Schlüsselworter"

Expand Down
Binary file modified geonode/locale/es/LC_MESSAGES/django.mo
Binary file not shown.
6 changes: 6 additions & 0 deletions geonode/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ msgstr ""
"Un espacio o una lista de palabras clave separadas por comas. Utilice el "
"widget para seleccionar desde el árbol jerárquico."

msgid "Region"
msgstr "Region"

msgid "Regions"
msgstr "Regiones"

Expand Down Expand Up @@ -387,6 +390,9 @@ msgstr "DOI"
msgid "maintenance frequency"
msgstr "frecuencia de actualización"

msgid "Keyword"
msgstr "Palabra claves"

msgid "keywords"
msgstr "palabras claves"

Expand Down
Binary file modified geonode/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
6 changes: 6 additions & 0 deletions geonode/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ msgstr ""
"Une liste de mots-clés séparés par des espaces ou des virgules. Utilisez le "
"widget pour choisir à partir de l'arbre hiérarchique."

msgid "Region"
msgstr "Région"

msgid "Regions"
msgstr "Régions"

Expand Down Expand Up @@ -359,6 +362,9 @@ msgstr "DOI"
msgid "maintenance frequency"
msgstr "fréquence des mises à jour"

msgid "Keyword"
msgstr "Mot-clés"

msgid "keywords"
msgstr "mots-clés"

Expand Down
Binary file modified geonode/locale/it/LC_MESSAGES/django.mo
Binary file not shown.
18 changes: 12 additions & 6 deletions geonode/locale/it/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ msgstr ""
"Project-Id-Version: GeoNode\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-07-08 09:02+0300\n"
"PO-Revision-Date: 2023-10-11 11:47+0200\n"
"PO-Revision-Date: 2025-01-28 17:51+0100\n"
"Last-Translator: Julien Collaer <[email protected]>\n"
"Language-Team: Italian (http://www.transifex.com/geonode/geonode/language/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.0.1\n"
"X-Generator: Poedit 3.5\n"

msgid "Request to download a resource"
msgstr "Richiedi di scaricare la risorsa"
Expand Down Expand Up @@ -202,6 +202,9 @@ msgstr ""
"Uno spazio o un elenco delimitato da virgole di parole chiave. Utilizzare il widget per "
"selezionare dalla struttura ad albero gerarchica."

msgid "Region"
msgstr "Regione"

msgid "Regions"
msgstr "Regioni"

Expand Down Expand Up @@ -353,6 +356,9 @@ msgstr "DOI"
msgid "maintenance frequency"
msgstr "frequenza di revisione"

msgid "Keyword"
msgstr "Parola chiave"

msgid "keywords"
msgstr "parole chiave"

Expand Down Expand Up @@ -949,8 +955,8 @@ msgstr "Collegamento a"

msgid "Related resources"
msgstr "Risorse collegate"
#msgstr "Risorse correlate"

# msgstr "Risorse correlate"
msgid "File"
msgstr "File"

Expand Down Expand Up @@ -6340,6 +6346,9 @@ msgstr "Livello di permessi non valido."
msgid "Permission Denied"
msgstr "Permesso negato"

msgid "All resources"
msgstr "Tutte le risorse"

#~ msgid "Layer name"
#~ msgstr "Nome livello"

Expand Down Expand Up @@ -6489,6 +6498,3 @@ msgstr "Permesso negato"

#~ msgid "Thesaurus"
#~ msgstr "Thesaurus"

msgid "All resources"
msgstr "Tutte le risorse"
Binary file modified geonode/locale/pt_BR/LC_MESSAGES/django.mo
Binary file not shown.
6 changes: 6 additions & 0 deletions geonode/locale/pt_BR/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ msgstr ""
"Uma lista de palavras-chave separadas por vírgula ou espaço. Utilize o widget para selecionar "
"a partir da árvore hierárquica."

msgid "Region"
msgstr "Região"

msgid "Regions"
msgstr "Regiões"

Expand Down Expand Up @@ -328,6 +331,9 @@ msgstr "DOI"
msgid "maintenance frequency"
msgstr "frequência de manutenção"

msgid "Keyword"
msgstr "Palavra-chave"

msgid "keywords"
msgstr "palavras-chave"

Expand Down