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:
@@ -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