Reverting LordBlick patch because current KiCad version search the

locale files in non standard location and it breaks translations.
This commit is contained in:
Marco Ciampa 2015-09-18 23:02:49 +02:00
parent acc9f2f796
commit 046d4430b8
1 changed files with 3 additions and 17 deletions

View File

@ -4,14 +4,6 @@ project( kicad-i18n NONE )
find_package( Gettext REQUIRED )
if( UNIX AND NOT APPLE )
set( KICAD_I18N ${CMAKE_INSTALL_PREFIX}/share/locale
CACHE PATH "Location of KiCad i18n files." )
else()
set( KICAD_I18N ${CMAKE_INSTALL_PREFIX}/share/kicad/internat
CACHE PATH "Location of KiCad i18n files." )
endif()
file(STRINGS LINGUAS LANG_ARRAY REGEX "^[^#].*")
foreach( LANG ${LANG_ARRAY} )
@ -21,14 +13,8 @@ foreach( LANG ${LANG_ARRAY} )
${CMAKE_SOURCE_DIR}/${LANG}/kicad.po
-o ${CMAKE_BINARY_DIR}/${LANG}/kicad.mo )
if( UNIX AND NOT APPLE )
install( FILES ${CMAKE_BINARY_DIR}/${LANG}/kicad.mo
DESTINATION ${KICAD_I18N}/${LANG}/LC_MESSAGES
COMPONENT resources )
else()
install( FILES ${CMAKE_BINARY_DIR}/${LANG}/kicad.mo
DESTINATION ${KICAD_I18N}/${LANG}
COMPONENT resources )
endif()
install( FILES ${CMAKE_BINARY_DIR}/${LANG}/kicad.mo
DESTINATION share/kicad/internat/${LANG}
COMPONENT resources )
endforeach()