~ubuntu-branches/ubuntu/vivid/kde-l10n-nds/vivid-proposed

« back to all changes in this revision

Viewing changes to 5/nds/messages/kdeedu/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-21 12:33:46 UTC
  • mfrom: (1.12.49)
  • Revision ID: package-import@ubuntu.com-20150121123346-m8oebt80g5o81rof
Tags: 4:14.12.2-0ubuntu1
* New upstream release, first version from KDE Applications
* Revert install to /usr/share/locale/
* Add debian/overlapping files to remove files that are in plasma5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include(ECMPoQmTools)
 
2
 
 
3
# Determine if a .po file must be compiled into a .mo or a .qm file
 
4
file(GLOB po_files *.po)
 
5
set(mo_po_files)
 
6
set(qm_po_files)
 
7
foreach(po_file ${po_files})
 
8
    string(REGEX MATCH "_qt\\.po$" match "${po_file}")
 
9
    if(match)
 
10
        set(qm_po_files ${qm_po_files} ${po_file})
 
11
    else()
 
12
        set(mo_po_files ${mo_po_files} ${po_file})
 
13
    endif()
 
14
endforeach()
 
15
 
 
16
if(qm_po_files)
 
17
    ecm_process_po_files_as_qm(${CURRENT_LANG} ALL
 
18
        INSTALL_DESTINATION ${LOCALE_INSTALL_DIR}
 
19
        PO_FILES ${qm_po_files}
 
20
    )
 
21
endif()
 
22
 
 
23
if (mo_po_files)
 
24
    gettext_process_po_files(${CURRENT_LANG} ALL
 
25
        INSTALL_DESTINATION ${LOCALE_INSTALL_DIR}
 
26
        PO_FILES ${mo_po_files}
 
27
    )
 
28
endif()