]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- generate pot file
authorArvin Schnell <aschnell@suse.de>
Thu, 7 Apr 2011 08:24:48 +0000 (10:24 +0200)
committerArvin Schnell <aschnell@suse.de>
Thu, 7 Apr 2011 08:24:48 +0000 (10:24 +0200)
Makefile.am
configure.in
po/.gitignore [new file with mode: 0644]
po/Makefile.am [new file with mode: 0644]
po/snapper.pot [new file with mode: 0644]

index 7512f1296987ebbc7917e1d99a1a76c110aaff4b..b326d6c981635b4c59f35992e710512a090ddabb 100644 (file)
@@ -2,7 +2,7 @@
 # Makefile.am for snapper
 #
 
-SUBDIRS = snapper examples tools scripts data testsuite-real
+SUBDIRS = snapper examples tools scripts data po testsuite-real
 
 AUTOMAKE_OPTIONS = foreign dist-bzip2 no-dist-gzip
 
index 66a43bd8c0189913fc0677633f979c41013e824e..383fcf911b70b790ed0b187175e1563a8717681e 100644 (file)
@@ -36,6 +36,7 @@ AC_OUTPUT(
        tools/utils/Makefile
        scripts/Makefile
        data/Makefile
+       po/Makefile
        testsuite-real/Makefile
        package/snapper.spec:snapper.spec.in
 )
