Projet

Général

Profil

0001-maelis-translate-coordinate-schema-description-47316.patch

Nicolas Roche, 29 janvier 2021 11:57

Télécharger (3 ko)

Voir les différences:

Subject: [PATCH] maelis: translate coordinate schema description (#47316)

 passerelle/apps/maelis/models.py           | 4 ++--
 passerelle/locale/fr/LC_MESSAGES/django.po | 6 +++++-
 2 files changed, 7 insertions(+), 3 deletions(-)
passerelle/apps/maelis/models.py
21 21

  
22 22
import zeep
23 23
from zeep.wsse.username import UsernameToken
24 24
from zeep.helpers import serialize_object
25 25

  
26 26
from django.db import models
27 27
from django.utils.dateparse import parse_date
28 28
from django.utils import timezone
29
from django.utils.translation import ugettext_lazy as _
29
from django.utils.translation import ugettext_lazy as _, ugettext
30 30

  
31 31
from passerelle.base.models import BaseResource
32 32
from passerelle.utils.api import endpoint
33 33
from passerelle.utils.jsonresponse import APIError
34 34

  
35 35
from . import utils
36 36

  
37 37

  
......
55 55
            "type": "string",
56 56
        }
57 57
    }
58 58
}
59 59

  
60 60
COORDINATES_SCHEMA = {
61 61
    "$schema": "http://json-schema.org/draft-04/schema#",
62 62
    "title": "Maelis",
63
    "description": "Person Coordinates",
63
    "description": ugettext('Person Coordinates'),
64 64
    "type": "object",
65 65
    "properties": {
66 66
        "num": {
67 67
            "description": "number",
68 68
            "type": "string",
69 69
            "pattern": "^[0-9]*$"
70 70
        },
71 71
        "street": {
passerelle/locale/fr/LC_MESSAGES/django.po
2 2
# Copyright (C) 2014 Entr'ouvert
3 3
# This file is distributed under the same license as the Passerelle package.
4 4
# Frederic Peters <fpeters@entrouvert.com>, 2014.
5 5
#
6 6
msgid ""
7 7
msgstr ""
8 8
"Project-Id-Version: Passerelle 0\n"
9 9
"Report-Msgid-Bugs-To: \n"
10
"POT-Creation-Date: 2021-01-22 00:33+0100\n"
10
"POT-Creation-Date: 2021-01-29 04:43-0600\n"
11 11
"PO-Revision-Date: 2021-01-08 09:00+0100\n"
12 12
"Last-Translator: Frederic Peters <fpeters@entrouvert.com>\n"
13 13
"Language: fr\n"
14 14
"MIME-Version: 1.0\n"
15 15
"Content-Type: text/plain; charset=UTF-8\n"
16 16
"Content-Transfer-Encoding: 8bit\n"
17 17
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
18 18

  
......
2022 2022
#: apps/jsondatastore/models.py:173
2023 2023
msgid "Attribute name"
2024 2024
msgstr "Nom de l’attribut"
2025 2025

  
2026 2026
#: apps/jsondatastore/models.py:174
2027 2027
msgid "Attribute value"
2028 2028
msgstr "Valeur de l’attribut"
2029 2029

  
2030
#: apps/maelis/models.py:63
2031
msgid "Person Coordinates"
2032
msgstr "Coordonnées de la personne"
2033

  
2030 2034
#: apps/maelis/models.py:100
2031 2035
msgid "Base API URL"
2032 2036
msgstr "URL de base"
2033 2037

  
2034 2038
#: apps/maelis/models.py:102 apps/vivaticket/models.py:134
2035 2039
msgid "API Login"
2036 2040
msgstr "Login pour l’API"
2037 2041

  
2038
-