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

Refactor some PluginLib translation block

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6709 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c77dbb88
......@@ -55,6 +55,26 @@ acg_qt4_automoc (moc_targets ${headers})
acg_add_library (PluginLib SHARED ${uic_targets} ${sources} ${headers} ${moc_targets})
set (PLUGINLIB_FILES_TO_TRANSLATE ${PLUGINLIB_FILES_TO_TRANSLATE} ${sources} ${ui} ${headers})
# 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!)")
if (UPDATE_TRANSLATIONS)
qt4_create_translation(QM_FILES ${PLUGINLIB_FILES_TO_TRANSLATE} translations/PluginLib_de_DE.ts )
else (UPDATE_TRANSLATIONS)
qt4_add_translation(QM_FILES translations/PluginLib_de_DE.ts )
endif (UPDATE_TRANSLATIONS)
# 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
OpenMeshCore
OpenMeshTools
......
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
<name></name>
<message>
<location filename="../../BasePlugin/MenuInterface.hh" line="55"/>
<source>&amp;File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../BasePlugin/MenuInterface.hh" line="58"/>
<source>&amp;View</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../BasePlugin/MenuInterface.hh" line="61"/>
<source>&amp;Tools</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
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