How to pack my language plugin into CB package?

10 years 10 months ago #146659 by baijianpeng
I am working on the Chinese language translation for CB v1.2.3 now.

I hate to intall language plugin separately, after the installation of CB finished. I want to pack my plugin into the CB install package and then it will be installed together with the CB component.

Well, I did following steps:

1. Open CB component zip package with 7-zip.
2. Add my language plugin folder and files into the archive named pluginsfiles.tgz inside above zip file.
3. Update/Save this zip file.
4. Install this zip file.

There is no error during installation.

After installtion, I can see my language folder/files in the /components/com_comprofiler/plugin/language directory.

But, I can't find my language plugin on the "CB plugin manager" list.

So, my question is:

How can I put my language plugin into the CB component package to save my time by avoiding another installation operation?

Is it possible to let CB just "detect and recognize" my language plugin once I upload it to the proper path?

Thanks.

Please Log in to join the conversation.

10 years 10 months ago #146697 by Lintzy
Yes it is possible.

You have to unzip comprofiler.zip. Then unzip pluginsfiles.tgz. Put your language folder into pluginfiles/language, so you will have the folder structure: pluginfiles/language/chinese

Zip the folder pluginfiles again, but - and this is important! into TGZ again: pluginfiles.tgz. 7zip can't do this, use another package program for it!

Don't forget to delete the unpacked folder pluginfiles.

Now zip the folder comprofiler again into comprofiler.zip.

That was it :)

Please Log in to join the conversation.

10 years 10 months ago #146699 by baijianpeng
Replied by baijianpeng on topic Re:How to pack my language plugin into CB package?
Thanks for your help. I got it.

Please Log in to join the conversation.

10 years 9 months ago #146711 by kmilos
Lintzy wrote:

Zip the folder pluginfiles again, but - and this is important! into TGZ again: pluginfiles.tgz. 7zip can't do this, use another package program for it!


Of course it can, although not in one step:
  1. Make .tar archive of the folder
  2. Gzip to .tar.gz
  3. Rename to .tgz

Please Log in to join the conversation.

10 years 9 months ago #146712 by Lintzy
baijianpeng

you are welcome :)

kmilos wrote:

Of course it can, although not in one step:

  1. Make .tar archive of the folder
  2. Gzip to .tar.gz
  3. Rename to .tgz
[/size]


:laugh: That's a cheat

Post edited by: Lintzy, at: 2010/11/21 00:45

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.168 seconds

Facebook Twitter LinkedIn