ilib-tools-common 1.2.0 → 1.4.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.
- package/README.md +16 -1
- package/docs/Resource.html +260 -279
- package/docs/Resource.js.html +5 -2
- package/docs/ResourceArray.html +488 -512
- package/docs/ResourceArray.js.html +5 -2
- package/docs/ResourcePlural.html +518 -545
- package/docs/ResourcePlural.js.html +5 -2
- package/docs/ResourceString.html +1066 -1077
- package/docs/ResourceString.js.html +5 -2
- package/docs/ResourceXliff.html +34 -30
- package/docs/ResourceXliff.js.html +5 -2
- package/docs/TranslationSet.html +157 -160
- package/docs/TranslationSet.js.html +5 -2
- package/docs/TranslationUnit.html +1132 -0
- package/docs/TranslationUnit.js.html +249 -0
- package/docs/TranslationVariant.html +363 -0
- package/docs/TranslationVariant.js.html +122 -0
- package/docs/global.html +545 -36
- package/docs/index.html +5 -2
- package/docs/scripts/collapse.js +19 -0
- package/docs/scripts/commonNav.js +28 -0
- package/docs/scripts/search.js +16 -0
- package/docs/styles/jsdoc.css +13 -2
- package/docs/styles/prettify.css +1 -0
- package/docs/utils.js.html +96 -3
- package/package.json +5 -4
- package/src/TranslationUnit.js +178 -0
- package/src/TranslationVariant.js +51 -0
- package/src/index.js +19 -2
- package/src/utils.js +91 -1
package/docs/Resource.html
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
15
|
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
16
|
<script src="scripts/nav.js" defer></script>
|
|
17
|
+
|
|
17
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
18
19
|
</head>
|
|
19
20
|
<body>
|
|
@@ -27,7 +28,9 @@
|
|
|
27
28
|
|
|
28
29
|
<nav >
|
|
29
30
|
|
|
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#addSourceItem">addSourceItem</a></li><li data-type='method'><a href="ResourceArray.html#addTargetItem">addTargetItem</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#getSourceArray">getSourceArray</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#getTargetArray">getTargetArray</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#getSourcePlurals">getSourcePlurals</a></li><li data-type='method'><a href="ResourcePlural.html#getSourceStrings">getSourceStrings</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#getTargetPlurals">getTargetPlurals</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetStrings">getTargetStrings</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><li><a href="ResourceXliff.html">ResourceXliff</a></li><li><a href="TranslationSet.html">TranslationSet</a><ul class='methods'><li data-type='method'><a href="TranslationSet.html#add">add</a></li><li data-type='method'><a href="TranslationSet.html#addAll">addAll</a></li><li data-type='method'><a href="TranslationSet.html#addSet">addSet</a></li><li data-type='method'><a href="TranslationSet.html#clear">clear</a></li><li data-type='method'><a href="TranslationSet.html#diff">diff</a></li><li data-type='method'><a href="TranslationSet.html#get">get</a></li><li data-type='method'><a href="TranslationSet.html#getAll">getAll</a></li><li data-type='method'><a href="TranslationSet.html#getBy">getBy</a></li><li data-type='method'><a href="TranslationSet.html#getBySource">getBySource</a></li><li data-type='method'><a href="TranslationSet.html#getClean">getClean</a></li><li data-type='method'><a href="TranslationSet.html#getContexts">getContexts</a></li><li data-type='method'><a href="TranslationSet.html#getLocales">getLocales</a></li><li data-type='method'><a href="TranslationSet.html#getProjects">getProjects</a></li><li data-type='method'><a href="TranslationSet.html#isDirty">isDirty</a></li><li data-type='method'><a href="TranslationSet.html#remove">remove</a></li><li data-type='method'><a href="TranslationSet.html#setClean">setClean</a></li><li data-type='method'><a href="TranslationSet.html#size">size</a></li></ul></li></ul><h3>Global</h3><ul><li><a href="global.html#cleanString">cleanString</a></li><li><a href="global.html#formatPath">formatPath</a></li><li><a href="global.html#getLocaleFromPath">getLocaleFromPath</a></li><li><a href="global.html#isEmpty">isEmpty</a></li></ul>
|
|
31
|
+
|
|
32
|
+
<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#addInstance">addInstance</a></li><li data-type='method'><a href="ResourceArray.html#addSourceItem">addSourceItem</a></li><li data-type='method'><a href="ResourceArray.html#addTargetItem">addTargetItem</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#getSourceArray">getSourceArray</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#getTargetArray">getTargetArray</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><li data-type='method'><a href="ResourceArray.html#.hashKey">hashKey</a></li></ul></li><li><a href="ResourcePlural.html">ResourcePlural</a><ul class='methods'><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#getSourcePlurals">getSourcePlurals</a></li><li data-type='method'><a href="ResourcePlural.html#getSourceStrings">getSourceStrings</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#getTargetPlurals">getTargetPlurals</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetStrings">getTargetStrings</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><li data-type='method'><a href="ResourcePlural.html#.hashKey">hashKey</a></li></ul></li><li><a href="ResourceString.html">ResourceString</a><ul class='methods'><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><li data-type='method'><a href="ResourceString.html#.cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourceString.html#.hashKey">hashKey</a></li></ul></li><li><a href="ResourceXliff.html">ResourceXliff</a></li><li><a href="TranslationSet.html">TranslationSet</a><ul class='methods'><li data-type='method'><a href="TranslationSet.html#add">add</a></li><li data-type='method'><a href="TranslationSet.html#addAll">addAll</a></li><li data-type='method'><a href="TranslationSet.html#addSet">addSet</a></li><li data-type='method'><a href="TranslationSet.html#clear">clear</a></li><li data-type='method'><a href="TranslationSet.html#diff">diff</a></li><li data-type='method'><a href="TranslationSet.html#get">get</a></li><li data-type='method'><a href="TranslationSet.html#getAll">getAll</a></li><li data-type='method'><a href="TranslationSet.html#getBy">getBy</a></li><li data-type='method'><a href="TranslationSet.html#getBySource">getBySource</a></li><li data-type='method'><a href="TranslationSet.html#getClean">getClean</a></li><li data-type='method'><a href="TranslationSet.html#getContexts">getContexts</a></li><li data-type='method'><a href="TranslationSet.html#getLocales">getLocales</a></li><li data-type='method'><a href="TranslationSet.html#getProjects">getProjects</a></li><li data-type='method'><a href="TranslationSet.html#isDirty">isDirty</a></li><li data-type='method'><a href="TranslationSet.html#remove">remove</a></li><li data-type='method'><a href="TranslationSet.html#setClean">setClean</a></li><li data-type='method'><a href="TranslationSet.html#size">size</a></li></ul></li><li><a href="TranslationUnit.html">TranslationUnit</a><ul class='methods'><li data-type='method'><a href="TranslationUnit.html#addProperties">addProperties</a></li><li data-type='method'><a href="TranslationUnit.html#addVariant">addVariant</a></li><li data-type='method'><a href="TranslationUnit.html#addVariants">addVariants</a></li><li data-type='method'><a href="TranslationUnit.html#clone">clone</a></li><li data-type='method'><a href="TranslationUnit.html#getProperties">getProperties</a></li><li data-type='method'><a href="TranslationUnit.html#getVariants">getVariants</a></li><li data-type='method'><a href="TranslationUnit.html#hashKey">hashKey</a></li></ul></li><li><a href="TranslationVariant.html">TranslationVariant</a><ul class='methods'><li data-type='method'><a href="TranslationVariant.html#hashKey">hashKey</a></li></ul></li></ul><h3>Global</h3><ul><li><a href="global.html#cleanString">cleanString</a></li><li><a href="global.html#containsActualText">containsActualText</a></li><li><a href="global.html#formatPath">formatPath</a></li><li><a href="global.html#getLocaleFromPath">getLocaleFromPath</a></li><li><a href="global.html#hashKey">hashKey</a></li><li><a href="global.html#isEmpty">isEmpty</a></li><li><a href="global.html#objectMap">objectMap</a></li></ul>
|
|
33
|
+
|
|
31
34
|
</nav>
|
|
32
35
|
|
|
33
36
|
<div id="main">
|
|
@@ -45,7 +48,9 @@
|
|
|
45
48
|
<header>
|
|
46
49
|
|
|
47
50
|
<h2>
|
|
48
|
-
|
|
51
|
+
|
|
52
|
+
Resource
|
|
53
|
+
|
|
49
54
|
</h2>
|
|
50
55
|
|
|
51
56
|
<div class="class-description usertext">Represents a resource from a resource file or
|
|
@@ -64,7 +69,7 @@ extracted from the code.</div>
|
|
|
64
69
|
<h2>Constructor</h2>
|
|
65
70
|
|
|
66
71
|
|
|
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>
|
|
72
|
+
<h4 class="name" id="Resource"><span class="type-signature type-signature-abstract">(abstract) </span>new Resource<span class="signature">(props)</span><span class="type-signature"></span></h4>
|
|
68
73
|
|
|
69
74
|
|
|
70
75
|
|
|
@@ -72,6 +77,28 @@ extracted from the code.</div>
|
|
|
72
77
|
|
|
73
78
|
|
|
74
79
|
<dl class="details">
|
|
80
|
+
|
|
81
|
+
<dt class="tag-description">Description:</dt>
|
|
82
|
+
<dd class="tag-description"><ul class="dummy"><li>Construct a new Resource instance.
|
|
83
|
+
The props may contain any
|
|
84
|
+
of the following properties:
|
|
85
|
+
|
|
86
|
+
<ul>
|
|
87
|
+
<li>project {String} - the project that this resource is in
|
|
88
|
+
<li><i>context</i> {String} - The context for this resource,
|
|
89
|
+
such as "landscape mode", or "7200dp", which differentiates it
|
|
90
|
+
from the base resource that has no special context. The default
|
|
91
|
+
if this property is not specified is undefined, meaning no
|
|
92
|
+
context.
|
|
93
|
+
<li>sourceLocale {String} - the locale of the source resource.
|
|
94
|
+
<li>targetLocale {String} - the locale of the target resource.
|
|
95
|
+
<li>key {String} - the unique key of this string, which should include the context
|
|
96
|
+
of the string
|
|
97
|
+
<li>pathName {String} - pathName to the file where the string was extracted from
|
|
98
|
+
<li>autoKey {boolean} - true if the key was generated based on the source text
|
|
99
|
+
<li>state {String} - current state of the resource (ie. "new", "translated", or "accepted")
|
|
100
|
+
</ul></li></ul></dd>
|
|
101
|
+
|
|
75
102
|
|
|
76
103
|
|
|
77
104
|
<dt class="tag-source">Source:</dt>
|
|
@@ -115,30 +142,6 @@ extracted from the code.</div>
|
|
|
115
142
|
|
|
116
143
|
|
|
117
144
|
|
|
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
145
|
|
|
143
146
|
|
|
144
147
|
|
|
@@ -147,7 +150,7 @@ of the string
|
|
|
147
150
|
|
|
148
151
|
|
|
149
152
|
|
|
150
|
-
<h5>Parameters:</h5>
|
|
153
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
151
154
|
|
|
152
155
|
|
|
153
156
|
<table class="params">
|
|
@@ -181,6 +184,7 @@ of the string
|
|
|
181
184
|
<span class="param-type">Object</span>
|
|
182
185
|
|
|
183
186
|
|
|
187
|
+
|
|
184
188
|
|
|
185
189
|
</td>
|
|
186
190
|
|
|
@@ -247,6 +251,40 @@ of the string
|
|
|
247
251
|
|
|
248
252
|
|
|
249
253
|
<dl class="details">
|
|
254
|
+
|
|
255
|
+
<dt class="tag-description">Description:</dt>
|
|
256
|
+
<dd class="tag-description"><ul class="dummy"><li>Add an instance of the same resource to the list of
|
|
257
|
+
instances. If the given resource matches the
|
|
258
|
+
current instance in all properties that affect the
|
|
259
|
+
possible translation, and differs from the current
|
|
260
|
+
instance by some property that does not affect
|
|
261
|
+
its translation, it will be added as an instance of
|
|
262
|
+
the same string. The following properties affect the
|
|
263
|
+
translation:
|
|
264
|
+
|
|
265
|
+
<ul>
|
|
266
|
+
<li>context</li>
|
|
267
|
+
<li>datatype</li>
|
|
268
|
+
<li>dnt</li>
|
|
269
|
+
<li>flavor</li>
|
|
270
|
+
<li>project</li>
|
|
271
|
+
<li>reskey</li>
|
|
272
|
+
<li>resType</li>
|
|
273
|
+
<li>source</li>
|
|
274
|
+
<li>sourceHash</li>
|
|
275
|
+
<li>sourceArray</li>
|
|
276
|
+
<li>sourceLocale</li>
|
|
277
|
+
<li>targetLocale</li>
|
|
278
|
+
</ul>
|
|
279
|
+
|
|
280
|
+
Differences in other properties, such as "comment" or
|
|
281
|
+
"origin" are considered instances of the same resource.
|
|
282
|
+
|
|
283
|
+
If this method is given a resource that differs from
|
|
284
|
+
the current one by one of the above translation affecting
|
|
285
|
+
properties, it is not added to the list of instances. This
|
|
286
|
+
can be checked easily by calling the isInstance() method.</li></ul></dd>
|
|
287
|
+
|
|
250
288
|
|
|
251
289
|
|
|
252
290
|
<dt class="tag-source">Source:</dt>
|
|
@@ -290,41 +328,6 @@ of the string
|
|
|
290
328
|
|
|
291
329
|
|
|
292
330
|
|
|
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
331
|
|
|
329
332
|
|
|
330
333
|
|
|
@@ -333,8 +336,7 @@ can be checked easily by calling the isInstance() method.
|
|
|
333
336
|
|
|
334
337
|
|
|
335
338
|
|
|
336
|
-
|
|
337
|
-
<h5>Parameters:</h5>
|
|
339
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
338
340
|
|
|
339
341
|
|
|
340
342
|
<table class="params">
|
|
@@ -368,6 +370,7 @@ can be checked easily by calling the isInstance() method.
|
|
|
368
370
|
<span class="param-type"><a href="Resource.html">Resource</a></span>
|
|
369
371
|
|
|
370
372
|
|
|
373
|
+
|
|
371
374
|
|
|
372
375
|
</td>
|
|
373
376
|
|
|
@@ -398,7 +401,7 @@ record</td>
|
|
|
398
401
|
|
|
399
402
|
|
|
400
403
|
|
|
401
|
-
<h5>Returns:</h5>
|
|
404
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
402
405
|
|
|
403
406
|
|
|
404
407
|
<div class="param-desc">
|
|
@@ -417,6 +420,7 @@ and false otherwise
|
|
|
417
420
|
<span class="param-type">boolean</span>
|
|
418
421
|
|
|
419
422
|
|
|
423
|
+
|
|
420
424
|
</dd>
|
|
421
425
|
</dl>
|
|
422
426
|
|
|
@@ -437,6 +441,12 @@ and false otherwise
|
|
|
437
441
|
|
|
438
442
|
|
|
439
443
|
<dl class="details">
|
|
444
|
+
|
|
445
|
+
<dt class="tag-description">Description:</dt>
|
|
446
|
+
<dd class="tag-description"><ul class="dummy"><li>Escape text for writing to a database in a SQL command. This puts single
|
|
447
|
+
quotes around the string, and makes sure that all single quotes within
|
|
448
|
+
the string are escaped.</li></ul></dd>
|
|
449
|
+
|
|
440
450
|
|
|
441
451
|
|
|
442
452
|
<dt class="tag-source">Source:</dt>
|
|
@@ -480,14 +490,6 @@ and false otherwise
|
|
|
480
490
|
|
|
481
491
|
|
|
482
492
|
|
|
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
493
|
|
|
492
494
|
|
|
493
495
|
|
|
@@ -496,7 +498,7 @@ the string are escaped.
|
|
|
496
498
|
|
|
497
499
|
|
|
498
500
|
|
|
499
|
-
<h5>Parameters:</h5>
|
|
501
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
500
502
|
|
|
501
503
|
|
|
502
504
|
<table class="params">
|
|
@@ -530,6 +532,7 @@ the string are escaped.
|
|
|
530
532
|
<span class="param-type">Object</span>
|
|
531
533
|
|
|
532
534
|
|
|
535
|
+
|
|
533
536
|
|
|
534
537
|
</td>
|
|
535
538
|
|
|
@@ -559,7 +562,7 @@ the string are escaped.
|
|
|
559
562
|
|
|
560
563
|
|
|
561
564
|
|
|
562
|
-
<h5>Returns:</h5>
|
|
565
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
563
566
|
|
|
564
567
|
|
|
565
568
|
<div class="param-desc">
|
|
@@ -577,6 +580,7 @@ the string are escaped.
|
|
|
577
580
|
<span class="param-type">String</span>
|
|
578
581
|
|
|
579
582
|
|
|
583
|
+
|
|
580
584
|
</dd>
|
|
581
585
|
</dl>
|
|
582
586
|
|
|
@@ -597,6 +601,11 @@ the string are escaped.
|
|
|
597
601
|
|
|
598
602
|
|
|
599
603
|
<dl class="details">
|
|
604
|
+
|
|
605
|
+
<dt class="tag-description">Description:</dt>
|
|
606
|
+
<dd class="tag-description"><ul class="dummy"><li>Return true if the key of this resource was automatically generated,
|
|
607
|
+
and false if it was an explicit key.</li></ul></dd>
|
|
608
|
+
|
|
600
609
|
|
|
601
610
|
|
|
602
611
|
<dt class="tag-source">Source:</dt>
|
|
@@ -640,12 +649,6 @@ the string are escaped.
|
|
|
640
649
|
|
|
641
650
|
|
|
642
651
|
|
|
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
652
|
|
|
650
653
|
|
|
651
654
|
|
|
@@ -668,8 +671,7 @@ and false if it was an explicit key.
|
|
|
668
671
|
|
|
669
672
|
|
|
670
673
|
|
|
671
|
-
|
|
672
|
-
<h5>Returns:</h5>
|
|
674
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
673
675
|
|
|
674
676
|
|
|
675
677
|
<div class="param-desc">
|
|
@@ -688,6 +690,7 @@ false otherwise
|
|
|
688
690
|
<span class="param-type">boolean</span>
|
|
689
691
|
|
|
690
692
|
|
|
693
|
+
|
|
691
694
|
</dd>
|
|
692
695
|
</dl>
|
|
693
696
|
|
|
@@ -708,6 +711,11 @@ false otherwise
|
|
|
708
711
|
|
|
709
712
|
|
|
710
713
|
<dl class="details">
|
|
714
|
+
|
|
715
|
+
<dt class="tag-description">Description:</dt>
|
|
716
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the translator's comment for this resource if there is
|
|
717
|
+
one, or undefined if not.</li></ul></dd>
|
|
718
|
+
|
|
711
719
|
|
|
712
720
|
|
|
713
721
|
<dt class="tag-source">Source:</dt>
|
|
@@ -751,13 +759,6 @@ false otherwise
|
|
|
751
759
|
|
|
752
760
|
|
|
753
761
|
|
|
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
|
|
|
762
763
|
|
|
763
764
|
|
|
@@ -780,7 +781,7 @@ one, or undefined if not.
|
|
|
780
781
|
|
|
781
782
|
|
|
782
783
|
|
|
783
|
-
<h5>Returns:</h5>
|
|
784
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
784
785
|
|
|
785
786
|
|
|
786
787
|
<div class="param-desc">
|
|
@@ -802,6 +803,7 @@ if the engineer put one in the code
|
|
|
802
803
|
<span class="param-type">undefined</span>
|
|
803
804
|
|
|
804
805
|
|
|
806
|
+
|
|
805
807
|
</dd>
|
|
806
808
|
</dl>
|
|
807
809
|
|
|
@@ -822,6 +824,11 @@ if the engineer put one in the code
|
|
|
822
824
|
|
|
823
825
|
|
|
824
826
|
<dl class="details">
|
|
827
|
+
|
|
828
|
+
<dt class="tag-description">Description:</dt>
|
|
829
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the context of this resource, or undefined if there
|
|
830
|
+
is no context.</li></ul></dd>
|
|
831
|
+
|
|
825
832
|
|
|
826
833
|
|
|
827
834
|
<dt class="tag-source">Source:</dt>
|
|
@@ -865,12 +872,6 @@ if the engineer put one in the code
|
|
|
865
872
|
|
|
866
873
|
|
|
867
874
|
|
|
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
|
|
|
875
876
|
|
|
876
877
|
|
|
@@ -893,8 +894,7 @@ is no context.
|
|
|
893
894
|
|
|
894
895
|
|
|
895
896
|
|
|
896
|
-
|
|
897
|
-
<h5>Returns:</h5>
|
|
897
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
898
898
|
|
|
899
899
|
|
|
900
900
|
<div class="param-desc">
|
|
@@ -916,6 +916,7 @@ is no context.
|
|
|
916
916
|
<span class="param-type">undefined</span>
|
|
917
917
|
|
|
918
918
|
|
|
919
|
+
|
|
919
920
|
</dd>
|
|
920
921
|
</dl>
|
|
921
922
|
|
|
@@ -936,6 +937,10 @@ is no context.
|
|
|
936
937
|
|
|
937
938
|
|
|
938
939
|
<dl class="details">
|
|
940
|
+
|
|
941
|
+
<dt class="tag-description">Description:</dt>
|
|
942
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the data type of this resource.</li></ul></dd>
|
|
943
|
+
|
|
939
944
|
|
|
940
945
|
|
|
941
946
|
<dt class="tag-source">Source:</dt>
|
|
@@ -979,12 +984,6 @@ is no context.
|
|
|
979
984
|
|
|
980
985
|
|
|
981
986
|
|
|
982
|
-
<div class="description usertext">
|
|
983
|
-
Return the data type of this resource.
|
|
984
|
-
</div>
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
987
|
|
|
989
988
|
|
|
990
989
|
|
|
@@ -1007,7 +1006,7 @@ is no context.
|
|
|
1007
1006
|
|
|
1008
1007
|
|
|
1009
1008
|
|
|
1010
|
-
<h5>Returns:</h5>
|
|
1009
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1011
1010
|
|
|
1012
1011
|
|
|
1013
1012
|
<div class="param-desc">
|
|
@@ -1025,6 +1024,7 @@ is no context.
|
|
|
1025
1024
|
<span class="param-type">String</span>
|
|
1026
1025
|
|
|
1027
1026
|
|
|
1027
|
+
|
|
1028
1028
|
</dd>
|
|
1029
1029
|
</dl>
|
|
1030
1030
|
|
|
@@ -1045,6 +1045,11 @@ is no context.
|
|
|
1045
1045
|
|
|
1046
1046
|
|
|
1047
1047
|
<dl class="details">
|
|
1048
|
+
|
|
1049
|
+
<dt class="tag-description">Description:</dt>
|
|
1050
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the name of the flavor for this resource, or undefined
|
|
1051
|
+
for the "main" or default flavor.</li></ul></dd>
|
|
1052
|
+
|
|
1048
1053
|
|
|
1049
1054
|
|
|
1050
1055
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1088,13 +1093,6 @@ is no context.
|
|
|
1088
1093
|
|
|
1089
1094
|
|
|
1090
1095
|
|
|
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
1096
|
|
|
1099
1097
|
|
|
1100
1098
|
|
|
@@ -1117,7 +1115,7 @@ for the "main" or default flavor.
|
|
|
1117
1115
|
|
|
1118
1116
|
|
|
1119
1117
|
|
|
1120
|
-
<h5>Returns:</h5>
|
|
1118
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1121
1119
|
|
|
1122
1120
|
|
|
1123
1121
|
<div class="param-desc">
|
|
@@ -1139,6 +1137,7 @@ for the "main" or default flavor.
|
|
|
1139
1137
|
<span class="param-type">undefined</span>
|
|
1140
1138
|
|
|
1141
1139
|
|
|
1140
|
+
|
|
1142
1141
|
</dd>
|
|
1143
1142
|
</dl>
|
|
1144
1143
|
|
|
@@ -1159,6 +1158,11 @@ for the "main" or default flavor.
|
|
|
1159
1158
|
|
|
1160
1159
|
|
|
1161
1160
|
<dl class="details">
|
|
1161
|
+
|
|
1162
|
+
<dt class="tag-description">Description:</dt>
|
|
1163
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the database id if this resource has previously been saved in the
|
|
1164
|
+
database.</li></ul></dd>
|
|
1165
|
+
|
|
1162
1166
|
|
|
1163
1167
|
|
|
1164
1168
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1202,13 +1206,6 @@ for the "main" or default flavor.
|
|
|
1202
1206
|
|
|
1203
1207
|
|
|
1204
1208
|
|
|
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
1209
|
|
|
1213
1210
|
|
|
1214
1211
|
|
|
@@ -1231,7 +1228,7 @@ database.
|
|
|
1231
1228
|
|
|
1232
1229
|
|
|
1233
1230
|
|
|
1234
|
-
<h5>Returns:</h5>
|
|
1231
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1235
1232
|
|
|
1236
1233
|
|
|
1237
1234
|
<div class="param-desc">
|
|
@@ -1253,6 +1250,7 @@ been saved in the database, or undefined if it is has not
|
|
|
1253
1250
|
<span class="param-type">undefined</span>
|
|
1254
1251
|
|
|
1255
1252
|
|
|
1253
|
+
|
|
1256
1254
|
</dd>
|
|
1257
1255
|
</dl>
|
|
1258
1256
|
|
|
@@ -1273,6 +1271,10 @@ been saved in the database, or undefined if it is has not
|
|
|
1273
1271
|
|
|
1274
1272
|
|
|
1275
1273
|
<dl class="details">
|
|
1274
|
+
|
|
1275
|
+
<dt class="tag-description">Description:</dt>
|
|
1276
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the list of instances of the current resource.</li></ul></dd>
|
|
1277
|
+
|
|
1276
1278
|
|
|
1277
1279
|
|
|
1278
1280
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1316,12 +1318,6 @@ been saved in the database, or undefined if it is has not
|
|
|
1316
1318
|
|
|
1317
1319
|
|
|
1318
1320
|
|
|
1319
|
-
<div class="description usertext">
|
|
1320
|
-
Return the list of instances of the current resource.
|
|
1321
|
-
</div>
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
1321
|
|
|
1326
1322
|
|
|
1327
1323
|
|
|
@@ -1344,7 +1340,7 @@ been saved in the database, or undefined if it is has not
|
|
|
1344
1340
|
|
|
1345
1341
|
|
|
1346
1342
|
|
|
1347
|
-
<h5>Returns:</h5>
|
|
1343
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1348
1344
|
|
|
1349
1345
|
|
|
1350
1346
|
<div class="param-desc">
|
|
@@ -1363,6 +1359,7 @@ the current resource
|
|
|
1363
1359
|
<span class="param-type">Array.<<a href="Resource.html">Resource</a>></span>
|
|
1364
1360
|
|
|
1365
1361
|
|
|
1362
|
+
|
|
1366
1363
|
</dd>
|
|
1367
1364
|
</dl>
|
|
1368
1365
|
|
|
@@ -1383,6 +1380,10 @@ the current resource
|
|
|
1383
1380
|
|
|
1384
1381
|
|
|
1385
1382
|
<dl class="details">
|
|
1383
|
+
|
|
1384
|
+
<dt class="tag-description">Description:</dt>
|
|
1385
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the unique key of this resource.</li></ul></dd>
|
|
1386
|
+
|
|
1386
1387
|
|
|
1387
1388
|
|
|
1388
1389
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1426,11 +1427,6 @@ the current resource
|
|
|
1426
1427
|
|
|
1427
1428
|
|
|
1428
1429
|
|
|
1429
|
-
<div class="description usertext">
|
|
1430
|
-
Return the unique key of this resource.
|
|
1431
|
-
</div>
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
1430
|
|
|
1435
1431
|
|
|
1436
1432
|
|
|
@@ -1453,8 +1449,7 @@ the current resource
|
|
|
1453
1449
|
|
|
1454
1450
|
|
|
1455
1451
|
|
|
1456
|
-
|
|
1457
|
-
<h5>Returns:</h5>
|
|
1452
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1458
1453
|
|
|
1459
1454
|
|
|
1460
1455
|
<div class="param-desc">
|
|
@@ -1472,6 +1467,7 @@ the current resource
|
|
|
1472
1467
|
<span class="param-type">String</span>
|
|
1473
1468
|
|
|
1474
1469
|
|
|
1470
|
+
|
|
1475
1471
|
</dd>
|
|
1476
1472
|
</dl>
|
|
1477
1473
|
|
|
@@ -1492,6 +1488,12 @@ the current resource
|
|
|
1492
1488
|
|
|
1493
1489
|
|
|
1494
1490
|
<dl class="details">
|
|
1491
|
+
|
|
1492
|
+
<dt class="tag-description">Description:</dt>
|
|
1493
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the localize flag of this resource.
|
|
1494
|
+
This flag indicates whether we should look up a translation for this resource.
|
|
1495
|
+
When false, we should simply substitute the source back</li></ul></dd>
|
|
1496
|
+
|
|
1495
1497
|
|
|
1496
1498
|
|
|
1497
1499
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1535,14 +1537,6 @@ the current resource
|
|
|
1535
1537
|
|
|
1536
1538
|
|
|
1537
1539
|
|
|
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
1540
|
|
|
1547
1541
|
|
|
1548
1542
|
|
|
@@ -1565,7 +1559,7 @@ When false, we should simply substitute the source back
|
|
|
1565
1559
|
|
|
1566
1560
|
|
|
1567
1561
|
|
|
1568
|
-
<h5>Returns:</h5>
|
|
1562
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1569
1563
|
|
|
1570
1564
|
|
|
1571
1565
|
<div class="param-desc">
|
|
@@ -1583,6 +1577,7 @@ When false, we should simply substitute the source back
|
|
|
1583
1577
|
<span class="param-type">Boolean</span>
|
|
1584
1578
|
|
|
1585
1579
|
|
|
1580
|
+
|
|
1586
1581
|
</dd>
|
|
1587
1582
|
</dl>
|
|
1588
1583
|
|
|
@@ -1603,6 +1598,13 @@ When false, we should simply substitute the source back
|
|
|
1603
1598
|
|
|
1604
1599
|
|
|
1605
1600
|
<dl class="details">
|
|
1601
|
+
|
|
1602
|
+
<dt class="tag-description">Description:</dt>
|
|
1603
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the origin of this resource. The origin may be either the string
|
|
1604
|
+
"source" or "target". Source origin resources are ones that are extracted
|
|
1605
|
+
from the source code, whereas target ones are translations from the
|
|
1606
|
+
translators.</li></ul></dd>
|
|
1607
|
+
|
|
1606
1608
|
|
|
1607
1609
|
|
|
1608
1610
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1646,14 +1648,6 @@ When false, we should simply substitute the source back
|
|
|
1646
1648
|
|
|
1647
1649
|
|
|
1648
1650
|
|
|
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
1651
|
|
|
1658
1652
|
|
|
1659
1653
|
|
|
@@ -1676,8 +1670,7 @@ translators.
|
|
|
1676
1670
|
|
|
1677
1671
|
|
|
1678
1672
|
|
|
1679
|
-
|
|
1680
|
-
<h5>Returns:</h5>
|
|
1673
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1681
1674
|
|
|
1682
1675
|
|
|
1683
1676
|
<div class="param-desc">
|
|
@@ -1695,6 +1688,7 @@ translators.
|
|
|
1695
1688
|
<span class="param-type">String</span>
|
|
1696
1689
|
|
|
1697
1690
|
|
|
1691
|
+
|
|
1698
1692
|
</dd>
|
|
1699
1693
|
</dl>
|
|
1700
1694
|
|
|
@@ -1715,6 +1709,11 @@ translators.
|
|
|
1715
1709
|
|
|
1716
1710
|
|
|
1717
1711
|
<dl class="details">
|
|
1712
|
+
|
|
1713
|
+
<dt class="tag-description">Description:</dt>
|
|
1714
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the original path to the file from which this resource was
|
|
1715
|
+
originally extracted.</li></ul></dd>
|
|
1716
|
+
|
|
1718
1717
|
|
|
1719
1718
|
|
|
1720
1719
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1758,13 +1757,6 @@ translators.
|
|
|
1758
1757
|
|
|
1759
1758
|
|
|
1760
1759
|
|
|
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
1760
|
|
|
1769
1761
|
|
|
1770
1762
|
|
|
@@ -1787,7 +1779,7 @@ originally extracted.
|
|
|
1787
1779
|
|
|
1788
1780
|
|
|
1789
1781
|
|
|
1790
|
-
<h5>Returns:</h5>
|
|
1782
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1791
1783
|
|
|
1792
1784
|
|
|
1793
1785
|
<div class="param-desc">
|
|
@@ -1805,6 +1797,7 @@ originally extracted.
|
|
|
1805
1797
|
<span class="param-type">String</span>
|
|
1806
1798
|
|
|
1807
1799
|
|
|
1800
|
+
|
|
1808
1801
|
</dd>
|
|
1809
1802
|
</dl>
|
|
1810
1803
|
|
|
@@ -1825,6 +1818,10 @@ originally extracted.
|
|
|
1825
1818
|
|
|
1826
1819
|
|
|
1827
1820
|
<dl class="details">
|
|
1821
|
+
|
|
1822
|
+
<dt class="tag-description">Description:</dt>
|
|
1823
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the project that this resource was found in.</li></ul></dd>
|
|
1824
|
+
|
|
1828
1825
|
|
|
1829
1826
|
|
|
1830
1827
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1868,12 +1865,6 @@ originally extracted.
|
|
|
1868
1865
|
|
|
1869
1866
|
|
|
1870
1867
|
|
|
1871
|
-
<div class="description usertext">
|
|
1872
|
-
Return the project that this resource was found in.
|
|
1873
|
-
</div>
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
1868
|
|
|
1878
1869
|
|
|
1879
1870
|
|
|
@@ -1896,7 +1887,7 @@ originally extracted.
|
|
|
1896
1887
|
|
|
1897
1888
|
|
|
1898
1889
|
|
|
1899
|
-
<h5>Returns:</h5>
|
|
1890
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1900
1891
|
|
|
1901
1892
|
|
|
1902
1893
|
<div class="param-desc">
|
|
@@ -1914,6 +1905,7 @@ originally extracted.
|
|
|
1914
1905
|
<span class="param-type">String</span>
|
|
1915
1906
|
|
|
1916
1907
|
|
|
1908
|
+
|
|
1917
1909
|
</dd>
|
|
1918
1910
|
</dl>
|
|
1919
1911
|
|
|
@@ -1934,6 +1926,10 @@ originally extracted.
|
|
|
1934
1926
|
|
|
1935
1927
|
|
|
1936
1928
|
<dl class="details">
|
|
1929
|
+
|
|
1930
|
+
<dt class="tag-description">Description:</dt>
|
|
1931
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the source string or strings for this resource.</li></ul></dd>
|
|
1932
|
+
|
|
1937
1933
|
|
|
1938
1934
|
|
|
1939
1935
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1977,12 +1973,6 @@ originally extracted.
|
|
|
1977
1973
|
|
|
1978
1974
|
|
|
1979
1975
|
|
|
1980
|
-
<div class="description usertext">
|
|
1981
|
-
Return the source string or strings for this resource.
|
|
1982
|
-
</div>
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
1976
|
|
|
1987
1977
|
|
|
1988
1978
|
|
|
@@ -2005,7 +1995,7 @@ originally extracted.
|
|
|
2005
1995
|
|
|
2006
1996
|
|
|
2007
1997
|
|
|
2008
|
-
<h5>Returns:</h5>
|
|
1998
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
2009
1999
|
|
|
2010
2000
|
|
|
2011
2001
|
<div class="param-desc">
|
|
@@ -2030,6 +2020,7 @@ strings of this resource
|
|
|
2030
2020
|
<span class="param-type">Object</span>
|
|
2031
2021
|
|
|
2032
2022
|
|
|
2023
|
+
|
|
2033
2024
|
</dd>
|
|
2034
2025
|
</dl>
|
|
2035
2026
|
|
|
@@ -2050,6 +2041,11 @@ strings of this resource
|
|
|
2050
2041
|
|
|
2051
2042
|
|
|
2052
2043
|
<dl class="details">
|
|
2044
|
+
|
|
2045
|
+
<dt class="tag-description">Description:</dt>
|
|
2046
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the source locale of this resource, or undefined if there
|
|
2047
|
+
is no context or the locale is the same as the project's source locale.</li></ul></dd>
|
|
2048
|
+
|
|
2053
2049
|
|
|
2054
2050
|
|
|
2055
2051
|
<dt class="tag-source">Source:</dt>
|
|
@@ -2093,13 +2089,6 @@ strings of this resource
|
|
|
2093
2089
|
|
|
2094
2090
|
|
|
2095
2091
|
|
|
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
2092
|
|
|
2104
2093
|
|
|
2105
2094
|
|
|
@@ -2122,7 +2111,7 @@ is no context or the locale is the same as the project's source locale.
|
|
|
2122
2111
|
|
|
2123
2112
|
|
|
2124
2113
|
|
|
2125
|
-
<h5>Returns:</h5>
|
|
2114
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
2126
2115
|
|
|
2127
2116
|
|
|
2128
2117
|
<div class="param-desc">
|
|
@@ -2144,6 +2133,7 @@ is no locale.
|
|
|
2144
2133
|
<span class="param-type">undefined</span>
|
|
2145
2134
|
|
|
2146
2135
|
|
|
2136
|
+
|
|
2147
2137
|
</dd>
|
|
2148
2138
|
</dl>
|
|
2149
2139
|
|
|
@@ -2164,6 +2154,12 @@ is no locale.
|
|
|
2164
2154
|
|
|
2165
2155
|
|
|
2166
2156
|
<dl class="details">
|
|
2157
|
+
|
|
2158
|
+
<dt class="tag-description">Description:</dt>
|
|
2159
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the state of this resource. This is a string that gives the
|
|
2160
|
+
stage of life of this resource. Currently, it can be one of "new",
|
|
2161
|
+
"translated", or "accepted".</li></ul></dd>
|
|
2162
|
+
|
|
2167
2163
|
|
|
2168
2164
|
|
|
2169
2165
|
<dt class="tag-source">Source:</dt>
|
|
@@ -2207,14 +2203,6 @@ is no locale.
|
|
|
2207
2203
|
|
|
2208
2204
|
|
|
2209
2205
|
|
|
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
2206
|
|
|
2219
2207
|
|
|
2220
2208
|
|
|
@@ -2237,7 +2225,7 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
2237
2225
|
|
|
2238
2226
|
|
|
2239
2227
|
|
|
2240
|
-
<h5>Returns:</h5>
|
|
2228
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
2241
2229
|
|
|
2242
2230
|
|
|
2243
2231
|
<div class="param-desc">
|
|
@@ -2255,6 +2243,7 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
2255
2243
|
<span class="param-type">String</span>
|
|
2256
2244
|
|
|
2257
2245
|
|
|
2246
|
+
|
|
2258
2247
|
</dd>
|
|
2259
2248
|
</dl>
|
|
2260
2249
|
|
|
@@ -2275,6 +2264,10 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
2275
2264
|
|
|
2276
2265
|
|
|
2277
2266
|
<dl class="details">
|
|
2267
|
+
|
|
2268
|
+
<dt class="tag-description">Description:</dt>
|
|
2269
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the target string or strings for this resource.</li></ul></dd>
|
|
2270
|
+
|
|
2278
2271
|
|
|
2279
2272
|
|
|
2280
2273
|
<dt class="tag-source">Source:</dt>
|
|
@@ -2318,9 +2311,6 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
2318
2311
|
|
|
2319
2312
|
|
|
2320
2313
|
|
|
2321
|
-
<div class="description usertext">
|
|
2322
|
-
Return the target string or strings for this resource.
|
|
2323
|
-
</div>
|
|
2324
2314
|
|
|
2325
2315
|
|
|
2326
2316
|
|
|
@@ -2343,10 +2333,7 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
2343
2333
|
|
|
2344
2334
|
|
|
2345
2335
|
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
<h5>Returns:</h5>
|
|
2336
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
2350
2337
|
|
|
2351
2338
|
|
|
2352
2339
|
<div class="param-desc">
|
|
@@ -2371,6 +2358,7 @@ strings of this resource
|
|
|
2371
2358
|
<span class="param-type">Object</span>
|
|
2372
2359
|
|
|
2373
2360
|
|
|
2361
|
+
|
|
2374
2362
|
</dd>
|
|
2375
2363
|
</dl>
|
|
2376
2364
|
|
|
@@ -2391,6 +2379,11 @@ strings of this resource
|
|
|
2391
2379
|
|
|
2392
2380
|
|
|
2393
2381
|
<dl class="details">
|
|
2382
|
+
|
|
2383
|
+
<dt class="tag-description">Description:</dt>
|
|
2384
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the target locale of this resource, or undefined if the resource
|
|
2385
|
+
is a source-only resource.</li></ul></dd>
|
|
2386
|
+
|
|
2394
2387
|
|
|
2395
2388
|
|
|
2396
2389
|
<dt class="tag-source">Source:</dt>
|
|
@@ -2434,13 +2427,6 @@ strings of this resource
|
|
|
2434
2427
|
|
|
2435
2428
|
|
|
2436
2429
|
|
|
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
2430
|
|
|
2445
2431
|
|
|
2446
2432
|
|
|
@@ -2463,7 +2449,7 @@ is a source-only resource.
|
|
|
2463
2449
|
|
|
2464
2450
|
|
|
2465
2451
|
|
|
2466
|
-
<h5>Returns:</h5>
|
|
2452
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
2467
2453
|
|
|
2468
2454
|
|
|
2469
2455
|
<div class="param-desc">
|
|
@@ -2485,6 +2471,7 @@ is no locale.
|
|
|
2485
2471
|
<span class="param-type">undefined</span>
|
|
2486
2472
|
|
|
2487
2473
|
|
|
2474
|
+
|
|
2488
2475
|
</dd>
|
|
2489
2476
|
</dl>
|
|
2490
2477
|
|
|
@@ -2505,6 +2492,11 @@ is no locale.
|
|
|
2505
2492
|
|
|
2506
2493
|
|
|
2507
2494
|
<dl class="details">
|
|
2495
|
+
|
|
2496
|
+
<dt class="tag-description">Description:</dt>
|
|
2497
|
+
<dd class="tag-description"><ul class="dummy"><li>Return the resource type of this resource. This is one of
|
|
2498
|
+
string, array, or plural.</li></ul></dd>
|
|
2499
|
+
|
|
2508
2500
|
|
|
2509
2501
|
|
|
2510
2502
|
<dt class="tag-source">Source:</dt>
|
|
@@ -2548,13 +2540,6 @@ is no locale.
|
|
|
2548
2540
|
|
|
2549
2541
|
|
|
2550
2542
|
|
|
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
2543
|
|
|
2559
2544
|
|
|
2560
2545
|
|
|
@@ -2577,7 +2562,7 @@ string, array, or plural.
|
|
|
2577
2562
|
|
|
2578
2563
|
|
|
2579
2564
|
|
|
2580
|
-
<h5>Returns:</h5>
|
|
2565
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
2581
2566
|
|
|
2582
2567
|
|
|
2583
2568
|
<div class="param-desc">
|
|
@@ -2595,6 +2580,7 @@ string, array, or plural.
|
|
|
2595
2580
|
<span class="param-type">String</span>
|
|
2596
2581
|
|
|
2597
2582
|
|
|
2583
|
+
|
|
2598
2584
|
</dd>
|
|
2599
2585
|
</dl>
|
|
2600
2586
|
|
|
@@ -2615,6 +2601,13 @@ string, array, or plural.
|
|
|
2615
2601
|
|
|
2616
2602
|
|
|
2617
2603
|
<dl class="details">
|
|
2604
|
+
|
|
2605
|
+
<dt class="tag-description">Description:</dt>
|
|
2606
|
+
<dd class="tag-description"><ul class="dummy"><li>Check if the given resource is an instance of the current
|
|
2607
|
+
resource. This method returns true if all properties which
|
|
2608
|
+
affect the possible translation match between the given and
|
|
2609
|
+
the current resource.</li></ul></dd>
|
|
2610
|
+
|
|
2618
2611
|
|
|
2619
2612
|
|
|
2620
2613
|
<dt class="tag-source">Source:</dt>
|
|
@@ -2658,15 +2651,6 @@ string, array, or plural.
|
|
|
2658
2651
|
|
|
2659
2652
|
|
|
2660
2653
|
|
|
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
2654
|
|
|
2671
2655
|
|
|
2672
2656
|
|
|
@@ -2675,7 +2659,7 @@ the current resource.
|
|
|
2675
2659
|
|
|
2676
2660
|
|
|
2677
2661
|
|
|
2678
|
-
<h5>Parameters:</h5>
|
|
2662
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
2679
2663
|
|
|
2680
2664
|
|
|
2681
2665
|
<table class="params">
|
|
@@ -2709,6 +2693,7 @@ the current resource.
|
|
|
2709
2693
|
<span class="param-type"><a href="Resource.html">Resource</a></span>
|
|
2710
2694
|
|
|
2711
2695
|
|
|
2696
|
+
|
|
2712
2697
|
|
|
2713
2698
|
</td>
|
|
2714
2699
|
|
|
@@ -2738,7 +2723,7 @@ the current resource.
|
|
|
2738
2723
|
|
|
2739
2724
|
|
|
2740
2725
|
|
|
2741
|
-
<h5>Returns:</h5>
|
|
2726
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
2742
2727
|
|
|
2743
2728
|
|
|
2744
2729
|
<div class="param-desc">
|
|
@@ -2757,6 +2742,7 @@ the current resource, false otherwise.
|
|
|
2757
2742
|
<span class="param-type">boolean</span>
|
|
2758
2743
|
|
|
2759
2744
|
|
|
2745
|
+
|
|
2760
2746
|
</dd>
|
|
2761
2747
|
</dl>
|
|
2762
2748
|
|
|
@@ -2777,6 +2763,13 @@ the current resource, false otherwise.
|
|
|
2777
2763
|
|
|
2778
2764
|
|
|
2779
2765
|
<dl class="details">
|
|
2766
|
+
|
|
2767
|
+
<dt class="tag-description">Description:</dt>
|
|
2768
|
+
<dd class="tag-description"><ul class="dummy"><li>Return true if the other resource represents the same resource as
|
|
2769
|
+
the current one. The project, context, locale, key, flavor, and type must
|
|
2770
|
+
match. Other fields such as the pathName, state, and comment fields are
|
|
2771
|
+
ignored as minor variations.</li></ul></dd>
|
|
2772
|
+
|
|
2780
2773
|
|
|
2781
2774
|
|
|
2782
2775
|
<dt class="tag-source">Source:</dt>
|
|
@@ -2820,15 +2813,6 @@ the current resource, false otherwise.
|
|
|
2820
2813
|
|
|
2821
2814
|
|
|
2822
2815
|
|
|
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
2816
|
|
|
2833
2817
|
|
|
2834
2818
|
|
|
@@ -2837,7 +2821,7 @@ ignored as minor variations.
|
|
|
2837
2821
|
|
|
2838
2822
|
|
|
2839
2823
|
|
|
2840
|
-
<h5>Parameters:</h5>
|
|
2824
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
2841
2825
|
|
|
2842
2826
|
|
|
2843
2827
|
<table class="params">
|
|
@@ -2871,6 +2855,7 @@ ignored as minor variations.
|
|
|
2871
2855
|
<span class="param-type"><a href="Resource.html">Resource</a></span>
|
|
2872
2856
|
|
|
2873
2857
|
|
|
2858
|
+
|
|
2874
2859
|
|
|
2875
2860
|
</td>
|
|
2876
2861
|
|
|
@@ -2900,7 +2885,7 @@ ignored as minor variations.
|
|
|
2900
2885
|
|
|
2901
2886
|
|
|
2902
2887
|
|
|
2903
|
-
<h5>Returns:</h5>
|
|
2888
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
2904
2889
|
|
|
2905
2890
|
|
|
2906
2891
|
<div class="param-desc">
|
|
@@ -2918,6 +2903,7 @@ ignored as minor variations.
|
|
|
2918
2903
|
<span class="param-type">boolean</span>
|
|
2919
2904
|
|
|
2920
2905
|
|
|
2906
|
+
|
|
2921
2907
|
</dd>
|
|
2922
2908
|
</dl>
|
|
2923
2909
|
|
|
@@ -2938,6 +2924,10 @@ ignored as minor variations.
|
|
|
2938
2924
|
|
|
2939
2925
|
|
|
2940
2926
|
<dl class="details">
|
|
2927
|
+
|
|
2928
|
+
<dt class="tag-description">Description:</dt>
|
|
2929
|
+
<dd class="tag-description"><ul class="dummy"><li>Set the translator's comment for this resource.</li></ul></dd>
|
|
2930
|
+
|
|
2941
2931
|
|
|
2942
2932
|
|
|
2943
2933
|
<dt class="tag-source">Source:</dt>
|
|
@@ -2981,12 +2971,6 @@ ignored as minor variations.
|
|
|
2981
2971
|
|
|
2982
2972
|
|
|
2983
2973
|
|
|
2984
|
-
<div class="description usertext">
|
|
2985
|
-
Set the translator's comment for this resource.
|
|
2986
|
-
</div>
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
2974
|
|
|
2991
2975
|
|
|
2992
2976
|
|
|
@@ -2995,7 +2979,7 @@ ignored as minor variations.
|
|
|
2995
2979
|
|
|
2996
2980
|
|
|
2997
2981
|
|
|
2998
|
-
<h5>Parameters:</h5>
|
|
2982
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
2999
2983
|
|
|
3000
2984
|
|
|
3001
2985
|
<table class="params">
|
|
@@ -3032,6 +3016,7 @@ ignored as minor variations.
|
|
|
3032
3016
|
<span class="param-type">undefined</span>
|
|
3033
3017
|
|
|
3034
3018
|
|
|
3019
|
+
|
|
3035
3020
|
|
|
3036
3021
|
</td>
|
|
3037
3022
|
|
|
@@ -3078,6 +3063,11 @@ undefined to clear the comment</td>
|
|
|
3078
3063
|
|
|
3079
3064
|
|
|
3080
3065
|
<dl class="details">
|
|
3066
|
+
|
|
3067
|
+
<dt class="tag-description">Description:</dt>
|
|
3068
|
+
<dd class="tag-description"><ul class="dummy"><li>Set the project of this resource. This is a string that gives the
|
|
3069
|
+
id of the project for this resource.</li></ul></dd>
|
|
3070
|
+
|
|
3081
3071
|
|
|
3082
3072
|
|
|
3083
3073
|
<dt class="tag-source">Source:</dt>
|
|
@@ -3121,13 +3111,6 @@ undefined to clear the comment</td>
|
|
|
3121
3111
|
|
|
3122
3112
|
|
|
3123
3113
|
|
|
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
3114
|
|
|
3132
3115
|
|
|
3133
3116
|
|
|
@@ -3136,7 +3119,7 @@ id of the project for this resource.
|
|
|
3136
3119
|
|
|
3137
3120
|
|
|
3138
3121
|
|
|
3139
|
-
<h5>Parameters:</h5>
|
|
3122
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
3140
3123
|
|
|
3141
3124
|
|
|
3142
3125
|
<table class="params">
|
|
@@ -3170,6 +3153,7 @@ id of the project for this resource.
|
|
|
3170
3153
|
<span class="param-type">Project</span>
|
|
3171
3154
|
|
|
3172
3155
|
|
|
3156
|
+
|
|
3173
3157
|
|
|
3174
3158
|
</td>
|
|
3175
3159
|
|
|
@@ -3215,6 +3199,10 @@ id of the project for this resource.
|
|
|
3215
3199
|
|
|
3216
3200
|
|
|
3217
3201
|
<dl class="details">
|
|
3202
|
+
|
|
3203
|
+
<dt class="tag-description">Description:</dt>
|
|
3204
|
+
<dd class="tag-description"><ul class="dummy"><li>Set the source locale of this resource.</li></ul></dd>
|
|
3205
|
+
|
|
3218
3206
|
|
|
3219
3207
|
|
|
3220
3208
|
<dt class="tag-source">Source:</dt>
|
|
@@ -3258,10 +3246,6 @@ id of the project for this resource.
|
|
|
3258
3246
|
|
|
3259
3247
|
|
|
3260
3248
|
|
|
3261
|
-
<div class="description usertext">
|
|
3262
|
-
Set the source locale of this resource.
|
|
3263
|
-
</div>
|
|
3264
|
-
|
|
3265
3249
|
|
|
3266
3250
|
|
|
3267
3251
|
|
|
@@ -3270,9 +3254,7 @@ id of the project for this resource.
|
|
|
3270
3254
|
|
|
3271
3255
|
|
|
3272
3256
|
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
<h5>Parameters:</h5>
|
|
3257
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
3276
3258
|
|
|
3277
3259
|
|
|
3278
3260
|
<table class="params">
|
|
@@ -3306,6 +3288,7 @@ id of the project for this resource.
|
|
|
3306
3288
|
<span class="param-type">String</span>
|
|
3307
3289
|
|
|
3308
3290
|
|
|
3291
|
+
|
|
3309
3292
|
|
|
3310
3293
|
</td>
|
|
3311
3294
|
|
|
@@ -3351,6 +3334,12 @@ id of the project for this resource.
|
|
|
3351
3334
|
|
|
3352
3335
|
|
|
3353
3336
|
<dl class="details">
|
|
3337
|
+
|
|
3338
|
+
<dt class="tag-description">Description:</dt>
|
|
3339
|
+
<dd class="tag-description"><ul class="dummy"><li>Set the state of this resource. This is a string that gives the
|
|
3340
|
+
stage of life of this resource. Currently, it can be one of "new",
|
|
3341
|
+
"translated", or "accepted".</li></ul></dd>
|
|
3342
|
+
|
|
3354
3343
|
|
|
3355
3344
|
|
|
3356
3345
|
<dt class="tag-source">Source:</dt>
|
|
@@ -3394,13 +3383,6 @@ id of the project for this resource.
|
|
|
3394
3383
|
|
|
3395
3384
|
|
|
3396
3385
|
|
|
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
3386
|
|
|
3405
3387
|
|
|
3406
3388
|
|
|
@@ -3409,8 +3391,7 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
3409
3391
|
|
|
3410
3392
|
|
|
3411
3393
|
|
|
3412
|
-
|
|
3413
|
-
<h5>Parameters:</h5>
|
|
3394
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
3414
3395
|
|
|
3415
3396
|
|
|
3416
3397
|
<table class="params">
|
|
@@ -3444,6 +3425,7 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
3444
3425
|
<span class="param-type">String</span>
|
|
3445
3426
|
|
|
3446
3427
|
|
|
3428
|
+
|
|
3447
3429
|
|
|
3448
3430
|
</td>
|
|
3449
3431
|
|
|
@@ -3489,6 +3471,10 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
3489
3471
|
|
|
3490
3472
|
|
|
3491
3473
|
<dl class="details">
|
|
3474
|
+
|
|
3475
|
+
<dt class="tag-description">Description:</dt>
|
|
3476
|
+
<dd class="tag-description"><ul class="dummy"><li>Set the target locale of this resource.</li></ul></dd>
|
|
3477
|
+
|
|
3492
3478
|
|
|
3493
3479
|
|
|
3494
3480
|
<dt class="tag-source">Source:</dt>
|
|
@@ -3532,9 +3518,6 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
3532
3518
|
|
|
3533
3519
|
|
|
3534
3520
|
|
|
3535
|
-
<div class="description usertext">
|
|
3536
|
-
Set the target locale of this resource.
|
|
3537
|
-
</div>
|
|
3538
3521
|
|
|
3539
3522
|
|
|
3540
3523
|
|
|
@@ -3543,10 +3526,7 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
3543
3526
|
|
|
3544
3527
|
|
|
3545
3528
|
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
<h5>Parameters:</h5>
|
|
3529
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
3550
3530
|
|
|
3551
3531
|
|
|
3552
3532
|
<table class="params">
|
|
@@ -3580,6 +3560,7 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
3580
3560
|
<span class="param-type">String</span>
|
|
3581
3561
|
|
|
3582
3562
|
|
|
3563
|
+
|
|
3583
3564
|
|
|
3584
3565
|
</td>
|
|
3585
3566
|
|
|
@@ -3632,7 +3613,7 @@ stage of life of this resource. Currently, it can be one of "new",
|
|
|
3632
3613
|
<br class="clear">
|
|
3633
3614
|
|
|
3634
3615
|
<footer>
|
|
3635
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc
|
|
3616
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.0</a> on Tue Jan 24 2023 22:21:49 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
3636
3617
|
</footer>
|
|
3637
3618
|
|
|
3638
3619
|
<script>prettyPrint();</script>
|