doc/book/en/devweb/internationalization.rst
changeset 8032 bcb87336c7d2
parent 5394 105011657405
--- a/doc/book/en/devweb/internationalization.rst	Thu Oct 27 18:19:00 2011 +0200
+++ b/doc/book/en/devweb/internationalization.rst	Fri Oct 28 10:32:48 2011 +0200
@@ -26,7 +26,9 @@
 In the Python code and cubicweb-tal templates translatable strings can be
 marked in one of the following ways :
 
- * by using the *built-in* function `_` ::
+ * by using the *built-in* function `_`:
+
+   .. sourcecode:: python
 
      class PrimaryView(EntityView):
          """the full view of an non final entity"""
@@ -35,7 +37,9 @@
 
   OR
 
- * by using the equivalent request's method ::
+ * by using the equivalent request's method:
+
+   .. sourcecode:: python
 
      class NoResultView(View):
          """default view when no result has been found"""
@@ -79,9 +83,12 @@
 particular instance's schema as they are generated automatically. String for
 various actions are also generated.
 
-For exemple the following schema ::
+For exemple the following schema:
 
-  Class EntityA(EntityType):
+.. sourcecode:: python
+
+
+  class EntityA(EntityType):
       relation_a2b = SubjectRelation('EntityB')
 
   class EntityB(EntityType):