mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
refs #1235: i18n: 'literal-block' node can be translated if 'literal-block' is set to gettext_additional_targets.
This commit is contained in:
@@ -28,3 +28,40 @@ msgstr "MISSING LITERAL BLOCK::"
|
||||
msgid "That's all."
|
||||
msgstr "THAT'S ALL."
|
||||
|
||||
msgid "code blocks"
|
||||
msgstr "CODE-BLOCKS"
|
||||
|
||||
msgid ""
|
||||
"def main\n"
|
||||
" 'result'\n"
|
||||
"end"
|
||||
msgstr ""
|
||||
"def main\n"
|
||||
" 'RESULT'\n"
|
||||
"end"
|
||||
|
||||
msgid ""
|
||||
"#include <stdlib.h>\n"
|
||||
"int main(int argc, char** argv)\n"
|
||||
"{\n"
|
||||
" return 0;\n"
|
||||
"}"
|
||||
msgstr ""
|
||||
"#include <STDLIB.H>\n"
|
||||
"int main(int ARGC, char** ARGV)\n"
|
||||
"{\n"
|
||||
" return 0;\n"
|
||||
"}"
|
||||
|
||||
msgid ""
|
||||
"#include <stdio.h>\n"
|
||||
"int main(int argc, char** argv)\n"
|
||||
"{\n"
|
||||
" return 0;\n"
|
||||
"}"
|
||||
msgstr ""
|
||||
"#include <STDIO.H>\n"
|
||||
"int main(int ARGC, char** ARGV)\n"
|
||||
"{\n"
|
||||
" return 0;\n"
|
||||
"}"
|
||||
|
||||
@@ -11,3 +11,31 @@ Correct literal block::
|
||||
Missing literal block::
|
||||
|
||||
That's all.
|
||||
|
||||
code blocks
|
||||
==============
|
||||
|
||||
.. highlight:: ruby
|
||||
|
||||
::
|
||||
|
||||
def main
|
||||
'result'
|
||||
end
|
||||
|
||||
::
|
||||
|
||||
#include <stdlib.h>
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
#include <stdio.h>
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user