Skip to content

Commit

Permalink
Docs little upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg-Maximchuk committed Dec 30, 2015
1 parent 2f30f76 commit 7e8ac2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/fundamental/advanced-configuration/language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ General actions with language
* get document's enabled languages:
.. code-block:: java
Imcms.getServices().getDocumentMapper().getDocument(-- current document's id --).getMeta().getEnabledLanguages();
Imcms.getServices().getDocumentMapper().getDocument("current document's id").getMeta().getEnabledLanguages();
This code will return the ``Set<DocumentLanguage>``, which can be used for choosing the right language and setting it.
This code will return the ``Set<DocumentLanguage>``, which can be used for choosing the right language and setting it.

* set document's language:
.. code-block:: java
Imcms.getServices().getDocumentMapper().getDocument(---id---).setLanguage(---DocumentLanguage--);
Imcms.getServices().getDocumentMapper().getDocument("id").setLanguage("DocumentLanguage");
* set user's language (not recommended):
.. code-block:: java
Expand Down

0 comments on commit 7e8ac2d

Please sign in to comment.