Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › translation
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › translation
- This topic has 13 replies, 3 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
February 9, 2015 at 10:53 am #148314
hello, which is the best practice to avoid to lose the translation of your theme with .po and .mo during the updating?
Thanksp.s: I have another problem:
in the cart I find this message:
“No shipping methods were found; please recalculate your shipping or continue to checkout and enter your full address to see if there is shipping available to your location”
How can i change this text?
I have found this text in the .po of your theme, so I have translated its, but it doesn’t work (I have already created the file .mo)February 9, 2015 at 11:05 am #148319for the second: I think that the trouble is in the plugin Codestyling Localization.
February 9, 2015 at 11:13 am #148321Hi,
To avoid losing translation on theme updates, add the code below to your child theme functions.php
Also you will need to create a “languages” folder inside your child theme and paste the .po and .mo files there.
/** * Setup My Child Theme's textdomain. * * Declare textdomain for this child theme. * Translations can be filed in the /languages/ directory. */ function my_child_theme_setup() { load_child_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'my_child_theme_setup' );
-Rui
February 9, 2015 at 12:42 pm #148374thank you, I have another 3 questions:
1) after the updating, the “add to cart” button is not the same (link in the private message)
2) The “Show cart aux option” in the header writes the number in this way “1,000.00”, not in this way 1.000,00″. What should I do?3) I have wpml, the language default of the strings is english and the main language of the website is italian. So when I write in the “theme option” menu i write in english, but sometimes the written return to Italian.
Thanks
February 9, 2015 at 12:42 pm #148375This reply has been marked as private.February 9, 2015 at 3:15 pm #148465up
February 9, 2015 at 3:25 pm #1484721)
Regarding the add to cart button add the code below to your custom css option.
This fix will sent in the next update..woocommerce form.cart button.add_to_cart_button { border: 0; border-radius: 0; box-shadow: none; height: 40px; padding: 0 15px; float: left; font-weight: bold!important; outline: 0!important; }
2-) did you checked your currency settings in Woocommerce? Try different settings.
3) Can you explain further with screenshot if possible?
-Rui
February 9, 2015 at 3:59 pm #1484891)thanks
2) the setting in woocommerce is ok, infact in the product page the price is € 1.000,00
3)I do an example:
a)in the theme option, top area, i write “Call us on +39 xxxx xxxxxxx”
b) in the string translation i translate “Chiamaci al numero +39 xxxx xxxxxx”
c) after a few of time, if I change other setting of the theme option, in the theme option i see “Chiamaci al numero +39 xxxx xxxxxx” (the english text disappears)paolo
February 10, 2015 at 2:28 pm #148770Regarding the 1), in the mobile I have yet the trouble
Regarding the 2), I attach a picture
Regarding 3) maybe I have not explained well?
Thanks
Paolo
Attachments:
You must be logged in to view attached files.February 12, 2015 at 11:59 am #149390This reply has been marked as private.February 12, 2015 at 12:46 pm #149430This reply has been marked as private.February 12, 2015 at 2:17 pm #149492It’s displaying fine when the page initial loads but then changes to incorrect format.
It seems to be caused by WPML String translation, can you try to update it to the last version.
-Rui
February 13, 2015 at 8:49 am #149728Thank you
PaoloFebruary 13, 2015 at 9:02 am #149738Hi,
You most welcome. Great thanks to Rui.
Thanks
Mohammad -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.