Jump to content

Progress on ProcessWire 2.2 and overview of multi-language support


ryan
 Share

Recommended Posts

I was wondering if multi-language support works with image description fields already, because I have to decide wether to use the image field or a repeater to store image captions.

There isn't yet a dedicated multi-language image field, like there are multi-language text fields. So you'd probably want to use a repeater for multi-language captions with images, like you mentioned.

Link to comment
Share on other sites

  • 4 weeks later...

Ryan, I've just started with a site translation and stumbled upon this: When using a repeater field that has a title field inside, PW won't save the value of the translation in the title field. Is using a title field inside a repeater allowed? The title is now a PageTitleLanguage field. I'm attaching a screenshot for reference.

post-72-0-99780500-1348026314_thumb.png

Link to comment
Share on other sites

There should be no problem with using a multi langage field in a repeater. Just tried to do it here with a PageTitleLanguage field and it worked. What version of PW does it say at the bottom of the screen?

Link to comment
Share on other sites

i tried moving the repeater into a fieldsettab, but still works as it shouild. The only thing I can think of is that you might want to upgrade your PW version. I'm running 2.2.7 and you are running 2.2.3, so that seems to be the only obvious major difference at present.

Link to comment
Share on other sites

It worked with 2.2.7! Thanks a lot for the answer. On another subject, I realized that using the PageTitleLanguage field for titles automatically creates new urls for the languages. But there's no apparent way to refine this, I guess. Check this example:

Original field (Spanish) > URL

Atención al cliente > /atencion-al-cliente/

New field in portuguese:

Atenção ao Cliente > /atenc-ao-ao-cliente/

I would like to refine the portuguese URL to "atencao-ao-cliente". I guess the "name" field should have a translation field below, as well.

post-72-0-46928500-1348080672_thumb.png

Link to comment
Share on other sites

On another subject, I realized that using the PageTitleLanguage field for titles automatically creates new urls for the languages.

When you use multi-language fields, they all live at the same URL and it's up to the $user->language setting to determine what language gets shown at that URL. Visit this page for more info about the benefits and drawbacks as well as different strategies that you can take:

http://processwire.com/api/multi-language-support/multi-language-fields/

I also recommend checking out McMorry & Soma's Language Localized URL module as another possible solution.

Link to comment
Share on other sites

Ryan, I understand that there's a way to have multi-language site using the same url. But I found it interesting that PW generates new urls with the PageTitleLanguage field. I really like this as it's very user readable and friendly. The only drawback I wanted to point out with my message, is that there's no apparent way to refine or change the slug/name for other languages. That would be awesome! :) Maybe it's something useful and could be added in future versions.

Btw I'm checking the Language Localized URL module and posting my findings on the forum as well.

Link to comment
Share on other sites

The only drawback I wanted to point out with my message, is that there's no apparent way to refine or change the slug/name for other languages.

If the page name were different, it would technically be a different page. We will find a way to do some kind of aliasing down the road, but it would involve some changes to the way that ProcessWire addresses and differentiates between pages. But it's doable. I'm just waiting for the simple solution to pop into my head and it hasn't yet. :)

  • 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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...