From: Simon Levermann <simon.leverm...@governikus.de>

Hello,

This adds support for multilingual SLAs which are displayed when the user is 
trying to mount the DMG.
Multiple languages can be added via the new variables CPACK_DMG_SLA_DIR and 
CPACK_DMG_SLA_LANGUAGES.
For each language defined, CPack will search for a language.menu.txt and 
language.license.txt file in CPACK_SLA_DIR.

This patch adds a library to the deprecated Carbon Framework to CPackLib, since 
the functions/types required
to acquire the region code for the internal LPic data structure are only 
available in this old API. Apple does
not seem to be offering a replacement API for the old ScriptManager region 
codes.

Additional thought: One could add the language.menu.txt files for some common 
languages to the repository. Currently,
english is hard-coded as a string in the source code, and is still used if 
CPACK_RESOURCE_FILE_LICENSE is used, rather than
the new CPACK_DMG_SLA_DIR and CPACK_DMG_SLA_LANGUAGES behaviour. Is this out of 
scope for CMake (everything else seems to
be english-only)?

Best regards,
Simon Levermann

Simon Levermann (3):
  Add support for multilingual SLAs
  Pass string by const& instead of copying
  Remove superfluous assignment

 Source/CMakeLists.txt                      |   4 +
 Source/CPack/cmCPackDragNDropGenerator.cxx | 332 +++++++++++++++++++++++++----
 Source/CPack/cmCPackDragNDropGenerator.h   |   8 +
 3 files changed, 307 insertions(+), 37 deletions(-)

-- 
2.1.4
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to