Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 25f4c41

Browse files
committed
feature internalization i18n WIP
1 parent 3ae195a commit 25f4c41

File tree

20 files changed

+1452
-1863
lines changed
  • apimanager
    • config/templates/config
      • index.html
    • consumers/templates/consumers
      • detail.html
    • customers/templates/customers
      • create.html
    • dynamicendpoints/templates/dynamicendpoints
      • index.html
    • locale
      • any
        • de/LC_MESSAGES
          • django.mo
          • django.po
        • es/LC_MESSAGES
          • django.mo
          • django.po
        • fr/LC_MESSAGES
          • django.mo
          • django.po
        • hi/LC_MESSAGES
          • django.mo
          • django.po
        • newlatest.py
      • es/LC_MESSAGES
        • django.mo
        • django.po
      • generatePo.py
      • hi/LC_MESSAGES
        • django.mo
      • newlatest.py
    • methodrouting/templates/methodrouting
      • index.html
    • webui/templates/webui
      • index.html

20 files changed

+1452
-1863
lines changed

apimanager/config/templates/config/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{% extends 'base.html' %}
22
{% load static %}
3+
{% load i18n %}
34

45
{% block page_title %}{{ block.super }} / Users{% endblock page_title %}
56

67
{% block content %}
78
<div id="config">
8-
<h1>Configh1>
9+
<h1>{% trans "Config" %}h1>
910

10-
<p>The configuration of the APIp>
11+
<p>{% trans "The configuration of the API" %}p>
1112

1213
<pre id="config-json">
1314
pre>

apimanager/consumers/templates/consumers/detail.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{% extends 'base.html' %}
22
{% load humanize static %}
3+
{% load i18n %}
34

45
{% block page_title %}{{ block.super }} / Consumer {{ consumer.app_name }}{% endblock page_title %}
56

67
{% block content %}
78
<div id="consumers-detail">
8-
<h1>Consumer {{ consumer.app_name }}h1>
9+
<h1>{% trans "Consumer" %} {{ consumer.app_name }}h1>
910

1011

1112
<div class="row">
1213
<div class="col-xs-12">
1314

14-
<h2>Paramsh2>
15+
<h2>{% trans "Params" %}h2>
1516
<form action="" method="post">
1617
{% csrf_token %}
1718
{{ form.consumer_id }}
@@ -60,7 +61,7 @@

Params

6061
div>
6162

6263

63-
<button type="submit" class="btn btn-primary">Update Consumerbutton>
64+
<button type="submit" class="btn btn-primary">{% trans "Update Consumer" %}button>
6465
form>
6566
div>
6667
div>
@@ -76,14 +77,14 @@

Params

7677
<div class="row">
7778
<div class="col-xs-12 col-sm-6">
7879
<div id="consumers-detail-app_name">
79-
<strong>App Namestrong><br />
80+
<strong>{% trans "App Name" %}strong><br />
8081
<span>{{ consumer.app_name }}span>
8182
div>
8283
div>
8384

8485
<div class="col-xs-12 col-sm-6">
8586
<div id="consumers-detail-app_type">
86-
<strong>App Typestrong><br />
87+
<strong>{% trans "App Type" %}strong><br />
8788
<span>{{ consumer.app_type }}span>
8889
div>
8990
div>
@@ -92,14 +93,14 @@

Params

9293
<div class="row">
9394
<div class="col-xs-12 col-sm-6">
9495
<div id="consumers-detail-developer_email">
95-
<strong>Developer Emailstrong><br />
96+
<strong>{% trans "Developer Email" %}strong><br />
9697
<span>{{ consumer.developer_email }}span>
9798
div>
9899
div>
99100

100101
<div class="col-xs-12 col-sm-6">
101102
<div id="consumers-detail-user_email">
102-
<strong>User Emailstrong><br />
103+
<strong>{% trans "User Email" %}strong><br />
103104
<span>{% if consumer.created_by_user.user_id %}<a href="{% url 'users-detail' consumer.created_by_user.user_id %}">{{ consumer.created_by_user.email }}a>{% else %}{{ consumer.created_by_user.email }}{% endif %}span>
104105
div>
105106
div>
@@ -108,14 +109,14 @@

Params

108109
<div class="row">
109110
<div class="col-xs-12 col-sm-6">
110111
<div id="consumers-detail-created">
111-
<strong>Createdstrong><br />
112+
<strong>{% trans "Created" %}strong><br />
112113
<span>{{ consumer.created|naturaltime }}span>
113114
div>
114115
div>
115116

