From 28dc8e879910f83db053ae0a7de1a007531d0404 Mon Sep 17 00:00:00 2001 From: Filippo Bedendo Bordon Date: Sat, 18 Jun 2011 15:12:38 +0200 Subject: [PATCH] Changes to be committed: new file: Makefile new file: VERSION new file: po/it.po --- Makefile | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ VERSION | 1 + po/it.po | 30 ++++++++++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 Makefile create mode 100644 VERSION create mode 100644 po/it.po diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9ae0bd1 --- /dev/null +++ b/Makefile @@ -0,0 +1,64 @@ +#Makefile per license-dialog +#E' il primo che scrivo, quindi lascio il resto alla vostra immaginazione ;D + +PACKAGE=license-dialog + +distdir = $(PACKAGE)-$(VERSION) +dist_archive = $(distdir).tar.bz2 + +include VERSION + +#Directory +bindir = /usr/bin +datadir = /usr/share +localesdir = ${datadir}/locale + +DESTDIR = +INSTALL = /usr/bin/install +INSTALL_PROGRAM = ${INSTALL} -m 755 +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_DIR = ${INSTALL} -d -m 755 +INSTALL_SCRIPT = ${INSTALL_PROGRAM} + +pck_catalogs := $(wildcard po/*.po) + +.SUFFIXES: .po .mo +.po.mo:; msgfmt $< -o $@ + +all: locales + +locales: $(pck_catalogs:.po=.mo) + +install-locales: locales + @for f in $(pck_catalogs); do\ + lang=`echo $$f | sed 's,.*/\(.*\)\.po,\1,'`;\ + echo "installing i18n file for language \`$$lang'...";\ + dir="$(DESTDIR)$(localesdir)/$$lang/LC_MESSAGES";\ + $(INSTALL_DIR) $$dir;\ + $(INSTALL_DATA) $${f/.po/.mo} $$dir/license-dialog.mo;\ + done + +install-dirs: + @$(INSTALL_DIR) $(DESTDIR)$(bindir) + +install: install-dirs install-locales + $(INSTALL_PROGRAM) src/license-dialog $(DESTDIR)$(bindir)/license-dialog + +clean: + rm -f $(pck_catalogs:.po=.mo) + rm -f $(dist_archive) + +dist: clean + #@git clean -f + #@git log > ChangeLog + @mkdir /tmp/$(distdir) + @cp -a * /tmp/$(distdir)/ + @rm -f $(dist_archive);\ + tar cf - -C /tmp $(distdir) | bzip2 -9 -c > $(dist_archive) + @rm -rf /tmp/$(distdir) + @echo "file \`$(dist_archive)' created" + +dist-rpm: dist + @rpm_sourcedir=`rpm --eval=%{_sourcedir}`;\ + mv -f $(PACKAGE)-$(VERSION).tar.bz2 $$rpm_sourcedir;\ + echo "File $$rpm_sourcedir/$(PACKAGE)-$(VERSION).tar.bz2 created." diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..2e94ead --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +VERSION=0.1 diff --git a/po/it.po b/po/it.po new file mode 100644 index 0000000..f3c7a08 --- /dev/null +++ b/po/it.po @@ -0,0 +1,30 @@ +msgid "" +msgstr "" + +"Language: it\n" +"Content-Type: text/plain; charset=UTF-8\n" + + +msgid "Error: Wrong path" +msgstr "Errore: Percorso del file errato" + +msgid "Licenze" +msgstr "Licenza" + +msgid "I agree" +msgstr "Accetto" + +msgid "Click here if you want to accept the license" +msgstr "Clicca qui se vuoi accettare la licenza" + +msgid "I do not agree" +msgstr "Rifiuto" + +msgid "Click here if you do not want to accept the license" +msgstr "Clicca qui se non vuoi accettare la licenza" + +msgid "Message" +msgstr "Messaggio" + +msgid "Are you sure to refuse?" +msgstr "Sei sicuro di voler rifiutare?"