summaryrefslogtreecommitdiffstats
path: root/po/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r--po/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
index 52b30c06..c7308e2e 100644
--- a/po/CMakeLists.txt
+++ b/po/CMakeLists.txt
@@ -9,9 +9,10 @@
#
#################################################
-file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} amarok.po )
+file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_NAME}.po )
foreach( _po ${po_files} )
- get_filename_component( _lang ${_po} PATH )
+ string( REPLACE "/" ";" _path "${_po}" )
+ list( GET _path 0 _lang )
tde_create_translation( FILES ${_po} LANG ${_lang} )
endforeach( )