Collect on delivery translation

  • Posts: 8
  • Thank you received: 0
9 years 1 month ago #195088

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 2.5

Hello,

I have a multi language website (3 languages available: fr, de, it) and I have only one payment method - Collect on delivery. I wanted this method and its description to be translated in those languages, either manually or automatically. I'd prefer automatically. The whole shop is automatically translated. How can I be able to translate this too?

EDIT: I can't use Falang. Any other solution would be appreciated.
Best regards.

Last edit: 9 years 1 month ago by azhpo.

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

  • Posts: 8
  • Thank you received: 0
9 years 1 month ago #195122

If there is no option available to automatically translate, how can I override it?

In tab Languages, selected the language file and tried:

hikashop_checkout_payment_name="Override text"

But doesn't work.

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

  • Posts: 2143
  • Thank you received: 747
9 years 1 month ago #195135

The namekeys you want to look for are these (from the original en-GB.com_hikashop.ini file):

COLLECT_ON_DELIVERY="Collect On Delivery"
AMOUNT_COLLECTED_ON_DELIVERY="The amount of %s will be collected upon delivery of your order (%s)"

Hint: It pays when opening the original language file with a decent editor which is offering a good search tool. ;)


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 8
  • Thank you received: 0
9 years 1 month ago #195144

Hello,

Thank you for your answer, but it seems not to change anything.
This is what I want to change (from english to french):



When I search for this text "You can pay when your package ..." in the en-GB file it doesn't find anything, so this text is not coming from this files. And when I search for "COLLECT_ON_DELIVERY", in the FR-fr file, it looks it is already translated.

So my guess is that isn't the correct namekey and/or I think this text is not coming from this files.

How can I change it?

Best regards.

Attachments:

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

  • Posts: 2143
  • Thank you received: 747
9 years 1 month ago #195146

Re. "You can pay when...", go into the payment method and check the description text there.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 8
  • Thank you received: 0
9 years 1 month ago #195147

I know I can edit there, I saw it already. As I said before, my website supports 3 different languages, so I know I can edit this description with PHP, but what about the title ("Collect on delivery")? I can't write PHP there.

Last edit: 9 years 1 month ago by azhpo.

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

  • Posts: 81484
  • Thank you received: 13062
  • MODERATOR
9 years 4 weeks ago #195626

Hi,

Normally, that would be done with Falang.
You can't do it with translation overrides.
One possibility would be to do it with code modifications in all the views where the payment is displayed, but that would be a lot of work and you need to be a developer for that.

An easier solution would be to use this extension:
extensions.joomla.org/extension/easy-language
You would have such tags in the payment name and payment description and it would allow you to easily translate them.

Last edit: 9 years 4 weeks ago by nicolas.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum