-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mvp-tema-i18n (#9): _data/Temporarium.yml e fn/Conatum para ajudar a …
…por strings que ainda não estão prontas para colaboração via planilha do docs
- Loading branch information
Showing
6 changed files
with
123 additions
and
2 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Trivia: | ||
# - 'temporārium' | ||
# - https://en.wiktionary.org/wiki/temporarius#Latin | ||
# - cōnātum | ||
# - https://en.wiktionary.org/wiki/conatus#Latin | ||
# - retractum | ||
# - https://en.wiktionary.org/wiki/retractus#Latin | ||
# - "fallback" | ||
# - https://en.wiktionary.org/wiki/fallback | ||
|
||
temp1: | | ||
<p> | ||
No message | ||
</p> | ||
temp1eng: | | ||
<p> | ||
Note: this section allows you to interactively preview OpenAPI files | ||
and even execute requests from your browser without leaving the | ||
hapi.etica.ai website (some APIs even documented in more than one language!). | ||
Some documentation, either by the original API or by using the original | ||
description of the site, may be written in the first person, but obviously | ||
this is not the volunteers compiling the documentation. | ||
</p> | ||
<p> | ||
Exceptions to this rule are translation errors and / or failures | ||
in relation to updates but APIs reported here. | ||
In this case is our fault, not the API provider, | ||
so let us know! | ||
</p> | ||
temp1por: | | ||
<p> | ||
Nota: esta seção permite pré- visualizar de forma interativa arquivos OpenAPI | ||
e até mesmo executar requisições do seu navegador sem sair do site hapi.etica.ai | ||
(algumas API inclusive documentadas em mais de um idioma!). Algumas documentações, | ||
seja pela API original ou por usarmos descrição original do site, podem ser escritas | ||
em primeira pessoa que, <strong>obviamente</strong>, não se trata de voluntários | ||
em compilar as documentações. | ||
</p> | ||
<p> | ||
Exceção a esta regra são erros de tradução e/ou falhas em relação a atualizações mas APIs | ||
informadas aqui. Nesse caso nos avise! | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% capture vocab_no_spaces %}{% include fn/Conatum-corpus.liquid prefix=include.prefix suffix=include.suffix %}{% endcapture %}{{ vocab_no_spaces | strip }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{% comment %} | ||
Conatum-corpus.liquid try select the first availible data from | ||
_data/Temporarium.yml | ||
{% endcomment %} | ||
|
||
{% if include.prefix %} | ||
{% comment %}Array? String with , ?{% endcomment %} | ||
{% if include.prefix[0] %} | ||
{% assign prefix_est = include.prefix %} | ||
{% else %} | ||
{% assign prefix_est = include.prefix | remove: " " | split: "," %} | ||
{% endif %} | ||
{% else %} | ||
{% assign prefix_est = nil %} | ||
{% endif %} | ||
|
||
{% if include.suffix %} | ||
{% comment %}Array? String with , ?{% endcomment %} | ||
{% if include.suffix[0] %} | ||
{% assign suffix_est = include.suffix %} | ||
{% else %} | ||
{% assign suffix_est = include.suffix | remove: " " | split: "," %} | ||
{% endif %} | ||
{% else %} | ||
{% assign suffix_est = nil %} | ||
{% endif %} | ||
|
||
{% comment %} | ||
prefix_est | ||
{{ prefix_est | json }} | ||
suffix_est | ||
{{ suffix_est | json }} | ||
{% endcomment %} | ||
|
||
{% comment %} | ||
This is a loop. | ||
{% endcomment %} | ||
{% for prefix in prefix_est %} | ||
{% unless resultatum_okay == true %} | ||
{% if suffix_est == nil %} | ||
{% if site.data.Temporarium[prefix] %} | ||
{{ site.data.Temporarium[prefix] }} | ||
{% assign resultatum_okay = true %} | ||
{{ break }} | ||
{% endif %} | ||
{% else %} | ||
{% for suffix in suffix_est %} | ||
{% capture prefix_suffix %}{{ prefix }}{{ suffix }}{% endcapture %} | ||
{% if site.data.Temporarium[prefix_suffix] %} | ||
{{ site.data.Temporarium[prefix_suffix] }} | ||
{% assign resultatum_okay = true %} | ||
{{ break }} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endunless %} | ||
{% endfor %} | ||
|
||
{% comment %} | ||
[[[[[{{ prefix_est | json }}]]]]] | ||
[[[[[{{ suffix_est | inpect }}]]]]] | ||
{% endcomment %} | ||
|
||
{% if resultatum_okay != true %} | ||
!!Conatum [{{ include | inpect }}]!! | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters