aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-03 20:21:56 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-03 20:21:56 +0000
commitad3dc5d6847deff3a7b86284044962c7099727af (patch)
tree32e7efac51e377654e2ef0d059bcf05fb7ce0e0f
parent018061e1b0f9f74d4a103c1b76b515a28a8ea674 (diff)
add po/ folder and translation template
svn path=/trunk/; revision=16820
-rw-r--r--doc/tutorials/start-here/po/+start-here.pot87
-rwxr-xr-xdoc/tutorials/start-here/po/generate-pot.py48
2 files changed, 135 insertions, 0 deletions
diff --git a/doc/tutorials/start-here/po/+start-here.pot b/doc/tutorials/start-here/po/+start-here.pot
new file mode 100644
index 00000000..e96b61ca
--- /dev/null
+++ b/doc/tutorials/start-here/po/+start-here.pot
@@ -0,0 +1,87 @@
+# SOME DESCRIPTIVE TITLE.
+# This file is put in the public domain.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: Pure Data 0.43\n"
+"Report-Msgid-Bugs-To: http://bugs.puredata.info\n"
+"POT-Creation-Date: 2012-12-31 20:40-0500\n"
+"PO-Revision-Date: 2012-12-31 20:45-0500\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"
+
+
+msgid "X position"
+msgstr ""
+
+msgid "Y position"
+msgstr ""
+
+msgid "<-- Click here to turn video off"
+msgstr ""
+
+msgid "Video length"
+msgstr ""
+
+msgid "Click here to open your own video file"
+msgstr ""
+
+msgid "red"
+msgstr ""
+
+msgid "green"
+msgstr ""
+
+msgid "X"
+msgstr ""
+
+msgid "Y"
+msgstr ""
+
+msgid "Sphere"
+msgstr ""
+
+msgid "off"
+msgstr ""
+
+msgid "on"
+msgstr ""
+
+msgid "GEM_Window"
+msgstr ""
+
+msgid "Lighting"
+msgstr ""
+
+msgid "<-- Click here to turn 3D graphics off"
+msgstr ""
+
+msgid "frequency"
+msgstr ""
+
+msgid "(1) Click inside the box next to dsp to turn on and off. "
+msgstr ""
+
+msgid "(2) Click and drag anywhere in the grid to generate data and make sound."
+msgstr ""
+
+msgid "The cursor will become a ring again. Release to complete the patch cord."
+msgstr ""
+
+msgid "To do this, you must first enter edit mode by going to the Edit menu and clicking on\"Edit mode\""
+msgstr ""
+
+msgid "Exit edit mode by going back to the Edit menu and clicking on\"Edit mode\" Now try interacting with the grid again to see what happens."
+msgstr ""
+
+msgid "(3) Notice how the X and Y coordinates from the grid are connected to the left and right\"inlet\" of [pd audio]. Try connecting them to the inlets of [pd 3D_graphics] and [pd video] as well."
+msgstr ""
+
+msgid "Next, hover over the bottom\"outle\" of an X or Y position number box until your cursor becomes a ring. Click and hold on the outlet, then draw a line to an inlet of [pd 3D_graphics] or [pd video]."
+msgstr ""
diff --git a/doc/tutorials/start-here/po/generate-pot.py b/doc/tutorials/start-here/po/generate-pot.py
new file mode 100755
index 00000000..890a57e2
--- /dev/null
+++ b/doc/tutorials/start-here/po/generate-pot.py
@@ -0,0 +1,48 @@
+#!/usr/bin/python
+
+import re
+
+f = open('../+start-here.pd', 'r')
+text = ''
+for line in f.readlines():
+ text += line
+
+print """# SOME DESCRIPTIVE TITLE.
+# This file is put in the public domain.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: Pure Data 0.43\\n"
+"Report-Msgid-Bugs-To: http://bugs.puredata.info\\n"
+"POT-Creation-Date: 2012-12-31 20:40-0500\\n"
+"PO-Revision-Date: 2012-12-31 20:45-0500\\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"
+"""
+
+regex = re.compile('#X text [0-9]+ [0-9]+ ([^;]*);', re.MULTILINE | re.DOTALL)
+matches = [m.groups() for m in regex.finditer(text)]
+
+nonewlines = re.compile('\n', re.MULTILINE)
+nobackslashes = re.compile(' \\\\', re.MULTILINE)
+escapedoublequote = re.compile('[^\\\\]"', re.MULTILINE)
+
+ids = []
+for m in matches:
+ if m:
+ chunk = m[0]
+ chunk = re.sub(nonewlines, ' ', chunk)
+ chunk = re.sub(nobackslashes, '', chunk)
+ chunk = re.sub(escapedoublequote, '\\"', chunk)
+ if chunk not in ids:
+ ids.append(chunk)
+
+for id in ids:
+ print '\nmsgid "' + id + '"'
+ print 'msgstr ""'