--- /dev/null
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Yoyodyne, Inc.
+# This file is distributed under the same license as the hello-ruby package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-ruby 0\n"
+"Report-Msgid-Bugs-To: bug-gettext@gnu.org\n"
+"POT-Creation-Date: 2024-12-19 22:56+0100\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=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello-ruby/hello.rb:7
+msgid "Hello, world!"
+msgstr ""
+
+#: hello-ruby/hello.rb:8
+#, ruby-format
+msgid "This program is running as process number %{pid}."
+msgstr ""
;;
esac
cd po
-make $potfile
-sed -e "/^#:/ {
+if make $potfile; then
+ sed -e "/^#:/ {
s, \\([^ ]\\), $directory/\\1,g
}" < $potfile > "$abs_srcdir"/$potfile
+else
+ case $directory in
+ hello-ruby)
+ # Creating hello-ruby.pot fails if 'rxgettext' is not installed.
+ # To work around it, we are putting hello-ruby.pot under version control.
+ ;;
+ *)
+ echo "Failed to create $potfile." 1>&2
+ exit 1
+ ;;
+ esac
+fi
cd ..
cd ..
rm -rf tmp-$directory