ilib-tools-common 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +30 -0
  3. package/docs/Resource.html +3645 -0
  4. package/docs/Resource.js.html +522 -0
  5. package/docs/ResourceArray.html +5960 -0
  6. package/docs/ResourceArray.js.html +447 -0
  7. package/docs/ResourcePlural.html +6094 -0
  8. package/docs/ResourcePlural.js.html +424 -0
  9. package/docs/ResourceString.html +5532 -0
  10. package/docs/ResourceString.js.html +295 -0
  11. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  12. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  14. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  15. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  16. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  17. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  18. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  19. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  24. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  25. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  26. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  27. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  28. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  29. package/docs/global.html +311 -0
  30. package/docs/ilibToolsCommon.md +0 -0
  31. package/docs/index.html +81 -0
  32. package/docs/scripts/collapse.js +20 -0
  33. package/docs/scripts/linenumber.js +25 -0
  34. package/docs/scripts/nav.js +12 -0
  35. package/docs/scripts/polyfill.js +4 -0
  36. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  37. package/docs/scripts/prettify/lang-css.js +2 -0
  38. package/docs/scripts/prettify/prettify.js +28 -0
  39. package/docs/scripts/search.js +83 -0
  40. package/docs/styles/jsdoc.css +765 -0
  41. package/docs/styles/prettify.css +79 -0
  42. package/docs/utils.js.html +113 -0
  43. package/package.json +77 -0
  44. package/src/Resource.js +453 -0
  45. package/src/ResourceArray.js +378 -0
  46. package/src/ResourcePlural.js +355 -0
  47. package/src/ResourceString.js +226 -0
  48. package/src/index.js +25 -0
  49. package/src/utils.js +44 -0
