cancel
Showing results for 
Search instead for 
Did you mean: 

Problems loading multilingual pages / docs

iann
Champ in-the-making
Champ in-the-making
If a page is part of a multi language collection in the Alfresco repo then a 404 is returned when I click on the page in quick start.
3 REPLIES 3

iann
Champ in-the-making
Champ in-the-making
Answer from Brian Remmington:

I have spent quite a while this morning talking to our search guru, and he's come up with a solution.

The problem comes from the way that different languages are indexed, and the solution is to force them all to be indexed in the same way.

In order to do this, you need to delete a number of properties files from the Alfresco webapp. They are located in the folder "WEB-INF/classes/alfresco/model" and have the name pattern: dataTypeAnalyzers_XX_YY.properties.

Delete all of these (or prefix them with an 'x') *except for* the one named exactly "dataTypeAnalyzers.properties". Leave that one there.

This won't help you for the assets you've already made multi-lingual, but should fix the problem for others. You may wish to re-import the original ACP and start from that.

Note that the alfresco.war file does (and will continue to) include those property files. If you take a new copy of it then you will have to remember to remove those property files again.

Hopefully that is clear, but should it raise any questions or concerns then please come back to me.

bremmington
Champ on-the-rise
Champ on-the-rise
Having spent some time thinking about this, I have committed an enhancement onto HEAD that enables you to configure which languages the site search should cover. This means that it is no longer necessary to remove the analyzer properties files as described above for recent versions built from HEAD. The locales are held as a bean in the Quick Start module's main context file (module-context.xml), and the default is:

   <bean id="wqsmodule_defaultWebsiteLocales" class="java.util.ArrayList">
      <constructor-arg>
         <list>
            <value>en</value>
            <value>fr</value>
            <value>it</value>
            <value>de</value>
            <value>es</value>
            <value>ja</value>
         </list>
      </constructor-arg>
   </bean>

To change the locales for your system just override that bean in your own context file (on the classpath with a location following the usual pattern of "/alfresco/extension/*-context.xml").

novel
Champ in-the-making
Champ in-the-making
I don't understand.

if I want to do a site in two languages, I make multilingual pages, for ex:
pag1-len1.html
pag1-len2.html
throught alfresco featured "make multilinguages" - "add translation"…correct?

First question:
how do I manage the links, for example in the various section.articles where there are queries that retrieve pages?
How I manage all?

second:
how do I put a button that switches the pages from one language to other?