PackOut not translate Menu

127 views
Skip to first unread message

HellBoy

unread,
Jun 28, 2016, 5:36:30 AM6/28/16
to iDempiere
I am create Packout for new module and when use Packin import file zip, system not translation Menu.
I find in class org.adempiere.pipo2.handler.MenuElementHandler , method createModule() not write xml translation.
People can add code
                                createMenuBinding(ctx, document, m_Menu);

                              +  packOut.getCtx().ctx.put("Table_Name",X_AD_Menu.Table_Name);
      + try {
      + new CommonTranslationHandler().packOut(packOut,document,null,m_Menu.get_ID());
      +      } catch(Exception e) {
      + if (log.isLoggable(Level.INFO)) log.info(e.toString());
      +      }

redhuan d. oon

unread,
Jun 28, 2016, 7:05:28 AM6/28/16
to iDempiere
Was the SystemConfig for PackOut with Translation set to 'Y'?

HellBoy

unread,
Jun 30, 2016, 3:15:45 AM6/30/16
to iDempiere
Yes, I was change config 2PACK_HANDLE_TRANSLATIONS = 'Y' but PackOut result not change. You can PackOut with Tree Menu > 3 Level

Vào 16:36:30 UTC+7 Thứ Ba, ngày 28 tháng 6 năm 2016, HellBoy đã viết:

HellBoy

unread,
Jun 30, 2016, 3:24:43 AM6/30/16
to iDempiere
In table M_Movement , CONSTRAINT cbpartnerlocation_mmovement create false table reference, now Table reference is c_location but true table is c_bpartner_location
. When PackIn will false with window Inventory Move.

Vào 16:36:30 UTC+7 Thứ Ba, ngày 28 tháng 6 năm 2016, HellBoy đã viết:
I am create Packout for new module and when use Packin import file zip, system not translation Menu.

Bruno Carvalho

unread,
Aug 10, 2018, 10:23:52 AM8/10/18
to iDempiere
Hi HellBoy,

Could you solve the problem? I am with a similar problem. I am packing out a module, but the translations from my menus (AD_Menu_Trl) are not being exported.

Jesús Castillo

unread,
Aug 10, 2018, 10:28:53 AM8/10/18
to iDempiere
Hi, you have to run synchronize terminology process after pack in.

Bruno Carvalho

unread,
Aug 10, 2018, 10:49:01 AM8/10/18
to iDempiere
Hi Jesús,

It's works. Thanks a lot! But i always will have to run this process after import my plugin?

Jefferson Alves

unread,
Aug 13, 2018, 4:01:26 PM8/13/18
to iDempiere
Hi, I have the same problem. I changed the code with the HellBoy fix, and the menu translations were generated in the pack.

Could this change be fixed in the iDempiere repo?
Reply all
Reply to author
Forward
0 new messages