Skip to content

Commit 3d84121

Browse files
committed
Crowdin integration
Crowdin messes with the “Last-Translator” field :(
1 parent f52f840 commit 3d84121

14 files changed

+2263
-2986
lines changed

Resources/Locales/de/openspades.po

100755100644
+351-399
Large diffs are not rendered by default.
File renamed without changes.

Resources/Locales/es_es/openspades.po renamed to Resources/Locales/es/openspades.po

+308-357
Large diffs are not rendered by default.
File renamed without changes.

Resources/Locales/fr_fr/openspades.po renamed to Resources/Locales/fr/openspades.po

+79-216
Large diffs are not rendered by default.

Resources/Locales/ja/openspades.po

+48-127
Large diffs are not rendered by default.

Resources/Locales/ko/openspades.po

100755100644
+65-225
Large diffs are not rendered by default.

Resources/Locales/nl/openspades.po

+290-359
Large diffs are not rendered by default.
File renamed without changes.

Resources/Locales/pl_pl/openspades.po renamed to Resources/Locales/pl/openspades.po

+298-315
Large diffs are not rendered by default.

Resources/Locales/pt_br/openspades.po

+305-415
Large diffs are not rendered by default.

Resources/Locales/pt_pt/openspades.po

+320-390
Large diffs are not rendered by default.

Resources/Locales/ru/openspades.po

+63-183
Large diffs are not rendered by default.

crowdin.yml

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
#
2+
# Your crowdin's credentials
3+
#
4+
"project_identifier" : "openspades"
5+
"api_key" : ""
6+
"base_path" : ""
7+
#"base_url" : ""
8+
9+
#
10+
# Choose file structure in crowdin
11+
# e.g. true or false
12+
#
13+
"preserve_hierarchy": false
14+
15+
#
16+
# Files configuration
17+
#
18+
files: [
19+
{
20+
#
21+
# Source files filter
22+
# e.g. "/resources/en/*.json"
23+
#
24+
"source" : "/Resources/Locales/pot/openspades.pot",
25+
26+
#
27+
# where translations live
28+
# e.g. "/resources/%two_letters_code%/%original_file_name%"
29+
#
30+
"translation" : "/Resources/Locales/%locale_with_underscore%/openspades.po",
31+
32+
#
33+
# files or directories for ignore
34+
# e.g. ["/**/?.txt", "/**/[0-9].txt", "/**/*\?*.txt"]
35+
#
36+
#"ignore" : [],
37+
38+
#
39+
# The dest allows you to specify a file name on Crowdin
40+
# e.g. "/messages.json"
41+
#
42+
"dest" : "/openspades.pot",
43+
44+
#
45+
# File type
46+
# e.g. "json"
47+
#
48+
#"type" : "",
49+
50+
#
51+
# The parameter "update_option" is optional. If it is not set, translations for changed strings will be lost. Useful for typo fixes and minor changes in source strings.
52+
# e.g. "update_as_unapproved" or "update_without_changes"
53+
#
54+
#"update_option" : "",
55+
56+
#
57+
# Start block only for XML
58+
#
59+
60+
#
61+
# Defines whether to translate tags attributes.
62+
# e.g. 0 or 1 (Default is 1)
63+
#
64+
# "translate_attributes" : 1,
65+
66+
#
67+
# Defines whether to translate texts placed inside the tags.
68+
# e.g. 0 or 1 (Default is 1)
69+
#
70+
# "translate_content" : 1,
71+
72+
#
73+
# This is an array of strings, where each item is the XPaths to DOM element that should be imported
74+
# e.g. ["/content/text", "/content/text[@value]"]
75+
#
76+
# "translatable_elements" : [],
77+
78+
#
79+
# Defines whether to split long texts into smaller text segments.
80+
# e.g. 0 or 1 (Default is 1)
81+
#
82+
# "content_segmentation" : 1,
83+
84+
#
85+
# End block only for XML
86+
#
87+
88+
#
89+
# Start .properties block
90+
#
91+
92+
#
93+
# Defines whether single quote should be escaped by another single quote or backslash in exported translations.
94+
# e.g. 0 or 1 or 2 or 3 (Default is 3)
95+
# 0 - do not escape single quote;
96+
# 1 - escape single quote by another single quote;
97+
# 2 - escape single quote by backslash;
98+
# 3 - escape single quote by another single quote only in strings containing variables ( {0} ).
99+
#
100+
# "escape_quotes" : 3,
101+
102+
#
103+
# End .properties block
104+
#
105+
106+
#
107+
# Often software projects have custom names for locale directories. crowdin-cli allows you to map your own languages to be understandable by Crowdin.
108+
#
109+
"languages_mapping" : {
110+
"locale_with_underscore" : {
111+
"de_DE": "de",
112+
"es_ES": "es",
113+
"fr_FR": "fr",
114+
"ja_JP": "ja",
115+
"ko_KR": "ko",
116+
"nl_NL": "nl",
117+
"pl_PL": "pl",
118+
"pt_PT": "pt_pt",
119+
"pt_BR": "pt_br",
120+
"ru_RU": "ru"
121+
}
122+
},
123+
124+
#
125+
# Is first line contains header?
126+
# e.g. true or false
127+
#
128+
#"first_line_contains_header" : true,
129+
130+
#
131+
# for spreadsheets
132+
# e.g. "identifier,source_phrase,context,uk,ru,fr"
133+
#
134+
# "scheme" : "",
135+
}
136+
]

0 commit comments

Comments
 (0)