34957

How can I add translations to a Plone site front-page

Question:

I'm using LinguaPlone in a site thas is written in English and Spanish. All site pages and folders can be translated, except the front page folder. I think that I can translate the page that the front page folder uses as view, but in that case when a user goes to front page, only the folder view is showed (not its translation).

I'm using Plone 4.1.4 and LinguaPlone 4.1.2. Maybe I need to try with other tool, as raptus.multilingualplone.

Answer1:

Normally, when setting up a LinguaPlone site you let LinguaPlone create top-level per-language folders that act as navigation roots. The root of the site itself is set up to redirect visitors to one of these roots depending on their language preferences and other factors, using a language selector.

Take a look at <a href="http://www.norden.org/" rel="nofollow">http://www.norden.org/</a> for an example of such a site. Notice that when you visit that URL you are automatically redirected to one of the supported languages, usually to <a href="http://www.norden.org/en/" rel="nofollow">http://www.norden.org/en/</a> for english. You can switch between the available languages on the top left, and you'll see that the first element of the URL changes between the language codes. Those are the top-level folders.

The advantage here is that each of these folders can have it's own default view. Another is that URLs are always crystal clear for visitors; switch from "About this website" (http://www.norden.org/en/about-this-website) to the Norwegian translation and you end up on on <a href="http://www.norden.org/no/om-nettstedet" rel="nofollow">http://www.norden.org/no/om-nettstedet</a>; anyone can see that the new URL is in the Norwegian language even if they do not understand that language.

You can set up these language folders after the fact, as documented in the <a href="https://pypi.python.org/pypi/Products.LinguaPlone/4.1.2#installation" rel="nofollow">LinguaPlone installation instructions</a>; simply visit the URL:

http://localhost:8080/Plone/@@language-setup-folders

but be sure to backup your site first and to adjust the address for your local situation.

Recommend

  • Dynamically Impersonate a remote user - c# and asp.net
  • Aspect advising other aspects
  • Can't get LogCat (Alcatel OneTouch Evolve)
  • Defining variable by logical subseting on time interval in data.table
  • Is there a way to link a linux's thread TID and a pthread_t “thread ID”
  • Partial specialization of a class template in derived class affects base class
  • How to protect an asp:textbox from user input?
  • Fat binaries in iOS
  • CloseOptionsMenu doesn't work?
  • MultiLevel ExpandableListView not highlighting properly
  • Efficient algorithm to find additions and removals from 2 collections
  • Click on button in another program - FindWindow, C#
  • VSCode change debug shell to bash on windows
  • How do I get the list of bad records that didn't load in Bigquery?
  • Does Apple allow the usage of sysctl.h within iOS applications?
  • CSS bleed-through with cfinput type=“datefield”
  • Possible to get mouse events fired when cursor is outside page?
  • NUnit 3.0 TestCase const custom object arguments
  • Ember.js model to be organised as a tree structure
  • What does 'Language neutral' mean with regard to MAKELANGID?
  • Thread safety of a fluent like class using clone() and non final fields
  • How to get Eclipse Oxygen to run on Java 9
  • Android activity accessing service's static reference before the service is ready
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • Moving mysql files across servers
  • Switching to Release Build causes runtime error in Web Reference
  • Change multiple background-images with jQuery
  • Algorithm for a smudge tool?
  • Control modification in presentation layer
  • Can Jackson SerializationFeature be overridden per field or class?
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • Redux, normalised entities and lodash merge
  • Comma separated Values
  • Android Studio and gradle
  • Error creating VM instance in Google Compute Engine
  • Hits per day in Google Big Query
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • how does django model after text[] in postgresql [duplicate]
  • Linking SubReports Without LinkChild/LinkMaster
  • How to get NHibernate ISession to cache entity not retrieved by primary key