116117
<div class="col-xs-12 col-sm-6">
117118
<div id="consumers-detail-created_by_user_id">
118-
<strong>Created By User IDstrong><br />
119+
<strong>{% trans "Created By User ID" %}strong><br />
119120
<span>{{ consumer.created_by_user_id }}span>
120121
div>
121122
div>
@@ -124,13 +125,13 @@

Params

124125
<div class="row">
125126
<div class="col-xs-6 col-sm-6">
126127
<div id="consumers-detail-redirect_url">
127-
<strong>Redirect URLstrong><br />
128+
<strong>{% trans "Redirect URL" %}strong><br />
128129
<span>{{ consumer.redirect_url }}span>
129130
div>
130131
div>
131132
<div class="col-xs-6 col-sm-6">
132133
<div id="consumers-per_minute_call_limit ">
133-
<strong>Per minute call limit strong><br />
134+
<strong>{% trans "Per minute call limit" %}strong><br />
134135
<span>{{ consumer.per_minute_call_limit }}span>
135136
div>
136137
div>
@@ -139,13 +140,13 @@

Params

139140
<div class="row">
140141
<div class="col-xs-6 col-sm-6">
141142
<div id="consumers-per_hour_call_limit ">
142-
<strong>Per hour call limit strong><br />
143+
<strong>{% trans "Per hour call limit" %} strong><br />
143144
<span>{{ consumer.per_hour_call_limit }}span>
144145
div>
145146
div>
146147
<div class="col-xs-6 col-sm-6">
147148
<div id="consumers-per_day_call_limit">
148-
<strong>Per day call limitstrong><br />
149+
<strong>{% trans "Per day call limit" %}strong><br />
149150
<span>{{ consumer.per_day_call_limit }}span>
150151
div>
151152
div>
@@ -155,13 +156,13 @@

Params

155156
<div class="row">
156157
<div class="col-xs-6 col-sm-6">
157158
<div id="consumers-per_week_call_limit">
158-
<strong>Per week call limitstrong><br />
159+
<strong>{% trans "Per week call limit" %}strong><br />
159160
<span>{{ consumer.per_week_call_limit }}span>
160161
div>
161162
div>
162163
<div class="col-xs-6 col-sm-6">
163164
<div id="consumers-per_month_call_limit">
164-
<strong>Per month call limitstrong><br />
165+
<strong>{% trans "Per month call limit" %}strong><br />
165166
<span>{{ consumer.per_month_call_limit }}span>
166167
div>
167168
div>
@@ -171,7 +172,7 @@

Params

171172
<div class="row">
172173
<div class="col-xs-12">
173174
<div id="consumers-detail-description">
174-
<strong>Descriptionstrong><br />
175+
<strong>{% trans "Description" %}strong><br />
175176
<div class="well">{{ consumer.description }}div>
176177
div>
177178
div>
@@ -190,9 +191,9 @@

Params

190191
<input type="hidden" name="next" value="{{ request.path }}" />
191192
<div class="form-group">
192193
{% if consumer.enabled %}
193-
<button type="submit" class="btn btn-primary btn-red">Disablea>
194+
<button type="submit" class="btn btn-primary btn-red">{% trans "Disable" %}a>
194195
{% else %}
195-
<button type="submit" class="btn btn-primary btn-green">Enablea>
196+
<button type="submit" class="btn btn-primary btn-green">{% trans "Enable" %}a>
196197
{% endif %}
197198
div>
198199
form>

apimanager/customers/templates/customers/create.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@

{% trans "Create Customer" %}

2121
<div class="col-xs-12 col-sm-4">
2222
{% if form.bank_id.errors %}<div class="alert alert-danger">{{ form.bank_id.errors }}div>{% endif %}
2323
<div class="form-group">
24-
<strong>{% trans "bank_id" %}strong>
24+
<strong>{% trans "Bank Id" %}strong>
2525
{{ form.bank_id }}
2626
div>
2727
div>
@@ -35,7 +35,7 @@

{% trans "Create Customer" %}

3535
<div class="col-xs-12 col-sm-4">
3636
{% if form.customer_number.errors %}<div class="alert alert-danger">{{ form.customer_number.errors }}div>{% endif %}
3737
<div class="form-group">
38-
<strong>{% trans "customer_number" %}strong>
38+
<strong>{% trans "customer number" %}strong>
3939
{{ form.customer_number }}
4040
div>
4141
div>
@@ -45,14 +45,14 @@

