[resolved] Translation to italian (22 posts)

  1. aurezio
    Posted 2 years ago #

    Hello, I have an issue with the translation files. I translated some of the terms in italian but I still see them in english on the site... I created the .po file but, for example, the "older posts" and "newer posts" buttons are still in english.


  2. Hi there - thanks for the report. I'm asking our developers to have a look at this and will keep you posted here.

  3. Could you please let me know specifically which additional strings are not being translated, in addition to Older Posts/Newer Posts, and provide links to those pages/posts if they're visible somewhere other than the homepage? Thanks a lot.

  4. Hi there, could you please paste the content of your .po file into a Pastebin and link to it here, and do the same with your .mo file? http://pastebin.com/


  5. aurezio
    Posted 2 years ago #

    I don't know how to do that...

  6. aurezio
    Posted 2 years ago #

    This is the .po file opened with notepad++


    The .mo file is full of strange characters...

  7. Caroline Moore
    Posted 2 years ago #


    I did a quick test and was able to get a PO file to work with Sunspot. You can view the base PO I used here (no translations):

    The biggest difference I noticed was your file is looking in a directory above (../404.php, ../archive.php, etc.) and mine is looking in the same directory (404.php, archive.php, etc.) so I think there is some confusion with the directory structure and the location of the PO file.

    Ensure your file is located in the parent theme's /languages folder (unless you've told it to look somewhere else in your child theme) and, if that fails, try using the above PO file.

  8. aurezio
    Posted 2 years ago #

    My .po file is already located in the languages folder...

    Anyway, none of the files work. I also noticed that when I translate

    <span class=\”meta-nav\”>←</span> Older posts


    <span class=\”meta-nav\”>←</span> Sogni precedenti

    I get a fatal error from poedit when saving the file...

    So I have to translate it like

    ← Sogni precedenti

    without the span stuff...

    I also tried to delete the source links (the . and the ..) but nothing changed...

    Don't know what to do at this point. I guess I have to leave them in english...

  9. <span class=\”meta-nav\”>←</span> Older posts

    <span class=\”meta-nav\”>←</span> Sogni precedenti

    To prevent errors, make sure you're using straight quotes and not curly quotes. (The code you pasted above uses curly quotes.)

  10. Silkulix
    Posted 1 year ago #

    I like the sunspot-theme very much but unfortunately I've also a problem with the language - precise with the translation.

    I've made a textdocument instead of using pastebin - I hope it's o.k.?
    You can download it from dropbox: https://www.dropbox.com/s/5v7rpz36nz37jas/themes-sunspot-languages-sunspot_pot?dl=0

    The filename shows you the structure of the folders. The real filename is sunspot.pot

    The most strings I've translated meanwhile - you can see. But there is no Result or effect to see on my site - it's still in english: http://www.silkeramik.de/blog/ :'(

    I also tried to use CodeStyling Localization but they send an error-notification like: The Textdomains are not according, there is a problem with the source-file-programming - I should contact the theme-author
    There is a warning too: It seems like in the sourcefiles is a code that was copied and pasted from other Plugins, Themes or Widgets.

    I've also another language-file which is located here: wp-content / languages / de_DE.po but you can't find there "Continue reading..." for example ...

    I hope you can help me ...

  11. Hi Silke - for security reasons I won't be able to download your Dropbox file, sorry about that.

    Before we start troubleshooting, let me explain the recommended steps to install an Automattic theme in another language and see if you can get your translation working by following these steps:

    1) Create a child theme
    2) Download theme translation (.mo file) from GlotPress. The German version of Sunspot is here: http://translate.wordpress.com/projects/wpcom/themes/sunspot/de/default
    3) Set up child theme's functions.php to pull in the language file
    4) Upload .mo file and the rest of your child theme files
    5) Activate child theme

    Here is a detailed, step-by-step guide on how to do the above:

    Let me know how it goes.

  12. Silkulix
    Posted 1 year ago #

    Hi Kathryn, thank you very much for your help. I understand, that you can't download the file.

    I regret to say that it still does not work, so I'll tell you what I've done to follow your steps:
    1. My childtheme is called "sunspotchild" - and it works after aktivating :)
    2. Than I renamed the .mo file in de_DE.mo and put it into a new languages-folder in the sunspotchild-folder
    3. I also have in the sunspotchildfolder a style.css-file:

    Theme Name: sunspotchild
    Description: Childtheme vom sunspot parenttheme
    Author: Silke Lamla
    Author URI: http://www.silkeramik.de
    Template: sunspot
    Version: 1.0
    @import url("../sunspot/style.css");

    and the functions.php:

    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'sunspotchild', get_stylesheet_directory() . '/languages' );

    But its still in english ...
    Can you see the mistake?

  13. Silkulix
    Posted 1 year ago #

    Maybe if it's still useful, you can see the sunspot.pot-file in the languages-folder of the parent-theme (without downloading) here: http://pastebin.com/mWJVFsSc

  14. Please change sunspotchild to sunspot in the last line of your function:

    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'sunspot', get_stylesheet_directory() . '/languages' );

    This function must reference the textdomain of the parent theme (sunspot). Let me know how it goes.

  15. Silkulix
    Posted 1 year ago #

    Huiiii now it works. I can't believe it :)))
    Thank you very very much Kathryn!
    Cool :D

  16. Silkulix
    Posted 1 year ago #

    ... but there's still standing "Continue reading" instead of "Weiterlesen" ...

  17. Huiiii now it works. I can't believe it :)))

    Glad it works!

    I see what you mean about the "Continue reading" still in English under the excerpts on the homepage. I'm going to consult our developers on this and get back to you, since I was able to replicate the issue on a test site.

  18. Silkulix
    Posted 1 year ago #

    Great - i'll wait and hope the best ...

  19. We've found the problem. :-)

    In your parent Sunspot theme, open the file /inc/tweaks.php in a text editor. On line 68, change this:

    return ' <a href="'. get_permalink() . '" class="more-link">' . __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'sunspot' ) . '</a>';

    to this:

    return ' <a href="'. get_permalink() . '" class="more-link">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'sunspot' ) . '</a>';

    Note that in that piece of code what you're doing is changing &raquo; to &rarr;

    Let me know if this does the trick.

    We'll try to get this fixed up in the next version of Sunspot so you won't need to make this change again when you update the theme.

  20. Silkulix
    Posted 1 year ago #

    Yesss that's it!
    Thanks a lot again, and i know, that i won't have to do anything when i update sunspot next time.
    Best wishes to you!

  21. Wonderful! Thanks for confirming that this fix works. :-)

    If anyone has further issues with Sunspot relating to translations or anything else, please start a new thread as I've marked this one as resolved. Thanks!


  22. Caroline Moore
    Posted 1 year ago #

    Howdy! Just a note to say the latest version of the theme, downloaded here:


    ...has the fixed POT file. :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.