• Resolved Mallory Destiny

    (@mallory-destiny)


    After updating the theme, Tiny Framework, I had lost all changes in the css and more: all translations I had made in all other .php-files.

    Lesson learned: I have done the css again and made a copy for next time.

    The translations is another story: how can I avoid these translations being reset again. One option is not to update, though that doesn’t seem wise somehow. I have read about .po files and such, but don’t get the clue of those as of yet. What is the best way to save the translations I made.

    To end this positively: I really like the theme as it gives me just the starting point for learning more about .php code and hopefully one day make themes myself ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Mallory Destiny

    (@mallory-destiny)

    P.S.- I do have files like:
    nl_NL.po
    nl_NL.mo

    If I have understood the documentation well, these should take care of the translations. They do for the main-site, but not for the theme. I cannot open these files. What software should I use for them? (Hopefully a free or trial version!)

    Someone should have told you not to modify any theme files directly. As you found out, the next time the theme gets updated, your changes get erased. The suggested method for making theme changes is to create a child theme. Then, you would add any CSS that you need to modify or add to the child theme’s style.css file, and make copies into your child theme folder of any .php files that you need to change. Creating a child theme insulates you from any parent theme updates. There is also a section in the above link on how to save your translation files. I’m guessing that you would create a languages folder off your child theme folder and copy your translation files there.

    Theme Author Tomas Mackevicius

    (@tomasm)

    Sorry about this, but that’s the way WordPress works. Please read about a child theme here:

    https://mtomas.com/389/tiny-forge-framework-child-themes-comprehensive-guide#Use-child-theme-or-not

    Also, you can get new theme version that has partialy translated NL_nl and fully translated Bokm?l version:

    Thread Starter Mallory Destiny

    (@mallory-destiny)

    Thank you for the advise.

    To learn more I have made a donation so that I could use an example child-theme. Where can I find it?

    Thread Starter Mallory Destiny

    (@mallory-destiny)

    Apologizing for being more trouble…! Just one more question…

    In the site-files I found a .pot-file (with my last name on it! ?? ) I am sure I didn’t create it. It opens in Open Office and gives lines to translate. Could I just update this to translate files? Or wouldn’t that make any sense?

    Theme Author Tomas Mackevicius

    (@tomasm)

    Hi, Mallory,

    the basic child theme example is free and is included with every download of Tiny Framework in /inc/examples of the zip file.

    I don’t want you to feel like tricked, if you want, I can return your donation. On the other hand, those, who donated, get additional two child themes to play with.

    Do you want me to keep donation and send you additional child themes?

    I’m not sure about the POT file you found, but all pot files related to theme is inside the theme folder/languages.

    If you would like to finish NL translation, please use file that is included with Tiny Framework at:

    And follow these steps:

    https://mtomas.com/389/tiny-forge-framework-child-themes-comprehensive-guide#Theme-localization-translations

    Thread Starter Mallory Destiny

    (@mallory-destiny)

    Ah, that is where I should look then! Thank you.

    Please, the donation is well meant, you deserve it. Have a nice beer or coffee to enjoy. ??

    I just need 1 child theme so that I can use it as an example of how it should look, then I can start studying on that. And with this extra help I should manage. ??

    Thread Starter Mallory Destiny

    (@mallory-destiny)

    Hope I’m not being too much trouble.. :/

    I have found some .po-files in the Tiny Frameworkfiles in several languages. Have opened the German .po-file and I could edit it to Dutch and save it as nl_NL.p

    Is this the right way to do it? And would it help if I send the result when I have finished the translations?

    Theme Author Tomas Mackevicius

    (@tomasm)

    If you want I will prepare NL translation that will be about 70% completed, you will just have to do the rest.

    Thread Starter Mallory Destiny

    (@mallory-destiny)

    Ok, will do so and return it when done.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Lost css and translations after software update’ is closed to new replies.