Copying Language dependent Data when Primary language changed

6 views
Skip to first unread message

Dmitry Andrejev

unread,
Jun 14, 2010, 5:02:15 PM6/14/10
to In-Portal Bugs Team
Hi guys,


We have started some of this discussion back in 2009 here



I believe we should COPY the Language dependent Data when Primary language is changed.

Scenario:

1. Fresh install (ie. 5.1.0-RC1 or whatever) with Advanced theme.

2. Import French lang. pack and set it as Primary right there (no Logins)

3. Added a few new Sections (former Categories) in the Catalog.

In result I have Lot of Sections missing Primary Language value (for French) since were created before French became primary.

Some attachments to explain better.


I propose to copy the data for all "l[n]_" fields from prev. Primary to new Primary for those which are NULL (or are empty).



DA.
EnglishFrench1.png
EnglishFrench2.png

Phil -- wbtc.fr --

unread,
Jun 14, 2010, 5:28:13 PM6/14/10
to in-port...@googlegroups.com
I can add to the previous discussion that nothing changed in 510-RC1, I still need to translate system folders name manually (platform, MyAccount..) if I want the left menu to work correctly.


2010/6/14 Dmitry Andrejev <dand...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Dmitry Andrejev

unread,
Jun 14, 2010, 6:08:50 PM6/14/10
to in-port...@googlegroups.com
Yes, Phil this is true.

I hope we'll have this resolved in 5.1.0


DA.

Phil -- wbtc.fr --

unread,
Jun 14, 2010, 6:37:50 PM6/14/10
to in-port...@googlegroups.com
I hope too!

2010/6/15 Dmitry Andrejev <dand...@gmail.com>

Phil -- wbtc.fr --

unread,
Jul 23, 2010, 11:13:01 AM7/23/10
to in-port...@googlegroups.com
no this didn't changed. I take 5mn on each install to translate the system folder's name, otherwise left tree is broken and we have a part of the menu not appearing or displayed at the bottow of all other menus.

In addition, when you create a new section, you can choose from a dropdown the parent section.
English panel display "Content" as first choice in the dropdown, but it's blank in french version.
I wasn't able to find the label... strange, as if it was hardcoded, I should see the same english word...


2010/7/23 Alexander Obuhovich <aik....@gmail.com>
In-Portal 5.1.0 is out, but issue not resolved in it. I suppose, that it's no big deal then or task should be created otherwise.

Alexander Obuhovich

unread,
Jul 23, 2010, 3:07:58 PM7/23/10
to in-port...@googlegroups.com
"Content" is name of top category, that acts as "Home" in all other places. Yes you really can't translate it, since it is hardcoded in my places, where site page urls are built.

Phil -- wbtc.fr --

unread,
Jul 23, 2010, 3:42:27 PM7/23/10
to in-port...@googlegroups.com
okk then as I'm used to say, if there's no solution, there's no problem :)

2010/7/23 Alexander Obuhovich <aik....@gmail.com>

Alexander Obuhovich

unread,
Aug 31, 2010, 3:07:12 PM8/31/10
to in-port...@googlegroups.com
Task: http://tracker.in-portal.org/view.php?id=848

Time for a party Phil, since after a task is created you are one step closer to get the patch from it.

Phil -- wbtc.fr --

unread,
Sep 2, 2010, 9:17:23 AM9/2/10
to in-port...@googlegroups.com
thanks :)

2010/8/31 Alexander Obuhovich <aik....@gmail.com>:

Alexander Obuhovich

unread,
Jan 4, 2011, 6:03:45 AM1/4/11
to in-port...@googlegroups.com
Here is patch. Ready for testing.
copy_missing_data_on_primary_language_change.patch

Dmitry A.

unread,
Jan 5, 2011, 2:47:41 PM1/5/11
to in-port...@googlegroups.com
Thanks Alex! 

This has been tested good. I am sure all international Users including Phil will appreciate this.

By the way, this whole thing raised another question for myself - may be we should CLEAN the language data from corresponding multi-lingual field when Language is deleted. What you think on this (separate task of course if will see the light at all)?


DA

Alexander Obuhovich

unread,
Jan 5, 2011, 3:03:45 PM1/5/11
to in-port...@googlegroups.com
Cleaning part was already discussed before and we decided to keep data in case if admin creates language with same ID to get access to that data.




DA

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Dmitry A.

unread,
Jan 5, 2011, 3:22:18 PM1/5/11
to in-port...@googlegroups.com
Okay, let's leave this with new fix and see how it turns out.

In worst case scenario we can come back to this and resume the discussion.


DA

Phil -- wbtc.fr --

unread,
Jan 7, 2011, 11:00:18 AM1/7/11
to in-port...@googlegroups.com
Hi,

thanks Alex, this will be usefull for all installation I'll do :)

p

2011/1/5 Dmitry A. <dand...@gmail.com>
Okay, let's leave this with new fix and see how it turns out.

In worst case scenario we can come back to this and resume the discussion.


DA

--
Reply all
Reply to author
Forward
0 new messages