summaryrefslogtreecommitdiff
path: root/src/php-gettext/examples
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-09-28 22:08:02 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-09-28 22:08:02 +0000
commitda20b90bbaafef116c7a5d439e44210b126c3522 (patch)
tree6201de5504e86616fa69e58a5674a55b46060a16 /src/php-gettext/examples
parent15b8b6ab23abb44b4d6cdff7aec50fcfe82b73d9 (diff)
downloadsemanticscuttle-da20b90bbaafef116c7a5d439e44210b126c3522.tar.gz
semanticscuttle-da20b90bbaafef116c7a5d439e44210b126c3522.tar.bz2
update php-gettext to 1.0.10
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@763 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/php-gettext/examples')
-rw-r--r--src/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.mobin834 -> 829 bytes
-rw-r--r--src/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.po3
-rw-r--r--src/php-gettext/examples/pigs_dropin.php10
-rw-r--r--src/php-gettext/examples/pigs_fallback.php10
-rw-r--r--src/php-gettext/examples/update4
5 files changed, 16 insertions, 11 deletions
diff --git a/src/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.mo b/src/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.mo
index 6ffccfd..497c883 100644
--- a/src/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.mo
+++ b/src/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.mo
Binary files differ
diff --git a/src/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.po b/src/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.po
index 7e620cc..e5da0e9 100644
--- a/src/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.po
+++ b/src/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.po
@@ -12,7 +12,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : (n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#: pigs.php:19
msgid ""
diff --git a/src/php-gettext/examples/pigs_dropin.php b/src/php-gettext/examples/pigs_dropin.php
index edd2b0d..94fd850 100644
--- a/src/php-gettext/examples/pigs_dropin.php
+++ b/src/php-gettext/examples/pigs_dropin.php
@@ -1,6 +1,6 @@
<?php
/*
- Copyright (c) 2003,2004,2005 Danilo Segan <danilo@kvota.net>.
+ Copyright (c) 2003,2004,2005,2009 Danilo Segan <danilo@kvota.net>.
Copyright (c) 2005,2006 Steven Armstrong <sa@c-area.ch>
This file is part of PHP-gettext.
@@ -21,10 +21,12 @@
*/
+error_reporting(E_ALL | E_STRICT);
+
// define constants
-define(PROJECT_DIR, realpath('./'));
-define(LOCALE_DIR, PROJECT_DIR .'/locale');
-define(DEFAULT_LOCALE, 'en_US');
+define('PROJECT_DIR', realpath('./'));
+define('LOCALE_DIR', PROJECT_DIR .'/locale');
+define('DEFAULT_LOCALE', 'en_US');
require_once('../gettext.inc');
diff --git a/src/php-gettext/examples/pigs_fallback.php b/src/php-gettext/examples/pigs_fallback.php
index b50f752..353190d 100644
--- a/src/php-gettext/examples/pigs_fallback.php
+++ b/src/php-gettext/examples/pigs_fallback.php
@@ -1,6 +1,6 @@
<?php
/*
- Copyright (c) 2003,2004,2005 Danilo Segan <danilo@kvota.net>.
+ Copyright (c) 2003,2004,2005,2009 Danilo Segan <danilo@kvota.net>.
Copyright (c) 2005,2006 Steven Armstrong <sa@c-area.ch>
This file is part of PHP-gettext.
@@ -21,10 +21,12 @@
*/
+error_reporting(E_ALL | E_STRICT);
+
// define constants
-define(PROJECT_DIR, realpath('./'));
-define(LOCALE_DIR, PROJECT_DIR .'/locale');
-define(DEFAULT_LOCALE, 'en_US');
+define('PROJECT_DIR', realpath('./'));
+define('LOCALE_DIR', PROJECT_DIR .'/locale');
+define('DEFAULT_LOCALE', 'en_US');
require_once('../gettext.inc');
diff --git a/src/php-gettext/examples/update b/src/php-gettext/examples/update
index c8d8b61..76b4308 100644
--- a/src/php-gettext/examples/update
+++ b/src/php-gettext/examples/update
@@ -1,7 +1,7 @@
#!/bin/sh
TEMPLATE=pigs.pot
-xgettext -kT_ngettext:1,2 -kT_ -L PHP -o $TEMPLATE pigs.php
-if [ x$1 == 'x-p' ]; then
+xgettext -kT_ngettext:1,2 -kT_ -L PHP -o $TEMPLATE pigs_dropin.php
+if [ "x$1" = "x-p" ]; then
msgfmt --statistics $TEMPLATE
else
if [ -f $1.po ]; then