This repository was archived by the owner on Nov 27, 2025. It is now read-only.
forked from smartlingtestdocs/smartlingtestdocs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSupportedFileTypes.yml
More file actions
225 lines (204 loc) · 10.1 KB
/
Copy pathSupportedFileTypes.yml
File metadata and controls
225 lines (204 loc) · 10.1 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
- file_type: 'JSON'
extension: '.json'
smartling_identifier: 'json'
resource_info: '<a href="http://json.org/">Official JSON Standards</a>'
default_placeholders: '!!!!!!!!!!!!'
keys_variants: Yes
keys_variants_info: 'By default, the full path of keys leading to a string are captured as Key and Variant metadata. Custom key paths can be set and variant behavior turned off with directives'
directive_style: set_once
string_instructions: No
- file_type: 'Android XML'
extension: '.xml'
smartling_identifier: 'android'
download_sample: '<a href="">android.xml</a>'
resource_info: '<ul><li><a href="http://developer.android.com/guide/topics/resources/string-resource.html">Android String Resources</a></li><li><a href="http://developer.android.com/guide/topics/resources/localization.html">Android Localization</a></li></ul>'
default_placeholders: '________'
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
- file_type: 'iOS String Files'
extension: '.strings'
smartling_identifier: 'ios'
download_sample: '<a href="">ios.strings</a>'
resource_info: '<a href="https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/LoadingResources/Strings/Strings.html">String Resources</a>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style: set_throughout
directive_format: '/* smartling.[directive_name] = [value] */'
directive_instructions: 'The directive must be a single comment on one line, and there should not be any inline trailing symbols after the directive. Directives apply to all strings that follow them.'
string_instructions: ''
directives:
- placeholder_format_custom
- placeholder_format
- file_type: 'iOS Stringsdict'
extension: '.stringsdict'
smartling_identifier: 'stringsdict'
download_sample: '<a href=""></a>'
resource_info: '<ul><li><a href="https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/StringsdictFileFormat/StringsdictFileFormat.html">Stringsdict File Format</a></li><li><a href="https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/LocalizingYourApp/LocalizingYourApp.html">Localizing your App</a></li></ul>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
- file_type: 'Gettext PO/POT'
extension: '.pot / .po'
smartling_identifier: 'gettext'
download_sample: '<a href="http://www.gnu.org/software/gettext/">GNU Gettext Documentation</a>'
resource_info: '<a href="http://www.gnu.org/software/gettext/">GNU Gettext Documentation</a>'
default_placeholders: ''
keys_variants: Yes
keys_variants_info: '<p>Smartling also supports the msgctxt parameter that allows you to have Smartling capture a string as a variant. When a gettext string includes msgctxt metadata it will be created as variant using the value of msgctxt.</p><p>For example:</p><pre>msgctxt "Home Page Menu Navigation"<br/>msgid "Home"<br/>msgstr ""<br/>msgctxt "Home Address Label"<br/>msgid "Home"<br/>msgstr ""</pre><p>Will result in two strings for translation. Both with the value "Home". The translators can choose to to make the translation the same or not. The value of msgctxt displays to translators in the Translation Interface and the Smartling Dashboard. See the <a href="http://support.smartling.com/entries/22279686-about-variants-translation-management-system">Knowledge Base</a> for more on translation variants.<p>'
directive_style: set_throughout
string_instructions:
- file_type: 'HTML'
extension: '.html'
smartling_identifier: 'html'
download_sample: '<a href=""></a>'
resource_info: '<a href="http://www.w3.org/TR/html5/">HTML5 Standards</a>'
default_placeholders: ''
keys_variants: YES
keys_variants_info: ''
directive_style: set_throughout
string_instructions:
- file_type: 'Java Property Files'
extension: '.properties'
smartling_identifier: 'javaProperties'
download_sample: '<a href="">java.properties</a>'
resource_info: '<a href="http://docs.oracle.com/javase/tutorial/i18n/index.html">Java Localization Documentation</a>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
- file_type: 'YAML'
extension: '.yml'
smartling_identifier: 'yml'
download_sample: '<a href="">yaml.yml</a>'
resource_info: '<a href="http://guides.rubyonrails.org/i18n.html">Rails Internationalization</a>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
- file_type: 'XLIFF'
extension: '.xml'
smartling_identifier: 'xliff'
download_sample: '<a href=""></a>'
resource_info: '<ul><li><a href="http://en.wikipedia.org/wiki/XLIFF">Background on XLIFF</a></li><li><a href="http://docs.oasis-open.org/xliff/xliff-core/xliff-core.html">OASIS specification</a></li></ul>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
- file_type: 'Custom XML'
extension: '.xml'
smartling_identifier: 'xml'
download_sample: '<a href=""></a>'
resource_info: '<a href="http://www.w3.org/standards/xml/">XML Standards</a>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
- file_type: 'QT Linguists'
extension: '.tx'
smartling_identifier: 'qt'
download_sample: '<a href=""></a>'
resource_info: '<a href="http://doc.qt.digia.com/4.5/linguist-ts-file-format.html">QT Linguist Docs</a>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
text: 'Smartling natively supports the plural forms from QT Linguist files.'
- file_type: 'MadCap Lingo ZIP packages'
extension: ''
smartling_identifier: ''
download_sample: '<a href=""></a>'
resource_info: '<a href="http://www.madcapsoftware.com/products/lingo/">Madcap Lingo software</a>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
- file_type: 'Office Open XML'
extension: '.docx, .xlsx, .pptx'
smartling_identifier: 'docx, pptx, xlsx'
download_sample: '<a href=""></a>'
resource_info: '<a href="http://msdn.microsoft.com/en-ca/office/bb265236.aspx">Open XML for Developers</a>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
- file_type: 'InDesign Markup Language'
extension: '.idml'
smartling_identifier: 'idml'
download_sample: '<a href=""></a>'
resource_info: '<a href="http://www.adobe.com/devnet/indesign/documentation.html#idml">InDesign Markup Language Resources</a>'
default_placeholders: ''
keys_variants: No
keys_variants_info: ''
directive_style:
string_instructions:
- file_type: 'Resx'
extension: '.resx and .resw'
smartling_identifier: 'resx'
download_sample: '<a href=""></a>'
resource_info: '<a href="http://msdn.microsoft.com/en-us/library/ekyft91f%28v=vs.90%29.aspx">Microsoft Resx Resources</a>'
default_placeholders: '<strong>{0}</strong>, <strong>{1}</strong>, etc'
keys_variants:
keys_variants_info: ''
directive_style: set_throughout
directive_format: '<!-- smarling.[directive_name] = [value] -->'
directive_instructions: 'The inline directive must be a single directive on one line within its own comment block, and there should not be any inline trailing symbols after the directive.'
string_instructions: 'Smartling automatically captures RESX comments and makes them translator instructions.'
- file_type: 'Plain Text'
extension: '.txt'
smartling_identifier: '.txt'
download_sample: '<a href=""></a>'
resource_info: '<a href=""></a>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style: API_Only
directive_format: 'smarling.[directive_name] = [value]'
directive_instructions: 'Unlike other file types, plain text does not support inline file directives as comments, in order to use a directive you must specify each directive using the <a href="later">file upload API</a>'
string_instructions: 'Not supported'
text: 'The plain text document format is a simple way to quickly translate text. Smartling considers each line of text in the document a single translation string. Each string is considered unique by file - which means if two files have the exact same line of text - they will be captured as two separate strings. '
- file_type: 'CSV'
extension: '.csv'
smartling_identifier: ''
download_sample: '<a href=""></a>'
resource_info: '<a href="http://www.ietf.org/rfc/rfc4180.txt">Comma-Separated Values (CSV) files RFC</a>'
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style: set_once
directive_format: '# smarling.[directive_name] = [value]'
directive_instructions: 'Directives are specified using comments. Each directive must be a single comment on one line, and there should not be any inline trailing symbols after the directive. The directives must be defined at the top of the file, ahead of the csv content.'
string_instructions: 'Set using <a href="later">string_instructions_paths</a> directive.'
text: '<p>You may define values with and without quotations. For example:</p> <pre>value1, "Value 2"</pre> <p>If you want to use the symbol " inside quoted value you escape it with double quotes like:</p> <pre>"value""178"</pre> <p>which corresponds to the string: <strong?value"178</strong></p><p>Smartling offers several options for downloading CSV files. <a href="later">More info</a></p>'
- file_type: ''
extension: ''
smartling_identifier: ''
download_sample: '<a href=""></a>'
resource_info: ''
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
- file_type: ''
extension: ''
smartling_identifier: ''
download_sample: '<a href=""></a>'
resource_info: ''
default_placeholders: ''
keys_variants:
keys_variants_info: ''
directive_style:
string_instructions:
-