{% trans "Create Customer" %}

4545
<div class="col-xs-12 col-sm-4">
4646
{% if form.legal_name.errors %}<div class="alert alert-danger">{{ form.legal_name.errors }}div>{% endif %}
4747
<div class="form-group">
48-
<strong>{% trans "legal_name" %}strong>
48+
<strong>{% trans "legal name" %}strong>
4949
{{ form.legal_name }}
5050
div>
5151
div>
5252
<div class="col-xs-12 col-sm-4">
5353
{% if form.mobile_phone_number.errors %}<div class="alert alert-danger">{{ form.mobile_phone_number.errors }}div>{% endif %}
5454
<div class="form-group">
55-
<strong>{% trans "mobile_phone_number" %}strong>
55+
<strong>{% trans "mobile phone number" %}strong>
5656
{{ form.mobile_phone_number }}
5757
div>
5858
div>
@@ -69,14 +69,14 @@

{% trans "Create Customer" %}

6969
<div class="col-xs-12 col-sm-6">
7070
{% if form.face_image_url.errors %}<div class="alert alert-danger">{{ form.face_image_url.errors }}div>{% endif %}
7171
<div class="form-group">
72-
<strong>{% trans "face_image_url" %}strong>
72+
<strong>{% trans "face image url" %}strong>
7373
{{ form.face_image_url }}
7474
div>
7575
div>
7676
<div class="col-xs-12 col-sm-6">
7777
{% if form.face_image_date.errors %}<div class="alert alert-danger">{{ form.face_image_date.errors }}div>{% endif %}
7878
<div class="form-group">
79-
<strong>{% trans "face_image_date" %}strong>
79+
<strong>{% trans "face image date" %}strong>
8080
{{ form.face_image_date }}
8181
div>
8282
div>
@@ -86,14 +86,14 @@

{% trans "Create Customer" %}

8686
<div class="col-xs-12 col-sm-6">
8787
{% if form.date_of_birth.errors %}<div class="alert alert-danger">{{ form.date_of_birth.errors }}div>{% endif %}
8888
<div class="form-group">
89-
<strong>{% trans "date_of_birth" %}strong>
89+
<strong>{% trans "date of birth" %}strong>
9090
{{ form.date_of_birth }}
9191
div>
9292
div>
9393
<div class="col-xs-12 col-sm-6">
9494
{% if form.relationship_status.errors %}<div class="alert alert-danger">{{ form.relationship_status.errors }}div>{% endif %}
9595
<div class="form-group">
96-
<strong>{% trans "relationship_status" %}strong>
96+
<strong>{% trans "relationship status" %}strong>
9797
{{ form.relationship_status }}
9898
div>
9999
div>
@@ -110,7 +110,7 @@

{% trans "Create Customer" %}

110110
<div class="col-xs-12 col-sm-6">
111111
{% if form.dob_of_dependants.errors %}<div class="alert alert-danger">{{ form.dob_of_dependants.errors }}div>{% endif %}
112112
<div class="form-group">
113-
<strong>{% trans "dob_of_dependants" %}strong>
113+
<strong>{% trans "dob of dependants" %}strong>
114114
{{ form.dob_of_dependants }}
115115
div>
116116
div>
@@ -120,29 +120,29 @@

{% trans "Create Customer" %}

120120
<div class="col-xs-12 col-sm-6 col-md-3">
121121
{% if form.credit_rating_rating.errors %}<div class="alert alert-danger">{{ form.credit_rating_rating.errors }}div>{% endif %}
122122
<div class="form-group">
123-
<strong>{% trans "credit_rating_rating" %}strong>
123+
<strong>{% trans "credit rating rating" %}strong>
124124
{{ form.credit_rating_rating }}
125125
div>
126126
div>
127127
<div class="col-xs-12 col-sm-6 col-md-3">
128128
{% if form.credit_rating_source.errors %}<div class="alert alert-danger">{{ form.credit_rating_source.errors }}div>{% endif %}
129129
<div class="form-group">
130-
<strong>{% trans "credit_rating_source" %}strong>
130+
<strong>{% trans "credit rating source" %}strong>
131131
{{ form.credit_rating_source }}
132132
div>
133133
div>
134134

