From 51e5071c940f0ae77e600d8f07fbd52fd0f86c74 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Apr 24 2020 00:41:49 +0000 Subject: add asciidoc attributes --- diff --git a/README.md b/README.md index 4be3e46..495b94e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # asciidoc-keywords -translations of asciidocs keywords \ No newline at end of file +translations of asciidocs keywords + +See: https://asciidoctor.org/docs/user-manual/#language-support diff --git a/asciidoc-attributes.sh b/asciidoc-attributes.sh new file mode 100755 index 0000000..6c9b57d --- /dev/null +++ b/asciidoc-attributes.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +adoc_file="./asciidoc-attributes.yml" +pot_file="./pot/asciidoc-attributes.pot" +format="yaml" + +echo "Convert $adoc_file to $pot_file using po4a-gettextize" + +po4a-gettextize \ + --format "$format" \ + --master "$adoc_file" \ + --master-charset "UTF-8" \ + --localized-charset "UTF-8" \ + --po "$pot_file" + +echo "Done" diff --git a/asciidoc-attributes.yml b/asciidoc-attributes.yml new file mode 100644 index 0000000..ef02128 --- /dev/null +++ b/asciidoc-attributes.yml @@ -0,0 +1,17 @@ +appendix-caption: Appendix # Appendix titles +caution-caption: Caution # CAUTION admonitions (when icons are not in use). +chapter-label: Chapter # Prefix added to chapter titles (i.e., level-1 section titles when doctype is book). (pdf converter only) +example-caption: Example # Example titles. +figure-caption: Figure # Automatically prefixed to figure titles. +important-caption: Important # IMPORTANT admonitions (when icons are not in use). +last-update-label: Last updated # Label for when the document was last updated. +# listing-caption: not set # The label for listing blocks. By default, listing blocks do not have captions. If you specify listing-caption, then you also turn on captions for listing blocks. +manname-title: NAME # Label for the program name section in the man page. +note-caption: Note # NOTE admonitions (when icons are not in use). +# preface-title: not set # Title text used for the anonymous preface (when the doctype is book). +table-caption: Table # Automatically prefixed to table titles. +tip-caption: Tip # TIP admonitions (when icons are not in use). +toc-title: Table of Contents # Title of the table of contents. +untitled-label: Untitled # The document title, for documents that have only body content. +version-label: Version # The label preceding the revnumber in the document’s byline. +warning-caption: Warning # WARNING admonitions (when icons are not in use). diff --git a/po/fr/asciidoc-attributes.po b/po/fr/asciidoc-attributes.po new file mode 100644 index 0000000..0b531e7 --- /dev/null +++ b/po/fr/asciidoc-attributes.po @@ -0,0 +1,92 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2020-04-24 02:38+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. type: Hash Value - Key: appendix-caption +#, no-wrap +msgid "Appendix" +msgstr "" + +#. type: Hash Value - Key: caution-caption +#, no-wrap +msgid "Caution" +msgstr "" + +#. type: Hash Value - Key: chapter-label +#, no-wrap +msgid "Chapter" +msgstr "" + +#. type: Hash Value - Key: example-caption +#, no-wrap +msgid "Example" +msgstr "" + +#. type: Hash Value - Key: figure-caption +#, no-wrap +msgid "Figure" +msgstr "" + +#. type: Hash Value - Key: important-caption +#, no-wrap +msgid "Important" +msgstr "" + +#. type: Hash Value - Key: last-update-label +#, no-wrap +msgid "Last updated" +msgstr "" + +#. type: Hash Value - Key: manname-title +#, no-wrap +msgid "NAME" +msgstr "" + +#. type: Hash Value - Key: note-caption +#, no-wrap +msgid "Note" +msgstr "" + +#. type: Hash Value - Key: table-caption +#, no-wrap +msgid "Table" +msgstr "" + +#. type: Hash Value - Key: tip-caption +#, no-wrap +msgid "Tip" +msgstr "" + +#. type: Hash Value - Key: toc-title +#, no-wrap +msgid "Table of Contents" +msgstr "" + +#. type: Hash Value - Key: untitled-label +#, no-wrap +msgid "Untitled" +msgstr "" + +#. type: Hash Value - Key: version-label +#, no-wrap +msgid "Version" +msgstr "" + +#. type: Hash Value - Key: warning-caption +#, no-wrap +msgid "Warning" +msgstr "" diff --git a/pot/asciidoc-attributes.pot b/pot/asciidoc-attributes.pot new file mode 100644 index 0000000..b006cff --- /dev/null +++ b/pot/asciidoc-attributes.pot @@ -0,0 +1,92 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2020-04-24 02:41+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. type: Hash Value - Key: appendix-caption +#, no-wrap +msgid "Appendix" +msgstr "" + +#. type: Hash Value - Key: caution-caption +#, no-wrap +msgid "Caution" +msgstr "" + +#. type: Hash Value - Key: chapter-label +#, no-wrap +msgid "Chapter" +msgstr "" + +#. type: Hash Value - Key: example-caption +#, no-wrap +msgid "Example" +msgstr "" + +#. type: Hash Value - Key: figure-caption +#, no-wrap +msgid "Figure" +msgstr "" + +#. type: Hash Value - Key: important-caption +#, no-wrap +msgid "Important" +msgstr "" + +#. type: Hash Value - Key: last-update-label +#, no-wrap +msgid "Last updated" +msgstr "" + +#. type: Hash Value - Key: manname-title +#, no-wrap +msgid "NAME" +msgstr "" + +#. type: Hash Value - Key: note-caption +#, no-wrap +msgid "Note" +msgstr "" + +#. type: Hash Value - Key: table-caption +#, no-wrap +msgid "Table" +msgstr "" + +#. type: Hash Value - Key: tip-caption +#, no-wrap +msgid "Tip" +msgstr "" + +#. type: Hash Value - Key: toc-title +#, no-wrap +msgid "Table of Contents" +msgstr "" + +#. type: Hash Value - Key: untitled-label +#, no-wrap +msgid "Untitled" +msgstr "" + +#. type: Hash Value - Key: version-label +#, no-wrap +msgid "Version" +msgstr "" + +#. type: Hash Value - Key: warning-caption +#, no-wrap +msgid "Warning" +msgstr ""