Menu

#527 Translations only installed for avopkg/apple

v_1.0.2
closed
5
2012-09-12
2011-04-23
No

Looks like avogadro/i18n only gets installed if (i) avo-package is set and (ii) on Apple, at least from reading CMakeLists.txt, and seeing it does not get installed on Linux.

The compiled program is missing translations, is this a problem with cmake (do I need additional options?) or something else?

Discussion

  • Marcus D. Hanwell

    I see what is going wrong here. The i18n files still get installed from avogadro/src/CMakeLists.txt (and the lib counterpart). The problem is that Linguist_FOUND is never set, and so the translation files are never generated. I just pushed commit 4b13d4 to the 1.0 branch which fixes the issue, adding,

    if(QT_LUPDATE_EXECUTABLE AND QT_LRELEASE_EXECUTABLE AND QT_LCONVERT_EXECUTABLE)
    set(Linguist_FOUND TRUE)
    endif()

    to FindLinguist.cmake in cmake/modules locally will work too (at the end if you just want to paste it. I can make a quick 1.0.3 release, but will hold off on that until more testing has taken place.

     
  • Michael Banck

    Michael Banck - 2011-04-23

    I grabbed the commit and it fixes the issue for me, thanks.

     
  • Marcus D. Hanwell

    This is fixed, I have tagged and uploaded 1.0.3 tarballs with this fix. You may just want to use that and skip 1.0.2 which had a very short life.