Commit 00bb8ca6 authored by Jan Möbius's avatar Jan Möbius
Browse files

Refactor some PluginLib translation block

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c77dbb88
...@@ -55,6 +55,26 @@ acg_qt4_automoc (moc_targets ${headers}) ...@@ -55,6 +55,26 @@ acg_qt4_automoc (moc_targets ${headers})
acg_add_library (PluginLib SHARED ${uic_targets} ${sources} ${headers} ${moc_targets}) acg_add_library (PluginLib SHARED ${uic_targets} ${sources} ${headers} ${moc_targets})
# generate/use translation files
# run with UPDATE_TRANSLATIONS set to on to build qm files
option (UPDATE_TRANSLATIONS "Update source translation translations/PluginLib_de_DE.ts files (WARNING: make clean will delete the source .ts files! Danger!)")
qt4_create_translation(QM_FILES ${PLUGINLIB_FILES_TO_TRANSLATE} translations/PluginLib_de_DE.ts )
qt4_add_translation(QM_FILES translations/PluginLib_de_DE.ts )
# create a target for the translation files ( and object files )
# Use this target, to update only the translations
add_custom_target (translations_target_pluginlib DEPENDS ${QM_FILES})
# Build translations with the application
add_dependencies( PluginLib translations_target_pluginlib )
# Copy all translation files after build
of_copy_translations( PluginLib )
target_link_libraries (PluginLib target_link_libraries (PluginLib
OpenMeshCore OpenMeshCore
OpenMeshTools OpenMeshTools
<?xml version="1.0" encoding="utf-8"?>
<TS version="2.0">
<location filename="../../BasePlugin/MenuInterface.hh" line="55"/>
<translation type="unfinished"></translation>
<location filename="../../BasePlugin/MenuInterface.hh" line="58"/>
<translation type="unfinished"></translation>
<location filename="../../BasePlugin/MenuInterface.hh" line="61"/>
<translation type="unfinished"></translation>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment