-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task-65423: Add a language
- Loading branch information
Showing
18 changed files
with
504 additions
and
34 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
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
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
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
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
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
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
33 changes: 33 additions & 0 deletions
33
notes-webapp/src/main/webapp/WEB-INF/conf/wiki/features-flags-configuration.xml
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,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd http://www.exoplatform.org/xml/ns/kernel_1_3.xsd" | ||
xmlns="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd"> | ||
|
||
<component> | ||
<key>NotesMultilingualFeatureProperties</key> | ||
<type>org.exoplatform.container.ExtendedPropertyConfigurator</type> | ||
<init-params> | ||
<properties-param> | ||
<name>NotesMultilingualFeatureProperties</name> | ||
<description>MultiLang notes enablement flag</description> | ||
<property name="exo.feature.NotesMultilingual.enabled" | ||
value="${exo.feature.NotesMultilingual.enabled:false}" /> | ||
</properties-param> | ||
</init-params> | ||
</component> | ||
|
||
<external-component-plugins> | ||
<target-component>org.exoplatform.groovyscript.text.TemplateService</target-component> | ||
<component-plugin> | ||
<name>UIPortalApplication-head</name> | ||
<set-method>addTemplateExtension</set-method> | ||
<type>org.exoplatform.groovyscript.text.TemplateExtensionPlugin</type> | ||
<init-params> | ||
<values-param> | ||
<name>templates</name> | ||
<description>The list of templates to include in HTML Page Header with UIPortalApplication.gtmpl</description> | ||
<value>war:/groovy/webui/workspace/UINotesHeadTemplate.gtmpl</value> | ||
</values-param> | ||
</init-params> | ||
</component-plugin> | ||
</external-component-plugins> | ||
</configuration> |
11 changes: 11 additions & 0 deletions
11
notes-webapp/src/main/webapp/groovy/webui/workspace/UINotesHeadTemplate.gtmpl
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,11 @@ | ||
<% | ||
import org.exoplatform.commons.api.settings.ExoFeatureService; | ||
import org.exoplatform.portal.application.PortalRequestContext; | ||
def rcontext = _ctx.getRequestContext(); | ||
ExoFeatureService featureService = uicomponent.getApplicationComponent(ExoFeatureService.class); | ||
def userName = rcontext.getRemoteUser(); | ||
%> | ||
|
||
<script type="text/javascript" id="notesHeadScripts"> | ||
eXo.env.portal.notesMultilingual = <%=featureService.isFeatureActiveForUser("NotesMultilingual", userName)%>; | ||
</script> |
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
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
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.