Page 1 of 1

Button_confirm caption not translating;

Posted: Sun Jun 07, 2015 10:00 pm
by elcopdoo
Button_confirm is not translating in checkout-confirm.
We have croatian language activated, and I have checked files:
/catalog/language/croatia/croatia.php
and all is ok, $_['button_confirm'] and $_['text_loading'] is present.

Can anyone help me with this?
Checkout_confirm_button.png

Checkout_confirm_button.png (5.41 KiB) Viewed 1578 times

Checkout_confirm_button_clicked.png

Checkout_confirm_button_clicked.png (5.26 KiB) Viewed 1578 times


Re: Button_confirm caption not translating;

Posted: Mon Jun 08, 2015 5:06 am
by D3MO
in oc 2.0.2.x it is loaded from default language file earlier it were default.php in all languages now it is changed to language_name.php

for example
that is catalog/language/english/english.php


$_['button_confirm'] = 'Confirm Order';

$_['text_loading'] = 'Loading...';

so in your croatian translation if you have default.php file in your language folder rename it to croatian.php (if the language name is croatioan)

and translate these variables

Re: Button_confirm caption not translating;

Posted: Mon Jun 08, 2015 5:47 am
by elcopdoo
I clearly stated in my post that I have
/catalog/language/croatia/croatia.php

Everything is translating well except button_confirm in checkout-confirm.
I cannot find source of this behavior...

I have double checked language files, they are ok...
So it must be something with controller or templates.

It even don't work with english lang.

Anyone found similar behavior?

BR,
Denis.

Re: Button_confirm caption not translating;

Posted: Mon Jun 08, 2015 7:24 am
by D3MO
have you reloaded your cache (if you have ocmods on your website) after translating it?

Re: Button_confirm caption not translating;

Posted: Mon Jun 08, 2015 2:50 pm
by elcopdoo
I tried everything, refresh cache, delete all cache, delete all cookies,
issue remains.

This is happening only on #collapse-checkout-confirm.
Is this a OC 2.0.3.1 bug?

Re: Button_confirm caption not translating;

Posted: Mon Jun 08, 2015 8:31 pm
by viethemes
elcopdoo wrote:I tried everything, refresh cache, delete all cache, delete all cookies,
issue remains.

This is happening only on #collapse-checkout-confirm.
Is this a OC 2.0.3.1 bug?
Could you send me a admin account and a FTP account via PM, so I can take a look at the problem closer?

Re: Button_confirm caption not translating;

Posted: Thu Jun 11, 2015 12:59 am
by elcopdoo
Thank You viethemes, but I would like to resolve this myself, need only hint where to look.
Anybody can direct me where button_confirm caption is processsed?

BR,
Denis.

Re: Button_confirm caption not translating;

Posted: Thu Jun 11, 2015 11:06 am
by IP_CAM
D3MO already told you, further up, on how to do it, there is nothing more to say.
Especially not, if noone even has a chance to take a look. It would be so easy, to
add the CodeManager, to get a problem solved.
just thinking loud...
Ernie

Re: Button_confirm caption not translating;

Posted: Thu Jun 11, 2015 10:45 pm
by elcopdoo
Thank You D3MO and IP_CAM, but this is not case here, You didn't understand this:

The problem is clearly with OC and not with the translation, I already knew all this stuf about translate files(as D3MO suggested).
If I setup back to en language problem remains, button_confirm caption is presented as 'button_confirm' and should be
'confirm'.
Anyway, I'll try to fix myself and post the solution.
If somebody fix it for me, then I didn't learn anything, did I?...

BR,
Denis.

Re: Button_confirm caption not translating;

Posted: Fri Jun 12, 2015 5:50 am
by elcopdoo
I finally found source of this,
it was vqmod file pdf_invoice_pro.xml ;

I disabled xml and now button caption is working again.

BR,
Denis.

Re: Button_confirm caption not translating;

Posted: Fri Jun 12, 2015 7:48 pm
by OSWorX
elcopdoo wrote:I finally found source of this,
it was vqmod file pdf_invoice_pro.xml ;

I disabled xml and now button caption is working again.

BR,
Denis.
Fine and wonderful that it is now working for you ..

But (!) I cannot see that you mentioned in your first post that you are using VQmod and some extensions!
The more you answering:
Thank You D3MO and IP_CAM, but this is not case here, You didn't understand this:

The problem is clearly with OC ..
I would say, you have to apologize yourself by these 2
And your problem is yours, not by OpenCart!

Re: Button_confirm caption not translating;

Posted: Fri Jun 12, 2015 11:53 pm
by elcopdoo
My apologies to D3MO and IP_CAM:)

Re: Button_confirm caption not translating;

Posted: Sat Jun 13, 2015 12:05 am
by IP_CAM
ich klick Solche einfach weg, für gut, es macht einfach keinen SInn, sich darüber aufzuregen.