Preserve translations when theme updates

  • Author
    Posts
  • #30720
    JJ

    I made Spanish and Portuguese language files for my Nirvana theme installation (front-end translations only, no admin). I uploaded them to my nirvana/languages directory and everything was peachy. However, as I suspected would happen, they were deleted when I installed the latest theme update.

    I tried placing my files in wp-content/languages/nirvana, but they weren’t recognized. Looking at the theme setup code, it appears only the nirvana/languages directory is checked for language files. Is there any way to preserve my custom translations other than to try writing my own theme setup code using my child theme? If not, would it be possible to change this behavior in a future update (i.e., check WP_LANG_DIR/nirvana or nirvana-child/languages before defaulting to nirvana/languages)?

Viewing 1 post (of 1 total)

The topic ‘Preserve translations when theme updates’ is closed to new replies.