Commit Graph

14 Commits

Author SHA1 Message Date
Danilo G. Baio 8fd03d23ef tools/translate: Use po4a-updatepo to extract strings from the source files 2023-04-20 21:14:01 -03:00
Graham Perrin 828766cbef Status: calls: template: minor improvements
AsciiDoc, not AsciiDoctor.

Delimit URIs with angle brackets
https://datatracker.ietf.org/doc/html/rfc3986#appendix-C
and then, the white spaces preceding full stops (.) can be properly
removed.

Americanise white space: one space, not two, between sentences.

Approved by:  salvadore
Pull request: https://github.com/freebsd/freebsd-doc/pull/138
2023-03-25 08:50:22 +00:00
Graham Perrin 0f95427a6a Status call template: earlier (not earliest)
Approved by:  lsalvadore
Pull request: https://github.com/freebsd/freebsd-doc/pull/134
2023-03-18 14:16:03 +00:00
Lorenzo Salvadore d4c1222325
Status reports: Improve call for reports email
Specify that if the directory where it is asked to put status reports
does not exist yet, then it should be created, as it is already done in
https://docs.freebsd.org/en/articles/freebsd-status-report-process/#_submit_your_report

PR:		269892
Reported by:	grahamperrin
Approved by:	debdrup (status blanket)
2023-03-14 10:54:51 +01:00
Lorenzo Salvadore 145eb53f98
status: Update report submission methods
- Import the sendcalls tool from
  https://github.com/freebsd/freebsd-quarterly/blob/main/tools/sendcalls
  and modify it to integrate as expected in the doc tree.

- Import the email template to send calls from
  https://github.com/freebsd/freebsd-quarterly/blob/main/tools/call.txt.template
  and update it with the new submission methods.

- Update status/_index.adoc with the new submission methods.

- Import the report sample from
  https://github.com/freebsd/freebsd-quarterly/blob/main/report-sample.adoc
  and update the corresponding link in status/_index.adoc.

Approved by:	status (paumma, debdrup), doceng (carlavilla)
Differential Revision: https://reviews.freebsd.org/D38398
2023-02-09 18:37:08 +01:00
Gordon Bergling f3bcafdbdd tools/po_check_entry.sh: Fix a typo in a comment
- s/Hilight/Highlight/
2023-01-11 18:10:28 +01:00
Danilo G. Baio 475f3464c4 tools/translate: Enable tablecells on po4a/Asciidoc
Without that, po4a combines all table content into a single string,
making it difficult to translate, especially when the table has much
information.
2022-02-01 10:27:22 -03:00
Danilo G. Baio cd71c465b9 tools/translate.sh: Improve usage
- Update .po file with the source document before translating.

- Allow translation of a specific document.

  Translate all es documents:
   ./tools/translate.sh documentation es

  Translate only pt-br articles/bsdl-gpl:
    ./tools/translate.sh documentation pt-br articles/bsdl-gpl

Reviewed by:	fernape
Differential Revision:	https://reviews.freebsd.org/D33067
2021-11-21 09:24:20 -03:00
Fernando Apesteguía 5c2757dff4 [tools] Add spell checking scripts
Summary:
Add two small scripts to do spell checking in .po files.

When working with Weblate, the web browser provides some spell checking with
visual hints for every translation entry.

These scripts provide spell checking for the whole file showing the faulting
words in context.

Relies on `msgexec(1)` and `aspell(1)` from `devel/gettext-tools` and
`textproc/aspell`.

It can be tested with:

`./po_spellcheck.sh ../documentation/content/es/articles/bsdl-gpl/_index.po es`

Reviewed by:	carlavilla@, dbaio@
Differential Revision: https://reviews.freebsd.org/D32465
2021-10-13 15:37:03 +02:00
Mateusz Piotrowski 49091873f4 tools/translate.sh: Fix a typo and trim whitespace 2021-09-19 23:02:17 +02:00
Fernando Apesteguía ee7f388663 [docs] tools/translate.sh: Add fixups
Add fixups for several chores we needed to do by hand.

* Fix tags: and trademarks: lists
* Fix paths to point to the proper language and not to master

Reviewed by: dbaio@
Differential Revision: https://reviews.freebsd.org/D31882
2021-09-10 20:12:54 +02:00
Danilo G. Baio aefc57f944 tools/translate: Ignore some files
This list of *.adoc files only contains information that isn't
translatable.

Discussed with fernape@ on freebsd-translators@.
2021-08-23 14:24:06 -03:00
Danilo G. Baio f2d5f930d8 tools/*translate.sh: Add description field on the YAML Front Matter parser
This field was introduced on 0d9894b11e to
improve SEO.
2021-06-03 16:30:31 -03:00
Danilo G. Baio b5f7b600ed Add helper scripts for translations
Already using them on Weblate FreeBSD,
https://translate-dev.freebsd.org/.

Approved by:   bcr, gjb (doceng)
Differential Revision:	https://reviews.freebsd.org/D29569
2021-04-07 21:58:05 -03:00