feature/ internalization i18n WIP

This commit is contained in:
Reena-cell 2022-06-16 12:28:52 +02:00
parent 602f3be981
commit e2dfa664cf
14 changed files with 369 additions and 261 deletions

View File

@ -1,21 +1,21 @@
{% extends 'base.html' %}
{% load static %}
{% load static i18n %}
{% block page_title %}{{ block.super }} / API Collections{% endblock page_title %}
{% block content %}
<h1>API Collections</h1>
<h1>{% trans "API Collections" %}</h1>
<div class="row">
<div class="col-xs-12 col-sm-2">
<label class="form-group">API Collection Id:</label> <br>
<label class="form-group">{% trans "API Collection Id" %}:</label> <br>
</div>
<div class="col-xs-12 col-sm-2">
<label class="form-group">Collection Name:</label> <br>
<label class="form-group">{% trans "Collection Name" %}:</label> <br>
</div>
<div class="col-xs-12 col-sm-2">
<label class="form-group">Is Sharable:</label> <br>
<label class="form-group">{% trans "Is Sharable" %}:</label> <br>
</div>
<div class="col-xs-12 col-sm-6">
<label class="form-group">Description:</label> <br>
<label class="form-group">{% trans "Description" %}:</label> <br>
</div>
</div>
<form method="post">
@ -56,20 +56,20 @@
</div>
</div>
<div class="col-xs-12 col-sm-4">
<textarea cols="40" rows="1" class="form-control api_collection_description">Describe the purpose of the collection</textarea>
<textarea cols="40" rows="1" class="form-control api_collection_description">{% trans "Describe the purpose of the collection" %}</textarea>
</div>
{% endif %}
{% if forloop.counter0 == 0 %}
<div class="col-sm-12 col-sm-2">
<div class="form-group">
<button class="btn btn-primary btn-green forSave">Create </button>
<button class="btn btn-primary btn-green forSave">{% trans "Create" %}</button>
</div>
</div>
{% endif %}
{% if forloop.counter0 > 0 %}
<div class="col-sm-12 col-sm-2">
<div class="form-group">
<button class="btn btn-primary btn-red forDelete">Delete</button>
<button class="btn btn-primary btn-red forDelete">{% trans "Delete" %}</button>
</div>
</div>
{% endif %}

View File

