Commit 28dc8e879910f83db053ae0a7de1a007531d0404
1 parent
c18e00a8b7
Exists in
master
Changes to be committed:
new file: Makefile new file: VERSION new file: po/it.po
Showing 3 changed files with 95 additions and 0 deletions Side-by-side Diff
Makefile
1 | +#Makefile per license-dialog | |
2 | +#E' il primo che scrivo, quindi lascio il resto alla vostra immaginazione ;D | |
3 | + | |
4 | +PACKAGE=license-dialog | |
5 | + | |
6 | +distdir = $(PACKAGE)-$(VERSION) | |
7 | +dist_archive = $(distdir).tar.bz2 | |
8 | + | |
9 | +include VERSION | |
10 | + | |
11 | +#Directory | |
12 | +bindir = /usr/bin | |
13 | +datadir = /usr/share | |
14 | +localesdir = ${datadir}/locale | |
15 | + | |
16 | +DESTDIR = | |
17 | +INSTALL = /usr/bin/install | |
18 | +INSTALL_PROGRAM = ${INSTALL} -m 755 | |
19 | +INSTALL_DATA = ${INSTALL} -m 644 | |
20 | +INSTALL_DIR = ${INSTALL} -d -m 755 | |
21 | +INSTALL_SCRIPT = ${INSTALL_PROGRAM} | |
22 | + | |
23 | +pck_catalogs := $(wildcard po/*.po) | |
24 | + | |
25 | +.SUFFIXES: .po .mo | |
26 | +.po.mo:; msgfmt $< -o $@ | |
27 | + | |
28 | +all: locales | |
29 | + | |
30 | +locales: $(pck_catalogs:.po=.mo) | |
31 | + | |
32 | +install-locales: locales | |
33 | + @for f in $(pck_catalogs); do\ | |
34 | + lang=`echo $$f | sed 's,.*/\(.*\)\.po,\1,'`;\ | |
35 | + echo "installing i18n file for language \`$$lang'...";\ | |
36 | + dir="$(DESTDIR)$(localesdir)/$$lang/LC_MESSAGES";\ | |
37 | + $(INSTALL_DIR) $$dir;\ | |
38 | + $(INSTALL_DATA) $${f/.po/.mo} $$dir/license-dialog.mo;\ | |
39 | + done | |
40 | + | |
41 | +install-dirs: | |
42 | + @$(INSTALL_DIR) $(DESTDIR)$(bindir) | |
43 | + | |
44 | +install: install-dirs install-locales | |
45 | + $(INSTALL_PROGRAM) src/license-dialog $(DESTDIR)$(bindir)/license-dialog | |
46 | + | |
47 | +clean: | |
48 | + rm -f $(pck_catalogs:.po=.mo) | |
49 | + rm -f $(dist_archive) | |
50 | + | |
51 | +dist: clean | |
52 | + #@git clean -f | |
53 | + #@git log > ChangeLog | |
54 | + @mkdir /tmp/$(distdir) | |
55 | + @cp -a * /tmp/$(distdir)/ | |
56 | + @rm -f $(dist_archive);\ | |
57 | + tar cf - -C /tmp $(distdir) | bzip2 -9 -c > $(dist_archive) | |
58 | + @rm -rf /tmp/$(distdir) | |
59 | + @echo "file \`$(dist_archive)' created" | |
60 | + | |
61 | +dist-rpm: dist | |
62 | + @rpm_sourcedir=`rpm --eval=%{_sourcedir}`;\ | |
63 | + mv -f $(PACKAGE)-$(VERSION).tar.bz2 $$rpm_sourcedir;\ | |
64 | + echo "File $$rpm_sourcedir/$(PACKAGE)-$(VERSION).tar.bz2 created." |
VERSION
1 | +VERSION=0.1 |
po/it.po
1 | +msgid "" | |
2 | +msgstr "" | |
3 | + | |
4 | +"Language: it\n" | |
5 | +"Content-Type: text/plain; charset=UTF-8\n" | |
6 | + | |
7 | + | |
8 | +msgid "Error: Wrong path" | |
9 | +msgstr "Errore: Percorso del file errato" | |
10 | + | |
11 | +msgid "Licenze" | |
12 | +msgstr "Licenza" | |
13 | + | |
14 | +msgid "I agree" | |
15 | +msgstr "Accetto" | |
16 | + | |
17 | +msgid "Click here if you want to accept the license" | |
18 | +msgstr "Clicca qui se vuoi accettare la licenza" | |
19 | + | |
20 | +msgid "I do not agree" | |
21 | +msgstr "Rifiuto" | |
22 | + | |
23 | +msgid "Click here if you do <b>not</b> want to accept the license" | |
24 | +msgstr "Clicca qui se <b>non</b> vuoi accettare la licenza" | |
25 | + | |
26 | +msgid "Message" | |
27 | +msgstr "Messaggio" | |
28 | + | |
29 | +msgid "Are you sure to refuse?" | |
30 | +msgstr "Sei sicuro di voler rifiutare?" |