~danilo/php-gettext/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
2009-11-27  Danilo Šegan <danilo@gnome.org>

	* Makefile: discontinue use of ChangeLog with 1.0.8.

2006-02-28  Danilo Šegan  <danilo@gnome.org>

	* gettext.php: Added some comments about these workarounds for
	different PHP versions and architectures.

2006-02-28  Danilo Šegan  <danilo@gnome.org>

	Fixes bug #15923.

	* gettext.php (gettext_reader): make magic check work on 64-bit
	platforms as well (by Steffen Pingel).

2006-02-20  Danilo Šegan  <danilo@gnome.org>

	* gettext.inc (_bindtextdomain): Use php_uname to detect Windows.

2006-02-07  Danilo Šegan  <danilo@gnome.org>

	* examples/pigs_dropin.php: comment-out bind_textdomain_codeset

	* gettext.inc (T_bind_textdomain_codeset): bind_textdomain_codeset
	is available only in PHP 4.2.0+ (thanks to Jens A. Tkotz).

	* Makefile: Include gettext.inc in DIST_FILES, VERSION up to
	1.0.7.

2006-02-03  Danilo Šegan  <danilo@gnome.org>

	Added setlocale() emulation as well.

	* examples/pigs_dropin.php: Use T_setlocale() and locale_emulation().
	* examples/pigs_fallback.php: Use T_setlocale() and locale_emulation().

	* gettext.inc: 	Added globals $EMULATEGETTEXT and $CURRENTLOCALE.
	(locale_emulation): Whether emulation is active.
	(_check_locale): Rewrite.
	(_setlocale): Added emulated setlocale function.
	(T_setlocale): Wrapper around _setlocale.
	(_get_reader): Use variables and _setlocale.

2006-02-02  Danilo Šegan  <danilo@gnome.org>

	Fix bug #12192.

	* examples/locale/sr_CS/LC_MESSAGES/messages.po: Correct grammar.
	* examples/locale/sr_CS/LC_MESSAGES/messages.mo: Rebuild.

2006-02-02  Danilo Šegan  <danilo@gnome.org>

	Fix bug #15419.
	
	* streams.php: Support for PHP 5.1.1 fread() which reads most 8kb.
	(Fix by Piotr Szotkowski <shot@hot.pl>)

2006-02-02  Danilo Šegan  <danilo@gnome.org>

	Merge Steven Armstrong's changes, supporting standard gettext
	interfaces: 

	* examples/*: Restructured examples.
	* gettext.inc: Added.
	* AUTHORS: Added Steven.
	* Makefile (VERSION): Up to 1.0.6.
	
2006-01-28  Nico Kaiser  <nico@siriux.net>

	* gettext.php (select_string): Fix "true" <-> 1 difference of PHP

2005-07-29  Danilo Šegan  <danilo@gnome.org>

	* Makefile (VERSION): Up to 1.0.5.

2005-07-29  Danilo Šegan  <danilo@gnome.org>

	Fixes bug #13850.
	
	* gettext.php (gettext_reader): check $Reader->error as well.

2005-07-29  Danilo Šegan  <danilo@gnome.org>

	* Makefile (VERSION): Up to 1.0.4.

2005-07-29  Danilo Šegan  <danilo@gnome.org>

	Fixes bug #13771.

	* gettext.php (gettext_reader->get_plural_forms): Plural forms
	header extraction regex change.  Reported by Edgar Gonzales.
	
2005-02-28  Danilo Šegan  <dsegan@gmx.net>

	* AUTHORS: Added Nico to the list.

	* Makefile (VERSION): Up to 1.0.3.

	* README: Updated.

2005-02-28  Danilo Šegan  <dsegan@gmx.net>

	* gettext.php: Added pre-loading, code documentation, and many
	code clean-ups by Nico Kaiser <nico@siriux.net>.

2005-02-28  Danilo Šegan  <dsegan@gmx.net>

	* streams.php (FileReader.read): Handle read($bytes = 0).

	* examples/pigs.php: Prefix gettext function names with T or T_.

	* examples/update: Use the same keywords T_ and T_ngettext.

	* streams.php: Added CachedFileReader.

2003-11-11  Danilo Šegan  <dsegan@gmx.net>

	* gettext.php: Added hashing to find_string.

2003-11-01  Danilo Šegan  <dsegan@gmx.net>

	* Makefile (DIST_FILES): Replaced LICENSE with COPYING.
	(VERSION): Up to 1.0.2.

	* AUTHORS: Minor edits.

	* README: Minor edits.

	* COPYING: Removed LICENSE, added this file.

	* gettext.php: Added copyright notice and disclaimer.
	* streams.php: Same.
	* examples/pigs.php: Same.

2003-10-23  Danilo Šegan  <dsegan@gmx.net>

	* Makefile: Upped version to 1.0.1.

	* gettext.php (gettext_reader): Remove a call to set_total_plurals.
	(set_total_plurals): Removed unused function for some better days.

2003-10-23  Danilo Šegan  <dsegan@gmx.net>

	* Makefile: Added, version 1.0.0.

	* examples/*: Added an example of usage.

	* README: Described all the crap.
	
2003-10-22  Danilo Šegan  <dsegan@gmx.net>

	* gettext.php: Plural forms implemented too.

	* streams.php: Added FileReader for direct access to files (no
	need to keep file in memory).

	* gettext.php: It works, except for plural forms.

	* streams.php: Created abstract class StreamReader.
	Added StringReader class.

	* gettext.php: Started writing gettext_reader.