@@ -0,0 +1,3645 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>Resource - Documentation</title>
7
+
8
+
9
+ <script src="scripts/prettify/prettify.js"></script>
10
+ <script src="scripts/prettify/lang-css.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
+ <script src="scripts/nav.js" defer></script>
17
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
+ </head>
19
+ <body>
20
+
21
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
22
+ <label for="nav-trigger" class="navicon-button x">
23
+ <div class="navicon"></div>
24
+ </label>
25
+
26
+ <label for="nav-trigger" class="overlay"></label>
27
+
28
+ <nav >
29
+
30
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Resource.html">Resource</a><ul class='methods'><li data-type='method'><a href="Resource.html#addInstance">addInstance</a></li><li data-type='method'><a href="Resource.html#escapeText">escapeText</a></li><li data-type='method'><a href="Resource.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="Resource.html#getComment">getComment</a></li><li data-type='method'><a href="Resource.html#getContext">getContext</a></li><li data-type='method'><a href="Resource.html#getDataType">getDataType</a></li><li data-type='method'><a href="Resource.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="Resource.html#getId">getId</a></li><li data-type='method'><a href="Resource.html#getInstances">getInstances</a></li><li data-type='method'><a href="Resource.html#getKey">getKey</a></li><li data-type='method'><a href="Resource.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="Resource.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="Resource.html#getPath">getPath</a></li><li data-type='method'><a href="Resource.html#getProject">getProject</a></li><li data-type='method'><a href="Resource.html#getSource">getSource</a></li><li data-type='method'><a href="Resource.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="Resource.html#getState">getState</a></li><li data-type='method'><a href="Resource.html#getTarget">getTarget</a></li><li data-type='method'><a href="Resource.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="Resource.html#getType">getType</a></li><li data-type='method'><a href="Resource.html#isInstance">isInstance</a></li><li data-type='method'><a href="Resource.html#same">same</a></li><li data-type='method'><a href="Resource.html#setComment">setComment</a></li><li data-type='method'><a href="Resource.html#setProject">setProject</a></li><li data-type='method'><a href="Resource.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="Resource.html#setState">setState</a></li><li data-type='method'><a href="Resource.html#setTargetLocale">setTargetLocale</a></li></ul></li><li><a href="ResourceArray.html">ResourceArray</a><ul class='methods'><li data-type='method'><a href="ResourceArray.html#.hashKey">hashKey</a></li><li data-type='method'><a href="ResourceArray.html#addInstance">addInstance</a></li><li data-type='method'><a href="ResourceArray.html#addSource">addSource</a></li><li data-type='method'><a href="ResourceArray.html#addTarget">addTarget</a></li><li data-type='method'><a href="ResourceArray.html#cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourceArray.html#cleanHashKeyForTranslation">cleanHashKeyForTranslation</a></li><li data-type='method'><a href="ResourceArray.html#clone">clone</a></li><li data-type='method'><a href="ResourceArray.html#equals">equals</a></li><li data-type='method'><a href="ResourceArray.html#equals">equals</a></li><li data-type='method'><a href="ResourceArray.html#escapeText">escapeText</a></li><li data-type='method'><a href="ResourceArray.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="ResourceArray.html#getComment">getComment</a></li><li data-type='method'><a href="ResourceArray.html#getContext">getContext</a></li><li data-type='method'><a href="ResourceArray.html#getDataType">getDataType</a></li><li data-type='method'><a href="ResourceArray.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="ResourceArray.html#getId">getId</a></li><li data-type='method'><a href="ResourceArray.html#getInstances">getInstances</a></li><li data-type='method'><a href="ResourceArray.html#getKey">getKey</a></li><li data-type='method'><a href="ResourceArray.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="ResourceArray.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="ResourceArray.html#getPath">getPath</a></li><li data-type='method'><a href="ResourceArray.html#getProject">getProject</a></li><li data-type='method'><a href="ResourceArray.html#getSource">getSource</a></li><li data-type='method'><a href="ResourceArray.html#getSourceItem">getSourceItem</a></li><li data-type='method'><a href="ResourceArray.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="ResourceArray.html#getState">getState</a></li><li data-type='method'><a href="ResourceArray.html#getTarget">getTarget</a></li><li data-type='method'><a href="ResourceArray.html#getTargetItem">getTargetItem</a></li><li data-type='method'><a href="ResourceArray.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="ResourceArray.html#getType">getType</a></li><li data-type='method'><a href="ResourceArray.html#hashKey">hashKey</a></li><li data-type='method'><a href="ResourceArray.html#hashKeyForTranslation">hashKeyForTranslation</a></li><li data-type='method'><a href="ResourceArray.html#isInstance">isInstance</a></li><li data-type='method'><a href="ResourceArray.html#same">same</a></li><li data-type='method'><a href="ResourceArray.html#setComment">setComment</a></li><li data-type='method'><a href="ResourceArray.html#setProject">setProject</a></li><li data-type='method'><a href="ResourceArray.html#setSource">setSource</a></li><li data-type='method'><a href="ResourceArray.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="ResourceArray.html#setState">setState</a></li><li data-type='method'><a href="ResourceArray.html#setTarget">setTarget</a></li><li data-type='method'><a href="ResourceArray.html#setTargetLocale">setTargetLocale</a></li><li data-type='method'><a href="ResourceArray.html#size">size</a></li></ul></li><li><a href="ResourcePlural.html">ResourcePlural</a><ul class='methods'><li data-type='method'><a href="ResourcePlural.html#.hashKey">hashKey</a></li><li data-type='method'><a href="ResourcePlural.html#addInstance">addInstance</a></li><li data-type='method'><a href="ResourcePlural.html#addSourcePlural">addSourcePlural</a></li><li data-type='method'><a href="ResourcePlural.html#addTargetPlural">addTargetPlural</a></li><li data-type='method'><a href="ResourcePlural.html#cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourcePlural.html#cleanHashKeyForTranslation">cleanHashKeyForTranslation</a></li><li data-type='method'><a href="ResourcePlural.html#clone">clone</a></li><li data-type='method'><a href="ResourcePlural.html#equals">equals</a></li><li data-type='method'><a href="ResourcePlural.html#escapeText">escapeText</a></li><li data-type='method'><a href="ResourcePlural.html#getAllValidCategories">getAllValidCategories</a></li><li data-type='method'><a href="ResourcePlural.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="ResourcePlural.html#getCategories">getCategories</a></li><li data-type='method'><a href="ResourcePlural.html#getClasses">getClasses</a></li><li data-type='method'><a href="ResourcePlural.html#getComment">getComment</a></li><li data-type='method'><a href="ResourcePlural.html#getContext">getContext</a></li><li data-type='method'><a href="ResourcePlural.html#getDataType">getDataType</a></li><li data-type='method'><a href="ResourcePlural.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="ResourcePlural.html#getId">getId</a></li><li data-type='method'><a href="ResourcePlural.html#getInstances">getInstances</a></li><li data-type='method'><a href="ResourcePlural.html#getKey">getKey</a></li><li data-type='method'><a href="ResourcePlural.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="ResourcePlural.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="ResourcePlural.html#getPath">getPath</a></li><li data-type='method'><a href="ResourcePlural.html#getProject">getProject</a></li><li data-type='method'><a href="ResourcePlural.html#getSource">getSource</a></li><li data-type='method'><a href="ResourcePlural.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="ResourcePlural.html#getSourcePlural">getSourcePlural</a></li><li data-type='method'><a href="ResourcePlural.html#getState">getState</a></li><li data-type='method'><a href="ResourcePlural.html#getTarget">getTarget</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetPlural">getTargetPlural</a></li><li data-type='method'><a href="ResourcePlural.html#getType">getType</a></li><li data-type='method'><a href="ResourcePlural.html#hashKey">hashKey</a></li><li data-type='method'><a href="ResourcePlural.html#hashKeyForTranslation">hashKeyForTranslation</a></li><li data-type='method'><a href="ResourcePlural.html#isInstance">isInstance</a></li><li data-type='method'><a href="ResourcePlural.html#same">same</a></li><li data-type='method'><a href="ResourcePlural.html#setComment">setComment</a></li><li data-type='method'><a href="ResourcePlural.html#setProject">setProject</a></li><li data-type='method'><a href="ResourcePlural.html#setSource">setSource</a></li><li data-type='method'><a href="ResourcePlural.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="ResourcePlural.html#setState">setState</a></li><li data-type='method'><a href="ResourcePlural.html#setTarget">setTarget</a></li><li data-type='method'><a href="ResourcePlural.html#setTargetLocale">setTargetLocale</a></li><li data-type='method'><a href="ResourcePlural.html#size">size</a></li></ul></li><li><a href="ResourceString.html">ResourceString</a><ul class='methods'><li data-type='method'><a href="ResourceString.html#.cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourceString.html#.hashKey">hashKey</a></li><li data-type='method'><a href="ResourceString.html#addInstance">addInstance</a></li><li data-type='method'><a href="ResourceString.html#cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourceString.html#cleanHashKeyForTranslation">cleanHashKeyForTranslation</a></li><li data-type='method'><a href="ResourceString.html#clone">clone</a></li><li data-type='method'><a href="ResourceString.html#equals">equals</a></li><li data-type='method'><a href="ResourceString.html#escapeText">escapeText</a></li><li data-type='method'><a href="ResourceString.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="ResourceString.html#getComment">getComment</a></li><li data-type='method'><a href="ResourceString.html#getContext">getContext</a></li><li data-type='method'><a href="ResourceString.html#getDataType">getDataType</a></li><li data-type='method'><a href="ResourceString.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="ResourceString.html#getId">getId</a></li><li data-type='method'><a href="ResourceString.html#getInstances">getInstances</a></li><li data-type='method'><a href="ResourceString.html#getKey">getKey</a></li><li data-type='method'><a href="ResourceString.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="ResourceString.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="ResourceString.html#getPath">getPath</a></li><li data-type='method'><a href="ResourceString.html#getProject">getProject</a></li><li data-type='method'><a href="ResourceString.html#getSource">getSource</a></li><li data-type='method'><a href="ResourceString.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="ResourceString.html#getState">getState</a></li><li data-type='method'><a href="ResourceString.html#getTarget">getTarget</a></li><li data-type='method'><a href="ResourceString.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="ResourceString.html#getType">getType</a></li><li data-type='method'><a href="ResourceString.html#hashKey">hashKey</a></li><li data-type='method'><a href="ResourceString.html#hashKeyForTranslation">hashKeyForTranslation</a></li><li data-type='method'><a href="ResourceString.html#isInstance">isInstance</a></li><li data-type='method'><a href="ResourceString.html#same">same</a></li><li data-type='method'><a href="ResourceString.html#setComment">setComment</a></li><li data-type='method'><a href="ResourceString.html#setProject">setProject</a></li><li data-type='method'><a href="ResourceString.html#setSource">setSource</a></li><li data-type='method'><a href="ResourceString.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="ResourceString.html#setState">setState</a></li><li data-type='method'><a href="ResourceString.html#setTarget">setTarget</a></li><li data-type='method'><a href="ResourceString.html#setTargetLocale">setTargetLocale</a></li><li data-type='method'><a href="ResourceString.html#size">size</a></li></ul></li></ul><h3>Global</h3><ul><li><a href="global.html#cleanString">cleanString</a></li></ul>
31
+ </nav>
32
+
33
+ <div id="main">
34
+
35
+ <h1 class="page-title">Resource</h1>
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+ <section>
44
+
45
+ <header>
46
+
47
+ <h2>
48
+ Resource
49
+ </h2>
50
+
51
+ <div class="class-description usertext">Represents a resource from a resource file or
52
+ extracted from the code.</div>
53
+
54
+
55
+ </header>
56
+
57
+ <article>
58
+
59
+ <div class="container-overview">
60
+
61
+
62
+
63
+
64
+ <h2>Constructor</h2>
65
+
66
+
67
+ <h4 class="name" id="Resource"><span class="type-signature">(abstract) </span>new Resource<span class="signature">(props)</span><span class="type-signature"></span></h4>
68
+
69
+
70
+
71
+
72
+
73
+
74
+ <dl class="details">
75
+
76
+
77
+ <dt class="tag-source">Source:</dt>
78
+ <dd class="tag-source"><ul class="dummy"><li>
79
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line44">line 44</a>
80
+ </li></ul></dd>
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
+ </dl>
113
+
114
+
115
+
116
+
117
+
118
+ <div class="description usertext">
119
+ Construct a new Resource instance.
120
+ The props may contain any
121
+ of the following properties:
122
+
123
+ <ul>
124
+ <li>project {String} - the project that this resource is in
125
+ <li><i>context</i> {String} - The context for this resource,
126
+ such as "landscape mode", or "7200dp", which differentiates it
127
+ from the base resource that has no special context. The default
128
+ if this property is not specified is undefined, meaning no
129
+ context.
130
+ <li>sourceLocale {String} - the locale of the source resource.
131
+ <li>targetLocale {String} - the locale of the target resource.
132
+ <li>key {String} - the unique key of this string, which should include the context
133
+ of the string
134
+ <li>pathName {String} - pathName to the file where the string was extracted from
135
+ <li>autoKey {boolean} - true if the key was generated based on the source text
136
+ <li>state {String} - current state of the resource (ie. "new", "translated", or "accepted")
137
+ </ul>
138
+ </div>
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+ <h5>Parameters:</h5>
151
+
152
+
153
+ <table class="params">
154
+ <thead>
155
+ <tr>
156
+
157
+ <th>Name</th>
158
+
159
+
160
+ <th>Type</th>
161
+
162
+
163
+
164
+
165
+
166
+ <th class="last">Description</th>
167
+ </tr>
168
+ </thead>
169
+
170
+ <tbody>
171
+
172
+
173
+ <tr>
174
+
175
+ <td class="name"><code>props</code></td>
176
+
177
+
178
+ <td class="type">
179
+
180
+
181
+ <span class="param-type">Object</span>
182
+
183
+
184
+
185
+ </td>
186
+
187
+
188
+
189
+
190
+
191
+ <td class="description last">properties of the string, as defined above</td>
192
+ </tr>
193
+
194
+
195
+ </tbody>
196
+ </table>
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+ </div>
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+ <h3 class="subsection-title">Methods</h3>
236
+
237
+
238
+
239
+
240
+
241
+
242
+ <h4 class="name" id="addInstance"><span class="type-signature"></span>addInstance<span class="signature">(an)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
243
+
244
+
245
+
246
+
247
+
248
+
249
+ <dl class="details">
250
+
251
+
252
+ <dt class="tag-source">Source:</dt>
253
+ <dd class="tag-source"><ul class="dummy"><li>
254
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line408">line 408</a>
255
+ </li></ul></dd>
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+ </dl>
288
+
289
+
290
+
291
+
292
+
293
+ <div class="description usertext">
294
+ Add an instance of the same resource to the list of
295
+ instances. If the given resource matches the
296
+ current instance in all properties that affect the
297
+ possible translation, and differs from the current
298
+ instance by some property that does not affect
299
+ its translation, it will be added as an instance of
300
+ the same string. The following properties affect the
301
+ translation:
302
+
303
+ <ul>
304
+ <li>context</li>
305
+ <li>datatype</li>
306
+ <li>dnt</li>
307
+ <li>flavor</li>
308
+ <li>project</li>
309
+ <li>reskey</li>
310
+ <li>resType</li>
311
+ <li>source</li>
312
+ <li>sourceHash</li>
313
+ <li>sourceArray</li>
314
+ <li>sourceLocale</li>
315
+ <li>targetLocale</li>
316
+ </ul>
317
+
318
+ Differences in other properties, such as "comment" or
319
+ "origin" are considered instances of the same resource.
320
+
321
+ If this method is given a resource that differs from
322
+ the current one by one of the above translation affecting
323
+ properties, it is not added to the list of instances. This
324
+ can be checked easily by calling the isInstance() method.
325
+ </div>
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+ <h5>Parameters:</h5>
338
+
339
+
340
+ <table class="params">
341
+ <thead>
342
+ <tr>
343
+
344
+ <th>Name</th>
345
+
346
+
347
+ <th>Type</th>
348
+
349
+
350
+
351
+
352
+
353
+ <th class="last">Description</th>
354
+ </tr>
355
+ </thead>
356
+
357
+ <tbody>
358
+
359
+
360
+ <tr>
361
+
362
+ <td class="name"><code>an</code></td>
363
+
364
+
365
+ <td class="type">
366
+
367
+
368
+ <span class="param-type"><a href="Resource.html">Resource</a></span>
369
+
370
+
371
+
372
+ </td>
373
+
374
+
375
+
376
+
377
+
378
+ <td class="description last">instance of the current resource to
379
+ record</td>
380
+ </tr>
381
+
382
+
383
+ </tbody>
384
+ </table>
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+ <h5>Returns:</h5>
402
+
403
+
404
+ <div class="param-desc">
405
+ true if the instance was added, and
406
+ and false otherwise
407
+ </div>
408
+
409
+
410
+
411
+ <dl class="param-type">
412
+ <dt>
413
+ Type
414
+ </dt>
415
+ <dd>
416
+
417
+ <span class="param-type">boolean</span>
418
+
419
+
420
+ </dd>
421
+ </dl>
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+ <h4 class="name" id="escapeText"><span class="type-signature"></span>escapeText<span class="signature">(str)</span><span class="type-signature"> &rarr; {String}</span></h4>
433
+
434
+
435
+
436
+
437
+
438
+
439
+ <dl class="details">
440
+
441
+
442
+ <dt class="tag-source">Source:</dt>
443
+ <dd class="tag-source"><ul class="dummy"><li>
444
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line353">line 353</a>
445
+ </li></ul></dd>
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+ </dl>
478
+
479
+
480
+
481
+
482
+
483
+ <div class="description usertext">
484
+ Escape text for writing to a database in a SQL command. This puts single
485
+ quotes around the string, and makes sure that all single quotes within
486
+ the string are escaped.
487
+ </div>
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+ <h5>Parameters:</h5>
500
+
501
+
502
+ <table class="params">
503
+ <thead>
504
+ <tr>
505
+
506
+ <th>Name</th>
507
+
508
+
509
+ <th>Type</th>
510
+
511
+
512
+
513
+
514
+
515
+ <th class="last">Description</th>
516
+ </tr>
517
+ </thead>
518
+
519
+ <tbody>
520
+
521
+
522
+ <tr>
523
+
524
+ <td class="name"><code>str</code></td>
525
+
526
+
527
+ <td class="type">
528
+
529
+
530
+ <span class="param-type">Object</span>
531
+
532
+
533
+
534
+ </td>
535
+
536
+
537
+
538
+
539
+
540
+ <td class="description last">the item to escape</td>
541
+ </tr>
542
+
543
+
544
+ </tbody>
545
+ </table>
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+ <h5>Returns:</h5>
563
+
564
+
565
+ <div class="param-desc">
566
+ the escaped string
567
+ </div>
568
+
569
+
570
+
571
+ <dl class="param-type">
572
+ <dt>
573
+ Type
574
+ </dt>
575
+ <dd>
576
+
577
+ <span class="param-type">String</span>
578
+
579
+
580
+ </dd>
581
+ </dl>
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+
592
+ <h4 class="name" id="getAutoKey"><span class="type-signature"></span>getAutoKey<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
593
+
594
+
595
+
596
+
597
+
598
+
599
+ <dl class="details">
600
+
601
+
602
+ <dt class="tag-source">Source:</dt>
603
+ <dd class="tag-source"><ul class="dummy"><li>
604
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line165">line 165</a>
605
+ </li></ul></dd>
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+ </dl>
638
+
639
+
640
+
641
+
642
+
643
+ <div class="description usertext">
644
+ Return true if the key of this resource was automatically generated,
645
+ and false if it was an explicit key.
646
+ </div>
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+ <h5>Returns:</h5>
673
+
674
+
675
+ <div class="param-desc">
676
+ true if the key of this string was auto generated,
677
+ false otherwise
678
+ </div>
679
+
680
+
681
+
682
+ <dl class="param-type">
683
+ <dt>
684
+ Type
685
+ </dt>
686
+ <dd>
687
+
688
+ <span class="param-type">boolean</span>
689
+
690
+
691
+ </dd>
692
+ </dl>
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+ <h4 class="name" id="getComment"><span class="type-signature"></span>getComment<span class="signature">()</span><span class="type-signature"> &rarr; {String|undefined}</span></h4>
704
+
705
+
706
+
707
+
708
+
709
+
710
+ <dl class="details">
711
+
712
+
713
+ <dt class="tag-source">Source:</dt>
714
+ <dd class="tag-source"><ul class="dummy"><li>
715
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line264">line 264</a>
716
+ </li></ul></dd>
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+ </dl>
749
+
750
+
751
+
752
+
753
+
754
+ <div class="description usertext">
755
+ Return the translator's comment for this resource if there is
756
+ one, or undefined if not.
757
+ </div>
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+ <h5>Returns:</h5>
784
+
785
+
786
+ <div class="param-desc">
787
+ the translator's comment for this resource
788
+ if the engineer put one in the code
789
+ </div>
790
+
791
+
792
+
793
+ <dl class="param-type">
794
+ <dt>
795
+ Type
796
+ </dt>
797
+ <dd>
798
+
799
+ <span class="param-type">String</span>
800
+ |
801
+
802
+ <span class="param-type">undefined</span>
803
+
804
+
805
+ </dd>
806
+ </dl>
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
816
+
817
+ <h4 class="name" id="getContext"><span class="type-signature"></span>getContext<span class="signature">()</span><span class="type-signature"> &rarr; {String|undefined}</span></h4>
818
+
819
+
820
+
821
+
822
+
823
+
824
+ <dl class="details">
825
+
826
+
827
+ <dt class="tag-source">Source:</dt>
828
+ <dd class="tag-source"><ul class="dummy"><li>
829
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line175">line 175</a>
830
+ </li></ul></dd>
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+ </dl>
863
+
864
+
865
+
866
+
867
+
868
+ <div class="description usertext">
869
+ Return the context of this resource, or undefined if there
870
+ is no context.
871
+ </div>
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+ <h5>Returns:</h5>
898
+
899
+
900
+ <div class="param-desc">
901
+ the context of this resource, or undefined if there
902
+ is no context.
903
+ </div>
904
+
905
+
906
+
907
+ <dl class="param-type">
908
+ <dt>
909
+ Type
910
+ </dt>
911
+ <dd>
912
+
913
+ <span class="param-type">String</span>
914
+ |
915
+
916
+ <span class="param-type">undefined</span>
917
+
918
+
919
+ </dd>
920
+ </dl>
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+ <h4 class="name" id="getDataType"><span class="type-signature"></span>getDataType<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
932
+
933
+
934
+
935
+
936
+
937
+
938
+ <dl class="details">
939
+
940
+
941
+ <dt class="tag-source">Source:</dt>
942
+ <dd class="tag-source"><ul class="dummy"><li>
943
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line154">line 154</a>
944
+ </li></ul></dd>
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+
965
+
966
+
967
+
968
+
969
+
970
+
971
+
972
+
973
+
974
+
975
+
976
+ </dl>
977
+
978
+
979
+
980
+
981
+
982
+ <div class="description usertext">
983
+ Return the data type of this resource.
984
+ </div>
985
+
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+ <h5>Returns:</h5>
1011
+
1012
+
1013
+ <div class="param-desc">
1014
+ the data type of this resource
1015
+ </div>
1016
+
1017
+
1018
+
1019
+ <dl class="param-type">
1020
+ <dt>
1021
+ Type
1022
+ </dt>
1023
+ <dd>
1024
+
1025
+ <span class="param-type">String</span>
1026
+
1027
+
1028
+ </dd>
1029
+ </dl>
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+ <h4 class="name" id="getFlavor"><span class="type-signature"></span>getFlavor<span class="signature">()</span><span class="type-signature"> &rarr; {String|undefined}</span></h4>
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+ <dl class="details">
1048
+
1049
+
1050
+ <dt class="tag-source">Source:</dt>
1051
+ <dd class="tag-source"><ul class="dummy"><li>
1052
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line319">line 319</a>
1053
+ </li></ul></dd>
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+ </dl>
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+ <div class="description usertext">
1092
+ Return the name of the flavor for this resource, or undefined
1093
+ for the "main" or default flavor.
1094
+ </div>
1095
+
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+ <h5>Returns:</h5>
1121
+
1122
+
1123
+ <div class="param-desc">
1124
+ the name of the flavor for this
1125
+ resource or undefined for the main or default flavor
1126
+ </div>
1127
+
1128
+
1129
+
1130
+ <dl class="param-type">
1131
+ <dt>
1132
+ Type
1133
+ </dt>
1134
+ <dd>
1135
+
1136
+ <span class="param-type">String</span>
1137
+ |
1138
+
1139
+ <span class="param-type">undefined</span>
1140
+
1141
+
1142
+ </dd>
1143
+ </dl>
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+ <h4 class="name" id="getId"><span class="type-signature"></span>getId<span class="signature">()</span><span class="type-signature"> &rarr; {number|undefined}</span></h4>
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+ <dl class="details">
1162
+
1163
+
1164
+ <dt class="tag-source">Source:</dt>
1165
+ <dd class="tag-source"><ul class="dummy"><li>
1166
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line285">line 285</a>
1167
+ </li></ul></dd>
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+ </dl>
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+ <div class="description usertext">
1206
+ Return the database id if this resource has previously been saved in the
1207
+ database.
1208
+ </div>
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+
1215
+
1216
+
1217
+
1218
+
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+
1234
+ <h5>Returns:</h5>
1235
+
1236
+
1237
+ <div class="param-desc">
1238
+ the database id if this resource has previously
1239
+ been saved in the database, or undefined if it is has not
1240
+ </div>
1241
+
1242
+
1243
+
1244
+ <dl class="param-type">
1245
+ <dt>
1246
+ Type
1247
+ </dt>
1248
+ <dd>
1249
+
1250
+ <span class="param-type">number</span>
1251
+ |
1252
+
1253
+ <span class="param-type">undefined</span>
1254
+
1255
+
1256
+ </dd>
1257
+ </dl>
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+ <h4 class="name" id="getInstances"><span class="type-signature"></span>getInstances<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="Resource.html">Resource</a>>}</span></h4>
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+ <dl class="details">
1276
+
1277
+
1278
+ <dt class="tag-source">Source:</dt>
1279
+ <dd class="tag-source"><ul class="dummy"><li>
1280
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line448">line 448</a>
1281
+ </li></ul></dd>
1282
+
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+
1305
+
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+ </dl>
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+ <div class="description usertext">
1320
+ Return the list of instances of the current resource.
1321
+ </div>
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+ <h5>Returns:</h5>
1348
+
1349
+
1350
+ <div class="param-desc">
1351
+ the list of instances of
1352
+ the current resource
1353
+ </div>
1354
+
1355
+
1356
+
1357
+ <dl class="param-type">
1358
+ <dt>
1359
+ Type
1360
+ </dt>
1361
+ <dd>
1362
+
1363
+ <span class="param-type">Array.&lt;<a href="Resource.html">Resource</a>></span>
1364
+
1365
+
1366
+ </dd>
1367
+ </dl>
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+ <h4 class="name" id="getKey"><span class="type-signature"></span>getKey<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+ <dl class="details">
1386
+
1387
+
1388
+ <dt class="tag-source">Source:</dt>
1389
+ <dd class="tag-source"><ul class="dummy"><li>
1390
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line115">line 115</a>
1391
+ </li></ul></dd>
1392
+
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+ </dl>
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+ <div class="description usertext">
1430
+ Return the unique key of this resource.
1431
+ </div>
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+ <h5>Returns:</h5>
1458
+
1459
+
1460
+ <div class="param-desc">
1461
+ the unique key of this resource
1462
+ </div>
1463
+
1464
+
1465
+
1466
+ <dl class="param-type">
1467
+ <dt>
1468
+ Type
1469
+ </dt>
1470
+ <dd>
1471
+
1472
+ <span class="param-type">String</span>
1473
+
1474
+
1475
+ </dd>
1476
+ </dl>
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+ <h4 class="name" id="getLocalize"><span class="type-signature"></span>getLocalize<span class="signature">()</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+ <dl class="details">
1495
+
1496
+
1497
+ <dt class="tag-source">Source:</dt>
1498
+ <dd class="tag-source"><ul class="dummy"><li>
1499
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line308">line 308</a>
1500
+ </li></ul></dd>
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+
1532
+ </dl>
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+ <div class="description usertext">
1539
+ Return the localize flag of this resource.
1540
+ This flag indicates whether we should look up a translation for this resource.
1541
+ When false, we should simply substitute the source back
1542
+ </div>
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+ <h5>Returns:</h5>
1569
+
1570
+
1571
+ <div class="param-desc">
1572
+ the localize flag of this resource
1573
+ </div>
1574
+
1575
+
1576
+
1577
+ <dl class="param-type">
1578
+ <dt>
1579
+ Type
1580
+ </dt>
1581
+ <dd>
1582
+
1583
+ <span class="param-type">Boolean</span>
1584
+
1585
+
1586
+ </dd>
1587
+ </dl>
1588
+
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+ <h4 class="name" id="getOrigin"><span class="type-signature"></span>getOrigin<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
1599
+
1600
+
1601
+
1602
+
1603
+
1604
+
1605
+ <dl class="details">
1606
+
1607
+
1608
+ <dt class="tag-source">Source:</dt>
1609
+ <dd class="tag-source"><ul class="dummy"><li>
1610
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line297">line 297</a>
1611
+ </li></ul></dd>
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+
1642
+
1643
+ </dl>
1644
+
1645
+
1646
+
1647
+
1648
+
1649
+ <div class="description usertext">
1650
+ Return the origin of this resource. The origin may be either the string
1651
+ "source" or "target". Source origin resources are ones that are extracted
1652
+ from the source code, whereas target ones are translations from the
1653
+ translators.
1654
+ </div>
1655
+
1656
+
1657
+
1658
+
1659
+
1660
+
1661
+
1662
+
1663
+
1664
+
1665
+
1666
+
1667
+
1668
+
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+ <h5>Returns:</h5>
1681
+
1682
+
1683
+ <div class="param-desc">
1684
+ the origin of this resource
1685
+ </div>
1686
+
1687
+
1688
+
1689
+ <dl class="param-type">
1690
+ <dt>
1691
+ Type
1692
+ </dt>
1693
+ <dd>
1694
+
1695
+ <span class="param-type">String</span>
1696
+
1697
+
1698
+ </dd>
1699
+ </dl>
1700
+
1701
+
1702
+
1703
+
1704
+
1705
+
1706
+
1707
+
1708
+
1709
+
1710
+ <h4 class="name" id="getPath"><span class="type-signature"></span>getPath<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+
1717
+ <dl class="details">
1718
+
1719
+
1720
+ <dt class="tag-source">Source:</dt>
1721
+ <dd class="tag-source"><ul class="dummy"><li>
1722
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line253">line 253</a>
1723
+ </li></ul></dd>
1724
+
1725
+
1726
+
1727
+
1728
+
1729
+
1730
+
1731
+
1732
+
1733
+
1734
+
1735
+
1736
+
1737
+
1738
+
1739
+
1740
+
1741
+
1742
+
1743
+
1744
+
1745
+
1746
+
1747
+
1748
+
1749
+
1750
+
1751
+
1752
+
1753
+
1754
+
1755
+ </dl>
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+ <div class="description usertext">
1762
+ Return the original path to the file from which this resource was
1763
+ originally extracted.
1764
+ </div>
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+
1771
+
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+
1789
+
1790
+ <h5>Returns:</h5>
1791
+
1792
+
1793
+ <div class="param-desc">
1794
+ the path to the file containing this resource
1795
+ </div>
1796
+
1797
+
1798
+
1799
+ <dl class="param-type">
1800
+ <dt>
1801
+ Type
1802
+ </dt>
1803
+ <dd>
1804
+
1805
+ <span class="param-type">String</span>
1806
+
1807
+
1808
+ </dd>
1809
+ </dl>
1810
+
1811
+
1812
+
1813
+
1814
+
1815
+
1816
+
1817
+
1818
+
1819
+
1820
+ <h4 class="name" id="getProject"><span class="type-signature"></span>getProject<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
1821
+
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+ <dl class="details">
1828
+
1829
+
1830
+ <dt class="tag-source">Source:</dt>
1831
+ <dd class="tag-source"><ul class="dummy"><li>
1832
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line106">line 106</a>
1833
+ </li></ul></dd>
1834
+
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+
1843
+
1844
+
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+
1855
+
1856
+
1857
+
1858
+
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+
1865
+ </dl>
1866
+
1867
+
1868
+
1869
+
1870
+
1871
+ <div class="description usertext">
1872
+ Return the project that this resource was found in.
1873
+ </div>
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+
1891
+
1892
+
1893
+
1894
+
1895
+
1896
+
1897
+
1898
+
1899
+ <h5>Returns:</h5>
1900
+
1901
+
1902
+ <div class="param-desc">
1903
+ the project of this resource
1904
+ </div>
1905
+
1906
+
1907
+
1908
+ <dl class="param-type">
1909
+ <dt>
1910
+ Type
1911
+ </dt>
1912
+ <dd>
1913
+
1914
+ <span class="param-type">String</span>
1915
+
1916
+
1917
+ </dd>
1918
+ </dl>
1919
+
1920
+
1921
+
1922
+
1923
+
1924
+
1925
+
1926
+
1927
+
1928
+
1929
+ <h4 class="name" id="getSource"><span class="type-signature"></span>getSource<span class="signature">()</span><span class="type-signature"> &rarr; {String|Array.&lt;String>|Object}</span></h4>
1930
+
1931
+
1932
+
1933
+
1934
+
1935
+
1936
+ <dl class="details">
1937
+
1938
+
1939
+ <dt class="tag-source">Source:</dt>
1940
+ <dd class="tag-source"><ul class="dummy"><li>
1941
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line125">line 125</a>
1942
+ </li></ul></dd>
1943
+
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+
1958
+
1959
+
1960
+
1961
+
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+
1968
+
1969
+
1970
+
1971
+
1972
+
1973
+
1974
+ </dl>
1975
+
1976
+
1977
+
1978
+
1979
+
1980
+ <div class="description usertext">
1981
+ Return the source string or strings for this resource.
1982
+ </div>
1983
+
1984
+
1985
+
1986
+
1987
+
1988
+
1989
+
1990
+
1991
+
1992
+
1993
+
1994
+
1995
+
1996
+
1997
+
1998
+
1999
+
2000
+
2001
+
2002
+
2003
+
2004
+
2005
+
2006
+
2007
+
2008
+ <h5>Returns:</h5>
2009
+
2010
+
2011
+ <div class="param-desc">
2012
+ the source string or
2013
+ strings of this resource
2014
+ </div>
2015
+
2016
+
2017
+
2018
+ <dl class="param-type">
2019
+ <dt>
2020
+ Type
2021
+ </dt>
2022
+ <dd>
2023
+
2024
+ <span class="param-type">String</span>
2025
+ |
2026
+
2027
+ <span class="param-type">Array.&lt;String></span>
2028
+ |
2029
+
2030
+ <span class="param-type">Object</span>
2031
+
2032
+
2033
+ </dd>
2034
+ </dl>
2035
+
2036
+
2037
+
2038
+
2039
+
2040
+
2041
+
2042
+
2043
+
2044
+
2045
+ <h4 class="name" id="getSourceLocale"><span class="type-signature"></span>getSourceLocale<span class="signature">()</span><span class="type-signature"> &rarr; {String|undefined}</span></h4>
2046
+
2047
+
2048
+
2049
+
2050
+
2051
+
2052
+ <dl class="details">
2053
+
2054
+
2055
+ <dt class="tag-source">Source:</dt>
2056
+ <dd class="tag-source"><ul class="dummy"><li>
2057
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line185">line 185</a>
2058
+ </li></ul></dd>
2059
+
2060
+
2061
+
2062
+
2063
+
2064
+
2065
+
2066
+
2067
+
2068
+
2069
+
2070
+
2071
+
2072
+
2073
+
2074
+
2075
+
2076
+
2077
+
2078
+
2079
+
2080
+
2081
+
2082
+
2083
+
2084
+
2085
+
2086
+
2087
+
2088
+
2089
+
2090
+ </dl>
2091
+
2092
+
2093
+
2094
+
2095
+
2096
+ <div class="description usertext">
2097
+ Return the source locale of this resource, or undefined if there
2098
+ is no context or the locale is the same as the project's source locale.
2099
+ </div>
2100
+
2101
+
2102
+
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+
2114
+
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+
2125
+ <h5>Returns:</h5>
2126
+
2127
+
2128
+ <div class="param-desc">
2129
+ the locale of this resource, or undefined if there
2130
+ is no locale.
2131
+ </div>
2132
+
2133
+
2134
+
2135
+ <dl class="param-type">
2136
+ <dt>
2137
+ Type
2138
+ </dt>
2139
+ <dd>
2140
+
2141
+ <span class="param-type">String</span>
2142
+ |
2143
+
2144
+ <span class="param-type">undefined</span>
2145
+
2146
+
2147
+ </dd>
2148
+ </dl>
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+
2158
+
2159
+ <h4 class="name" id="getState"><span class="type-signature"></span>getState<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+ <dl class="details">
2167
+
2168
+
2169
+ <dt class="tag-source">Source:</dt>
2170
+ <dd class="tag-source"><ul class="dummy"><li>
2171
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line222">line 222</a>
2172
+ </li></ul></dd>
2173
+
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+
2181
+
2182
+
2183
+
2184
+
2185
+
2186
+
2187
+
2188
+
2189
+
2190
+
2191
+
2192
+
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+
2199
+
2200
+
2201
+
2202
+
2203
+
2204
+ </dl>
2205
+
2206
+
2207
+
2208
+
2209
+
2210
+ <div class="description usertext">
2211
+ Return the state of this resource. This is a string that gives the
2212
+ stage of life of this resource. Currently, it can be one of "new",
2213
+ "translated", or "accepted".
2214
+ </div>
2215
+
2216
+
2217
+
2218
+
2219
+
2220
+
2221
+
2222
+
2223
+
2224
+
2225
+
2226
+
2227
+
2228
+
2229
+
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+
2237
+
2238
+
2239
+
2240
+ <h5>Returns:</h5>
2241
+
2242
+
2243
+ <div class="param-desc">
2244
+ the state of this resource
2245
+ </div>
2246
+
2247
+
2248
+
2249
+ <dl class="param-type">
2250
+ <dt>
2251
+ Type
2252
+ </dt>
2253
+ <dd>
2254
+
2255
+ <span class="param-type">String</span>
2256
+
2257
+
2258
+ </dd>
2259
+ </dl>
2260
+
2261
+
2262
+
2263
+
2264
+
2265
+
2266
+
2267
+
2268
+
2269
+
2270
+ <h4 class="name" id="getTarget"><span class="type-signature"></span>getTarget<span class="signature">()</span><span class="type-signature"> &rarr; {String|Array.&lt;String>|Object}</span></h4>
2271
+
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+ <dl class="details">
2278
+
2279
+
2280
+ <dt class="tag-source">Source:</dt>
2281
+ <dd class="tag-source"><ul class="dummy"><li>
2282
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line135">line 135</a>
2283
+ </li></ul></dd>
2284
+
2285
+
2286
+
2287
+
2288
+
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+
2296
+
2297
+
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+
2304
+
2305
+
2306
+
2307
+
2308
+
2309
+
2310
+
2311
+
2312
+
2313
+
2314
+
2315
+ </dl>
2316
+
2317
+
2318
+
2319
+
2320
+
2321
+ <div class="description usertext">
2322
+ Return the target string or strings for this resource.
2323
+ </div>
2324
+
2325
+
2326
+
2327
+
2328
+
2329
+
2330
+
2331
+
2332
+
2333
+
2334
+
2335
+
2336
+
2337
+
2338
+
2339
+
2340
+
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+
2347
+
2348
+
2349
+ <h5>Returns:</h5>
2350
+
2351
+
2352
+ <div class="param-desc">
2353
+ the source string or
2354
+ strings of this resource
2355
+ </div>
2356
+
2357
+
2358
+
2359
+ <dl class="param-type">
2360
+ <dt>
2361
+ Type
2362
+ </dt>
2363
+ <dd>
2364
+
2365
+ <span class="param-type">String</span>
2366
+ |
2367
+
2368
+ <span class="param-type">Array.&lt;String></span>
2369
+ |
2370
+
2371
+ <span class="param-type">Object</span>
2372
+
2373
+
2374
+ </dd>
2375
+ </dl>
2376
+
2377
+
2378
+
2379
+
2380
+
2381
+
2382
+
2383
+
2384
+
2385
+
2386
+ <h4 class="name" id="getTargetLocale"><span class="type-signature"></span>getTargetLocale<span class="signature">()</span><span class="type-signature"> &rarr; {String|undefined}</span></h4>
2387
+
2388
+
2389
+
2390
+
2391
+
2392
+
2393
+ <dl class="details">
2394
+
2395
+
2396
+ <dt class="tag-source">Source:</dt>
2397
+ <dd class="tag-source"><ul class="dummy"><li>
2398
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line203">line 203</a>
2399
+ </li></ul></dd>
2400
+
2401
+
2402
+
2403
+
2404
+
2405
+
2406
+
2407
+
2408
+
2409
+
2410
+
2411
+
2412
+
2413
+
2414
+
2415
+
2416
+
2417
+
2418
+
2419
+
2420
+
2421
+
2422
+
2423
+
2424
+
2425
+
2426
+
2427
+
2428
+
2429
+
2430
+
2431
+ </dl>
2432
+
2433
+
2434
+
2435
+
2436
+
2437
+ <div class="description usertext">
2438
+ Return the target locale of this resource, or undefined if the resource
2439
+ is a source-only resource.
2440
+ </div>
2441
+
2442
+
2443
+
2444
+
2445
+
2446
+
2447
+
2448
+
2449
+
2450
+
2451
+
2452
+
2453
+
2454
+
2455
+
2456
+
2457
+
2458
+
2459
+
2460
+
2461
+
2462
+
2463
+
2464
+
2465
+
2466
+ <h5>Returns:</h5>
2467
+
2468
+
2469
+ <div class="param-desc">
2470
+ the locale of this resource, or undefined if there
2471
+ is no locale.
2472
+ </div>
2473
+
2474
+
2475
+
2476
+ <dl class="param-type">
2477
+ <dt>
2478
+ Type
2479
+ </dt>
2480
+ <dd>
2481
+
2482
+ <span class="param-type">String</span>
2483
+ |
2484
+
2485
+ <span class="param-type">undefined</span>
2486
+
2487
+
2488
+ </dd>
2489
+ </dl>
2490
+
2491
+
2492
+
2493
+
2494
+
2495
+
2496
+
2497
+
2498
+
2499
+
2500
+ <h4 class="name" id="getType"><span class="type-signature"></span>getType<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
2501
+
2502
+
2503
+
2504
+
2505
+
2506
+
2507
+ <dl class="details">
2508
+
2509
+
2510
+ <dt class="tag-source">Source:</dt>
2511
+ <dd class="tag-source"><ul class="dummy"><li>
2512
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line145">line 145</a>
2513
+ </li></ul></dd>
2514
+
2515
+
2516
+
2517
+
2518
+
2519
+
2520
+
2521
+
2522
+
2523
+
2524
+
2525
+
2526
+
2527
+
2528
+
2529
+
2530
+
2531
+
2532
+
2533
+
2534
+
2535
+
2536
+
2537
+
2538
+
2539
+
2540
+
2541
+
2542
+
2543
+
2544
+
2545
+ </dl>
2546
+
2547
+
2548
+
2549
+
2550
+
2551
+ <div class="description usertext">
2552
+ Return the resource type of this resource. This is one of
2553
+ string, array, or plural.
2554
+ </div>
2555
+
2556
+
2557
+
2558
+
2559
+
2560
+
2561
+
2562
+
2563
+
2564
+
2565
+
2566
+
2567
+
2568
+
2569
+
2570
+
2571
+
2572
+
2573
+
2574
+
2575
+
2576
+
2577
+
2578
+
2579
+
2580
+ <h5>Returns:</h5>
2581
+
2582
+
2583
+ <div class="param-desc">
2584
+ the resource type of this resource
2585
+ </div>
2586
+
2587
+
2588
+
2589
+ <dl class="param-type">
2590
+ <dt>
2591
+ Type
2592
+ </dt>
2593
+ <dd>
2594
+
2595
+ <span class="param-type">String</span>
2596
+
2597
+
2598
+ </dd>
2599
+ </dl>
2600
+
2601
+
2602
+
2603
+
2604
+
2605
+
2606
+
2607
+
2608
+
2609
+
2610
+ <h4 class="name" id="isInstance"><span class="type-signature"></span>isInstance<span class="signature">(a)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2611
+
2612
+
2613
+
2614
+
2615
+
2616
+
2617
+ <dl class="details">
2618
+
2619
+
2620
+ <dt class="tag-source">Source:</dt>
2621
+ <dd class="tag-source"><ul class="dummy"><li>
2622
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line432">line 432</a>
2623
+ </li></ul></dd>
2624
+
2625
+
2626
+
2627
+
2628
+
2629
+
2630
+
2631
+
2632
+
2633
+
2634
+
2635
+
2636
+
2637
+
2638
+
2639
+
2640
+
2641
+
2642
+
2643
+
2644
+
2645
+
2646
+
2647
+
2648
+
2649
+
2650
+
2651
+
2652
+
2653
+
2654
+
2655
+ </dl>
2656
+
2657
+
2658
+
2659
+
2660
+
2661
+ <div class="description usertext">
2662
+ Check if the given resource is an instance of the current
2663
+ resource. This method returns true if all properties which
2664
+ affect the possible translation match between the given and
2665
+ the current resource.
2666
+ </div>
2667
+
2668
+
2669
+
2670
+
2671
+
2672
+
2673
+
2674
+
2675
+
2676
+
2677
+
2678
+ <h5>Parameters:</h5>
2679
+
2680
+
2681
+ <table class="params">
2682
+ <thead>
2683
+ <tr>
2684
+
2685
+ <th>Name</th>
2686
+
2687
+
2688
+ <th>Type</th>
2689
+
2690
+
2691
+
2692
+
2693
+
2694
+ <th class="last">Description</th>
2695
+ </tr>
2696
+ </thead>
2697
+
2698
+ <tbody>
2699
+
2700
+
2701
+ <tr>
2702
+
2703
+ <td class="name"><code>a</code></td>
2704
+
2705
+
2706
+ <td class="type">
2707
+
2708
+
2709
+ <span class="param-type"><a href="Resource.html">Resource</a></span>
2710
+
2711
+
2712
+
2713
+ </td>
2714
+
2715
+
2716
+
2717
+
2718
+
2719
+ <td class="description last">resource to check</td>
2720
+ </tr>
2721
+
2722
+
2723
+ </tbody>
2724
+ </table>
2725
+
2726
+
2727
+
2728
+
2729
+
2730
+
2731
+
2732
+
2733
+
2734
+
2735
+
2736
+
2737
+
2738
+
2739
+
2740
+
2741
+ <h5>Returns:</h5>
2742
+
2743
+
2744
+ <div class="param-desc">
2745
+ true if this is an instance of
2746
+ the current resource, false otherwise.
2747
+ </div>
2748
+
2749
+
2750
+
2751
+ <dl class="param-type">
2752
+ <dt>
2753
+ Type
2754
+ </dt>
2755
+ <dd>
2756
+
2757
+ <span class="param-type">boolean</span>
2758
+
2759
+
2760
+ </dd>
2761
+ </dl>
2762
+
2763
+
2764
+
2765
+
2766
+
2767
+
2768
+
2769
+
2770
+
2771
+
2772
+ <h4 class="name" id="same"><span class="type-signature"></span>same<span class="signature">(other)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2773
+
2774
+
2775
+
2776
+
2777
+
2778
+
2779
+ <dl class="details">
2780
+
2781
+
2782
+ <dt class="tag-source">Source:</dt>
2783
+ <dd class="tag-source"><ul class="dummy"><li>
2784
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line332">line 332</a>
2785
+ </li></ul></dd>
2786
+
2787
+
2788
+
2789
+
2790
+
2791
+
2792
+
2793
+
2794
+
2795
+
2796
+
2797
+
2798
+
2799
+
2800
+
2801
+
2802
+
2803
+
2804
+
2805
+
2806
+
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+
2813
+
2814
+
2815
+
2816
+
2817
+ </dl>
2818
+
2819
+
2820
+
2821
+
2822
+
2823
+ <div class="description usertext">
2824
+ Return true if the other resource represents the same resource as
2825
+ the current one. The project, context, locale, key, flavor, and type must
2826
+ match. Other fields such as the pathName, state, and comment fields are
2827
+ ignored as minor variations.
2828
+ </div>
2829
+
2830
+
2831
+
2832
+
2833
+
2834
+
2835
+
2836
+
2837
+
2838
+
2839
+
2840
+ <h5>Parameters:</h5>
2841
+
2842
+
2843
+ <table class="params">
2844
+ <thead>
2845
+ <tr>
2846
+
2847
+ <th>Name</th>
2848
+
2849
+
2850
+ <th>Type</th>
2851
+
2852
+
2853
+
2854
+
2855
+
2856
+ <th class="last">Description</th>
2857
+ </tr>
2858
+ </thead>
2859
+
2860
+ <tbody>
2861
+
2862
+
2863
+ <tr>
2864
+
2865
+ <td class="name"><code>other</code></td>
2866
+
2867
+
2868
+ <td class="type">
2869
+
2870
+
2871
+ <span class="param-type"><a href="Resource.html">Resource</a></span>
2872
+
2873
+
2874
+
2875
+ </td>
2876
+
2877
+
2878
+
2879
+
2880
+
2881
+ <td class="description last">another resource to test against the current one</td>
2882
+ </tr>
2883
+
2884
+
2885
+ </tbody>
2886
+ </table>
2887
+
2888
+
2889
+
2890
+
2891
+
2892
+
2893
+
2894
+
2895
+
2896
+
2897
+
2898
+
2899
+
2900
+
2901
+
2902
+
2903
+ <h5>Returns:</h5>
2904
+
2905
+
2906
+ <div class="param-desc">
2907
+ true if these represent the same resource, false otherwise
2908
+ </div>
2909
+
2910
+
2911
+
2912
+ <dl class="param-type">
2913
+ <dt>
2914
+ Type
2915
+ </dt>
2916
+ <dd>
2917
+
2918
+ <span class="param-type">boolean</span>
2919
+
2920
+
2921
+ </dd>
2922
+ </dl>
2923
+
2924
+
2925
+
2926
+
2927
+
2928
+
2929
+
2930
+
2931
+
2932
+
2933
+ <h4 class="name" id="setComment"><span class="type-signature"></span>setComment<span class="signature">(comment)</span><span class="type-signature"></span></h4>
2934
+
2935
+
2936
+
2937
+
2938
+
2939
+
2940
+ <dl class="details">
2941
+
2942
+
2943
+ <dt class="tag-source">Source:</dt>
2944
+ <dd class="tag-source"><ul class="dummy"><li>
2945
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line274">line 274</a>
2946
+ </li></ul></dd>
2947
+
2948
+
2949
+
2950
+
2951
+
2952
+
2953
+
2954
+
2955
+
2956
+
2957
+
2958
+
2959
+
2960
+
2961
+
2962
+
2963
+
2964
+
2965
+
2966
+
2967
+
2968
+
2969
+
2970
+
2971
+
2972
+
2973
+
2974
+
2975
+
2976
+
2977
+
2978
+ </dl>
2979
+
2980
+
2981
+
2982
+
2983
+
2984
+ <div class="description usertext">
2985
+ Set the translator's comment for this resource.
2986
+ </div>
2987
+
2988
+
2989
+
2990
+
2991
+
2992
+
2993
+
2994
+
2995
+
2996
+
2997
+
2998
+ <h5>Parameters:</h5>
2999
+
3000
+
3001
+ <table class="params">
3002
+ <thead>
3003
+ <tr>
3004
+
3005
+ <th>Name</th>
3006
+
3007
+
3008
+ <th>Type</th>
3009
+
3010
+
3011
+
3012
+
3013
+
3014
+ <th class="last">Description</th>
3015
+ </tr>
3016
+ </thead>
3017
+
3018
+ <tbody>
3019
+
3020
+
3021
+ <tr>
3022
+
3023
+ <td class="name"><code>comment</code></td>
3024
+
3025
+
3026
+ <td class="type">
3027
+
3028
+
3029
+ <span class="param-type">String</span>
3030
+ |
3031
+
3032
+ <span class="param-type">undefined</span>
3033
+
3034
+
3035
+
3036
+ </td>
3037
+
3038
+
3039
+
3040
+
3041
+
3042
+ <td class="description last">the translator's comment to set. Use
3043
+ undefined to clear the comment</td>
3044
+ </tr>
3045
+
3046
+
3047
+ </tbody>
3048
+ </table>
3049
+
3050
+
3051
+
3052
+
3053
+
3054
+
3055
+
3056
+
3057
+
3058
+
3059
+
3060
+
3061
+
3062
+
3063
+
3064
+
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+
3071
+
3072
+
3073
+ <h4 class="name" id="setProject"><span class="type-signature"></span>setProject<span class="signature">(project)</span><span class="type-signature"></span></h4>
3074
+
3075
+
3076
+
3077
+
3078
+
3079
+
3080
+ <dl class="details">
3081
+
3082
+
3083
+ <dt class="tag-source">Source:</dt>
3084
+ <dd class="tag-source"><ul class="dummy"><li>
3085
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line232">line 232</a>
3086
+ </li></ul></dd>
3087
+
3088
+
3089
+
3090
+
3091
+
3092
+
3093
+
3094
+
3095
+
3096
+
3097
+
3098
+
3099
+
3100
+
3101
+
3102
+
3103
+
3104
+
3105
+
3106
+
3107
+
3108
+
3109
+
3110
+
3111
+
3112
+
3113
+
3114
+
3115
+
3116
+
3117
+
3118
+ </dl>
3119
+
3120
+
3121
+
3122
+
3123
+
3124
+ <div class="description usertext">
3125
+ Set the project of this resource. This is a string that gives the
3126
+ id of the project for this resource.
3127
+ </div>
3128
+
3129
+
3130
+
3131
+
3132
+
3133
+
3134
+
3135
+
3136
+
3137
+
3138
+
3139
+ <h5>Parameters:</h5>
3140
+
3141
+
3142
+ <table class="params">
3143
+ <thead>
3144
+ <tr>
3145
+
3146
+ <th>Name</th>
3147
+
3148
+
3149
+ <th>Type</th>
3150
+
3151
+
3152
+
3153
+
3154
+
3155
+ <th class="last">Description</th>
3156
+ </tr>
3157
+ </thead>
3158
+
3159
+ <tbody>
3160
+
3161
+
3162
+ <tr>
3163
+
3164
+ <td class="name"><code>project</code></td>
3165
+
3166
+
3167
+ <td class="type">
3168
+
3169
+
3170
+ <span class="param-type">Project</span>
3171
+
3172
+
3173
+
3174
+ </td>
3175
+
3176
+
3177
+
3178
+
3179
+
3180
+ <td class="description last">the project to set for this resource</td>
3181
+ </tr>
3182
+
3183
+
3184
+ </tbody>
3185
+ </table>
3186
+
3187
+
3188
+
3189
+
3190
+
3191
+
3192
+
3193
+
3194
+
3195
+
3196
+
3197
+
3198
+
3199
+
3200
+
3201
+
3202
+
3203
+
3204
+
3205
+
3206
+
3207
+
3208
+
3209
+
3210
+ <h4 class="name" id="setSourceLocale"><span class="type-signature"></span>setSourceLocale<span class="signature">(locale)</span><span class="type-signature"></span></h4>
3211
+
3212
+
3213
+
3214
+
3215
+
3216
+
3217
+ <dl class="details">
3218
+
3219
+
3220
+ <dt class="tag-source">Source:</dt>
3221
+ <dd class="tag-source"><ul class="dummy"><li>
3222
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line193">line 193</a>
3223
+ </li></ul></dd>
3224
+
3225
+
3226
+
3227
+
3228
+
3229
+
3230
+
3231
+
3232
+
3233
+
3234
+
3235
+
3236
+
3237
+
3238
+
3239
+
3240
+
3241
+
3242
+
3243
+
3244
+
3245
+
3246
+
3247
+
3248
+
3249
+
3250
+
3251
+
3252
+
3253
+
3254
+
3255
+ </dl>
3256
+
3257
+
3258
+
3259
+
3260
+
3261
+ <div class="description usertext">
3262
+ Set the source locale of this resource.
3263
+ </div>
3264
+
3265
+
3266
+
3267
+
3268
+
3269
+
3270
+
3271
+
3272
+
3273
+
3274
+
3275
+ <h5>Parameters:</h5>
3276
+
3277
+
3278
+ <table class="params">
3279
+ <thead>
3280
+ <tr>
3281
+
3282
+ <th>Name</th>
3283
+
3284
+
3285
+ <th>Type</th>
3286
+
3287
+
3288
+
3289
+
3290
+
3291
+ <th class="last">Description</th>
3292
+ </tr>
3293
+ </thead>
3294
+
3295
+ <tbody>
3296
+
3297
+
3298
+ <tr>
3299
+
3300
+ <td class="name"><code>locale</code></td>
3301
+
3302
+
3303
+ <td class="type">
3304
+
3305
+
3306
+ <span class="param-type">String</span>
3307
+
3308
+
3309
+
3310
+ </td>
3311
+
3312
+
3313
+
3314
+
3315
+
3316
+ <td class="description last">the source locale of this resource</td>
3317
+ </tr>
3318
+
3319
+
3320
+ </tbody>
3321
+ </table>
3322
+
3323
+
3324
+
3325
+
3326
+
3327
+
3328
+
3329
+
3330
+
3331
+
3332
+
3333
+
3334
+
3335
+
3336
+
3337
+
3338
+
3339
+
3340
+
3341
+
3342
+
3343
+
3344
+
3345
+
3346
+ <h4 class="name" id="setState"><span class="type-signature"></span>setState<span class="signature">(state)</span><span class="type-signature"></span></h4>
3347
+
3348
+
3349
+
3350
+
3351
+
3352
+
3353
+ <dl class="details">
3354
+
3355
+
3356
+ <dt class="tag-source">Source:</dt>
3357
+ <dd class="tag-source"><ul class="dummy"><li>
3358
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line243">line 243</a>
3359
+ </li></ul></dd>
3360
+
3361
+
3362
+
3363
+
3364
+
3365
+
3366
+
3367
+
3368
+
3369
+
3370
+
3371
+
3372
+
3373
+
3374
+
3375
+
3376
+
3377
+
3378
+
3379
+
3380
+
3381
+
3382
+
3383
+
3384
+
3385
+
3386
+
3387
+
3388
+
3389
+
3390
+
3391
+ </dl>
3392
+
3393
+
3394
+
3395
+
3396
+
3397
+ <div class="description usertext">
3398
+ Set the state of this resource. This is a string that gives the
3399
+ stage of life of this resource. Currently, it can be one of "new",
3400
+ "translated", or "accepted".
3401
+ </div>
3402
+
3403
+
3404
+
3405
+
3406
+
3407
+
3408
+
3409
+
3410
+
3411
+
3412
+
3413
+ <h5>Parameters:</h5>
3414
+
3415
+
3416
+ <table class="params">
3417
+ <thead>
3418
+ <tr>
3419
+
3420
+ <th>Name</th>
3421
+
3422
+
3423
+ <th>Type</th>
3424
+
3425
+
3426
+
3427
+
3428
+
3429
+ <th class="last">Description</th>
3430
+ </tr>
3431
+ </thead>
3432
+
3433
+ <tbody>
3434
+
3435
+
3436
+ <tr>
3437
+
3438
+ <td class="name"><code>state</code></td>
3439
+
3440
+
3441
+ <td class="type">
3442
+
3443
+
3444
+ <span class="param-type">String</span>
3445
+
3446
+
3447
+
3448
+ </td>
3449
+
3450
+
3451
+
3452
+
3453
+
3454
+ <td class="description last">the state of this resource</td>
3455
+ </tr>
3456
+
3457
+
3458
+ </tbody>
3459
+ </table>
3460
+
3461
+
3462
+
3463
+
3464
+
3465
+
3466
+
3467
+
3468
+
3469
+
3470
+
3471
+
3472
+
3473
+
3474
+
3475
+
3476
+
3477
+
3478
+
3479
+
3480
+
3481
+
3482
+
3483
+
3484
+ <h4 class="name" id="setTargetLocale"><span class="type-signature"></span>setTargetLocale<span class="signature">(locale)</span><span class="type-signature"></span></h4>
3485
+
3486
+
3487
+
3488
+
3489
+
3490
+
3491
+ <dl class="details">
3492
+
3493
+
3494
+ <dt class="tag-source">Source:</dt>
3495
+ <dd class="tag-source"><ul class="dummy"><li>
3496
+ <a href="Resource.js.html">Resource.js</a>, <a href="Resource.js.html#line211">line 211</a>
3497
+ </li></ul></dd>
3498
+
3499
+
3500
+
3501
+
3502
+
3503
+
3504
+
3505
+
3506
+
3507
+
3508
+
3509
+
3510
+
3511
+
3512
+
3513
+
3514
+
3515
+
3516
+
3517
+
3518
+
3519
+
3520
+
3521
+
3522
+
3523
+
3524
+
3525
+
3526
+
3527
+
3528
+
3529
+ </dl>
3530
+
3531
+
3532
+
3533
+
3534
+
3535
+ <div class="description usertext">
3536
+ Set the target locale of this resource.
3537
+ </div>
3538
+
3539
+
3540
+
3541
+
3542
+
3543
+
3544
+
3545
+
3546
+
3547
+
3548
+
3549
+ <h5>Parameters:</h5>
3550
+
3551
+
3552
+ <table class="params">
3553
+ <thead>
3554
+ <tr>
3555
+
3556
+ <th>Name</th>
3557
+
3558
+
3559
+ <th>Type</th>
3560
+
3561
+
3562
+
3563
+
3564
+
3565
+ <th class="last">Description</th>
3566
+ </tr>
3567
+ </thead>
3568
+
3569
+ <tbody>
3570
+
3571
+
3572
+ <tr>
3573
+
3574
+ <td class="name"><code>locale</code></td>
3575
+
3576
+
3577
+ <td class="type">
3578
+
3579
+
3580
+ <span class="param-type">String</span>
3581
+
3582
+
3583
+
3584
+ </td>
3585
+
3586
+
3587
+
3588
+
3589
+
3590
+ <td class="description last">the target locale of this resource</td>
3591
+ </tr>
3592
+
3593
+
3594
+ </tbody>
3595
+ </table>
3596
+
3597
+
3598
+
3599
+
3600
+
3601
+
3602
+
3603
+
3604
+
3605
+
3606
+
3607
+
3608
+
3609
+
3610
+
3611
+
3612
+
3613
+
3614
+
3615
+
3616
+
3617
+
3618
+
3619
+
3620
+
3621
+ </article>
3622
+
3623
+ </section>
3624
+
3625
+
3626
+
3627
+
3628
+
3629
+
3630
+ </div>
3631
+
3632
+ <br class="clear">
3633
+
3634
+ <footer>
3635
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Nov 17 2022 07:06:52 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
3636
+ </footer>
3637
+
3638
+ <script>prettyPrint();</script>
3639
+ <script src="scripts/polyfill.js"></script>
3640
+ <script src="scripts/linenumber.js"></script>
3641
+
3642
+
3643
+
3644
+ </body>
3645
+ </html>