Tagged: x
-
AuthorPosts
-
February 25, 2017 at 3:03 pm #1385633
Hi there,
Can hou please advise me, how to translate buddypress and other plugins with polylang? I mean-how to add strings of plugins to string translationt ? Thanks.February 25, 2017 at 7:45 pm #1385825This reply has been marked as private.February 25, 2017 at 11:21 pm #1385913Hi there,
Thanks for writing in.
Is this the first time translation of your theme and plugins? Please check this https://www.sitepoint.com/multilingual-wordpress-websites-with-polylang/
It should be the same regardless of theme or plugin. But if the issue is strings that aren’t translatable then please provide the sites URL that needs to be translated. And yes, please provide your admin and FTP login credentials in private reply.
How did you get the 4 images? If it’s through XML import then it’s best to delete them all at once including post and re-import it again. Deleting them selectively without knowing to which the image belong will also remove them on their respective page/post.
Thanks!
February 28, 2017 at 12:52 am #1388348Hi,
No, i have translated before with polylang, just not x theme. And i know everything in that article – except when it comes to new strings. That part i didn’t and still don’t get 🙈
I just can’t add strings to strings translation…and i would like to translate buddypress, eform and some widgets(search, members, etc…)
The 4 images? I don’t have a clue. I suspect they were left from wpml after i uninstalled it by the book. So i deleted them all and uploaded them from scratch. Change the design of the site along the way.
Oh, could you please help me center the product image and title with price in woocommerce?
Thanks a million.February 28, 2017 at 1:04 am #1388362This reply has been marked as private.February 28, 2017 at 1:04 am #1388363This reply has been marked as private.March 1, 2017 at 11:14 am #1390598Hi there @oga23,
Yes please, if you can make sure Polylang is installed and configured as you want so we can take a look at any issues relating to that for you. 🙂
Regarding the image issue on the product page. I checked your current setup and the image is aligned right with the text wrapping the image on the left hand side with it looks like recommend products under that? Can you post a mockup of how you’d like that page to look and I’d be happy to post some custom CSS to assist you.
Thanks!
March 1, 2017 at 12:39 pm #1390725Hi,
I don’t think we understand each other about the image.
I ment the image on the product page- like:http://beta.mojzastopnik.si/izdelek/moj-prevoz/
You see the orange car on the top and the title beneath with the free pricetag? It says “Brezplacno” and it means “free” in slovenian 😉 that is what i would like centered, now it’s on the left.
about polylang – is it even possible to trnaslate all strings needed or would you recommend something else? Maybe loco, poedit or wpml? Talking about speed i hear polylang is liter than wpml…i would really like to know that for sure before i install even more plugins 😉
Thank you very much for your assistance.
March 1, 2017 at 3:45 pm #1390958Would it be possible to provide me with a snippet for displaying cover photo in buddypress? the more i look at it the more i would like it. i can have with with yet another plugin. But since the cover photo is a feature of buddypress and is prevented from display in x theme i think it shouldn’t be too hard to do it, right? or am i wrong? just asking 😉
March 1, 2017 at 8:22 pm #1391305Hi there,
1. For centered product image, please add this CSS to Admin > Appearance > Customizer > Custom > CSS
.single-product .woocommerce div.product .images { position: relative; float: none; width: 100%; display: block; text-align: center; } .single-product a.woocommerce-main-image { width: auto; float: none; clear: both; display: inline-block; }
2. About the translation, on what textdomain you’re translating your strings with? Each string belongs to their respective textdomain, and each theme and plugin could have their own textdomain. Example, “Welcome” string from textdomain_1 is different from “Welcome” from textdomain_2, they are different and need both translations. Translating one string doesn’t mean other similar strings will be translated as well.
The search widget from your sidebar is from Woocommerce, that uses woocommerce textdomain. Hence, you’ll have to translate it based on Woocommerce textdomain.
You’ll need a plugin that could translate strings regardless of textdomain, one example is the WPML. Else, you’ll have to create translation files (mo/po) for each textdomain.
Examples,
/wp-content/languages/plugins/__x__-nl_NL.po
/wp-content/languages/plugins/__x__-nl_NL.mo
/wp-content/languages/plugins/woocommerce-nl_NL.po
/wp-content/languages/plugins/woocommerce-nl_NL.mo
/wp-content/languages/__x__-nl_NL.po
/wp-content/languages/__x__-nl_NL.mo
/wp-content/languages/woocommerce-nl_NL.po
/wp-content/languages/woocommerce-nl_NL.moIt’s a lot, I personally recommend’s WPML’s Theme and plugins localization > Translate By WPML feature and string translations feature. That should translate your string easily.
Polylang is a bit lighter but compared to WPML, WPML has many useful features. As for performance, you can use any optimization plugin once you’re done with your site.
Note: If you will use Translate By WPML, please choose the next option WPML will automatically download translations for WordPress and it will give you the list of textdomains where you can translate strings.
3. Cover photo is removed intentionally as it causing too many issues. Re-implementing it isn’t simple so I’ll add this as feature request 🙂
Thanks!
March 2, 2017 at 4:43 am #1391653wow! thanks a lot, Rad, for all your info!👍
I’ll think about what to do about translation, meanwhile – css code for the image isn’t working 😉
Could you take a look and provide a code for the product title too? but only for the product page, of course.March 2, 2017 at 3:12 pm #1392425Hi there,
Ah, typo error, there should be no space between single-product and woocommerce class. Please try this
.single-product.woocommerce div.product .images { position: relative; float: none; width: 100% !important; display: block; text-align: center; } .single-product a.woocommerce-main-image { width: auto; float: none; clear: both; display: inline-block; }
And this for the title,
.single-product.woocommerce div.product .summary .product_title, .single-product.woocommerce div.product .summary div[itemprop="offers"] { text-align: center; }
Hope this helps.
March 4, 2017 at 9:44 am #1394435HI, yes, that is working! thank you.
what if i wanted the image smaller – like width:50% ?
If i change that the image is not centered anymore…March 4, 2017 at 9:48 am #1394437neverind – got it! thank you for all the help and info. Much appriciated!
March 4, 2017 at 9:56 am #1394442oh – how can i make the gallery images smaller?
-
AuthorPosts