##
##  $Id$
##
##  This file is part of Vidalia, and is subject to the license terms in the
##  LICENSE file, found in the top level directory of this distribution. If
##  you did not receive the LICENSE file with this file, you may obtain it
##  from the Vidalia source package distributed by the Vidalia Project at
##  http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
##  including this file, may be copied, modified, propagated, or distributed
##  except according to the terms described in the LICENSE file.
##


## Vidalia translation files
set(vidalia_PO
  po/ar/vidalia_ar.po
  po/bg/vidalia_bg.po
  po/cs/vidalia_cs.po
  po/da/vidalia_da.po
  po/de/vidalia_de.po
  po/el/vidalia_el.po
  po/es/vidalia_es.po
  po/fa/vidalia_fa.po
  po/fr/vidalia_fr.po
  po/hu/vidalia_hu.po
  po/it/vidalia_it.po
  po/ko/vidalia_ko.po
  po/nl/vidalia_nl.po
  po/pt/vidalia_pt.po
  po/pt_BR/vidalia_pt_BR.po
  po/ru/vidalia_ru.po
  po/id/vidalia_id.po
  po/tr/vidalia_tr.po
  po/zh_CN/vidalia_zh_CN.po
  po/ro/vidalia_ro.po
  po/fi/vidalia_fi.po
  po/he/vidalia_he.po
  po/sv/vidalia_sv.po
  po/nb/vidalia_nb.po
  po/pl/vidalia_pl.po
  po/ca/vidalia_ca.po
  po/my/vidalia_my.po
  po/eu/vidalia_eu.po
  po/hr_HR/vidalia_hr_HR.po
  po/sr/vidalia_sr.po
)
vidalia_add_po(vidalia_QMS ${vidalia_PO})

## Qt translation files
set(qt_PO
  po/ar/qt_ar.po
  po/bg/qt_bg.po
  po/cs/qt_cs.po
  po/da/qt_da.po
  po/de/qt_de.po
  po/el/qt_el.po
  po/es/qt_es.po
  po/fa/qt_fa.po
  po/fr/qt_fr.po
  po/hu/qt_hu.po
  po/it/qt_it.po
  po/ko/qt_ko.po
  po/nl/qt_nl.po
  po/pt/qt_pt.po
  po/pt_BR/qt_pt_BR.po
  po/ru/qt_ru.po
  po/id/qt_id.po
  po/tr/qt_tr.po
  po/zh_CN/qt_zh_CN.po
  po/ro/qt_ro.po
  po/fi/qt_fi.po
  po/he/qt_he.po
  po/sv/qt_sv.po
  po/nb/qt_nb.po
  po/pl/qt_pl.po
  po/ca/qt_ca.po
  po/my/qt_my.po
  po/eu/qt_eu.po
  po/hr_HR/qt_hr_HR.po
  po/sr/qt_sr.po
)
vidalia_add_po(qt_QMS ${qt_PO})

## Create a target that converts all .po files to Qt .qm files
add_custom_target(i18n DEPENDS ${vidalia_QMS} ${qt_QMS})
add_dependencies(i18n po2ts)

## Create a target that runs lupdate for all Vidalia source and UI files
add_custom_target(i18n-update)
add_dependencies(i18n-update po2ts ts2po)
vidalia_update_po(i18n-update ${vidalia_PO})
vidalia_update_po(i18n-update po/templates/vidalia.pot)