@ -107,7 +107,7 @@ class CreateAtmForm(forms.Form):
required=False,
)
monday = forms.CharField(
label=_(' Monday'),
label=_('Monday'),
widget=forms.TextInput(
attrs={
'placeholder': 'None',
@ -127,7 +127,7 @@ class CreateAtmForm(forms.Form):
required=False,
)
wednesday = forms.CharField(
label=_(' Wednesday'),
label=_('Wednesday'),
widget=forms.TextInput(
attrs={
'placeholder': 'None',
@ -137,7 +137,7 @@ class CreateAtmForm(forms.Form):
required=False,
)
thursday = forms.CharField(
label=_(' Thursday'),
label=_('Thursday'),
widget=forms.TextInput(
attrs={
'placeholder': 'None',
@ -147,7 +147,7 @@ class CreateAtmForm(forms.Form):
required=False,
)
friday = forms.CharField(
label=_(' Friday'),
label=_('Friday'),
widget=forms.TextInput(
attrs={
'placeholder': 'None',
@ -157,7 +157,7 @@ class CreateAtmForm(forms.Form):
required=False,
)
saturday = forms.CharField(
label=_(' Saturday'),
label=_('Saturday'),
widget=forms.TextInput(
attrs={
'placeholder': 'None',
@ -167,7 +167,7 @@ class CreateAtmForm(forms.Form):
required=False,
)
sunday = forms.CharField(
label=_(' Sunday'),
label=_('Sunday'),
widget=forms.TextInput(
attrs={
'placeholder': 'None',

View File

@ -1,7 +1,7 @@
{% extends 'base.html' %} {% load static %} {% load i18n %}
{% block page_title %}{{ block.super }} / atms{% endblock page_title %} {% block content %}
{% extends 'base.html' %} {% load static %} {% trans load i18n %}
{% block page_title %} /atms{% endblock page_title %} {% block content %}
<div id="atms">
<h1>ATM Detail</h1>
<h1>{% trans "ATM Detail" %}</h1>
<div class="table-responsive">
<table class="table table-hover tablesorter" id="atms-list" aria-describedby="atms list">
<thead>
@ -22,7 +22,7 @@
<td>
<div class="popuptext">
<ul>
<li>Address:
<li>{% trans "Address" %}:
<ul>
<li>line1: {{atm.address.line_1}}</li>
</ul>

View File

@ -1,6 +1,6 @@
{% extends 'base.html' %} {% load static %} {% block page_title %}{{ block.super }} / Atms{% endblock page_title %} {% block content %}
<div id="atms">
<h1>ATM Detail</h1>
<h1>{% trans "ATM Detail" %}</h1>
<h2>{{ bank_id }} : {{ atm_id }}</h2>
<form method="post">
{% csrf_token %} {% if form.non_field_errors %}

View File

@ -281,9 +281,9 @@ class UpdateAtmsView(LoginRequiredMixin, FormView):
else:
fields['supported_languages'].choices = [("de", "de"),("fr", "fr"), ("en", "en")]
fields['supported_languages'].initial = result['supported_languages']
if result['supported_currencies'][0].lower()=='eur':
if result['supported_currencies'][0].lower()=='EUR':
fields['supported_currencies'].choices = [("EUR", "EUR"), ("MXN", "MXN"), ("USD", "USD")]
elif result['supported_currencies'][0].lower()=='mxn':
elif result['supported_currencies'][0].lower()=='MXN':
fields['supported_currencies'].choices = [("MXN", "MXN"), ("EUR", "EUR"), ("USD", "USD")]
else:
fields['supported_currencies'].choices = [("USD", "USD"),("MXN", "MXN"), ("EUR", "EUR")]

View File

@ -1,6 +1,5 @@
{% extends 'base.html' %}
{% load static %}
{% load i18n %}
{% load static i18n %}
{% block page_title %}{{ block.super }} / Users{% endblock page_title %}

View File

@ -44,7 +44,7 @@
<form action="{% url 'entitlement-request-delete' entitlementrequest.entitlement_request_id %}" method="post">
{% csrf_token %}
<input type="hidden" name="role_name" value="{{ entitlementrequest.role_name }}" />
<button type="submit" class="btn btn-primary btn-sm btn-red">Reject</button>
<button type="submit" class="btn btn-primary btn-sm btn-red">{% trans "Reject" %}</button>
</form>
</td>
<td>
@ -53,7 +53,7 @@
<input type="hidden" name="entitlement_request_id" value="{{ entitlementrequest.entitlement_request_id }}" />
<input type="hidden" name="bank_id" value="{{ entitlementrequest.bank_id }}" />
<input type="hidden" name="role_name" value="{{ entitlementrequest.role_name }}" />
<button type="submit" class="btn btn-primary btn-sm">Accept</button>
<button type="submit" class="btn btn-primary btn-sm">{% trans "Accept" %}</button>
</form>
</td>
</tr>

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-06-10 12:39+0200\n"
"POT-Creation-Date: 2022-06-15 19:01+0200\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"
@ -17,6 +17,44 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: apicollections/templates/apicollections/index.html:6
msgid "API Collections"
msgstr "Mis colecciones de API"
#: apicollections/templates/apicollections/index.html:9
msgid "API Collection Id"
msgstr "Mis colecciones de API"
#: apicollections/templates/apicollections/index.html:12
msgid "Collection Name"
msgstr "Métricas del conector"
#: apicollections/templates/apicollections/index.html:15
msgid "Is Sharable"
msgstr "Es Compartible"
#: apicollections/templates/apicollections/index.html:18
#: consumers/templates/consumers/detail.html:175
#: consumers/templates/consumers/index.html:59
msgid "Description"
msgstr "Descripción"
#: apicollections/templates/apicollections/index.html:59
msgid "Describe the purpose of the collection"
msgstr "Describir el propósito de la colección"
#: apicollections/templates/apicollections/index.html:65
#: dynamicendpoints/templates/dynamicendpoints/index.html:33
msgid "Create"
msgstr "Creada"
#: apicollections/templates/apicollections/index.html:72
#: dynamicendpoints/templates/dynamicendpoints/index.html:40
#: methodrouting/templates/methodrouting/index.html:129
#: users/templates/users/detail.html:114 webui/templates/webui/index.html:48
msgid "Delete"
msgstr "Eliminar"
#: apimanager/settings.py:175
msgid "English"
msgstr "Inglés"
@ -45,7 +83,7 @@ msgstr "Id. de banco"
msgid "Name"
msgstr "Nombre"
#: atms/forms.py:46 branches/forms.py:43
#: atms/forms.py:46 atms/templates/atms/atm_List.html:25 branches/forms.py:43
#: branches/templates/branches/index.html:176
#: branches/templates/branches/index.html:203
msgid "Address"
@ -72,7 +110,7 @@ msgid "Opening Hours"
msgstr "Horario de atención"
#: atms/forms.py:110
msgid " Monday"
msgid "Monday"
msgstr "Lunes"
#: atms/forms.py:120
@ -80,23 +118,23 @@ msgid "Tuesday"
msgstr "Martes"
#: atms/forms.py:130
msgid " Wednesday"
msgid "Wednesday"
msgstr "Wednesday"
#: atms/forms.py:140
msgid " Thursday"
msgid "Thursday"
msgstr "Jueves"
#: atms/forms.py:150
msgid " Friday"
msgid "Friday"
msgstr "Viernes"
#: atms/forms.py:160
msgid " Saturday"
msgid "Saturday"
msgstr "Sábado"
#: atms/forms.py:170
msgid " Sunday"
msgid "Sunday"
msgstr "Sunday"
#: atms/forms.py:180
@ -168,6 +206,10 @@ msgstr "Cargo internacional por retiro de efectivo"
msgid "Balance Inquiry Fee"
msgstr "Cargo por consulta de saldo"
#: atms/templates/atms/atm_List.html:4 atms/templates/atms/update.html:3
msgid "ATM Detail"
msgstr "Descripción"
#: atms/templates/atms/atm_List.html:10
msgid "ATM Name"
msgstr "Nombre del cajero automático"
@ -265,7 +307,7 @@ msgstr "Vista de cajeros automáticos"
msgid "Configurations"
msgstr "Configuraciones"
#: base/templates/base.html:95 config/templates/config/index.html:9
#: base/templates/base.html:95 config/templates/config/index.html:8
msgid "Config"
msgstr "Configuraciones"
@ -453,7 +495,7 @@ msgstr "Más información"
msgid "Phone Number"
msgstr "Número de teléfono"
#: config/templates/config/index.html:11
#: config/templates/config/index.html:10
msgid "The configuration of the API"
msgstr "La configuración de la API"
@ -469,7 +511,7 @@ msgstr "Parámetros"
msgid "Update Consumer"
msgstr "Consumidoras"
#: consumers/templates/consumers/detail.html:80
#: consumers/templates/consumers/detail.html:80 metrics/forms.py:121
#: metrics/templates/metrics/api.html:165
msgid "App Name"
msgstr "Nombre de la aplicación"
@ -521,11 +563,6 @@ msgstr "Límite de llamadas por semana"
msgid "Per month call limit"
msgstr "Límite de llamadas por mes"
#: consumers/templates/consumers/detail.html:175
#: consumers/templates/consumers/index.html:59
msgid "Description"
msgstr "Descripción"
#: consumers/templates/consumers/detail.html:194
#: consumers/templates/consumers/index.html:75
msgid "Disable"
@ -695,19 +732,10 @@ msgstr "ID DE PUNTO FINAL"
msgid "SWAGGER STRING"
msgstr "CUERDA SWAGGER"
#: dynamicendpoints/templates/dynamicendpoints/index.html:33
msgid "Create"
msgstr "Creada"
#: dynamicendpoints/templates/dynamicendpoints/index.html:33
msgid "saved."
msgstr "salvado."
#: dynamicendpoints/templates/dynamicendpoints/index.html:40
#: users/templates/users/detail.html:114 webui/templates/webui/index.html:49
msgid "Delete"
msgstr "Eliminar"
#: entitlementrequests/templates/entitlementrequests/index.html:27
msgid "Role Name"
msgstr "Nombre del Papel"
@ -720,6 +748,14 @@ msgstr "Nombre de usuario"
msgid "Bank ID"
msgstr "Id. de banco"
#: entitlementrequests/templates/entitlementrequests/index.html:47
msgid "Reject"
msgstr "Rechazar"
#: entitlementrequests/templates/entitlementrequests/index.html:56
msgid "Accept"
msgstr "Aceptar"
#: methodrouting/templates/methodrouting/index.html:7
msgid "Method Routing"
msgstr "Enrutamiento de métodos"
@ -728,7 +764,7 @@ msgstr "Enrutamiento de métodos"
msgid "Method Name"
msgstr "Métricas del conector"
#: methodrouting/templates/methodrouting/index.html:13
#: methodrouting/templates/methodrouting/index.html:13 metrics/forms.py:186
#: metrics/templates/metrics/connector.html:87
msgid "Connector Name"
msgstr "Métricas del conector"
@ -753,44 +789,136 @@ msgstr "Identificación del método"
#: methodrouting/templates/methodrouting/index.html:50
#: methodrouting/templates/methodrouting/index.html:55
#: methodrouting/templates/methodrouting/index.html:59
#: methodrouting/templates/methodrouting/index.html:68
#: methodrouting/templates/methodrouting/index.html:83
#: methodrouting/templates/methodrouting/index.html:92
msgid "mapped"
msgstr "mapeada"
#: methodrouting/templates/methodrouting/index.html:42
#: methodrouting/templates/methodrouting/index.html:49
#: methodrouting/templates/methodrouting/index.html:60
#: methodrouting/templates/methodrouting/index.html:84
#: methodrouting/templates/methodrouting/index.html:93
msgid "internal"
msgstr "interna"
#: methodrouting/templates/methodrouting/index.html:43
#: methodrouting/templates/methodrouting/index.html:54
#: methodrouting/templates/methodrouting/index.html:58
#: methodrouting/templates/methodrouting/index.html:67
#: methodrouting/templates/methodrouting/index.html:82
#: methodrouting/templates/methodrouting/index.html:91
msgid "kafka_vSept2018"
msgstr "kafka_vseptiembre2018"
#: methodrouting/templates/methodrouting/index.html:44
#: methodrouting/templates/methodrouting/index.html:56
#: methodrouting/templates/methodrouting/index.html:61
#: methodrouting/templates/methodrouting/index.html:66
#: methodrouting/templates/methodrouting/index.html:85
#: methodrouting/templates/methodrouting/index.html:94
msgid "akka_vDec2018"
msgstr "akka_vdiciembre2018"
#: methodrouting/templates/methodrouting/index.html:45
#: methodrouting/templates/methodrouting/index.html:53
#: methodrouting/templates/methodrouting/index.html:62
#: methodrouting/templates/methodrouting/index.html:69
#: methodrouting/templates/methodrouting/index.html:73
#: methodrouting/templates/methodrouting/index.html:81
#: methodrouting/templates/methodrouting/index.html:90
msgid "rest_vMar2019"
msgstr "rest_vMar2019"
#: methodrouting/templates/methodrouting/index.html:46
#: methodrouting/templates/methodrouting/index.html:52
#: methodrouting/templates/methodrouting/index.html:63
#: methodrouting/templates/methodrouting/index.html:70
#: methodrouting/templates/methodrouting/index.html:80
#: methodrouting/templates/methodrouting/index.html:89
msgid "kafka_vMay2019"
msgstr "kafka_vmayo2019"
#: methodrouting/templates/methodrouting/index.html:47
#: methodrouting/templates/methodrouting/index.html:51
#: methodrouting/templates/methodrouting/index.html:71
#: methodrouting/templates/methodrouting/index.html:86
#: methodrouting/templates/methodrouting/index.html:88
msgid "stored_procedure_vDec2019"
msgstr "procedimiento_almacenado_vdic2019"
#: methodrouting/templates/methodrouting/index.html:105
#: methodrouting/templates/methodrouting/index.html:109
msgid "False"
msgstr "Falso"
#: methodrouting/templates/methodrouting/index.html:106
#: methodrouting/templates/methodrouting/index.html:108
msgid "True"
msgstr "Verdadero"
#: methodrouting/templates/methodrouting/index.html:124
msgid "Create New"
msgstr "Creada"
#: methodrouting/templates/methodrouting/index.html:128
msgid "Update"
msgstr "Botón Actualizar"
#: metrics/forms.py:18 metrics/forms.py:174 metrics/forms.py:230
msgid "From Date"
msgstr "desde fecha"
#: metrics/forms.py:30 metrics/forms.py:216
msgid "To Date"
msgstr "Fecha"
#: metrics/forms.py:41 users/templates/users/includes/filter_pagination.html:8
msgid "Limit"
msgstr "Límite"
#: metrics/forms.py:51 users/templates/users/includes/filter_pagination.html:4
msgid "Offset"
msgstr "Desplazamiento"
#: metrics/forms.py:92 metrics/templates/metrics/api.html:166
msgid "Consumer ID"
msgstr "identificación del consumidor"
#: metrics/forms.py:101 metrics/templates/metrics/api.html:163
#: users/templates/users/detail.html:11
msgid "User ID"
msgstr "Identificación de usuario"
#: metrics/forms.py:110
msgid "Anonymous"
msgstr "Anónimo"
#: metrics/forms.py:130 metrics/templates/metrics/api.html:143
msgid "Verb"
msgstr "Verbo"
#: metrics/forms.py:141 metrics/templates/metrics/api.html:144
msgid "URL"
msgstr "URL"
#: metrics/forms.py:150
msgid "Implemented By Partial Function"
msgstr "Implementado por Función Parcial"
#: metrics/forms.py:159 metrics/templates/metrics/api.html:168
msgid "Implemented In Version"
msgstr "Implementado en versión"
#: metrics/forms.py:195 metrics/templates/metrics/connector.html:88
msgid "Function Name"
msgstr "Nombre de la función"
#: metrics/forms.py:204 metrics/templates/metrics/connector.html:89
msgid "Correlation ID"
msgstr "Id. de correlación"
#: metrics/templates/metrics/api.html:12
#: metrics/templates/metrics/connector.html:12
#: metrics/templates/metrics/custom_summary.html:38
@ -802,61 +930,6 @@ msgstr "procedimiento_almacenado_vdic2019"
msgid "Filter"
msgstr "Filtrar"
#: metrics/templates/metrics/api.html:24
msgid "from date"
msgstr "desde fecha"
#: metrics/templates/metrics/api.html:31
#: metrics/templates/metrics/connector.html:31
#: metrics/templates/metrics/custom_summary.html:57
#: metrics/templates/metrics/daily_summary.html:50
#: metrics/templates/metrics/hourly_summary.html:48
#: metrics/templates/metrics/monthly_summary.html:51
msgid "to_date"
msgstr "fecha hasta"
#: metrics/templates/metrics/api.html:38
#: metrics/templates/metrics/connector.html:38
msgid "limit"
msgstr "Límite"
#: metrics/templates/metrics/api.html:45
#: metrics/templates/metrics/connector.html:45
msgid "offset"
msgstr "compensación"
#: metrics/templates/metrics/api.html:55
msgid "consumer id"
msgstr "identificación del consumidor"
#: metrics/templates/metrics/api.html:63
msgid "user_id"
msgstr "id_usuario"
#: metrics/templates/metrics/api.html:71
msgid "anon"
msgstr "Anón"
#: metrics/templates/metrics/api.html:79
msgid "app_name"
msgstr "nombre de la aplicación"
#: metrics/templates/metrics/api.html:90
msgid "verb"
msgstr "verbo"
#: metrics/templates/metrics/api.html:98
msgid "url"
msgstr "url"
#: metrics/templates/metrics/api.html:108
msgid "implemented by partial function"
msgstr "implementado por función parcial"
#: metrics/templates/metrics/api.html:116
msgid "implemented in version"
msgstr "implementado en versión"
#: metrics/templates/metrics/api.html:123
#: metrics/templates/metrics/connector.html:75
#: metrics/templates/metrics/custom_summary.html:69
@ -879,14 +952,6 @@ msgstr "Lista"
msgid "Summary by Partial Function"
msgstr "Resumen por Función Parcial"
#: metrics/templates/metrics/api.html:143
msgid "Verb"
msgstr "Verbo"
#: metrics/templates/metrics/api.html:144
msgid "URL"
msgstr "URL"
#: metrics/templates/metrics/api.html:145
#: metrics/templates/metrics/connector.html:86
msgid "Date"
@ -904,26 +969,30 @@ msgstr "Descripción"
msgid "User Name"
msgstr "Nombre de Usuario"
#: metrics/templates/metrics/api.html:163 users/templates/users/detail.html:11
msgid "User ID"
msgstr "Identificación de usuario"
#: metrics/templates/metrics/api.html:166
msgid "Consumer ID"
msgstr "identificación del consumidor"
#: metrics/templates/metrics/api.html:167
msgid "Implemented by Partial Function"
msgstr "Implementado por Función Parcial"
#: metrics/templates/metrics/api.html:168
msgid "Implemented In Version"
msgstr "Implementado en versión"
#: metrics/templates/metrics/connector.html:24
msgid "from_date"
msgstr "partir de la fecha"
#: metrics/templates/metrics/connector.html:31
#: metrics/templates/metrics/custom_summary.html:57
#: metrics/templates/metrics/daily_summary.html:50
#: metrics/templates/metrics/hourly_summary.html:48
#: metrics/templates/metrics/monthly_summary.html:51
msgid "to_date"
msgstr "fecha hasta"
#: metrics/templates/metrics/connector.html:38
msgid "limit"
msgstr "Límite"
#: metrics/templates/metrics/connector.html:45
msgid "offset"
msgstr "compensación"
#: metrics/templates/metrics/connector.html:55
msgid "connector_name"
msgstr "conector_nombre"
@ -936,14 +1005,6 @@ msgstr "nombre de la función"
msgid "correlation_id"
msgstr "correlación_id"
#: metrics/templates/metrics/connector.html:88
msgid "Function Name"
msgstr "Nombre de la función"
#: metrics/templates/metrics/connector.html:89
msgid "Correlation ID"
msgstr "Id. de correlación"
#: metrics/templates/metrics/connector.html:90
msgid "Duration (ms)"
msgstr "Duración (ms)"
@ -1041,6 +1102,36 @@ msgstr "desde la fecha personalizada"
msgid "Include System Calls"
msgstr "Incluir llamadas del sistema"
#: metrics/templates/metrics/custom_summary.html:77
#: metrics/templates/metrics/daily_summary.html:70
#: metrics/templates/metrics/hourly_summary.html:68
#: metrics/templates/metrics/monthly_summary.html:80
#: metrics/templates/metrics/quarterly_summary.html:69
#: metrics/templates/metrics/weekly_summary.html:71
#: metrics/templates/metrics/yearly_summary.html:71
msgid "Period"
msgstr "Período"
#: metrics/templates/metrics/custom_summary.html:77
#: metrics/templates/metrics/daily_summary.html:70
#: metrics/templates/metrics/hourly_summary.html:68
#: metrics/templates/metrics/monthly_summary.html:80
#: metrics/templates/metrics/quarterly_summary.html:69
#: metrics/templates/metrics/weekly_summary.html:71
#: metrics/templates/metrics/yearly_summary.html:71
msgid "From"
msgstr "Desde"
#: metrics/templates/metrics/custom_summary.html:77
#: metrics/templates/metrics/daily_summary.html:70
#: metrics/templates/metrics/hourly_summary.html:68
#: metrics/templates/metrics/monthly_summary.html:80
#: metrics/templates/metrics/quarterly_summary.html:69
#: metrics/templates/metrics/weekly_summary.html:71
#: metrics/templates/metrics/yearly_summary.html:71
msgid "to"
msgstr "a"
#: metrics/templates/metrics/custom_summary.html:85
#: metrics/templates/metrics/daily_summary.html:78
#: metrics/templates/metrics/monthly_summary.html:88
@ -1094,25 +1185,40 @@ msgstr ""
"Mediana de tiempo desde el registro del consumidor hasta la primera llamada "
"APIMediana de tiempo desde el registro del consumidor hasta la primera "
"llamada APIMediana de tiempo desde el registro del consumidor hasta la "
"primera llamada APITiempo medio desde el registro del consumidor hasta la "
"primera llamada a la APItiempo medio hasta la primeraTiempo medio desde el "
"registro del consumidor hasta la primera llamada a la APIMediana de tiempo "
"desde el registro del consumidor hasta la primera llamada APITiempo medio "
"desde el registro del consumidor hasta la primera llamada a la APITiempo "
"medio desde el registro del consumidor hasta la primera llamada a la "
"APITiempo medio desde el registro del consumidor hasta la primera llamada a "
"la APITiempo medio desde el registro del consumidor hasta la primera llamada "
"a la APItiempo medio hasta la primeraTiempo medio desde el registro del "
"consumidor hasta la primera llamada a la APIMediana de tiempo desde el "
"primera llamada APIMediana de tiempo desde el registro del consumidor hasta "
"la primera llamada APIMediana de tiempo desde el registro del consumidor "
"hasta la primera llamada APIMediana de tiempo desde el registro del "
"consumidor hasta la primera llamada APIMediana de tiempo desde el registro "
"del consumidor hasta la primera llamada APIMediana de tiempo desde el "
"registro del consumidor hasta la primera llamada APIMediana de tiempo desde "
"el registro del consumidor hasta la primera llamada APIMediana de tiempo "
"desde el registro del consumidor hasta la primera llamada APIMediana de "
"tiempo desde el registro del consumidor hasta la primera llamada APITiempo "
"medio desde el registro del consumidor hasta la primera llamada a la "
"APITiempo medio desde el registro del consumidor hasta la primera llamada a "
"la APIMediana de tiempo desde el registro del consumidor hasta la primera "
"llamada APITiempo medio desde el registro del consumidor hasta la primera "
"llamada a la API"
"tiempo desde el registro del consumidor hasta la primera llamada APIMediana "
"de tiempo desde el registro del consumidor hasta la primera llamada "
"APIMediana de tiempo desde el registro del consumidor hasta la primera "
"llamada APIMediana de tiempo desde el registro del consumidor hasta la "
"primera llamada APIMediana de tiempo desde el registro del consumidor hasta "
"la primera llamada APIMediana de tiempo desde el registro del consumidor "
"hasta la primera llamada APIMediana de tiempo desde el registro del "
"consumidor hasta la primera llamada APITiempo medio desde el registro del "
"consumidor hasta la primera llamada a la APItiempo medio hasta la "
"primeraTiempo medio desde el registro del consumidor hasta la primera "
"llamada a la APIMediana de tiempo desde el registro del consumidor hasta la "
"primera llamada APITiempo medio desde el registro del consumidor hasta la "
"primera llamada a la APITiempo medio desde el registro del consumidor hasta "
"la primera llamada a la APITiempo medio desde el registro del consumidor "
"hasta la primera llamada a la APITiempo medio desde el registro del "
"consumidor hasta la primera llamada a la APItiempo medio hasta la "
"primeraTiempo medio desde el registro del consumidor hasta la primera "
"llamada a la APIMediana de tiempo desde el registro del consumidor hasta la "
"primera llamada APIMediana de tiempo desde el registro del consumidor hasta "
"la primera llamada APIMediana de tiempo desde el registro del consumidor "
"hasta la primera llamada APIMediana de tiempo desde el registro del "
"consumidor hasta la primera llamada APITiempo medio desde el registro del "
"consumidor hasta la primera llamada a la APITiempo medio desde el registro "
"del consumidor hasta la primera llamada a la APIMediana de tiempo desde el "
"registro del consumidor hasta la primera llamada APITiempo medio desde el "
"registro del consumidor hasta la primera llamada a la API"
#: metrics/templates/metrics/custom_summary.html:111
#: metrics/templates/metrics/daily_summary.html:105
@ -1199,33 +1305,6 @@ msgstr "Usuarios con rol CanSearchWarehouse"
msgid "N/A"
msgstr "N/A"
#: metrics/templates/metrics/daily_summary.html:70
#: metrics/templates/metrics/hourly_summary.html:68
#: metrics/templates/metrics/monthly_summary.html:80
#: metrics/templates/metrics/quarterly_summary.html:69
#: metrics/templates/metrics/weekly_summary.html:71
#: metrics/templates/metrics/yearly_summary.html:71
msgid "Period"
msgstr "Período"
#: metrics/templates/metrics/daily_summary.html:70
#: metrics/templates/metrics/hourly_summary.html:68
#: metrics/templates/metrics/monthly_summary.html:80
#: metrics/templates/metrics/quarterly_summary.html:69
#: metrics/templates/metrics/weekly_summary.html:71
#: metrics/templates/metrics/yearly_summary.html:71
msgid "From"
msgstr "Desde"
#: metrics/templates/metrics/daily_summary.html:70
#: metrics/templates/metrics/hourly_summary.html:68
#: metrics/templates/metrics/monthly_summary.html:80
#: metrics/templates/metrics/quarterly_summary.html:69
#: metrics/templates/metrics/weekly_summary.html:71
#: metrics/templates/metrics/yearly_summary.html:71
msgid "to"
msgstr "a"
#: metrics/templates/metrics/daily_summary.html:87
msgid "Calls per hour"
msgstr "Llamadas por Hora"
@ -1243,7 +1322,23 @@ msgstr ""
"Aplicaciones con distintas direcciones de correo electrónico para "
"desarrolladoresAplicaciones con distintas direcciones de correo electrónico "
"para desarrolladoresAplicaciones con distintas direcciones de correo "
"electrónico para desarrolladoresDirecciones de correo "
"electrónico para desarrolladoresAplicaciones con distintas direcciones de "
"correo electrónico para desarrolladoresAplicaciones con distintas "
"direcciones de correo electrónico para desarrolladoresAplicaciones con "
"distintas direcciones de correo electrónico para desarrolladoresAplicaciones "
"con distintas direcciones de correo electrónico para "
"desarrolladoresAplicaciones con distintas direcciones de correo electrónico "
"para desarrolladoresAplicaciones con distintas direcciones de correo "
"electrónico para desarrolladoresAplicaciones con distintas direcciones de "
"correo electrónico para desarrolladoresAplicaciones con distintas "
"direcciones de correo electrónico para desarrolladoresAplicaciones con "
"distintas direcciones de correo electrónico para desarrolladoresAplicaciones "
"con distintas direcciones de correo electrónico para "
"desarrolladoresAplicaciones con distintas direcciones de correo electrónico "
"para desarrolladoresAplicaciones con distintas direcciones de correo "
"electrónico para desarrolladoresAplicaciones con distintas direcciones de "
"correo electrónico para desarrolladoresAplicaciones con distintas "
"direcciones de correo electrónico para desarrolladoresDirecciones de correo "
"electrónicoAplicaciones con direcciones de correo electrónico de "
"desarrollador distintasAplicaciones con direcciones de correo electrónico de "
"desarrollador distintasAplicaciones con distintas direcciones de correo "
@ -1351,14 +1446,6 @@ msgstr "Derechos"
msgid "Active"
msgstr "Activo"
#: users/templates/users/includes/filter_pagination.html:4
msgid "Offset"
msgstr "Desplazamiento"
#: users/templates/users/includes/filter_pagination.html:8
msgid "Limit"
msgstr "Límite"
#: users/templates/users/includes/filter_role.html:8
msgid "All Roles"
msgstr "Todas las Funciones"
@ -1407,30 +1494,54 @@ msgstr "países"
msgid "status"
msgstr "estado"
#: webui/templates/webui/index.html:10
#: webui/templates/webui/index.html:9
msgid "WEBUI"
msgstr "WEBUI"
#: webui/templates/webui/index.html:13
#: webui/templates/webui/index.html:12
msgid "Web UI Props Name"
msgstr "Accesorios webui"
#: webui/templates/webui/index.html:16
#: webui/templates/webui/index.html:15
msgid "Web UI Props Value"
msgstr "Accesorios webui"
#: webui/templates/webui/index.html:19
#: webui/templates/webui/index.html:18
msgid "Web UI Props Id"
msgstr "Accesorios webui"
#: webui/templates/webui/index.html:22
#: webui/templates/webui/index.html:21
msgid "Save Value"
msgstr "Guardar valor"
#: webui/templates/webui/index.html:48
#: webui/templates/webui/index.html:47
msgid "Save"
msgstr "Ahorrar"
#~ msgid "consumer id"
#~ msgstr "identificación del consumidor"
#~ msgid "user_id"
#~ msgstr "id_usuario"
#~ msgid "anon"
#~ msgstr "Anón"
#~ msgid "app_name"
#~ msgstr "nombre de la aplicación"
#~ msgid "verb"
#~ msgstr "verbo"
#~ msgid "url"
#~ msgstr "url"
#~ msgid "implemented by partial function"
#~ msgstr "implementado por función parcial"
#~ msgid "implemented in version"
#~ msgstr "implementado en versión"
#~ msgid "username"
#~ msgstr "nombre de usuario"
@ -1479,8 +1590,6 @@ msgstr "Ahorrar"
#~ msgid "lobby"
#~ msgstr "ejercer presión"
#, fuzzy
#~| msgid "Cash Withdrawal International Fee"
#~ msgid "cash_withdrawal_international_fee"
#~ msgstr "Cargo internacional por retiro de efectivo"

View File

@ -63,35 +63,35 @@
<option value="kafka_vMay2019">{% trans "kafka_vMay2019" %}</option>
<option value="stored_procedure_vDec2019">stored_procedure_vDec2019</option>
{% elif method_routing.connector_name == "akka_vDec2018" %}
<option value="akka_vDec2018">akka_vDec2018</option> # This will be selected
<option value="kafka_vSept2018">kafka_vSept2018</option>
<option value="mapped">mapped</option>
<option value="rest_vMar2019">rest_vMar2019</option>
<option value="kafka_vMay2019">kafka_vMay2019</option>
<option value="stored_procedure_vDec2019">stored_procedure_vDec2019</option>
<option value="akka_vDec2018">{% trans "akka_vDec2018" %}</option> # This will be selected
<option value="kafka_vSept2018">{% trans "kafka_vSept2018" %}</option>
<option value="mapped">{% trans "mapped" %}</option>
<option value="rest_vMar2019">{% trans "rest_vMar2019" %}</option>
<option value="kafka_vMay2019">{% trans "kafka_vMay2019" %}</option>
<option value="stored_procedure_vDec2019">{% trans "stored_procedure_vDec2019" %}</option>
{% elif method_routing.connector_name == "rest_vMar2019" %}
<option value="rest_vMar2019">rest_vMar2019</option> # This will be selected
<option value="kafka_vSept2018">kafka_vSept2018</option>
<option value="mapped">mapped</option>
<option value="akka_vDec2018">akka_vDec2018</option>
<option value="kafka_vMay2019">kafka_vMay2019</option>
<option value="stored_procedure_vDec2019">stored_procedure_vDec2019</option>
<option value="rest_vMar2019">{% trans "rest_vMar2019" %}</option> # This will be selected
<option value="kafka_vSept2018">{% trans "kafka_vSept2018</option>
<option value="mapped">{% trans "mapped</option>
<option value="akka_vDec2018">{% trans "akka_vDec2018</option>
<option value="kafka_vMay2019">{% trans "kafka_vMay2019</option>
<option value="stored_procedure_vDec2019">{% trans "stored_procedure_vDec2019</option>
{% elif method_routing.connector_name == "kafka_vMay2019" %}
<option value="kafka_vMay2019">kafka_vMay2019</option> # This will be selected
<option value="rest_vMar2019">rest_vMar2019</option>
<option value="kafka_vSept2018">kafka_vSept2018</option>
<option value="mapped">mapped</option>
<option value="internal">internal</option>
<option value="akka_vDec2018">akka_vDec2018</option>
<option value="stored_procedure_vDec2019">stored_procedure_vDec2019</option>
<option value="kafka_vMay2019">{% trans "kafka_vMay2019" %}</option> # This will be selected
<option value="rest_vMar2019">{% trans "rest_vMar2019" %}</option>
<option value="kafka_vSept2018">{% trans "kafka_vSept2018" %}</option>
<option value="mapped">{% trans "mapped" %}</option>
<option value="internal">{% trans "internal" %}</option>
<option value="akka_vDec2018">{% trans "akka_vDec2018" %}</option>
<option value="stored_procedure_vDec2019">{% trans "stored_procedure_vDec2019" %}</option>
{% elif method_routing.connector_name == "stored_procedure_vDec2019" %}
<option value="stored_procedure_vDec2019">stored_procedure_vDec2019</option> # This will be selected
<option value="kafka_vMay2019">kafka_vMay2019</option>
<option value="rest_vMar2019">rest_vMar2019</option>
<option value="kafka_vSept2018">kafka_vSept2018</option>
<option value="mapped">mapped</option>
<option value="internal">internal</option>
<option value="akka_vDec2018">akka_vDec2018</option>
<option value="stored_procedure_vDec2019">{% trans "stored_procedure_vDec2019" %}</option> # This will be selected
<option value="kafka_vMay2019">{% trans "kafka_vMay2019" %}</option>
<option value="rest_vMar2019">{% trans "rest_vMar2019" %}</option>
<option value="kafka_vSept2018">{% trans "kafka_vSept2018" %}</option>
<option value="mapped">{% trans "mapped" %}</option>
<option value="internal">{% trans "internal" %}</option>
<option value="akka_vDec2018">{% trans "akka_vDec2018" %}</option>
{% endif %}
</select>
</div>
@ -102,11 +102,11 @@
<div class="col-xs-12 col-sm-1" align="center">
<select class="is_bank_id_exact_match form-control">
{% if method_routing.is_bank_id_exact_match == False %}
<option value="False">False</option>
<option value="True">True</option>
<option value="False">{% trans "False" %}</option>
<option value="True">{% trans "True" %}</option>
{% else %}
<option value="True">True</option>
<option value="False">False</option>
<option value="True">{% trans "True" %}</option>
<option value="False">{% trans "False" %}</option>
{% endif %}
</select>
</div>
@ -121,12 +121,12 @@
<div class="col-sm-12 col-sm-2">
{% if method_routing.method_routing_id == "" %}
<div class="form-group">
<button class="btn btn-primary btn-green forSave">Create New </button>
<button class="btn btn-primary btn-green forSave">{% trans "Create New" %}</button>
</div>
{% else %}
<div class="form-group">
<button class="btn btn-primary btn-bule forSave">Update</button>
<button class="btn btn-primary btn-red forDelete">Delete</button>
<button class="btn btn-primary btn-bule forSave">{% trans "Update" %}</button>
<button class="btn btn-primary btn-red forDelete">{% trans "Delete" %}</button>
</div>
{% endif %}
</div>

View File

@ -8,13 +8,14 @@ from django.conf import settings
from datetime import date
from django.forms.widgets import SelectMultiple, CheckboxInput, CheckboxSelectMultiple
from datetime import datetime, timedelta
from django.utils.translation import ugettext_lazy as _
from bootstrap_datepicker_plus import DatePickerInput, DateTimePickerInput
class MetricsForm(forms.Form):
from_date = forms.DateTimeField(
label='From Date',
label=_('From Date'),
input_formats=[settings.API_DATEFORMAT],
widget=forms.DateTimeInput(
attrs={
@ -26,7 +27,7 @@ class MetricsForm(forms.Form):
required=False,
)
to_date = forms.DateTimeField(
label='To Date',
label=_('To Date'),
input_formats=[settings.API_DATEFORMAT],
widget=forms.DateTimeInput(
attrs={
@ -37,7 +38,7 @@ class MetricsForm(forms.Form):
required=False,
)
limit = forms.IntegerField(
label='Limit',
label=_('Limit'),
widget=forms.NumberInput(
attrs={
'class': 'form-control',
@ -47,7 +48,7 @@ class MetricsForm(forms.Form):
required=False,
)
offset = forms.IntegerField(
label='Offset',
label=_('Offset'),
widget=forms.NumberInput(
attrs={
'class': 'form-control',
@ -88,7 +89,7 @@ class APIMetricsForm(MetricsForm):
)
consumer_id = forms.CharField(
label='Consumer ID',
label=_('Consumer ID'),
widget=forms.TextInput(
attrs={
'class': 'form-control',
@ -97,7 +98,7 @@ class APIMetricsForm(MetricsForm):
required=False,
)
user_id = forms.CharField(
label='User ID',
label=_('User ID'),
widget=forms.TextInput(
attrs={
'class': 'form-control',
@ -106,7 +107,7 @@ class APIMetricsForm(MetricsForm):
required=False,
)
anon = forms.ChoiceField(
label='Anonymous',
label=_('Anonymous'),
choices=ANONYMOUS,
widget=forms.Select(
attrs={
@ -117,7 +118,7 @@ class APIMetricsForm(MetricsForm):
required=False,
)
app_name = forms.CharField(
label='App Name',
label=_('App Name'),
widget=forms.TextInput(
attrs={
'class': 'form-control',
@ -126,7 +127,7 @@ class APIMetricsForm(MetricsForm):
required=False,
)
verb = forms.ChoiceField(
label='Verb',
label=_('Verb'),
choices=VERB,
widget=forms.Select(
attrs={
@ -137,7 +138,7 @@ class APIMetricsForm(MetricsForm):
required=False,
)
url = forms.CharField(
label='URL',
label=_('URL'),
widget=forms.TextInput(
attrs={
'class': 'form-control',
@ -146,7 +147,7 @@ class APIMetricsForm(MetricsForm):
required=False,
)
implemented_by_partial_function = forms.CharField(
label='Implemented By Partial Function',
label=_('Implemented By Partial Function'),
widget=forms.TextInput(
attrs={
'class': 'form-control',
@ -155,7 +156,7 @@ class APIMetricsForm(MetricsForm):
required=False,
)
implemented_in_version = forms.ChoiceField(
label='Implemented In Version',
label=_('Implemented In Version'),
choices=VERSION,
widget=forms.Select(
attrs={
@ -170,7 +171,7 @@ class APIMetricsForm(MetricsForm):
class ConnectorMetricsForm(MetricsForm):
# override from_date until API returns values without given date
from_date = forms.DateTimeField(
label='From Date',
label=_('From Date'),
input_formats=[settings.API_DATEFORMAT],
widget=forms.DateTimeInput(
attrs={
@ -182,7 +183,7 @@ class ConnectorMetricsForm(MetricsForm):
required=True,
)
connector_name = forms.CharField(
label='Connector Name',
label=_('Connector Name'),
widget=forms.TextInput(
attrs={
'class': 'form-control',
@ -191,7 +192,7 @@ class ConnectorMetricsForm(MetricsForm):
required=False,
)
function_name = forms.CharField(
label='Function Name',
label=_('Function Name'),
widget=forms.TextInput(
attrs={
'class': 'form-control',
@ -200,7 +201,7 @@ class ConnectorMetricsForm(MetricsForm):
required=False,
)
correlation_id = forms.CharField(
label='Correlation ID',
label=_('Correlation ID'),
widget=forms.TextInput(
attrs={
'class': 'form-control',
@ -212,7 +213,7 @@ class ConnectorMetricsForm(MetricsForm):
class CustomSummaryForm(forms.Form):
to_date = forms.DateField(
label='To Date',
label=_('To Date'),
# input_formats=[settings.API_DATEFORMAT],
# widget=forms.DateTimeInput(
# attrs={
@ -226,7 +227,7 @@ class CustomSummaryForm(forms.Form):
)
from_date_custom = forms.DateField(
label='From Date',
label=_('From Date'),
# input_formats=[settings.API_DATEFORMAT],
# widget=forms.DateTimeInput(
# attrs={

View File

@ -21,28 +21,28 @@
<div class="col-xs-6 col-sm-3">
{% if form.from_date.errors %}<div class="alert alert-danger">{{ form.from_date.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "from date" %} </strong>
{{ form.from_date.label_tag }}
{{ form.from_date }}
</div>
</div>
<div class="col-xs-6 col-sm-3">
{% if form.to_date.errors %}<div class="alert alert-danger">{{ form.to_date.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "to_date" %} </strong>
{{ form.to_date.label_tag }}
{{ form.to_date }}
</div>
</div>
<div class="col-xs-6 col-sm-3">
{% if form.limit.errors %}<div class="alert alert-danger">{{ form.limit.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "limit" %} </strong>
{{ form.limit.label_tag }}
{{ form.limit }}
</div>
</div>
<div class="col-xs-6 col-sm-3">
{% if form.offset.errors %}<div class="alert alert-danger">{{ form.offset.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "offset" %} </strong>
{{ form.offset.label_tag }}
{{ form.offset }}
</div>
</div>
@ -52,7 +52,7 @@
<div class="col-xs-6 col-sm-3">
{% if form.consumer_id.errors %}<div class="alert alert-danger">{{ form.consumer_id.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "consumer id" %} </strong>
{{ form.consumer_id.label_tag }}
{{ form.consumer_id }}
</div>
</div>
@ -60,7 +60,7 @@
<div class="col-xs-6 col-sm-3">
{% if form.user_id.errors %}<div class="alert alert-danger">{{ form.user_id.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "user_id" %} </strong>
{{ form.user_id.label_tag }}
{{ form.user_id }}
</div>
</div>
@ -68,7 +68,7 @@
<div class="col-xs-6 col-sm-3">
{% if form.anon.errors %}<div class="alert alert-danger">{{ form.anon.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "anon" %} </strong>
{{ form.anon.label_tag }}
{{ form.anon }}
</div>
</div>
@ -76,7 +76,7 @@
<div class="col-xs-6 col-sm-3">
{% if form.app_name.errors %}<div class="alert alert-danger">{{ form.app_name.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "app_name" %} </strong>
{{ form.app_name.label_tag }}
{{ form.app_name }}
</div>
</div>
@ -87,7 +87,7 @@
<div class="col-xs-2">
{% if form.verb.errors %}<div class="alert alert-danger">{{ form.verb.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "verb" %} </strong>
{{ form.verb.label_tag }}
{{ form.verb }}
</div>
</div>
@ -95,7 +95,7 @@
<div class="col-xs-10">
{% if form.url.errors %}<div class="alert alert-danger">{{ form.url.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "url" %} </strong>
{{ form.url.label_tag }}
{{ form.url }}
</div>
</div>
@ -105,7 +105,7 @@
<div class="col-xs-7">
{% if form.implemented_by_partial_function.errors %}<div class="alert alert-danger">{{ form.implemented_by_partial_function.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "implemented by partial function" %} </strong>
{{ form.implemented_by_partial_function.label_tag }}
{{ form.implemented_by_partial_function }}
</div>
</div>
@ -113,7 +113,7 @@
<div class="col-xs-5">
{% if form.implemented_in_version.errors %}<div class="alert alert-danger">{{ form.implemented_in_version.errors }}</div>{% endif %}
<div class="form-group">
<strong>{% trans "implemented in version" %} </strong>
{{ form.implemented_in_version.label_tag }}
{{ form.implemented_in_version }}
</div>
</div>

View File

@ -74,7 +74,7 @@
<div class="tab-content">
{% block tab_content %}
<div class="tab-pane active">
<h2>Period : From {{ from_date }} to {{ to_date }}</h2>
<h2>{% trans "Period" %}: {% trans "From" %}{{ from_date }} {% trans "to" %}{{ to_date }} </h2>
<table border="1">
<tr>

View File

@ -1,6 +1,5 @@
{% extends 'base.html' %}
{% load static %}
{% load i18n %}
{% load static i18n %}
{% block page_title %}{{ block.super }} / Users{% endblock page_title %}