2005-08-03 01:42:37 +02:00
|
|
|
NAME = gajim
|
2006-06-13 11:59:26 +02:00
|
|
|
LANGS := fr pt el pl es ru bg de nb cs nl pt_BR sv it eu sk no zh_CN br eo
|
2006-05-10 21:20:16 +02:00
|
|
|
LANGS_PO:=$(foreach LANG, ${LANGS}, ${LANG}.po)
|
|
|
|
LANGS_MO:=$(foreach LANG, ${LANGS}, ${LANG}.mo)
|
|
|
|
DATADIR:=$(subst //,/,${DESTDIR}/${PREFIX}/share)
|
2005-04-25 09:56:44 +02:00
|
|
|
|
2006-05-10 21:20:16 +02:00
|
|
|
all: $(LANGS_MO)
|
2005-04-25 09:56:44 +02:00
|
|
|
|
|
|
|
%.mo: %.po
|
|
|
|
msgfmt $< -o $@
|
|
|
|
|
2006-09-04 12:03:24 +02:00
|
|
|
%.glade.h: %.glade
|
|
|
|
intltool-extract --type=gettext/glade $<
|
|
|
|
|
2006-05-02 17:53:25 +02:00
|
|
|
gajim.pot: ../src/*py ../src/common/*py \
|
|
|
|
../data/glade/account_context_menu.glade.h \
|
|
|
|
../data/glade/account_creation_wizard_window.glade.h \
|
|
|
|
../data/glade/account_modification_window.glade.h \
|
|
|
|
../data/glade/accounts_window.glade.h \
|
|
|
|
../data/glade/add_new_contact_window.glade.h \
|
|
|
|
../data/glade/advanced_configuration_window.glade.h \
|
|
|
|
../data/glade/advanced_menuitem_menu.glade.h \
|
2006-10-03 18:20:59 +02:00
|
|
|
../data/glade/advanced_notifications_window.glade.h \
|
2006-05-02 17:53:25 +02:00
|
|
|
../data/glade/change_password_dialog.glade.h \
|
|
|
|
../data/glade/change_status_message_dialog.glade.h \
|
|
|
|
../data/glade/chat_context_menu.glade.h \
|
|
|
|
../data/glade/chat_control_popup_menu.glade.h \
|
|
|
|
../data/glade/choose_gpg_key_dialog.glade.h \
|
|
|
|
../data/glade/data_form_window.glade.h \
|
|
|
|
../data/glade/edit_groups_dialog.glade.h \
|
|
|
|
../data/glade/filetransfers.glade.h \
|
|
|
|
../data/glade/gajim_themes_window.glade.h \
|
|
|
|
../data/glade/gc_control_popup_menu.glade.h \
|
|
|
|
../data/glade/gc_occupants_menu.glade.h \
|
|
|
|
../data/glade/history_manager.glade.h \
|
|
|
|
../data/glade/history_window.glade.h \
|
|
|
|
../data/glade/input_dialog.glade.h \
|
|
|
|
../data/glade/invitation_received_dialog.glade.h \
|
|
|
|
../data/glade/join_groupchat_window.glade.h \
|
2006-05-26 16:27:05 +02:00
|
|
|
../data/glade/manage_accounts_window.glade.h \
|
2006-05-02 17:53:25 +02:00
|
|
|
../data/glade/manage_bookmarks_window.glade.h \
|
|
|
|
../data/glade/manage_proxies_window.glade.h \
|
|
|
|
../data/glade/message_window.glade.h \
|
|
|
|
../data/glade/passphrase_dialog.glade.h \
|
|
|
|
../data/glade/popup_notification_window.glade.h \
|
|
|
|
../data/glade/preferences_window.glade.h \
|
2006-10-03 18:20:59 +02:00
|
|
|
../data/glade/privacy_list_window.glade.h \
|
|
|
|
../data/glade/privacy_lists_window.glade.h \
|
|
|
|
../data/glade/profile_window.glade.h \
|
2006-05-02 17:53:25 +02:00
|
|
|
../data/glade/progress_dialog.glade.h \
|
|
|
|
../data/glade/remove_account_window.glade.h \
|
|
|
|
../data/glade/roster_contact_context_menu.glade.h \
|
|
|
|
../data/glade/roster_window.glade.h \
|
|
|
|
../data/glade/service_discovery_window.glade.h \
|
|
|
|
../data/glade/service_registration_window.glade.h \
|
|
|
|
../data/glade/single_message_window.glade.h \
|
|
|
|
../data/glade/subscription_request_window.glade.h \
|
|
|
|
../data/glade/systray_context_menu.glade.h \
|
|
|
|
../data/glade/vcard_information_window.glade.h \
|
|
|
|
../data/glade/xml_console_window.glade.h
|
2005-08-08 10:09:57 +02:00
|
|
|
intltool-update --pot --gettext-package=$(NAME)
|
2005-08-03 01:42:37 +02:00
|
|
|
|
2006-05-10 21:20:16 +02:00
|
|
|
install:
|
|
|
|
for l in ${LANGS}; do\
|
|
|
|
dir=${DATADIR}/locale/$${l}/LC_MESSAGES;\
|
|
|
|
if test ! -d $${dir}; then\
|
|
|
|
install -m 755 -d $${dir};\
|
|
|
|
fi;\
|
2006-06-15 09:04:08 +02:00
|
|
|
install -m 644 $${l}.mo $${dir}/${NAME}.mo;\
|
2006-05-10 21:20:16 +02:00
|
|
|
done
|
|
|
|
|
2005-04-25 09:56:44 +02:00
|
|
|
clean:
|
2006-05-13 20:43:48 +02:00
|
|
|
rm -f *.mo
|