- Posts: 36
- Thank you received: 1
×
WooPrice Calculator PRO
[SOLVED] translate
- Yourwp
-
Topic Author
- Offline
Less
More
3 years 9 months ago #334
by Yourwp
Yourwp replied the topic: translate
ok, mixed content issue is solved. Had http in config.php instead of https.
tx
tx
The topic has been locked.
- Yourwp
-
Topic Author
- Offline
Less
More
- Posts: 36
- Thank you received: 1
3 years 9 months ago #333
by Yourwp
Yourwp replied the topic: translate
tx for the fix!!
i notice now the price is not calculated anymore? after the update?
in the chrome console i see some issues with mixed content.
i notice now the price is not calculated anymore? after the update?
in the chrome console i see some issues with mixed content.
[hide]evacuatieman.be/:1 Mixed Content: The page at 'https://evacuatieman.be/fr/produit/kit-evacuation/' was loaded over HTTPS, but requested an insecure image 'http://evacuatieman.be/wp-content/plugins/woo-price-calculator/assets/ajax-loader.gif'. This content should also be served over HTTPS.[/hide]
The topic has been locked.
- Enrico
-
- Offline
Less
More
- Posts: 367
- Thank you received: 18
3 years 9 months ago - 3 years 9 months ago #331
by Enrico
Enrico replied the topic: translate
Hi,
I've solved the problem. There was mainly two problems:
1. A plugin problem, the dropdown items were not well translated
2. Language file is: "nl_NL.php", so I created a "nl_NL.php" file and copied the contents from "be_FR.php". You need to change the translations there.
I've updated your plugin to 1.2.24
Best regards,
Enrico
I've solved the problem. There was mainly two problems:
1. A plugin problem, the dropdown items were not well translated
2. Language file is: "nl_NL.php", so I created a "nl_NL.php" file and copied the contents from "be_FR.php". You need to change the translations there.
I've updated your plugin to 1.2.24
Best regards,
Enrico
Last Edit: 3 years 9 months ago by Enrico.
The topic has been locked.
- Yourwp
-
Topic Author
- Offline
Less
More
- Posts: 36
- Thank you received: 1
3 years 9 months ago #329
by Yourwp
Yourwp replied the topic: translate
Just sent the credentials by mail.
Tx!!
Tx!!
The topic has been locked.
- Enrico
-
- Offline
Less
More
- Posts: 367
- Thank you received: 18
3 years 9 months ago #327
by Enrico
Enrico replied the topic: translate
Hi Yourwp!
Could you please send to me WP-admin credentials also?
Thanks,
Enrico
Could you please send to me WP-admin credentials also?
Thanks,
Enrico
The topic has been locked.
- Yourwp
-
Topic Author
- Offline
Less
More
- Posts: 36
- Thank you received: 1
3 years 9 months ago #325
by Yourwp
Yourwp replied the topic: translate
I just sent the credentials. Sorry this took a bit longer, but i had some issues with plugin updates.
tx support!
tx support!
The topic has been locked.
- Enrico
-
- Offline
Less
More
- Posts: 367
- Thank you received: 18
3 years 10 months ago #274
by Enrico
Enrico replied the topic: translate
Hi,
Could you please send me your FTP and wp-admin access credentials to altoswebsolutions.com/contact-us ?
Thanks,
Enrico
Could you please send me your FTP and wp-admin access credentials to altoswebsolutions.com/contact-us ?
Thanks,
Enrico
The topic has been locked.
- Yourwp
-
Topic Author
- Offline
Less
More
- Posts: 36
- Thank you received: 1
3 years 10 months ago #271
by Yourwp
Yourwp replied the topic: translate
Tx for your help Enrico,
but i don't see the change. See the screenshots, Everything is translated (labels, my customdescription i added in the theme)
but not the labels in the dropdown.
in the checkout it is translated.
this is my field now (noticed the html editor cleaned up to much in my previeous post):
but i don't see the change. See the screenshots, Everything is translated (labels, my customdescription i added in the theme)
but not the labels in the dropdown.
in the checkout it is translated.
this is my field now (noticed the html editor cleaned up to much in my previeous post):
<!--Field start
Landkeuze-->
<div id="<?php echo $this->view['data']['woo_price_calc_7']['elementId']; ?>" class="form-group wpc-field-widget">
<div class="wpc-field <?php echo $this->view['data']['woo_price_calc_7']['class']; ?>">
<label for="<?php echo $this->view['data']['woo_price_calc_7']['elementId']; ?>_field">
<?php echo $this->userTrans($this->view['fields']['woo_price_calc_7']['label_name']); ?>
</label>
<?php echo $this->view['fields']['woo_price_calc_7']['html']; ?>
</div>
<div class="wpc-field-error"></div>
</div>
<!--Field end-->
The topic has been locked.
- Enrico
-
- Offline
Less
More
- Posts: 367
- Thank you received: 18
3 years 10 months ago - 3 years 10 months ago #266
by Enrico
Enrico replied the topic: translate
Hi Yourwp,
Try from:
to:
Where "woo_price_calc_2" is your field.
but you can just do:
This code replace the previous one becausedraws automatically all the html of the field.
Best regards,
Enrico
Try from:
<!--Field start-->
<div id="<?php echo $this->view['data']['woo_price_calc_2']['elementId']; ?>" class="form-group wpc-field-widget">
<div class="wpc-field <?php echo $this->view['data']['woo_price_calc_2']['class']; ?>">
<?php echo $this->view['fields']['woo_price_calc_2']['html']; ?>
<label for="<?php echo $this->view['data']['woo_price_calc_2']['elementId']; ?>_field">
<?php echo $this->view['fields']['woo_price_calc_2']['label_name']; ?>
</label>
</div>
<div class="wpc-field-error"></div>
</div>
<!--Field end-->
to:
<!--Field start-->
<div id="<?php echo $this->view['data']['woo_price_calc_2']['elementId']; ?>" class="form-group wpc-field-widget">
<div class="wpc-field <?php echo $this->view['data']['woo_price_calc_2']['class']; ?>">
<?php echo $this->view['fields']['woo_price_calc_2']['html']; ?>
<label for="<?php echo $this->view['data']['woo_price_calc_2']['elementId']; ?>_field">
<?php echo $this->userTrans($this->view['fields']['woo_price_calc_2']['label_name']); ?>
</label>
</div>
<div class="wpc-field-error"></div>
</div>
<!--Field end-->
Where "woo_price_calc_2" is your field.
but you can just do:
<b><?php echo $this->userTrans($field['field']->label); ?>:</b><br/>
<?php echo $field['widget']; ?>
This code replace the previous one because
$field['widget']
Best regards,
Enrico
Last Edit: 3 years 10 months ago by Enrico.
The topic has been locked.
- Yourwp
-
Topic Author
- Offline
Less
More
- Posts: 36
- Thank you received: 1
3 years 10 months ago #261
by Yourwp
Yourwp replied the topic: translate
Hello support,
can you help a little bit more on this one? pleeease
this is what i have in my theme file for a dropdown.
I don't see where i should add you code? Above this form?
<!--Field start
Landkeuze-->
<div id="<?php echo $this->view; ?>" class="form-group wpc-field-widget">
<div class="wpc-field <?php echo $this->view; ?>">
<label for="<?php echo $this->view; ?>_field">
<?php echo $this->view; ?>
</label>
<?php echo $this->view; ?>
</div>
<div class="wpc-field-error"></div>
</div>
<!--Field end-->
can you help a little bit more on this one? pleeease