diff --git a/po/.gitignore b/po/.gitignore
new file mode 100644 (file)
index 0000000..2a5b5dd
--- /dev/null
@@ -0,0 +1,2 @@
+snapper.pot
+*.mo
diff --git a/po/Makefile.am b/po/Makefile.am
new file mode 100644 (file)
index 0000000..e23f5d9
--- /dev/null
@@ -0,0 +1,46 @@
+#
+# Makefile.am for snapper/po
+#
+
+XGETTEXT = xgettext
+MSGFMT = msgfmt
+MSGMERGE = msgmerge
+
+SRCFILES = $(wildcard ../tools/*.cc)
+
+POFILES = $(wildcard *.po)
+
+MOFILES = $(POFILES:.po=.mo)
+
+all: $(MOFILES)
+
+$(PACKAGE).pot: $(SRCFILES)
+       $(XGETTEXT) -s --no-wrap --add-comments --add-location --keyword=_ --keyword=_:1,2 \
+           --foreign-user --copyright-holder="SUSE Linux Products GmbH, Nuernberg" \
+           --default-domain=$(PACKAGE) --output=$(PACKAGE).pot $(SRCFILES)
+
+%.mo: %.po
+       $(MSGFMT) -c -v --statistics -o $@ $<
+
+merge: $(PACKAGE).pot
+       files='$(POFILES)'; \
+       for file in $$files; do \
+           base=`basename $$file`; \
+           echo "$(MSGMERGE) --no-wrap --update $$base $(PACKAGE).pot"; \
+           $(MSGMERGE) --no-wrap --update $$base $(PACKAGE).pot; \
+       done
+
+install-data-local: $(MOFILES)
+       files='$(MOFILES)'; \
+       for file in $$files; do \
+           base=`basename $$file`; \
+           lang=`echo $$base | sed 's/\.mo$$//'`; \
+           langdir=$(localedir)/$$lang/LC_MESSAGES; \
+           $(mkinstalldirs) -d $(DESTDIR)$$langdir; \
+           echo " $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$$langdir/$(PACKAGE).mo"; \
+           $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$$langdir/$(PACKAGE).mo; \
+       done
+
+CLEANFILES = $(PACKAGE).pot $(MOFILES)
+
+EXTRA_DIST = $(POFILES)
diff --git a/po/snapper.pot b/po/snapper.pot
new file mode 100644 (file)
index 0000000..c22ea01
--- /dev/null
@@ -0,0 +1,250 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR SUSE Linux Products GmbH, Nuernberg
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2011-04-07 10:21+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../tools/snapper.cc:181
+msgid "\t--cleanup-algorithm, -c\t\tCleanup algorithm for snapshot."
+msgstr ""
+
+#: ../tools/snapper.cc:559
+msgid "\t--config, -c <name>\t\tSet name of config to use."
+msgstr ""
+
+#: ../tools/snapper.cc:179 ../tools/snapper.cc:262
+msgid "\t--description, -d <description>\tDescription for snapshot."
+msgstr ""
+
+#: ../tools/snapper.cc:404
+msgid "\t--file, -f <file>\t\tRead files to rollback from file."
+msgstr ""
+
+#: ../tools/snapper.cc:326
+msgid "\t--file, -f <file>\t\tRun diff for file."
+msgstr ""
+
+#: ../tools/snapper.cc:325
+msgid "\t--output, -o <file>\t\tSave diff to file."
+msgstr ""
+
+#: ../tools/snapper.cc:178
+msgid "\t--pre-number <number>\t\tNumber of corresponding pre snapshot."
+msgstr ""
+
+#: ../tools/snapper.cc:180
+msgid "\t--print-number, -p\t\tPrint number of created snapshot."
+msgstr ""
+
+#: ../tools/snapper.cc:557
+msgid "\t--quiet, -q\t\t\tSuppress normal output."
+msgstr ""
+
+#: ../tools/snapper.cc:558
+msgid "\t--table-style, -t <style>\tTable style (integer)."
+msgstr ""
+
+#: ../tools/snapper.cc:177
+msgid "\t--type, -t <type>\t\tType for snapshot."
+msgstr ""
+
+#: ../tools/snapper.cc:502
+msgid "\tsnapper cleanup <cleanup-algorithm>"
+msgstr ""
+
+#: ../tools/snapper.cc:174
+msgid "\tsnapper create"
+msgstr ""
+
+#: ../tools/snapper.cc:78
+msgid "\tsnapper create-config <subvolume>"
+msgstr ""
+
+#: ../tools/snapper.cc:295
+msgid "\tsnapper delete <number>"
+msgstr ""
+
+#: ../tools/snapper.cc:322
+msgid "\tsnapper diff <number1> <number2>"
+msgstr ""
+
+#: ../tools/snapper.cc:127
+msgid "\tsnapper list"
+msgstr ""
+
+#: ../tools/snapper.cc:39
+msgid "\tsnapper list-configs"
+msgstr ""
+
+#: ../tools/snapper.cc:259
+msgid "\tsnapper modify <number>"
+msgstr ""
+
+#: ../tools/snapper.cc:401
+msgid "\tsnapper rollback <number1> <number2>"
+msgstr ""
+
+#: ../tools/snapper.cc:556
+msgid "    Global options:"
+msgstr ""
+
+#: ../tools/snapper.cc:176
+msgid "    Options for 'create' command:"
+msgstr ""
+
+#: ../tools/snapper.cc:324
+msgid "    Options for 'diff' command:"
+msgstr ""
+
+#: ../tools/snapper.cc:261
+msgid "    Options for 'modify' command:"
+msgstr ""
+
+#: ../tools/snapper.cc:403
+msgid "    Options for 'rollback' command:"
+msgstr ""
+
+#: ../tools/snapper.cc:501
+msgid "  Cleanup snapshots:"
+msgstr ""
+
+#: ../tools/snapper.cc:321
+msgid "  Comparing snapshots:"
+msgstr ""
+
+#: ../tools/snapper.cc:77
+msgid "  Create config:"
+msgstr ""
+
+#: ../tools/snapper.cc:173
+msgid "  Create snapshot:"
+msgstr ""
+
+#: ../tools/snapper.cc:294
+msgid "  Delete snapshot:"
+msgstr ""
+
+#: ../tools/snapper.cc:38
+msgid "  List configs:"
+msgstr ""
+
+#: ../tools/snapper.cc:126
+msgid "  List snapshots:"
+msgstr ""
+
+#: ../tools/snapper.cc:258
+msgid "  Modify snapshot:"
+msgstr ""
+
+#: ../tools/snapper.cc:400
+msgid "  Rollback snapshots:"
+msgstr ""
+
+#: ../tools/snapper.cc:517
+msgid "Command 'cleanup' needs one arguments."
+msgstr ""
+
+#: ../tools/snapper.cc:201
+msgid "Command 'create' does not take arguments."
+msgstr ""
+
+#: ../tools/snapper.cc:89
+msgid "Command 'create-config' needs one argument."
+msgstr ""
+
+#: ../tools/snapper.cc:306
+msgid "Command 'delete' needs at least one argument."
+msgstr ""
+
+#: ../tools/snapper.cc:343
+msgid "Command 'diff' needs two arguments."
+msgstr ""
+
+#: ../tools/snapper.cc:549
+msgid "Command 'help' does not take arguments."
+msgstr ""
+
+#: ../tools/snapper.cc:138
+msgid "Command 'list' does not take arguments."
+msgstr ""
+
+#: ../tools/snapper.cc:50
+msgid "Command 'list-configs' does not take arguments."
+msgstr ""
+
+#: ../tools/snapper.cc:278
+msgid "Command 'modify' needs one argument."
+msgstr ""
+
+#: ../tools/snapper.cc:420
+msgid "Command 'rollback' needs two arguments."
+msgstr ""
+
+#: ../tools/snapper.cc:97
+msgid "Creating config failed."
+msgstr ""
+
+#: ../tools/snapper.cc:470
+#, c-format
+msgid "File '%s' not found in diff."
+msgstr ""
+
+#: ../tools/snapper.cc:363
+#, c-format
+msgid "File '%s' not included in diff."
+msgstr ""
+
+#: ../tools/snapper.cc:638
+#, c-format
+msgid "Invalid table style %d."
+msgstr ""
+
+#: ../tools/snapper.cc:613
+msgid "No command provided."
+msgstr ""
+
+#: ../tools/snapper.cc:375 ../tools/snapper.cc:436
+#, c-format
+msgid "Opening file '%s' failed."
+msgstr ""
+
+#: ../tools/snapper.cc:115
+#, c-format
+msgid "Snapshot '%u' not found."
+msgstr ""
+
+#: ../tools/snapper.cc:614 ../tools/snapper.cc:623
+msgid "Try 'snapper help' for more information."
+msgstr ""
+
+#: ../tools/snapper.cc:537
+#, c-format
+msgid "Unknown cleanup algorithm '%s'."
+msgstr ""
+
+#: ../tools/snapper.cc:622
+#, c-format
+msgid "Unknown command '%s'."
+msgstr ""
+
+#: ../tools/snapper.cc:639
+#, c-format
+msgid "Use an integer number from %d to %d"
+msgstr ""
+
+#: ../tools/snapper.cc:553
+msgid "usage: snapper [--global-options] <command> [--command-options] [command-arguments]"
+msgstr ""