Update translation.rst

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.2
| Fixed tickets | no

Fixed a minor wrong sample code.