-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bda95b0
commit 80dd09e
Showing
9 changed files
with
1,218 additions
and
1,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ Advanced Configuration | |
image-processing | ||
solr | ||
language | ||
properties | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,31 @@ | ||
Language | ||
======== | ||
|
||
General actions with language (the java-code): | ||
get default language | ||
General actions with language (the java-code) | ||
""""""""""""""""""""""""""""""""""""""""""""" | ||
|
||
* get default language: | ||
|
||
.. code-block:: java | ||
Imcms.getServices().getDocumentLanguages().getDefault(); | ||
* set language by creating new: | ||
|
||
.. code-block:: java | ||
Imcms.getUser().getDocGetterCallback().setLanguage(new DocumentLanguage(String code, String name, String nativeName), boolean isDefaultLang); | ||
where ``code`` is language ISO-639-1 code. | ||
* @param name language name | ||
* @param nativeName language native name | ||
*/ | ||
public DocumentLanguage(String code, String name, String nativeName) { | ||
this.code = code; | ||
this.name = name; | ||
this.nativeName = nativeName; | ||
} | ||
Imcms.getServices().getDocumentMapper().getDocument(---id---).getMeta().getEnabledLanguages(); | ||
Imcms.getServices().getDocumentMapper().getDocument(---id---).setLanguage(---DocumentLanguage--); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Properties | ||
========== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.