Language block

Poll
Anyone running a multi-language V10 ??

Post

Posted
Rating:
#499 (In Topic #152)

Lots of various issues since "language block" was added

HI everyone

Been trying for a while to install a second language on my new V10.

It's not simple…. lots of stacks everywhere, but could make do until now (main goal was to translate it, and get an idea of what all these strings meant).

The last one is a bit more of a problem…

Stack


Would have included the whole stack, but script says message is too long…

If needed, it's here: stack

Post

Posted
Rating:
#500
Still relating to languages, I also get these everytime I try to do sthing:

sample rants

File missing things arrived before I added the language block, after I started copying translated .ini files in the custom lang folders.

Deprecated things, I guess I asked for it…   Had stacks all the time, really invalidating, saying diff.php and commander_fs.php were missing. Checked, and they were there, so I copied them to the sources_custom folder, to see what would happen. It works, but I get these instead…

Post

Posted
Rating:
#501
Pretty sure these issues will be fixed before the final stable release. I know Internationlization wasn't fully implemented a few months ago, maybe there are still things to do. Reports of issues always help of course :)

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Adam Edington)
#502
Actually, I was expecting worse…
From what I've seen, I'm reasonnably sure it can work pretty much "as is" with one foreign language, replacing English. It only becomes tricky when you want to have more than one, and switch from one to the other.
The love story between ocp and languages has been ongoing for about 10 years now… :D

Post

Posted
Rating:
#506
Hey,

Actually what it is is now the default functioning of a Composr install is to not support content translations. This change increases performance a lot and makes it a whole lot simpler for developers. Almost nobody used the content translation feature anyway.

Therefore installs with content translation support turned on haven't been as well tested and a lot of code was changed to make this multi-modal model work.

I'm taking a look now. I'll make sure it's all working well. It's just a matter of what people have tested so far.

This is subtly separate to the ability to run multiple languages on the same site. Even without content translations you can do that, and use (for example) different zones for different languages.

Post

Posted
Rating:
#507
What a pity, translating content was a real plus. Never mind. How do I turn it off?

Post

Posted
Rating:
#508
Well, we're supporting it - it's just buggy right now. I'll likely reply in a few hours with a patch for you.

Turning it off is difficult as it has to rebuild the database structure differently. It's in one of the translation tutorials, but if I were you I'd wait for me to provide a fix ;) .

Post

Posted
Rating:
#509
I'll wait for a fix :)
No hurry, got lots of other stuff to play with.

What about the deprecated things?

Post

Posted
Rating:
#514
Ok a few things here, and I've decided to put out another RC now as quite a few varied issues came in today.

Issues here, now fixed:
  1. Deprecation errors on PHP7 in a few isolated areas
  2. Very nasty bug with language packs
  3. Specific bug with broken DOC_EMAIL_LOG language string reference (looked like it was a multi-lang-content bug, but I think it's just that an existing bug only became visible on that mode)

Post

Posted
Rating:
#515
Just upgraded to 5.

Left panel has improved, all the nice little icons are there.
Center panel layout has gone, it's all one column now.
Loggin out then logging in with a different user seems to be a problem, although switching users using SU seems to work fine.
Fall back to english language files doesn't seem to work everytime, sometimes the fields are in english, other times they're empty (left panel site statistics).

More about all this in the morning ;)

Thx for the quick upgrade   :thumbs:

Post

Posted
Rating:
#516
Center panel layout has gone, it's all one column now.

In Comcode the default columns are built something like this:

Code

   [surround="fp_col_blocks_wrap pale_box"]
      [surround="fp_col_block left"]
         [block failsafe="1"]main_poll[/block]
      [/surround]

      [surround="fp_col_block right pale_box"]
         {$SET,simple_image_fader,1}
         [block failsafe="1"]main_image_fader[/block]
      [/surround]
   [/surround]

The "left" CSS class draws on the en_left language string:

Code

.left {
   float: {!en_left};
}

If that was translated to something other than 'left' or 'right', it will not float. That's a common thing, a few of these entries in global.ini are there for parts of internationalisation other than translation. In this case it's to support rtl layouts.

Loggin out then logging in with a different user seems to be a problem, although switching users using SU seems to work fine.
Fall back to english language files doesn't seem to work everytime, sometimes the fields are in english, other times they're empty (left panel site statistics).

Is it possible that just the caches need emptying?
I just ran some more testing and it's okay from here.
6 guests and 0 members have recently viewed this.