• Open
  • Julius Lehtinen
    Participant
    February 11, 2019 at 5:18 pm #42949

    Greetings,

    I have much enjoyed the flexibility of the premium theme, it works wonders, looks professional and rather minimalist.

    My problem is about translating certain rather hardcoded expressions in the themefiles.

    I have been able to customize certain parts of the theme files when it comes to translating certain expressions (“comments”, “read more”, “post reply”) to my native Finnish for the website for better user experience. Unfortunately I currently have troubles in locating where in the theme files to translate the few outstaying English expressions that cannot be changed via the ordinary WP UI and customization.

    First of these instances are present in the comment sections of blog posts, for example in https://databyro.fi/suomen-puoluekentta-tasoittuu-hallituskoalitioilla-laajenemispaineita/

    When allowing comments, it rolls out a default comment form declared in “wp-content/themes/evolve-plus/inc/comments.php”. However, not all sections of the form can be edited from there:

    I was able to edit the expressions squared with blue but unable to edit the expressions squared with red. This resulted in a mix of Finnish and English.

    Second instance where I was not able to translate an expression is at the front page when it works as a static posts page: https://databyro.fi/

    I have used the Theme4Press shortcode tool when setting the blog part.

    The expression in question is the red-squared “Read more” after blogposts. I could not find where to modify the text to Finnish language.

    So onto the question: Would it be possible for someone to guide me to the right direction within the theme files where to edit these? I’d be happy to provide more information if needed.

    Cheers and thank you for the awesome theme,
    Julius

    Roman
    Keymaster
    Posts: 2944
    February 12, 2019 at 11:47 am #42954

    Hello Julius,

    to your questions:

    1. this string is a part of the WordPress core so it must be translated from the WP translation files itself.

    2. For the second one, you are using the shortcode plugin, so the translation must be done in the plugin’s side.

    Thank you very much for the translation support. If you would send it us through our contact page, we could add it in the next theme release ๐Ÿ˜‰

    Julius Lehtinen
    Participant
    Posts: 2
    February 12, 2019 at 3:25 pm #42972

    Thank you for the swift answer!

    1. this string is a part of the WordPress core so it must be translated from the WP translation files itself.

    2. For the second one, you are using the shortcode plugin, so the translation must be done in the pluginโ€™s side.

    These both worked marvellously, I was able to fix the problems I had. Thank you a thousand times, I feel a bit dumb not realising the shortcodes of course are edited from the plugin files.

    Thank you very much for the translation support. If you would send it us through our contact page, we could add it in the next theme release ๐Ÿ˜‰

    I don’t think I understood this part. Send what, all the (edited) theme files? The translated expressions are in multiple files and I would need to track them down (or just send the theme folder). I am not unfortunately familiar with the translation .mo files.

    Thanks once again!

    Julius Lehtinen
    Participant
    Posts: 2
    February 12, 2019 at 3:45 pm #42973

    Double-posting: I just looked at the translation thing for the first time, downloaded Poedit and checked how it works. It would have made my original problem so much easier to just translate the expressions with the in-built .mo system.

    Instead I forked around in the actual and original evolve-plus theme files and manually edited php code there. It worked, but it is a patchwork indeed. Should have read the documentation better, apologies.

    I’ll work on this and send you the Finnish file at some point if and when I make progress.

    Roman
    Keymaster
    Posts: 2944
    February 12, 2019 at 7:59 pm #42978

    thanks for the info ๐Ÿ™‚