diff options
author | EuAndreh <eu@euandre.org> | 2020-11-04 17:38:20 -0300 |
---|---|---|
committer | nixpkgs-review <nixpkgs-review@example.com> | 2020-11-04 17:38:31 -0300 |
commit | 74e220677ac2cb1bef16d0f62092d56db6f62e1d (patch) | |
tree | 584206f01cc1b1a2dffedbffb943d4d7fb601ac2 /locale/pt/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po | |
parent | Update mdpo version: 0.2.36 -> 0.2.37 (diff) | |
download | euandre.org-74e220677ac2cb1bef16d0f62092d56db6f62e1d.tar.gz euandre.org-74e220677ac2cb1bef16d0f62092d56db6f62e1d.tar.xz |
Add all code blocks to translation po files
Diffstat (limited to 'locale/pt/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po')
-rw-r--r-- | locale/pt/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/locale/pt/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po b/locale/pt/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po index e5902b5..a11e17c 100644 --- a/locale/pt/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po +++ b/locale/pt/LC_MESSAGES/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.po @@ -102,3 +102,86 @@ msgstr "" msgid "Happy writing :)" msgstr "" + +msgid "" +"Jekyll::Hooks.register :documents, :post_render do |doc|\n" +" if doc.output_ext == \".html\"\n" +" doc.output =\n" +" doc.output.gsub(\n" +" /<h([1-6])(.*?)id=\"([\\w-]+)\"(.*?)>(.*?)<\\/h[1-6]>/,\n" +" '<a href=\"#\\3\"><h\\1\\2id=\"\\3\"\\4>\\5</h\\1></a>'\n" +" )\n" +" end\n" +"end\n" +msgstr "" + +msgid "" +"...some unmodified text...\n" +"<h2 id=\"my-header\">\n" +" My header\n" +"</h2>\n" +"...more unmodified text...\n" +msgstr "" + +msgid "" +"...some unmodified text...\n" +"<a href=\"#my-header\">\n" +" <h2 id=\"my-header\">\n" +" My header\n" +" </h2>\n" +"</a>\n" +"...more unmodified text...\n" +msgstr "" + +msgid "" +"PREFIX = '<pre class=\"lineno\">'\n" +"POSTFIX = '</pre>'\n" +"Jekyll::Hooks.register :documents, :post_render do |doc|\n" +" if doc.output_ext == \".html\"\n" +" code_block_counter = 1\n" +" doc.output = doc.output.gsub(/<pre class=\"lineno\">[\\n0-9]+<\\/pre>/) do |match|\n" +" line_numbers = match\n" +" .gsub(/<pre class=\"lineno\">([\\n0-9]+)<\\/pre>/, '\\1')\n" +" .split(\"\\n\")\n" +"\n" +" anchored_line_numbers_array = line_numbers.map do |n|\n" +" id = \"B#{code_block_counter}-L#{n}\"\n" +" \"<a id=\\\"#{id}\\\" href=\\\"##{id}\\\">#{n}</a>\"\n" +" end\n" +" code_block_counter += 1\n" +"\n" +" PREFIX + anchored_line_numbers_array.join(\"\\n\") + POSTFIX\n" +" end\n" +" end\n" +"end\n" +msgstr "" + +msgid "" +"kramdown:\n" +" syntax_highlighter_opts:\n" +" span:\n" +" line_numbers: false\n" +" block:\n" +" line_numbers: true\n" +msgstr "" + +msgid "" +"...some unmodified text...\n" +"<pre class=\"lineno\">1\n" +"2\n" +"3\n" +"4\n" +"5\n" +"</pre>\n" +"...more unmodified text...\n" +msgstr "" + +msgid "" +"...some unmodified text...\n" +"<pre class=\"lineno\"><a id=\"B1-L1\" href=\"#B1-L1\">1</a>\n" +"<a id=\"B1-L2\" href=\"#B1-L2\">2</a>\n" +"<a id=\"B1-L3\" href=\"#B1-L3\">3</a>\n" +"<a id=\"B1-L4\" href=\"#B1-L4\">4</a>\n" +"<a id=\"B1-L5\" href=\"#B1-L5\">5</a></pre>\n" +"...more unmodified text...\n" +msgstr "" |