135135
<div class="col-xs-12 col-sm-6 col-md-3">
136136
{% if form.credit_limit_currency.errors %}<div class="alert alert-danger">{{ form.credit_limit_currency.errors }}div>{% endif %}
137137
<div class="form-group">
138-
<strong>{% trans "credit_limit_currency" %}strong>
138+
<strong>{% trans "credit limit currency" %}strong>
139139
{{ form.credit_limit_currency }}
140140
div>
141141
div>
142142
<div class="col-xs-12 col-sm-6 col-md-3">
143143
{% if form.credit_limit_amount.errors %}<div class="alert alert-danger">{{ form.credit_limit_amount.errors }}div>{% endif %}
144144
<div class="form-group">
145-
<strong>{% trans "credit_limit_amount" %}strong>
145+
<strong>{% trans "credit limit amount" %}strong>
146146
{{ form.credit_limit_amount }}
147147
div>
148148
div>
@@ -152,14 +152,14 @@

{% trans "Create Customer" %}

152152
<div class="col-xs-12 col-sm-6">
153153
{% if form.highest_education_attained.errors %}<div class="alert alert-danger">{{ form.highest_education_attained.errors }}div>{% endif %}
154154
<div class="form-group">
155-
<strong>{% trans "highest_education_attained" %}strong>
155+
<strong>{% trans "highest education attained" %}strong>
156156
{{ form.highest_education_attained }}
157157
div>
158158
div>
159159
<div class="col-xs-12 col-sm-6">
160160
{% if form.employment_status.errors %}<div class="alert alert-danger">{{ form.employment_status.errors }}div>{% endif %}
161161
<div class="form-group">
162-
<strong>{% trans "employment_status" %}strong>
162+
<strong>{% trans "employment status" %}strong>
163163
{{ form.employment_status }}
164164
div>
165165
div>
@@ -169,14 +169,14 @@

{% trans "Create Customer" %}

169169
<div class="col-xs-12 col-sm-6">
170170
{% if form.kyc_status.errors %}<div class="alert alert-danger">{{ form.kyc_status.errors }}div>{% endif %}
171171
<div class="form-group">
172-
<strong>{% trans "kyc_status" %}strong>
172+
<strong>{% trans "kyc status" %}strong>
173173
{{ form.kyc_status }}
174174
div>
175175
div>
176176
<div class="col-xs-12 col-sm-6">
177177
{% if form.last_ok_date.errors %}<div class="alert alert-danger">{{ form.last_ok_date.errors }}div>{% endif %}
178178
<div class="form-group">
179-
<strong>{% trans "last_ok_date" %}strong>
179+
<strong>{% trans "last ok date" %}strong>
180180
{{ form.last_ok_date }}
181181
div>
182182
div>

apimanager/dynamicendpoints/templates/dynamicendpoints/index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{% extends 'base.html' %}
22
{% load static %}
3+
{% load i18n %}
34
{% block page_title %}{{ block.super }} / Dynamic Endpoints{% endblock page_title %}
45

56
{% block content %}
6-
<h1>Dynamic Endpointsh1>
7+
<h1>{% trans "Dynamic Endpoints" %}h1>
78
<div class="row">
89
<div class="col-xs-12 col-sm-2">
9-
<label class="form-group">ENDPOINT ID:label> <br>
10+
<label class="form-group">{% trans "ENDPOINT ID" %}:label> <br>
1011
div>
1112
<div class="col-xs-12 col-sm-10">
12-
<label class="form-group">SWAGGER STRING:label> <br>
13+
<label class="form-group">{% trans "SWAGGER STRING" %}:label> <br>
1314
div>
1415
div>
1516
<form method="post">
@@ -29,14 +30,14 @@

Dynamic Endpoints

2930
{% if forloop.counter0 == 0 %}
3031
<div class="col-sm-12 col-sm-2">
3132
<div class="form-group">
32-
<button class="btn btn-primary btn-green forSave">Create button><span style="display: none;margin-left: 5px;background-color:#00cc00">saved.span>
33+
<button class="btn btn-primary btn-green forSave">{% trans "Create" %} button><span style="display: none;margin-left: 5px;background-color:#00cc00">{% trans "saved." %}span>
3334
div>
3435
div>
3536
{% endif %}
3637
{% if forloop.counter0 > 0 %}
3738
<div class="col-sm-12 col-sm-2">
3839
<div class="form-group">
39-
<button class="btn btn-primary btn-red forDelete">Deletebutton>
40+
<button class="btn btn-primary btn-red forDelete">{% trans "Delete" %}button>
4041
div>
4142
div>
4243
{% endif %}

apimanager/locale/any/de/LC_MESSAGES/django.mo

-1.54 KB
Binary file not shown.

0 commit comments

Comments
(0)