Language block
Posted
#499
(In Topic #152)
Lots of various issues since "language block" was added
HI everyoneBeen 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…
Would have included the whole stack, but script says message is too long…
If needed, it's here: stack
Posted
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…
Posted
Posted
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…
Posted
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.
Posted
Posted
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
Posted
No hurry, got lots of other stuff to play with.
What about the deprecated things?
Posted
Issues here, now fixed:
- Deprecation errors on PHP7 in a few isolated areas
- Very nasty bug with language packs
- 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)
Posted
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
Posted
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.
4 guests and 0 members have recently viewed this.
