forked from rero/sonar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.ini
42 lines (38 loc) · 1.4 KB
/
babel.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- coding: utf-8 -*-
#
# Swiss Open Access Repository
# Copyright (C) 2021 RERO
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Extraction from Python source files
[python: **.py]
encoding = utf-8
[python: **/manual_translations.txt]
encoding = utf-8
# Extraction from Jinja2 templates
[jinja2: **/templates/**.html]
encoding = utf-8
extensions = jinja2.ext.autoescape, jinja2.ext.with_
# Extraction from JavaScript files
[javascript: **.js]
encoding = utf-8
extract_messages = $._, jQuery._
# Extraction from json files (schema)
[ignore: **/**/organisation-v1.0.0.json]
[ignore: **/**/document-v1.0.0.json]
[ignore: **/**/deposit-v1.0.0.json]
[ignore: **/**/project-v1.0.0.json]
[ignore: **/**/collection-v1.0.0.json]
[ignore: **/**/subdivision-v1.0.0.json]
[json: **.json]
keys_to_translate = ['^title$', '^label$', '^description$', '^placeholder$', '^.*Message$']