this is what i have in my theme file for a dropdown.
I don't see where i should add you code? Above this form?
<!--Field start
Landkeuze-->
<div id="<?php echo $this->view; ?>" class="form-group wpc-field-widget">
<div class="wpc-field <?php echo $this->view; ?>">
<label for="<?php echo $this->view; ?>_field">
<?php echo $this->view; ?>
</label>
<?php echo $this->view; ?>
</div>
<div class="wpc-field-error"></div>
</div>
<!--Field end-->
The topic has been locked.
- Enrico
-
- Offline
Less
More
- Posts: 367
- Thank you received: 18
3 years 10 months ago #247
by Enrico
Enrico replied the topic: translate
Hi,
If you are using a custom theme, form templates are not managed by WPC anymore.
You can use the function:
For example in the default custom theme:
If you are using a custom theme, form templates are not managed by WPC anymore.
You can use the function:
$this->userTrans("TO TRANSLATE");
For example in the default custom theme:
<?php
/*
* THEME_NAME: Example (No Front End Framework)
*/
?>
<h1>This is a template example</h1>
<div class="wpc-product-form">
<?php foreach($this->view['data'] as $field): ?>
<b><?php echo $this->userTrans($field['field']->label); ?>:</b><br/>
<?php echo $field['widget']; ?>
<br/><br/>
<?php endforeach; ?>
</div>
The topic has been locked.
- Yourwp
-
Topic Author
- Offline
Less
More
- Posts: 36
- Thank you received: 1
3 years 10 months ago #243
by Yourwp
Yourwp replied the topic: translate
i noticed that the labels of the dropdowns are translated in the checkout.
just not in the form. I use a custom theme.
just not in the form. I use a custom theme.
The topic has been locked.
- Yourwp
-
Topic Author
- Offline
Less
More
- Posts: 36
- Thank you received: 1
3 years 10 months ago #242
by Yourwp
Yourwp replied the topic: translate
attached the fr-FR.php file
concerning the translations, i use WPML for the translations
it is weird that this works correct on my pc. When i swith the language it shouldn't it use the language defined in the page instead of the browser lang?
tx for the help!
concerning the translations, i use WPML for the translations
it is weird that this works correct on my pc. When i swith the language it shouldn't it use the language defined in the page instead of the browser lang?
tx for the help!
The topic has been locked.
- Enrico
-
- Offline
Less
More
- Posts: 367
- Thank you received: 18
3 years 10 months ago #241
by Enrico
Enrico replied the topic: translate
Hi,
It depends on what is your default language on your browser phone.
If WooPriceCalculator can't find the string in any of your files, it tries to check if en_US.php exists. If en_US.php doesn't exists than WPC shows the label as it is.
WPC translates based on the current language on the user browser (the same as WordPress does)
Could you post your language file so that I can understand why dropdown label translation is not working?
Best regards,
Enrico
It depends on what is your default language on your browser phone.
If WooPriceCalculator can't find the string in any of your files, it tries to check if en_US.php exists. If en_US.php doesn't exists than WPC shows the label as it is.
WPC translates based on the current language on the user browser (the same as WordPress does)
Could you post your language file so that I can understand why dropdown label translation is not working?
Best regards,
Enrico
The topic has been locked.
- Yourwp
-
Topic Author
- Offline
Less
More
- Posts: 36
- Thank you received: 1
3 years 10 months ago #240
by Yourwp
Yourwp replied the topic: translate
Hello,
tx! i managed to translate the labels.
But the translation of the labels in the dropdown doesn't seem to work.
Also, on my phone (iphone) the labels are not translated.
Maybe a phone uses expects something else then fr_FR?
Part of the message is hidden for the guests. Please log in or register to see it.
tx! i managed to translate the labels.
But the translation of the labels in the dropdown doesn't seem to work.
Also, on my phone (iphone) the labels are not translated.
Maybe a phone uses expects something else then fr_FR?
Part of the message is hidden for the guests. Please log in or register to see it.
The topic has been locked.
- Enrico
-
- Offline
Less
More
- Posts: 367
- Thank you received: 18
3 years 10 months ago - 3 years 10 months ago #235
by Enrico
Enrico replied the topic: translate
Hi,
label1 is the Label of the field (Field Label), so if you create a new field with label 'height', label1 will be 'height'.
Example:
en_GB.php:
<?php
return array(
'height' => 'Height',
);
it_IT.php:
<?php
return array(
'height' => 'Altezza',
);
label1 could be a dropdown item also. So if you create a new dropdown field, you can translate every item of the select field.
Best regards,
Enrico
label1 is the Label of the field (Field Label), so if you create a new field with label 'height', label1 will be 'height'.
Example:
en_GB.php:
<?php
return array(
'height' => 'Height',
);
it_IT.php:
<?php
return array(
'height' => 'Altezza',
);
label1 could be a dropdown item also. So if you create a new dropdown field, you can translate every item of the select field.
Best regards,
Enrico
Last Edit: 3 years 10 months ago by Enrico.
The topic has been locked.
- Yourwp
-
Topic Author
- Offline
Less
More
- Posts: 36
- Thank you received: 1
3 years 10 months ago #232
by Yourwp
Yourwp created the topic: translate
hello,
can i get some help with the translation of the labels?
i read this:
woopricecalculator.com/documentation#translation
But as stated in the manual there was no example file in the specified folder.
I created a file be_FR, and pasted the example, but i don't understand how this should work.
'label1' => 'label1_EN',
should 'label1' be the fieldname? fe woo_price_calc_n?
tx for the help
can i get some help with the translation of the labels?
i read this:
woopricecalculator.com/documentation#translation
But as stated in the manual there was no example file in the specified folder.
I created a file be_FR, and pasted the example, but i don't understand how this should work.
'label1' => 'label1_EN',
should 'label1' be the fieldname? fe woo_price_calc_n?
tx for the help
The topic has been locked.
Moderators: david
Time to create page: 0.274 seconds