Jump to content

Automatic Translation on Frontend?


cosmicsafari
 Share

Recommended Posts

Hi all,

This is my first foray into a multi lingual PW site, what i'm unsre about is whether the frontend output is translated automatically or do I have to provide the content in another language also?

As it stands I have installed the following modules:

image.thumb.png.38d335d6d533cad9d99d5a7d2cd6bb36.png

And have created and uploaded the Chinese language pack.

image.thumb.png.826b9e45bcf64f9ca60e84ca4aa86cca.png

At this point I can successfully change my profile and the backend successfully displays in Chinese.

However I am confused about how I now get that translation to work on the frontend?

I have setup the alternative url for the page I wish to view in Chinese

image.thumb.png.d1ef1936a3bfba9556d4cc4a003f3c0d.png

So as a basic test I tried adding the following into the template used for the page above.

image.png.f1bf29bab8696e35656d941ccde65f3d.png

However both urls still display the message in English?

I take it I have missed something, do I then need to enter the frontend output in Chinese in another field within the backend to enable Chinese url to output the content?

Any ideas would be greatly appreciated.

 

Link to comment
Share on other sites

I haven't done translation myself, but from what I believe to be true is you install multi language fields from the Core and manually translate. I think the translation file you uploaded is for translating the CMS backend. I could be completely wrong, but from the multi language website's I have seen they have used the multi language input fields which you can find in the core. 

Link to comment
Share on other sites

Hi @cosmicsafari,

your example is a string translation, which you can use for static texts. Those static texts are ussualy short texts inside your templates which don‘t change that often.

What you are looking for are multi-language fields, which are editable on the pages in the back-end. Just convert a existing field to a language field or add a new language field. If such a language field is translated, you will see the translation in the front-end. 😉

Regards, Andreas

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...