diff options
| author | 2008-04-05 00:18:14 +0000 | |
|---|---|---|
| committer | 2008-04-05 00:18:14 +0000 | |
| commit | 5bd58015bbf298af4a3dcaab3fa78e4d723bbcc7 (patch) | |
| tree | dc89b05f460d5c4332f17174850cd0cb4087bec2 | |
| parent | patched MacOS X stuff (diff) | |
| download | KVIrc-5bd58015bbf298af4a3dcaab3fa78e4d723bbcc7.tar.gz KVIrc-5bd58015bbf298af4a3dcaab3fa78e4d723bbcc7.tar.bz2 KVIrc-5bd58015bbf298af4a3dcaab3fa78e4d723bbcc7.zip | |
initial rules for localization
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1395 17fca916-40b9-46aa-a4ea-0a15b648b75c
| -rw-r--r-- | po/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | po/kvirc/CMakeLists.txt | 95 | ||||
| -rw-r--r-- | po/modules/CMakeLists.txt | 18 | ||||
| -rw-r--r-- | scripts/CMakeLists.txt | 4 |
4 files changed, 119 insertions, 2 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt new file mode 100644 index 000000000..6a2249a12 --- /dev/null +++ b/po/CMakeLists.txt @@ -0,0 +1,4 @@ +# CMakeLists for po/ + +# Find subdirs +SUBDIRS(kvirc modules) diff --git a/po/kvirc/CMakeLists.txt b/po/kvirc/CMakeLists.txt new file mode 100644 index 000000000..2d6b7411b --- /dev/null +++ b/po/kvirc/CMakeLists.txt @@ -0,0 +1,95 @@ +# CMakeLists for po/kvirc/ + +FILE(GLOB pofiles "${CMAKE_CURRENT_SOURCE_DIR}/*.po") +FILE(GLOB mofiles "${CMAKE_CURRENT_SOURCE_DIR}/*.mo") + +# From autofools +# +#tmp_DATA = kvirc_bg.mo \ +# kvirc_ca.mo \ +# kvirc_cs.mo \ +# kvirc_de.mo \ +# kvirc_es.mo \ +# kvirc_fr.mo \ +# kvirc_hu.mo \ +# kvirc_it.mo \ +# kvirc_nl.mo \ +# kvirc_pl.mo \ +# kvirc_pt.mo \ +# kvirc_pt_BR.mo \ +# kvirc_ru.mo \ +# kvirc_sr.mo \ +# kvirc_hu.mo \ +# kvirc_hr.mo \ +# kvirc_fi.mo \ +# kvirc_uk.mo +# +#CLEANFILES = $(tmp_DATA) +# +#POFILES = kvirc_bg.po \ +# kvirc_ca.po \ +# kvirc_cs.po \ +# kvirc_de.po \ +# kvirc_es.po \ +# kvirc_fr.po \ +# kvirc_hu.po \ +# kvirc_it.po \ +# kvirc_nl.po \ +# kvirc_pl.po \ +# kvirc_pt.po \ +# kvirc_pt_BR.po \ +# kvirc_ru.po \ +# kvirc_sr.po \ +# kvirc_hu.po \ +# kvirc_hr.po \ +# kvirc_fi.po \ +# kvirc_uk.po +# +# +#%.mo: %.po +# -touch $@ && $(SS_MSGFMT) -vo $@ $< +# +############################################################################### +# Messages +############################################################################### +# +#messages-extract: +# @find $(topdir)/src/ -maxdepth 10 -name *.cpp > files +# find $(topdir)/src/ -maxdepth 10 -name *.h >> files +# find $(topdir)/data/defscript/ -maxdepth 10 -name *.kvs >> files +# xgettext -o $(topdir)/po/kvirc/kvirc.pot -k__tr -k__tr_no_lookup -k__tr2qs -k__tr2wc -k__tr2ws -ktr -f files +# rm files; \ +# echo "Messages extracted to kvirc.pot"; +# +# +#messages-update: +# @old=_old; \ +# if test -f "$(topdir)/po/kvirc/kvirc.pot"; then \ +# for lang in $(POFILES); do \ +# echo "Updating file $$lang"; \ +# mv -f $$lang $$lang$$old; \ +# msgmerge -o $$lang $$lang$$old $(topdir)/po/kvirc/kvirc.pot && rm -f $$lang$$old; \ +# done; \ +# else \ +# echo "----------------------------------------------------"; \ +# echo "- WARNING: ./kvirc.pot does not exist"; \ +# echo "- WARNING: You must run make messages-extract first"; \ +# echo "----------------------------------------------------"; \ +# fi +# +#messages: messages-extract messages-update +# + + + +# Install target +IF(UNIX) + IF(APPLE) + INSTALL(FILES ${files} DESTINATION ${INSTALL_PREFIX}/Contents/Resources/locale) + ELSE() + # Assume linux + INSTALL(FILES ${files} DESTINATION ${INSTALL_PREFIX}/share/kvirc/${VERSION_BRANCH}/locale) + ENDIF() +ELSEIF(WIN32) + #INSTALL(FILES ${files} DESTINATION ${INSTALL_PREFIX}/ ??? /${VERSION_BRANCH}/locale) +ENDIF() diff --git a/po/modules/CMakeLists.txt b/po/modules/CMakeLists.txt new file mode 100644 index 000000000..e37150f8f --- /dev/null +++ b/po/modules/CMakeLists.txt @@ -0,0 +1,18 @@ +# CMakeLists for po/modules/ + +# Find subdirs +SUBDIRS( + about + dcc + editor + filetransferwindow + logview + mediaplayer + notifier + options + perl + perlcore + sharedfileswindow + theme + torrent +) diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index ad8257027..c91f4bcd3 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -9,9 +9,9 @@ SET(kvishellscripts # Install target IF(UNIX) IF(APPLE) - INSTALL(TARGETS ${kvishellscripts} RUNTIME DESTINATION ${INSTALL_PREFIX}/Contents/MacOS) + INSTALL(FILES ${kvishellscripts} DESTINATION ${INSTALL_PREFIX}/Contents/MacOS) ELSE() # Assume linux - INSTALL(TARGETS ${kvishellscripts} RUNTIME DESTINATION ${INSTALL_PREFIX}/bin) + INSTALL(FILES ${kvishellscripts} DESTINATION ${INSTALL_PREFIX}/bin) ENDIF() ENDIF() |
