Payment Plugin development / languages

  • Ruediger Schultz
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 week 5 days ago #124885 by Ruediger Schultz
Payment Plugin development / languages was created by Ruediger Schultz
Hello,
I successfully developed a new payment plugin (allowing austrian and german users to pay through their own online banking tool).
I now search the documentation on how to include language files into the XML manifest.
can anyone guide me to an example for this please?

kind regards
Ruediger Schultz
Schultz IT Solutions

Please Log in or Create an account to join the conversation.

More
1 week 5 days ago #124887 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment Plugin development / languages

Please Log in or Create an account to join the conversation.

  • Ruediger Schultz
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 week 5 days ago #124889 by Ruediger Schultz
Replied by Ruediger Schultz on topic Payment Plugin development / languages
Thank you Tuan for your (lightspeed) answer!

However, I already went through the development documentation, but could not find any reference to "language files" (did I overlook something?). As such payment plugins are not installed through the Joomla-Installer, but through your own one, I would need some guidance here...

Maybe you could screenshot the relevant parts from another (existing) payment plugin manifest?

thank you again
Ruediger

Please Log in or Create an account to join the conversation.

More
1 week 5 days ago #124898 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment Plugin development / languages
Hello Ruediger

At the moment, we store all language items related to payment plugins in component language file. So please add the language items to the component language file if it's possible

Tuan

Please Log in or Create an account to join the conversation.

  • Ruediger Schultz
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 week 3 days ago #124960 by Ruediger Schultz
Replied by Ruediger Schultz on topic Payment Plugin development / languages
Ok, I now took a different approach, and it seems to work fine (at least as far as I can see for the moment):

My plugin now also has a "language" directory, which is also copied to the host based on the manifest file:
...
</config>
<files>
<filename>mypayment.php</filename>
<folder>mypayment</folder>
<folder>language</folder>
</files>
</install>

In this folder the standard Joomla language structure is implemented, and the language files are stored there accordingly.

in the __construct method of the plugin I also load my language files:

$baseDir = dirname(__FILE__);
$language = JFactory::getLanguage();
$language->load('com_eventbooking_payment_mypayment',
$baseDir, $language->getTag(), true);


You might want to check this out and adapt your documentation for other developers (if you agree this works)...

kind regards
Ruediger Schultz
Schultz IT Solutions

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #124975 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment Plugin development / languages
Hello

Yes, that works. Thanks for sharing your solution.

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc