Plugin TranslationFlagging


Plugin Translationflagging
Extension to indicate that different pages are translated from each other

Authors

Anyware Services

Most recent version

1.1.0

Tracking issues

https://issues.ametys.org/browse/TRANSLATION

Download

Latest version 

  1. Presentation
  2. Screenshots

Presentation

This extension allows to create links between pages to indicate that they are translations of each other.

Screenshots

User manual

Select a page, go to the "Page" tab and select the "Flag translation" item.

Then you can select a corresponding page for each language of the current site.

Installation and download

Download

Installation

  • Add the plugin JAR in the WEB-INF/lib directory of your Ametys application.
  • You must add the "Flag translations" button definition in the WEB-INF/param/cms-ribbon-default.xml :
...
    <group label="plugin.web:RIBBON_TABS_TAB_PAGE_GROUPS_GROUP_PAGE_LABEL" icon="">
        <large></large>
        <medium>
            <control id="org.ametys.web.userinterface.Tag"/>
            <control id="org.ametys.web.pageaccess.SetAccess"/>
            <layout align="top" size="small">
                <control id="org.ametys.web.userinterface.Attachments"/>
		<control id="org.ametys.web.userinterface.Robots"/>
                <control id="org.ametys.translationflagging.SetTranslation"/>  //  <- button definition to add
            </layout>
        </medium>
	<small></small>
    </group>
    ...

When a content is modified and validated in a page that has translations, an e-mail could be sent to the contributors that have the right to modify the translated version to notify them that a new version is available.

Translation notifications (1.1.x versions only)

When a content is modified and validated in a page that has translations, an e-mail could be sent to the contributors that have the right to modify the translated version (Inline edition right) and the right to receive mail alerts on translation (Receive translation alerts right) to notify them that a new version is available.
To enable this feature, edit the content workflow descriptor (most likely WEB-INF/param/workflow.xml) and add a post-function to the validation action as follows:

<function type="avalon">
    <arg name="role">org.ametys.plugins.translationflagging.TranslationAlertFunction</arg>
</function>

For instance, the default workflow's validation action would become:

<action id="4" name="plugin.web:WORKFLOW_ACTION_VALIDATE">
    <restrict-to>
        <conditions type="AND">
            <condition type="avalon">
                <arg name="role">org.ametys.cms.workflow.ContentCheckRightsCondition</arg>
                <arg name="right">Workflow_Rights_Validate</arg>
            </condition>
            <condition type="avalon">
                <arg name="role">org.ametys.cms.workflow.LockCondition</arg>
            </condition>
        </conditions>
    </restrict-to>
    <pre-functions>
        <function type="avalon">
            <arg name="role">org.ametys.web.workflow.ValidateContentFunction</arg>
        </function>
    </pre-functions>
    <results>
        <unconditional-result old-status=" " status=" " step="3" />
    </results>
    <post-functions>
        <function type="avalon">
            <arg name="role">org.ametys.plugins.translationflagging.TranslationAlertFunction</arg>
        </function>
    </post-functions>
</action>

Then, in each site's configuration, fill in the "master language" parameter, if applicable.

Compatibility

Plugin version

1.0.x

1.1.x

Ametys 3.0.x

 

 

Ametys 3.1.x

 

Ametys 3.2.x

Ametys 3.3.x

 

Back to top