[libtest-bdd-cucumber-perl] 31/52: added some brief information about i18n to the tutorial

Intrigeri intrigeri at moszumanska.debian.org
Thu Jun 19 10:18:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to annotated tag 0.19
in repository libtest-bdd-cucumber-perl.

commit adb302a48d0e16fc78606394aff7372dd39d62d8
Author: glauschwuffel <glauschwuffel at nomaden.org>
Date:   Thu May 29 14:44:06 2014 +0200

    added some brief information about i18n to the tutorial
---
 lib/Test/BDD/Cucumber/Manual/Tutorial.pod | 39 ++++++++++++++++++++++++++++++-
 1 file changed, 38 insertions(+), 1 deletion(-)

diff --git a/lib/Test/BDD/Cucumber/Manual/Tutorial.pod b/lib/Test/BDD/Cucumber/Manual/Tutorial.pod
index ebf5cbb..46759b6 100644
--- a/lib/Test/BDD/Cucumber/Manual/Tutorial.pod
+++ b/lib/Test/BDD/Cucumber/Manual/Tutorial.pod
@@ -1,5 +1,7 @@
 package Test::BDD::Cucumber::Manual::Tutorial
 
+=encoding utf8
+
 =head1 NAME
 
 Test::BDD::Cucumber::Manual::Tutorial - Quick Start Guide
@@ -249,6 +251,41 @@ steps, which will also be available via C<data()>:
 You can find out more about these features in the Cucumber documentation here:
 L<https://github.com/cucumber/cucumber/wiki/Multiline-Step-Arguments>.
 
+=head1 Writing features and step files in languages other than English
+
+By default, pherkin expects your features and step definitions to be written in English.
+Since feature files are mainly used for communication within your team, you might want
+to use your native language. To see a list of the languages you can used, ask pherkin
+what languages are supported:
+
+ > pherkin --i18n help
+ | af        | Afrikaans           | Afrikaans         |
+ | ar        | Arabic              | العربية           |
+ | bg        | Bulgarian           | български         |
+ | bm        | Malay               | Bahasa Melayu     |
+ | ca        | Catalan             | català            |
+ ...
+
+To see which keywords (and sub names) to use, ask pherkin about a specific language:
+
+ > pherkin --i18n de
+ | feature          | "Funktionalität"                             |
+ | background       | "Grundlage"                                  |
+ | scenario         | "Szenario"                                   |
+ | scenario_outline | "Szenariogrundriss"                          |
+ | examples         | "Beispiele"                                  |
+ | given            | "Angenommen", "Gegeben sei", "Gegeben seien" |
+ | when             | "Wenn"                                       |
+ | then             | "Dann"                                       |
+ | and              | "Und"                                        |
+ | but              | "Aber"                                       |
+ | given (code)     | "Angenommen", "Gegebensei", "Gegebenseien"   |
+ | when (code)      | "Wenn"                                       |
+ | then (code)      | "Dann"                                       |
+
+The last three lines of this list show you which sub names to use in your step file.
+Head over to the F<i18n> directory for some examples.
+
 =head1 Next Steps...
 
 That's the tutorial done! You can find out more about writing steps in
@@ -268,4 +305,4 @@ Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl
 
 =cut
 
-1;
\ No newline at end of file
+1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtest-bdd-cucumber-perl.git



More information about the Pkg-perl-cvs-commits mailing list