translate

This commit is contained in:
Ilya Kantor 2019-04-14 17:09:12 +03:00
parent 1d19bcbe6c
commit 7e59d4b13e
2 changed files with 42 additions and 3 deletions

37
AUTHORING.md Normal file
View file

@ -0,0 +1,37 @@
# Authoring
This describes important stuff about authoring new articles of the tutorial.
## Internal links
All tutorial links should start from the root, not including the domain.
✅ OK:
```md
We'll cover that in the chapter [about functions](/function-basics)
```
❌ Not ok:
```md
We'll cover that in the chapter [about functions](https://javascript.info/function-basics)
```
Also, to reference a chapter, there's a special "info:" scheme, like this:
```md
We'll cover that in the chapter <info:function-basics>.
```
Becomes:
```html
We'll cover that in the chapter <a href="/function-basics">Function basics</a>.
```
The title is auto-inserted from the referenced article. That has the benefit of keeping the right title if the article gets renamed.
## TODO
Ask @iliakan to for more details.

View file

@ -62,7 +62,7 @@ documento.querySelector('.hola').interiorHTML = texto;
## External Links ## External Links
If an external link is to Wikipedia, e.g. <https://en.wikipedia.org/wiki/JavaScript>, and a version of that article exists in your language that is of decent quality, consider linking to that version instead. If an external link is to Wikipedia, e.g. https://en.wikipedia.org/wiki/JavaScript, and a version of that article exists in your language that is of decent quality, consider linking to that version instead.
Example: Example:
@ -70,10 +70,12 @@ Example:
[JavaScript](https://en.wikipedia.org/wiki/JavaScript) is a programming language. [JavaScript](https://en.wikipedia.org/wiki/JavaScript) is a programming language.
``` ```
✅ OK: ✅ OK (en -> es):
```md ```md
[JavaScript](https://es.wikipedia.org/wiki/JavaScript) es un lenguaje de programación. [JavaScript](https://es.wikipedia.org/wiki/JavaScript) es un lenguaje de programación.
``` ```
For links that have no equivalent, just use the English link. For links to MDN, that are only partially translated, also use the language-specific version.
If a linked article has no translated version, leave the link "as is".