/MGNLUI-3221-mge.diff Secret
Last active
August 29, 2015 14:19
Star
You must be signed in to star a gist
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
| diff --git a/magnolia-ui-api/src/main/java/info/magnolia/ui/api/app/SubAppContext.java b/magnolia-ui-api/src/main/java/info/magnolia/ui/api/app/SubAppContext.java | |
| index e76fbc9..58f119b 100644 | |
| --- a/magnolia-ui-api/src/main/java/info/magnolia/ui/api/app/SubAppContext.java | |
| +++ b/magnolia-ui-api/src/main/java/info/magnolia/ui/api/app/SubAppContext.java | |
| @@ -36,6 +36,8 @@ package info.magnolia.ui.api.app; | |
| import info.magnolia.ui.api.location.Location; | |
| import info.magnolia.ui.api.context.UiContext; | |
| +import java.util.Locale; | |
| + | |
| /** | |
| * Provides functionality used by a sub app to interact with the Magnolia shell. | |
| */ | |
| @@ -61,5 +63,9 @@ public interface SubAppContext extends UiContext { | |
| String getInstanceId(); | |
| + Locale getAuthoringLocale(); | |
| + | |
| + void setAuthoringLocale(Locale authoringLocale); | |
| + | |
| void close(); | |
| } | |
| diff --git a/magnolia-ui-api/src/main/java/info/magnolia/ui/api/i18n/I18NAuthoringSupport.java b/magnolia-ui-api/src/main/java/info/magnolia/ui/api/i18n/I18NAuthoringSupport.java | |
| index 205b627..031b7fc 100644 | |
| --- a/magnolia-ui-api/src/main/java/info/magnolia/ui/api/i18n/I18NAuthoringSupport.java | |
| +++ b/magnolia-ui-api/src/main/java/info/magnolia/ui/api/i18n/I18NAuthoringSupport.java | |
| @@ -54,6 +54,11 @@ public interface I18NAuthoringSupport { | |
| String createI18NURI(Node node, Locale locale); | |
| + /** | |
| + * @deprecated I18nAuthoringSupport is an instance singleton, and should not be used to sync UI state of a specific user. Since 5.3.9, use {@link info.magnolia.ui.api.app.SubAppContext#getAuthoringLocale() SubAppContext#getAuthoringLocale()}. | |
| + * @see <a href="https://jira.magnolia-cms.com/browse/MGNLUI-3221">[MGNLUI-3221] All authors share the same authoring locale</a> | |
| + */ | |
| + @Deprecated | |
| Locale getAuthorLocale(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment