AsciiDoctor supports two type of lists: ordered and unordered.
-To get more information about lists check link:https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/#lists[AsciiDoc Syntax Quick Reference]
+To get more information about lists check link:https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/#lists[AsciiDoc Syntax Quick Reference].
When a new translation is first created, the directory structure must be created or copied from the English original:
-. Create a directory for the new translation.
+. Create a directory for the new translation. The English article source is in [.filename]#~/doc/documentation/content/en/articles/leap-seconds/#. The Spanish translation will go in [.filename]#~/doc/documentation/content/es/articles/leap-seconds/#. The path is the same except for the name of the language directory.
The English article source is in [.filename]#~/doc/en/articles/leap-seconds/#.
The Spanish translation will go in [.filename]#~/doc/es/articles/leap-seconds/#.
The path is the same except for the name of the language directory.
. Use a PO editor to enter translations in the PO file. There are several different editors available. [.filename]#poedit# from package:editors/poedit[] is shown here.
+
-The PO file name is the language region code.
-For Spanish, the file name is [.filename]#es.po#.
The name of the generated document matches the name of the English original, usually [.filename]#_index.adoc#.
@@ -125,6 +138,7 @@
+
[source,shell]
....
+% cd ~/doc/documentation
% make
....
====
@@ -143,113 +157,94 @@
| Language
| Region
| Translated Directory Name
-| PO File Name
|English
|United States
|[.filename]#en#
-|[.filename]#en.po#
|Bengali
|Bangladesh
|[.filename]#bn#
-|[.filename]#bn.po#
|Danish
|Denmark
|[.filename]#da#
-|[.filename]#da.po#
|German
|Germany
|[.filename]#de#
-|[.filename]#de.po#
|Greek
|Greece
|[.filename]#el#
-|[.filename]#el.po#
|Spanish
|Spain
|[.filename]#es#
-|[.filename]#es.po#
|French
|France
|[.filename]#fr#
-|[.filename]#fr.po#
|Hungarian
|Hungary
|[.filename]#hu#
-|[.filename]#hu.po#
|Italian
|Italy
|[.filename]#it#
-|[.filename]#it.po#
|Japanese
|Japan
|[.filename]#ja#
-|[.filename]#ja.po#
|Korean
|Korea
|[.filename]#ko#
-|[.filename]#ko.po#
|Mongolian
|Mongolia
|[.filename]#mn#
-|[.filename]#mn.po#
|Dutch
|Netherlands
|[.filename]#nl#
-|[.filename]#nl.po#
|Polish
|Poland
|[.filename]#pl#
-|[.filename]#pl.po#
|Portuguese
|Brazil
|[.filename]#pt-br#
-|[.filename]#pt-br.po#
|Russian
|Russia
|[.filename]#ru#
-|[.filename]#ru.po#
|Turkish
|Turkey
|[.filename]#tr#
-|[.filename]#tr.po#
|Chinese
|China
|[.filename]#zh-cn#
-|[.filename]#zh-cn.po#
|Chinese
|Taiwan
|[.filename]#zh-tw#
-|[.filename]#zh-tw.po#
|===
The translations are in subdirectories of the main documentation directory,
-here assumed to be [.filename]#~/doc/# as shown in crossref:overview[overview-quick-start,Quick Start].
-For example, German translations are located in [.filename]#~/doc/de/#, and French translations are in [.filename]#~/doc/fr/#.
+here assumed to be [.filename]#~/doc/documentation/# as shown in <<overview-quick-start>>.
+For example, German translations are located in [.filename]#~/doc/documentation/content/de/#,
+and French translations are in [.filename]#~/doc/documentation/content/fr/#.
Each language directory contains separate subdirectories named for the type of documents, usually [.filename]#articles/# and [.filename]#books/#.
Combining these directory names gives the complete path to an article or book.
-For example, the French translation of the NanoBSD article is in [.filename]#~/doc/fr/articles/nanobsd/#,
-and the Mongolian translation of the Handbook is in [.filename]#~/doc/mn/books/handbook/#.
+For example, the French translation of the NanoBSD article is in [.filename]#~/doc/documentation/content/fr/articles/nanobsd/#,
+and the Mongolian translation of the Handbook is in [.filename]#~/doc/documentation/content/mn/books/handbook/#.
A new language directory must be created when translating a document to a new language.
If the language directory already exists, only a subdirectory in the [.filename]#articles/# or [.filename]#books/# directory is needed.
@@ -259,16 +254,16 @@
[example]
====
Create a new Spanish translation of the link:{porters-handbook}[Porter's Handbook].
-The original is a book in [.filename]#~/doc/en/books/porters-handbook/#.
+The original is a book in [.filename]#~/doc/documentation/content/en/books/porters-handbook/#.
[.procedure]
======
-. The Spanish language books directory [.filename]#~/doc/es/books/# already exists, so only a new subdirectory for the Porter's Handbook is needed:
+. The Spanish language books directory [.filename]#~/doc/documentation/content/es/books/# already exists, so only a new subdirectory for the Porter's Handbook is needed:
Now the document structure is ready for the translator to begin translating with `po4a` command.
@@ -305,26 +300,35 @@
.Translating the Porter's Handbook to Spanish
[example]
====
-Enter Spanish translations of the contents of the Porter's Handbook.
[.procedure]
======
-. Change to the Spanish Porter's Handbook directory and update the PO file. The generated PO file is called [.filename]#es_ES.po# as shown in <<po-translations-language-names>>.
+. Change to the base directory and update all PO files.
-https://cgit.FreeBSD.org/[cgit.FreeBSD.org] is a public `git` server.
+https://git.FreeBSD.org/[git.FreeBSD.org] is a public `git` server.
[NOTE]
====
@@ -78,14 +78,14 @@
You should be comfortable using git.
This will allow you to see what has changed between different versions of the files that make up the documentation.
-For example, to view the differences between revisions `832fed5c` and `11cd6edd` run:
+For example, to view the differences between revisions `abff932fe8` and `2191c44469` of [.filename]#documentation/content/en/articles/committers-guide/_index.adoc#, run:
-Please see the complete explanation of using Git in FreeBSD in the link:{committers-guide}#git-primer[Git Primer].
+Please see the complete explanation of using Git in FreeBSD in the link:{handbook}mirrors/#git[FreeBSD Handbook].
== How do I find out who else might be translating to the same language?
@@ -131,6 +131,9 @@
For example, instead of `pt_BR` Hugo uses `pt-br`.
====
+Currently, the FreeBSD documentation is stored in a top level directory called [.filename]#documentation/#.
+Directories below this are named according to the language code they are written in, as defined in ISO639 ([.filename]#/usr/share/misc/iso639# on a version of FreeBSD newer than 20th January 1999).
+
If your language can be encoded in different ways (for example, Chinese) then there should be directories below this, one for each encoding format you have provided.
Finally, you should have directories for each document.
@@ -144,7 +147,7 @@
sv/
books/
faq/
- book.adoc
+ _index.adoc
....
`sv` is the name of the translation, in [.filename]#lang# form.