Jump to content

multi-language site


helmut2509
 Share

Recommended Posts

Could I use of mixture of multi-language field and language-alternative field ?

I am thinking of in a suitation of multi-language images.

Suppose, I have chart images in different languages.

Up to the date, the image field is not a multi-language field,

could I use language-alternative field for the image field, let say img (English as default), img_jpn (Japanese), img_kor (Korean)

and leave body and title field to use multi-language textfield

Link to comment
Share on other sites

  • 2 years later...
On 09/02/2014 at 3:30 PM, Philipp said:

Quick 'n' dirty guide if you want a single page tree with the same content in different languages. The URLs will then look like example.com/en/my-article or example.com/de/mein-artikel

1:) Download and install ProcessWire

2:) Install the modules you find under the "Language" Tab. 

3:) Go To Setup->Languages and add new languages. Please note, that the default one is also the default language of your site*

4:) For every field type text or textArea change the Type to TextAreaLanguage or TextLanguage. (e.G. body with TextArea becomes body with textAreaLanguage). You fields should now have multiple tabs for each language, if you edit a page.

5:) Go to the root page (/) and look under "Settings" Setup an URL for every language, e.g. en,de,ru,... . Looks like this: http://take.ms/34Tq5

6:) Create pages and fill in the content. You can build a front end language switch as described in Ryans API Language page.

ProcessWire will take care of changing URLS (e.g. /en/example to /de/beispiel) and you can access the current language via $user->language;

*It's possible later to define another language as the default language.

Thank you Philip. I'm new to PW but longer term users may not see that it is not an intuitive system in some areas. To see nice clear language tabs in the content and a nice clear Language area with name and title, to then have no idea how that relates to front end pages was a little frustrating. Above post sent me to Page -> Home -> Settings and all was clear. Not sure how long I would have been searching for that without this post. 

Better would be the more standard global URL approach here, for exmaple in Language settings, have a setting for name, title and url suffix which is for all pages, with page settings overriding this if entered? At least that would have been the intuitive route for me

  • Like 1
Link to comment
Share on other sites

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...