Language block


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


File missing things arrived before I added the language block, after I started copying translated .ini files in the custom lang folders.
sample rants
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…





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…



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.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.




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

Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.



No hurry, got lots of other stuff to play with.
What about the deprecated things?


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)
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.


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



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.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.