hello,

it is much easier to add languages than to remove some.
In order to add a language, you only need to contribute to 
faces-config#APPLICATION in your deployment-fragment.xml and new definitionwill 
be added to existing ones.
If you want to remove languages, you need to replace existing definition and, 
to be sure Nuxeo will work correctly, you have to use the final "application" 
attribute generated in your faces-config.xml (in 
$jboss/server/default/deploy/nuxeo.ear/nuxeo.war/WEB-INF)

So copy the content of tag "application" in faces-config.xml and add it into 
the deployment-fragment.xml of your custom plugin with mode=replace.
Then adapt it to your needs. Below is an example restricting the language to 
russian only:

  <extension target="faces-config#APPLICATION" mode="replace">
    <locale-config>
      <default-locale>ru</default-locale>
      <supported-locale>ru</supported-locale>
    </locale-config>
    <message-bundle>messages</message-bundle>
    <view-handler>
      org.nuxeo.theme.jsf.facelets.NXThemesFaceletViewHandler
    </view-handler>
    <navigation-handler>
      org.nuxeo.ecm.platform.ui.web.rest.FancyNavigationHandler
    </navigation-handler>
    <el-resolver>
      org.nuxeo.ecm.platform.el.DocumentModelResolver
    </el-resolver>
    <el-resolver>org.jboss.seam.el.SeamELResolver</el-resolver>

  </extension> 

Finally, take care that your contribution is deployed after other ones 
contributing to faces-config#APPLICATION
--
Posted by "tmartins" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3372#10179>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to