From f2e33dc725ebc56a4871ae38e3a36ec96dba21ea Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 21 Nov 2014 10:22:47 +0100 Subject: [PATCH] added test for things done so far for bug #66265 --- .../tests/66265/de_DE/LC_MESSAGES/domain.mo | Bin 0 -> 458 bytes .../tests/66265/de_DE/LC_MESSAGES/domain.po | 17 +++++++ .../tests/66265/en_US/LC_MESSAGES/domain.mo | Bin 0 -> 445 bytes .../tests/66265/en_US/LC_MESSAGES/domain.po | 17 +++++++ .../tests/66265/fr_FR/LC_MESSAGES/domain.mo | Bin 0 -> 458 bytes .../tests/66265/fr_FR/LC_MESSAGES/domain.po | 17 +++++++ ext/gettext/tests/bug66267.phpt | 47 ++++++++++++++++++ 7 files changed, 98 insertions(+) create mode 100644 ext/gettext/tests/66265/de_DE/LC_MESSAGES/domain.mo create mode 100644 ext/gettext/tests/66265/de_DE/LC_MESSAGES/domain.po create mode 100644 ext/gettext/tests/66265/en_US/LC_MESSAGES/domain.mo create mode 100644 ext/gettext/tests/66265/en_US/LC_MESSAGES/domain.po create mode 100644 ext/gettext/tests/66265/fr_FR/LC_MESSAGES/domain.mo create mode 100644 ext/gettext/tests/66265/fr_FR/LC_MESSAGES/domain.po create mode 100644 ext/gettext/tests/bug66267.phpt diff --git a/ext/gettext/tests/66265/de_DE/LC_MESSAGES/domain.mo b/ext/gettext/tests/66265/de_DE/LC_MESSAGES/domain.mo new file mode 100644 index 0000000000000000000000000000000000000000..1aaba7b27badf4f3cfd2e301d508536f7543893d GIT binary patch literal 458 zcmZvYO-{ow5QPJRO_r=#m>me5+G&X@w?T;hph~R>DE#b@+YCvNYe%+=;2_+Hb8r@% zrfN4l`IF|!&*QOwj}E>)r+vq<uZc1%^UGJD5@&5=0}`Zl4oM zhzsHe_$cc}|K>WR$xXSjIMrMl!L8B^p+28qZ!W#^r(EVMo&!#SFB$S@li6rDAPtB= zP||{QJ-#Y8jD=6zsst}(4=oC=4cPcG9pmmUSKsvp8js{cWu?p+>ds5+zu;Stpqn8Q z1zBkk4WfV&x7B!j!wpp277PV`B37CUJXU&X7?Rc6nmFvCri@P|I*AcI>un#wPzJBV Kk?$3}{_;OyS$cl} literal 0 HcmV?d00001 diff --git a/ext/gettext/tests/66265/de_DE/LC_MESSAGES/domain.po b/ext/gettext/tests/66265/de_DE/LC_MESSAGES/domain.po new file mode 100644 index 0000000000..d2496d78fc --- /dev/null +++ b/ext/gettext/tests/66265/de_DE/LC_MESSAGES/domain.po @@ -0,0 +1,17 @@ +msgid "" +msgstr "" +"Project-Id-Version: bugs.php.net/66265\n" +"POT-Creation-Date: 2014-11-20 16:33+0100\n" +"PO-Revision-Date: 2014-11-20 16:40+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.6.10\n" +"X-Poedit-Basepath: .\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: de_DE\n" + +msgid "hello" +msgstr "hallo" diff --git a/ext/gettext/tests/66265/en_US/LC_MESSAGES/domain.mo b/ext/gettext/tests/66265/en_US/LC_MESSAGES/domain.mo new file mode 100644 index 0000000000000000000000000000000000000000..79d02c173277df033bc4ebf48e389f8a5c77c99a GIT binary patch literal 445 zcmZvYO-{ow5QPJRO_r=#m>me5+G&X@mux64s?>@ADX^>Dc1VI!JF;B_2jMK-hO;nf zP`lyDpEOT?GyeHGI{5NX`^YhJfgB=NNUa2^{XH_<^StLj|BW@Sjq2X5awtpfB}Tu& z!qL%^K7p}?R)WmenGLGE3KY0j6ot{HpWLOiZ$LT>&>QJMkdW~X<(!6$@JO`V=ZrIk zLHYpiMLp=>T!%Hev9yk+Mk-rMr;Q-~SgLF-GoUHR75d3>7aT2h8tls+Q^a)wOLs~RJE}-4tu02<5NXWV#3dQ+eZijYBqiJz2=vH0Rz!? AH~;_u literal 0 HcmV?d00001 diff --git a/ext/gettext/tests/66265/en_US/LC_MESSAGES/domain.po b/ext/gettext/tests/66265/en_US/LC_MESSAGES/domain.po new file mode 100644 index 0000000000..670d7ddadf --- /dev/null +++ b/ext/gettext/tests/66265/en_US/LC_MESSAGES/domain.po @@ -0,0 +1,17 @@ +msgid "" +msgstr "" +"Project-Id-Version: bugs.php.net/66265\n" +"POT-Creation-Date: 2014-11-20 16:33+0100\n" +"PO-Revision-Date: 2014-11-20 16:40+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.6.10\n" +"X-Poedit-Basepath: .\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: en_US\n" + +msgid "hello" +msgstr "hello" diff --git a/ext/gettext/tests/66265/fr_FR/LC_MESSAGES/domain.mo b/ext/gettext/tests/66265/fr_FR/LC_MESSAGES/domain.mo new file mode 100644 index 0000000000000000000000000000000000000000..c2f3cdd6b701685d7f72b8eb968a69e83f8ba6cf GIT binary patch literal 458 zcmZvXO-{ow5QPJRO_r=#m>me5#wm@8+aN?~P^DIcD*Wt_+fI`p*N$ul!9lnY=in?j zP1SCA@+ZxcpJ&FuM+e`I)xPD}a$z~N^ewd#OYI*me9v)SHvY%f_N-OE-6{vprIRT6 z4s(M?3;Ya97gA6(t1|7CdFcr-tuPG2j+;EBc%Xn88^CwW07ZdME-@iE@DT}VyM68x z-?u?Lg^!|c^lz?n)#S!Z8=NX8G-pOCicp`;ZZ<=&-7ync#WKJtuoXq_WHcG>79^hU z4x}(3Y>%(fE@R-+v`Wqj(L?i`DGeriN@LvJ\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.6.10\n" +"X-Poedit-Basepath: .\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: fr_FR\n" + +msgid "hello" +msgstr "salut" diff --git a/ext/gettext/tests/bug66267.phpt b/ext/gettext/tests/bug66267.phpt new file mode 100644 index 0000000000..c3aa42379e --- /dev/null +++ b/ext/gettext/tests/bug66267.phpt @@ -0,0 +1,47 @@ +--TEST-- +#66265: gettext doesn't switch locales within the same script +--SKIPIF-- + +--FILE-- + +==DONE== +--EXPECTF-- +LC_ALL=de_DE +hello=hallo + +LC_ALL=fr_FR +hello=salut + +LC_ALL=en_US +hello=hello + +==DONE== + -- 2.40.0