Tagged: x
-
AuthorPosts
-
August 26, 2016 at 9:22 am #1148256
digohsParticipantHello there!
I was trying to translate some strings of my X theme, but somehow I can’t get it done.I’m using this arcticle from you guys, and I followed it exactly how it tells me to do it:
https://community.theme.co/kb/translation/Please, give me some light on what is wrong.
I’m providing you FTP access and the admin area too.
Please, feel free to come in and check for any mistakes I might have made.
August 26, 2016 at 11:03 am #1148388
RahulModeratorHey There,
Thanks for writing in!
Would you mind providing us the url of your site with login credentials so we can take a closer look and fix the issue? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP Hostname
– FTP Username
– FTP PasswordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.August 26, 2016 at 11:23 am #1148426
digohsParticipantThis reply has been marked as private.August 26, 2016 at 11:24 am #1148427
digohsParticipantemiliaalvares.com
August 26, 2016 at 7:35 pm #1148944
RadModeratorHi there,
Would you mind providing some details of what you already did and what should be translated? Like sample and screenshots of the content and to what language. Translation is a big topic and I like to narrow the investigation based on what you already did.
Thanks!
August 30, 2016 at 10:25 am #1153519
digohsParticipantI’m trying to translate this page:
http://emiliaalvares.com/category/desempenho/The line I want to translate are these ones:
“Below you’ll find a list of all posts that have been categorized as “Desempenho””“Category Archive”
And the “Read more” text after the post excerpt.
Thanks.
August 30, 2016 at 1:02 pm #1153757
RahulModeratorHey There,
Please add this under Custom > JavaScript in the Customizer.
jQuery(".x-recent-posts-excerpt").html(function(index, html) { return html.replace('Read More', '<span>Read More</span>'); });And this one is for styling, add this to custom css. How do you want the read more to look like?
.x-recent-posts-excerpt span { color: red; }Hope it helps!
October 4, 2016 at 12:30 pm #1202276
digohsParticipantI’m sorry, but I’m not intending to translate my website with CSS/Javascript on each page.
I want to simply translate the pot file and get it to work.
Please help me find out what’s going on my website. It’s looking really beautifull but I still need to translate some strings so it can be 100%
October 4, 2016 at 11:20 pm #1202933
LelyModeratorHi There,
There is a step by step process stated here:https://community.theme.co/kb/translation/ on how to translate using Poedit. Did you try that already?
1.) Downloade Poedit
2.) Open the x translation template file in Poedit file from this folder \wp-content\themes\x\framework\lang
3.) Click Create New translation button
4.) Select Portugese(This is your language, correct?)
5.) Click View > Select Sort by Source. This will order the Source text so it is easy to find the text to be translated.
6.) Find and select the text to be translated then under Translation field, add the corresponding translation of the text.
7.) Go to File > Compile to MO. Filename should be pt_PT and save this on strong>\wp-content\themes\x-child\languages. Note that you have to create this languages folder.
8.) Add the following code on your child theme’s functions.php file:add_action( 'after_setup_theme', 'load_child_language' ); function load_child_language() { load_child_theme_textdomain( '__x__', get_stylesheet_directory() . '/languages' ); }Note that there are two instance of Below you’ll find a list of all posts that have been categorized as on the template. Translate both.
This thread might also help:https://community.theme.co/forums/topic/no-way-to-translate/
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1148256 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
