Merge pull request #909 from Luis-Fernando-Molina/develop

Contribution: French Language Added
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-05-11 13:26:45 -04:00
commit 631a702499
4 files changed
+56 -1

No files matched your search

@@ -0,0 +1,39 @@
{
"topic": "Docs Languages",
"pageNumber": "8",
"type": "Docs In French",
"definition": {
"text": "The Docs pages of Superalgos and other projects integrated are originally written in English. The system allows users to search and browse pages in other languages as well, as long as users have previously contributed the corresponding translations.",
"updated": 1613820592771,
"translations": [
]
},
"paragraphs": [
{
"style": "Text",
"text": "English is considered the default language. When you switch to a different language, the system attempts to show the content in the new language. However, if the translation is not yet available, it shows the English version instead.",
"updated": 1613820612132,
"translations": [
]
},
{
"style": "Text",
"text": "Node types, variable names, the title of pages in the Docs, and a few more elements of Superalgos may not be translated, as they are unique identifiers of the said elements. You will always get those in English.",
"translations": [
]
},
{
"style": "Success",
"text": "If you wish to contribute translations, read the How to Contribute Translations page."
},
{
"style": "Success",
"text": "To switch languages, click on the flags on the footer of the Docs."
},
{
"style": "Note",
"text": "You may only add or delete pages to the Docs when the language is set to English.",
"updated": 1613820648230
}
]
}
@@ -209,7 +209,13 @@ exports.newSuperalgosFunctionLibrariesDataDependenciesFunctions = function () {
let dataRecord = dataFile[i]
let begin = dataRecord[beginIndex]
let end = dataRecord[endIndex]
if (end + timeFrame < initialDatetime - 1) { continue } // /1 because we need the previous closed element
/*
We will allow 4 objects before the initial datetime in order to allow formulas with 4 .previous
not to be undefined.
-1 because we need the previous closed element
*/
if (end - timeFrame * 4 < initialDatetime - 1) { continue }
if (begin > finalDatetime) { continue }
result.push(dataRecord)
}
@@ -99,6 +99,12 @@ function newSuperalgosDocsFooter() {
}
HTML = HTML + '"></a>'
HTML = HTML + '<a href="#" onClick="UI.projects.superalgos.spaces.docsSpace.changeLanguage(\'FR\')"><img src="Images/Languages/FR.png" title="French" class="docs-footer-language'
if (languageCode === 'FR') {
HTML = HTML + '-selected'
}
HTML = HTML + '"></a>'
HTML = HTML + '<a href="#" onClick="UI.projects.superalgos.spaces.docsSpace.changeLanguage(\'CN\')"><img src="Images/Languages/CN.png" title="Simplified Chinese-Mandarin" class="docs-footer-language'
if (languageCode === 'CN') {
HTML = HTML + '-selected'
@@ -28,6 +28,10 @@ function newSuperalgosUtilitiesLanguages() {
languageLabel = 'German'
break
}
case 'FR': {
languageLabel = 'French'
break
}
case 'CN': {
languageLabel = 'Simplified Chinese-Mandarin'
break