[Checkins] SVN: grokproject/trunk/ Minor typos and ReST fixes.
Uli Fouquet
uli at gnufix.de
Fri May 21 13:39:25 EDT 2010
Log message for revision 112628:
Minor typos and ReST fixes.
Changed:
U grokproject/trunk/README.txt
U grokproject/trunk/tests_alternative_release_url.txt
U grokproject/trunk/tests_paste.txt
-=-
Modified: grokproject/trunk/README.txt
===================================================================
--- grokproject/trunk/README.txt 2010-05-21 15:52:58 UTC (rev 112627)
+++ grokproject/trunk/README.txt 2010-05-21 17:39:24 UTC (rev 112628)
@@ -40,7 +40,7 @@
$ bin/interactive_debugger
-To run an ad-hoc Python script againsy a full setup application::
+To run an ad-hoc Python script against a full setup application::
$ bin/interactive_debugger [name_of_python_script].py
Modified: grokproject/trunk/tests_alternative_release_url.txt
===================================================================
--- grokproject/trunk/tests_alternative_release_url.txt 2010-05-21 15:52:58 UTC (rev 112627)
+++ grokproject/trunk/tests_alternative_release_url.txt 2010-05-21 17:39:24 UTC (rev 112628)
@@ -27,7 +27,7 @@
>>> alt_url = 'file://' + os.path.join(fake_release, '')
Let's use paster, with a "file:///" url pointing to the fake grok release. We
-won't run buildout because the version file is not actually valid::
+won't run buildout because the version file is not actually valid:
>>> paster = [os.path.join(current_dir, 'bin', 'paster')]
>>> paster_params = ('create -t grok --no-interactive -o'.split() +
@@ -40,7 +40,7 @@
'grok_release_url=file:///.../fake_release/']
...
-Let's check the contents::
+Let's check the contents:
>>> package_dir = os.path.join(testdir, 'grokexample')
>>> print open(os.path.join(package_dir, 'buildout.cfg')).read()
Modified: grokproject/trunk/tests_paste.txt
===================================================================
--- grokproject/trunk/tests_paste.txt 2010-05-21 15:52:58 UTC (rev 112627)
+++ grokproject/trunk/tests_paste.txt 2010-05-21 17:39:24 UTC (rev 112628)
@@ -1,11 +1,11 @@
Grokproject tests
=================
-Go to a fresh test directory::
+Go to a fresh test directory:
>>> cd(testdir)
-Then use paster. Eggs are placed in our freshly created eggs directory::
+Then use paster. Eggs are placed in our freshly created eggs directory:
>>> import os.path
>>> # Use a specific grok version, because 'current' will change at some
@@ -25,7 +25,7 @@
*************** /PICKED VERSIONS ***************
<BLANKLINE>
-Let's check the contents::
+Let's check the contents:
>>> package_dir = os.path.join(testdir, 'GrokExample')
>>> print open(os.path.join(package_dir, 'buildout.cfg')).read()
@@ -79,14 +79,14 @@
site.zcml
zope.conf
-In the generated configuration files paths are set to local paths::
+In the generated configuration files paths are set to local paths:
>>> cat(etc_dir, 'zope.conf')
# Identify the component configuration used to define the site:
site-definition /.../GrokExample/parts/etc/site.zcml
...
-The eggs dir is filled now::
+The eggs dir is filled now:
>>> len(os.listdir(eggsdir)) > 100
True
@@ -99,7 +99,7 @@
000739fbb1c7d540a2861c7476c5ec2d
We used a projectname with uppercase letters. This is respected by
-configuration files::
+configuration files:
>>> zope_conf = os.path.join(package_dir, 'parts', 'etc', 'zope.conf')
>>> print open(zope_conf, 'rb').read()
@@ -107,7 +107,7 @@
site-definition ...GrokExample/parts/etc/site.zcml
...
-The password given is stored SSHA encoded::
+The password given is stored SSHA encoded:
>>> site_zcml_in = os.path.join(package_dir, 'etc',
... 'site.zcml.in')
@@ -127,7 +127,7 @@
------------------
We can create a POT file out of our sources using the freshly
-generated `i18nextract`::
+generated `i18nextract`:
>>> cmd = os.path.join(bin_dir, 'i18nextract')
>>> output = read_sh(cmd)
@@ -137,7 +137,7 @@
output: '...grokexample.pot'
The .pot file contains no specific entries right now. So let's add a
-source file with translatable content::
+source file with translatable content:
>>> source = """
... from zope.i18nmessageid import MessageFactory
@@ -151,12 +151,12 @@
>>> source_path = os.path.join(software_dir, 'translatable.py')
>>> open(source_path, 'w').write(source)
-And rerun `bin/i18nextract`::
+And rerun `bin/i18nextract`:
>>> cmd = os.path.join(bin_dir, 'i18nextract')
>>> output = read_sh(cmd)
-The translatable strings now appear in the generated .pot file::
+The translatable strings now appear in the generated .pot file:
>>> pot_file = os.path.join(software_dir, 'locales', 'grokexample.pot')
>>> print open(pot_file, 'r').read()
@@ -173,18 +173,18 @@
msgid "name"
msgstr ""
-Let's now create a translation for that (tiny) set of messages::
+Let's now create a translation for that (tiny) set of messages:
>>> trans_dir_de = os.path.join(software_dir, 'locales', 'de',
... 'LC_MESSAGES')
>>> os.makedirs(trans_dir_de)
-In this directory we create a copy of the original .pot file::
+In this directory we create a copy of the original .pot file:
>>> po_file_path = os.path.join(trans_dir_de, 'grokexample.po')
>>> po_file = open(pot_file, 'r').read()
-We modify the translation to give some more interesting results::
+We modify the translation to give some more interesting results:
>>> po_file = po_file.replace('translatable.py:6\n',
... 'translatable.py:6\n#, fuzzy\n')
@@ -194,14 +194,14 @@
... '"name"\nmsgstr "Name"')
>>> open(po_file_path, 'wb').write(po_file)
-We can merge all translations with bin/i18nmergeall::
+We can merge all translations with bin/i18nmergeall:
>>> cmd = os.path.join(bin_dir, 'i18nmergeall')
>>> output = read_sh(cmd).split('\n')
>>> print output[1]
Merging language "de", domain "grokexample"
-We can see the status of translations calling bin/i18nstats::
+We can see the status of translations calling bin/i18nstats:
>>> cmd = os.path.join(bin_dir, 'i18nstats')
>>> output = read_sh(cmd)
@@ -214,7 +214,7 @@
Using the generated `test` script
---------------------------------
-We can run tests::
+We can run tests:
>>> cmd = os.path.join(bin_dir, 'test')
>>> output = read_sh(cmd)
@@ -233,7 +233,7 @@
We can call the `buildout` script of the freshly generated
project. For this to work, we have to switch to the project directory
-first::
+first:
>>> cd(package_dir)
>>> cmd = os.path.join(bin_dir, 'buildout')
More information about the checkins
mailing list