Skip to content

Commit 951d863

Browse files
committed
Settings: POOTLE_MT_BACKENDS -> ZING_MT_BACKENDS
1 parent 4bdf09d commit 951d863

File tree

35 files changed

+38
-38
lines changed

35 files changed

+38
-38
lines changed

docs/feat-editor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ suggestions to translators.
5454

5555
To enable a certain Machine Translation Service, edit your configuration file
5656
and add the desired service within the
57-
[`POOTLE_MT_BACKENDS`](ref-settings.md#pootle-mt-backends).
57+
[`ZING_MT_BACKENDS`](ref-settings.md#zing-mt-backends).
5858

5959
### Reference
6060

6161
Settings:
6262

63-
* [`POOTLE_MT_BACKENDS`](ref-settings.md#pootle-mt-backends)
63+
* [`ZING_MT_BACKENDS`](ref-settings.md#zing-mt-backends)

docs/ref-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Optionally, a couple of details can be configured:
297297
might vary.
298298

299299

300-
### `POOTLE_MT_BACKENDS`
300+
### `ZING_MT_BACKENDS`
301301

302302
Default: `[]` (empty list)
303303

pootle/core/views/translate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_context_data(self, *args, **kwargs):
3535
'canreview': check_permission("review", self.request),
3636
'search_form': make_search_form(request=self.request),
3737
'previous_url': get_previous_url(self.request),
38-
'POOTLE_MT_BACKENDS': settings.POOTLE_MT_BACKENDS,
38+
'ZING_MT_BACKENDS': settings.ZING_MT_BACKENDS,
3939
'editor_extends': self.template_extends,
4040
})
4141
return ctx

pootle/settings/60-translation.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ POOTLE_SYNC_FILE_MODE = 0644
1414

1515
# Set the backends you want to use to enable translation suggestions through
1616
# several online services. To disable this feature completely just comment all
17-
# the lines to set an empty list [] to the POOTLE_MT_BACKENDS setting.
17+
# the lines to set an empty list [] to the ZING_MT_BACKENDS setting.
1818
#
1919
# The second parameter for each backend option is the API key, which will
2020
# be used in case the service supports using an API key.
@@ -28,7 +28,7 @@ POOTLE_SYNC_FILE_MODE = 0644
2828
# For this service you need to set the API key.
2929
# See more at https://tech.yandex.com/translate/
3030
#
31-
POOTLE_MT_BACKENDS = [
31+
ZING_MT_BACKENDS = [
3232
# ('GOOGLE_TRANSLATE', ''),
3333
# ('YANDEX_TRANSLATE', ''),
3434
]

pootle/settings/90-dev-local.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ ZING_TRANSLATION_DIRECTORY = working_path('translations')
162162
POOTLE_MARKUP_FILTER = (None, {})
163163

164164
# Suggestions through Machine Translation services (service name, API key).
165-
POOTLE_MT_BACKENDS = [
165+
ZING_MT_BACKENDS = [
166166
# ('GOOGLE_TRANSLATE', ''),
167167
# ('YANDEX_TRANSLATE', ''),
168168
]

pootle/settings/90-local.conf.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ ZING_TRANSLATION_DIRECTORY = working_path('translations')
157157

158158
# Set the backends you want to use to enable translation suggestions through
159159
# several online services. To disable this feature completely just comment all
160-
# the lines to set an empty list [] to the POOTLE_MT_BACKENDS setting.
160+
# the lines to set an empty list [] to the ZING_MT_BACKENDS setting.
161161
#
162162
# The second parameter for each backend option is the API key, which will
163163
# be used in case the service supports using an API key.
@@ -171,7 +171,7 @@ ZING_TRANSLATION_DIRECTORY = working_path('translations')
171171
# For this service you need to set the API key.
172172
# See more at https://tech.yandex.com/translate/
173173
#
174-
POOTLE_MT_BACKENDS = [
174+
ZING_MT_BACKENDS = [
175175
# ('GOOGLE_TRANSLATE', ''),
176176
# ('YANDEX_TRANSLATE', ''),
177177
]

pootle/templates/editor/_scripts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
};
2020
{% if cansuggest or cantranslate %}
2121
options.mt = [
22-
{% for provider, apikey in POOTLE_MT_BACKENDS %}
22+
{% for provider, apikey in ZING_MT_BACKENDS %}
2323
{ name: '{{ provider }}', key: '{{ apikey }}' },
2424
{% endfor %}
2525
];

tests/data/snapshots/test_translate/admin/_language0_project0_translate_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_language0_project0_translate_empty_dir0_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_language0_project0_translate_empty_dir1_store6.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_language0_project0_translate_store0.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_language0_project0_translate_subdir0_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_language0_project0_translate_subdir0_store4.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_language0_translate_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_projects_project0_translate_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_projects_project0_translate_empty_dir1_store6.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_projects_project0_translate_store0.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_projects_project0_translate_subdir0_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_projects_project0_translate_subdir0_store4.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/admin/_projects_translate_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/member/_language0_project0_translate_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/member/_language0_project0_translate_empty_dir0_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/member/_language0_project0_translate_empty_dir1_store6.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/member/_language0_project0_translate_store0.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/member/_language0_project0_translate_subdir0_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/member/_language0_project0_translate_subdir0_store4.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/member/_language0_translate_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/nobody/_language0_project0_translate_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/nobody/_language0_project0_translate_empty_dir0_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/nobody/_language0_project0_translate_empty_dir1_store6.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/nobody/_language0_project0_translate_store0.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/nobody/_language0_project0_translate_subdir0_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/nobody/_language0_project0_translate_subdir0_store4.po.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/data/snapshots/test_translate/nobody/_language0_translate_.context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"POOTLE_MT_BACKENDS": [
2+
"ZING_MT_BACKENDS": [
33
[
44
"fake_test_backend",
55
"api_key"

tests/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
ROOT_DIR = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))
2525
ZING_TRANSLATION_DIRECTORY = os.path.join(ROOT_DIR, 'pytest_pootle', 'data', 'po')
2626

27-
POOTLE_MT_BACKENDS = [
27+
ZING_MT_BACKENDS = [
2828
['fake_test_backend', 'api_key']
2929
]
3030

0 commit comments

Comments
 (0)