ecpg localization

Started by Euler Taveira de Oliveiraover 17 years ago13 messages
1 attachment(s)

Hi,

One of the few parts of the core that is not localized is the ecpg.
Attached is a patch that builds the basic infrastructure to make it
possible. Besides that I worked on some strings to make them conform
with [1]http://www.postgresql.org/docs/8.3/static/nls-programmer.html but I didn't do for all of them.
When I was doing the clean up I realized that an overhaul of ecpg_log,
ecpg_raise, mmerror and base_yyerror functions is necessary. I'll give
it a try later.

[1]: http://www.postgresql.org/docs/8.3/static/nls-programmer.html

--
Euler Taveira de Oliveira
http://www.timbira.com/

Attachments:

l10necpg.tgzapplication/x-compressed-tar; name=l10necpg.tgzDownload
#2Peter Eisentraut
peter_e@gmx.net
In reply to: Euler Taveira de Oliveira (#1)
Re: ecpg localization

Am Samstag, 26. April 2008 schrieb Euler Taveira de Oliveira:

One of the few parts of the core that is not localized is the ecpg.
Attached is a patch that builds the basic infrastructure to make it
possible. Besides that I worked on some strings to make them conform
with [1] but I didn't do for all of them.
When I was doing the clean up I realized that an overhaul of ecpg_log,
ecpg_raise, mmerror and base_yyerror functions is necessary. I'll give
it a try later.

Looks good for a start, but what is missing in this patch is that mmerror and
the other functions actually call gettext. So currently this patch doesn't
achieve a lot.

I suggest you keep working on this, and we will reconsider a more complete
patch at a later date.

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#2)
Re: ecpg localization

Peter Eisentraut <peter_e@gmx.net> writes:

Am Samstag, 26. April 2008 schrieb Euler Taveira de Oliveira:

One of the few parts of the core that is not localized is the ecpg.
Attached is a patch that builds the basic infrastructure to make it
possible.

Looks good for a start, but what is missing in this patch is that mmerror and
the other functions actually call gettext. So currently this patch doesn't
achieve a lot.

Well, it was only advertised as infrastructure, not a completed feature.

I'm wondering whether it would be appropriate to apply now despite being
incomplete. The patch touches enough places in ecpg that code drift is
likely to be a serious problem if it has to sit around for long.

Ultimately Michael's opinion is the one that matters most for ecpg
stuff, anyway. Michael?

regards, tom lane

In reply to: Peter Eisentraut (#2)
Re: ecpg localization

Peter Eisentraut wrote:

Looks good for a start, but what is missing in this patch is that mmerror and
the other functions actually call gettext. So currently this patch doesn't
achieve a lot.

I don't know if I understand what you want to say by "call gettext". A
quick look at the l10n of backend proves that it calls gettext
everywhere. Could you ellaborate?
Based on your feedback I'm working on the second part (overhaul of ecpg
output message functions).

I suggest you keep working on this, and we will reconsider a more complete
patch at a later date.

Thanks for your feedback. I agree with Tom that it's is a
in-progress-work. I'll send another revision of the first patch later.

--
Euler Taveira de Oliveira
http://www.timbira.com/

#5Peter Eisentraut
peter_e@gmx.net
In reply to: Euler Taveira de Oliveira (#4)
Re: ecpg localization

Euler Taveira de Oliveira wrote:

I don't know if I understand what you want to say by "call gettext". A
quick look at the l10n of backend proves that it calls gettext
everywhere. Could you ellaborate?

In nls.mk, you mark mmerror as containing arguments for translation, but
mmerror doesn't call gettext anywhere, so nothing would get translated at run
time. To pick up your backend example, we mark arguments of errmsg() for
translation, but then errmsg() calls gettext.

#6Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#3)
Re: ecpg localization

Tom Lane wrote:

I'm wondering whether it would be appropriate to apply now despite being
incomplete. �The patch touches enough places in ecpg that code drift is
likely to be a serious problem if it has to sit around for long.

We could do that, as soon as the author understands where the patch would need
to go, as discussed elsewhere in this thread.

#7Michael Meskes
meskes@postgresql.org
In reply to: Tom Lane (#3)
Re: ecpg localization

On Fri, May 02, 2008 at 07:19:00PM -0400, Tom Lane wrote:

Ultimately Michael's opinion is the one that matters most for ecpg
stuff, anyway. Michael?

Sorry for the late reply, real life constraints. I talked to Peter about
the patched before he sent out his first email. In fact I agree with
both of you, as soon as there's a common understanding of needs to be
done and a willingness to do it I'm fine with committing the patch as
is.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!

In reply to: Peter Eisentraut (#2)
1 attachment(s)
Re: ecpg localization

Peter Eisentraut wrote:

I suggest you keep working on this, and we will reconsider a more complete
patch at a later date.

This is a second try. Fix some issues pointed by Peter. It's a little
fatter 'cause I worked on almost all of the strings. I attempted to
mimic the postgresql style but I think that those strings need more work
on as I pointed out in the first e-mail.
Again, It is necessary to overhaul the ecpg emit-some-message-functions.
For example, some of them have tips in it, other ones is
just-for-information message, and so on. I don't have in mind what is a
good draft for those messages. Suggestions?

--
Euler Taveira de Oliveira
http://www.timbira.com/

Attachments:

l10necpg2.tgzapplication/x-compressed-tar; name=l10necpg2.tgzDownload
�@&H��	<�[�?��-��e���Nd��[v��1���%���E�JE��F!%K�.e_��yEw�K�����_�y��<gy����v>�@
 a��B|vp{{>�-��#|�DD��������B+?D����


��	��E�@�,��b�P4���������#����?�a%&~G�vt+!b'l��8�y{��r�'��$��a�e��XS��g����R�r
�S#���tW��Y�6��P�T���|zO
��.�<88xu.M8�H���.M0����t������
2�i�w4O:Z���'��O�M]>`�x�1�@�J���r����#�^��j>p�(������3�����|f��x�tn���]'��������r�~����C�6cA�SO,3��+&>-=����p�%�@M�';����o�����d����q �J�_��-x��i��9/�g�wqxj��M����Ga;i�<@~y��d�%����H5J(|����	�P/-��E��]=�7F����<^&������=�c
����9�Y�92l�u��o����n;v�}�8���v���R���,����=��q�G� ������.�.����d��u3�#_~)P���0��
;�mR_�._=">.)��������������Zv��w�2]_�INP���a9Q&�(�������|i��=������'��]����w/�������#��7{��r���LK��h���Z���o�'���K�SV}�>w����-stb���3��
�Z���M
vu���EnP�\%X��>T{�C�������w:����/����v�-��;'��?���s����=[,��%\�[-�\��|���e"�#�~9�:�X��)�T��
��uU5'!�
 }K������<�+}:��~#��S�caov������)�V������f�&�$����t�V2[�H�����J����h�g�E���FZ�}Us7�.����m��HfVE��_��W�K��v(&%�)xvy4<4��B�����E������$F���\d�H�3���}�UtJ��|����cK}I/�{-!jZh��~I2�e��c50>��d�����R��[�����X�:~������x���������3}R|�eN�.��B��tx�^����ir!�������d������Op����]'��nX�'^Bj����y=RH����Hf�a��Bw�CYBM���B-C[�E�	���I�_O7[`�U�]�/��9��vPb��9m��������w:cN���1��_z�';��-*�����,���%����t��/nq��{���GG��ww�W	L����*��$L��`����F���x��{��P�������^�/������n����R���?}3x0.���ul�Z�������>}���Sz���t�R�����>�E5?���/kj���+��d0=-�F�4�N��Q�����Z��;I�����dR>7eE:s(���'��U�CL(��5��9K��������Sz#�����u2=���}Q3]~����wo����
+	'����*�I����e���mw�UL��|����S��|�nY��FLf����c�c��k����:��'l^#|,�V����E�;\>�����Az;�}e�"���R�4�J0E��z����WG�r�|+�;3���D%_���fD������U'[
w�}
�DCO��[HM8M����	t9w�+����A={�=B�=��K+/~�������7�<U�"�{�}J�7���.���=g��w'�����w����;��#u����2Ds���-#�A����=�}e�r�/�����j�
�G��vKv]t����m�#Kqj���IMn���>.#^���6�>�'0���B��#T�np�\B&|nH�����f>^'��c�x{O���/\]���}V�H�7�;g+��}g�Uk9����e����w�o*���)�3�j��9q�<����b�@sW��gD�B����w��]��[(e"c�^�g��%n(��^�e��;Y���eW������`����w��<���'�|4��4��}����������}��i�$�4jvD��NH��y�O�\�����6�7��g��J�j3\��J��qxOF�rn����C�/��]�#4�(��{�p(j�|KFmH���M~��CS���?g���N��F���|v�!T���C���8��������$������/���t����)#3t���RN7����K���q.F.�?o/���W��a���l��
}]��z�\z������k���'^8�:I���o<;h�4�rC�F9)t��W�������
z��$����z�5:g$V^y)0gXU���������J���s�
�\*�L��2am;rCM.>{L2x�����a��A��QFW���}��?��C=���������h=�xv���e���L5���k<rY@C����ba����u���r���|����B2�����zz_`h��uQ-O�|��������y
��h<%������c����wqc��y:u��^SY�d�������O�%��"�d��&���{����[?��k~h���?����{�����f���m���)@"�����s�!�H���K�<��%q,n�me�9/�]�m�����QO(R3'�-����B>�x1������>g�\e�u(�������\��S2'�*"�eT���|�UqQJ�DW�i�
�={����u%��Jfx����4}��"�E�$V�q��������jO_K8���0���}7��>�,s��f�1�r�c���RoI��9��vk$�
�C�������wP�6O�B8X��������+A����������geB��.nM'3�n���*�c6�������j��'SC���5��Hk���R&�Zdj`�~�;
^+�����F�i	�#��uB������l1cx�<���A�s^��%U]���Ci�Qn���_��U�S% 7�k�IH����<�{�L�~����������Y�1���z��^���Y�	=wx��R�a9f�pF0����eK�����l8��Z�rQ�,���
�����+n{b&��-�>��#�D�v�q��d��f��O���K
}�!�������}dY�6mOI�N�����
1�#������7�VvGP��PG�g�����'F[�(9O�����k0nGc�g�����3��lr	F�U�o9R��;������Z�%$}�@�aW���{�O�QK��]�[�~&JHM>��#<�X���2�>�����Ym��nSo�����g����K������jx{���.��(��_��G�dW��k�ux�����>��f�.�2j6��S�n��-")Y��0fy�S�FL��K6?w���w��\����a���w~������T����K#��9
���yT�����N�Vm�Ho��9�{9d'+���s'��M���$����<���?���dA�)O��n�sH_���������6��Q/�G������$|����A��*I���_��O;I3���V�L���R,���l+Dh���������G>�����mx<K���|���bQ��7,2�}���Y(Ta����rT{K�����}
��L�����(�6��O|"���������������xK�~_���o
=h�`p��"p�<Ap~�K���6]�
G�D/�� �pu&#��16vH��KwcBR_�
��lQN`��f��'�d��9DUi�T~�n��=�(��)�F�����QH@�
�L��i��������Z��Ae�Dv,���<<��7�j��+�
�O����}��.��2�������1T�I�n��g#����G���Ih�������N�0a$6��mW�������D�V<����z��e�B�xH���biM��B]
��\�����F������|O���:����jVWSl�^[�Y��Hlr,���c��_������!�5�����\HT���4Xkq|8����!�<��[�����=�;��)o��;ve��������0�O�3j�����a{��Y��j���"�(����V�<�@�%���[��N�|���M�d0T�U{�	�:�%��y��I��>V�J����
+�[���{����e��ayv����O������������/��S9��0�e��������2
|�Q�&s,��Db����5�ey�Y����3�����N��xJ���6�}0����!�>����Qo����<��+W���T�:�sLzK����_	����z�''����5��d��g/::_
X��$�+fC����s�}V6[�QFLrR�n�ub�vk�$�V.����1�F�%�^��������O5�����G=;F�����L��E�53�4�Z���Gf�J��I<���4Yf����H��S���'��U��D�G�����4]�9T��S�J�r�l�����/�RL1 >�����4_���x-ZE@+q��������v���>��%!?G�K�6!���Y����0�^�U���M3��;���q�����u<����������;�S��|S��5a�&b�����6�H�-�%���<	��mvN���9��x���`u����PNe�F�+2����d]l�U����.|B��G,���k�f���e�es��,���������(�����O�BGj��9����p�?J�	��<�R*+���
�Q�*�MWy�5��L��yX(�q���*\D�7k�Q�9&5mG���W�����$T%�#,{;����
3����)���!9��^z|n�O����hN�d���o��6{�~z3o�=%y���,{w��wR�0|�"?D���b��F�%M����@i,�G*���7�j����H���\^�0:p�^AMV7>j�rbH�W�QZ�Q��g��[Y�3������n��iu&�+/9����=�~����2���9<����W���|�up�?cr�������$���
-�#T	�3,dB��m��b>��x�b�c8H�����TW�4�"k��r���M�Q2
��:
W���I����M�%�U��QUa�����xUm��v��P�tqt�,Ex����g��^���b���@/E�Tb�j8��!C���a��@~=U}����`z���������_.�4c����	�Lw����x}��)������E�~�8x�DS�y�i���i���D�zM'b<T���"�,��s�rk������T���)Ne��{���:2�(k�q�5:��)��:y��Q���7Pur87+�Rp��u�����3W��\���R����Y�C���
���8h�[Q!�B�G$�Z�U����e�[�R-�L����~�9q�#v����gW}
���KI]��R��c��9+�E:��p�HK��X��M���Fo&_��h'����	�OI��U+c��8�w�ec�3+��Y�#�N���u��F8��M�+�G�
B��bUT#&����%G�au��_�"TK/�,�e����{=z�+��!f;���+8�=?J�����4�mt�Z�������f3D9��@_�_�4+���"��ym���4*"x�Pp\c�d�����*�����`�\�<��$Q.��*�w�J�6��������Lcf��L������>?_�$g���N_�8�������2<��5���3�����8}���F�B�r�_71m����uOmU��N�<Z�v����
�����a�������OD��_�4lZ�� ���v�����/_sZ�Pi�IZ�]2��e����+�O�|g��6JvM�]�c4W����O�(r���	��z\�bTh'���o����H�^�T"7�%�&ZP��.���il�2H+M�$%<�@���VwE����m��L.����|��EH��P%[�,�xj��V�.���|�y���
{���7�6�P��J��;v �\q���0u�f��5��wU���{�0���?*�q79�E	}������bz?H�����	�w1h�$r:�Q�;^h 
l����������^5�5���������l������[������%��<s6�h��-q��O��^�>u#3�������<_x��I���3Ewt�z�2�<���v����a����������_b����]s.���H��:�n���D�����0t��p�-(>Vv=�X��a���
���&�}}�c�<�_����;�??AK������A}=m�>���.����e;�q�������/�G���Y�����'����8n�U^x����X�����S��Q>i_�F�bl�fSo�����U����"��L�y����\�y��5k	y�ba����w%�|+��9P��a���Bs'
��7O�j&�h��R�s�sD�&g
����|�U����W���L��!F��M���G5{����%��uj&5s�����e�f0A/�?�}��{��fw�PQ���B����}d1��������f�!����~�����D��_�^��������{��s�2-.����Jbe�2�v�/��Fq��g��;_K���a������yNQt�rVa�X��Cz�)��������))4j�5n���KE2��2��EA�k��N8(M�k&�a��Xr�^iG���qz1�
6=���b*�
��<����O�43��1��'|�c�UqO������;����E[��Eu��6U�����n:�!z�r��y�lof�d[�v5�6�L�����t���lg��<�q�����w�'+��oW
*�o��v�����������4�����&�}O!FB�v�Mp��O���;�!r������(�g��*R=,��D2xB��`�m������J�e��/S��?����d�O�T�����`j$c�����9c���Gf�?a8����J�6�P`���c�M���g��t���u��#UIK�w"%Q9�����T���N��Qg/p��xh�E�
������nL��G*�.�d�WKQa�g�AH�0�7_�{�����^�YU����B�����EB���OP�D��b�9��uS�2�mW���j��������\��?w��������I��������U*)����-��N<
�y����w/����#[9d��3�$���`�����Yr��$9g�!�d�u�}��GMw���9�-������]�k8."8N��<�Phl���,��0���b��������8�����Jb�����\
L���a���t������vK\�[�<Jh|������5��������%g:��?g�w��#�1��7�?L�s�g9��� CN�[S��Bd
}��K��m�
G�9^%N+�y������?��*�)�����Q���n�q�"7�5���#g���Rr|�I�%7�anu7
N�F,s�},Pg�n�6�,`��8/��"����X�0���k��7��������]��������I�t����N��w�.������$=������NF5]�%�|L��A�4U����cr.A�,=�=Z������A[�=}�?�L���I��aV;�"���&o�>�������i�v����}:�W�!��z��q�[�:4[��v�#]�����M�]5��i��nQk������2X�j��Kr�P{zA�]�����]�21.�yu�fM-�z������@p�C�7��p_��$��s	vN{d���'�w��=w}{S�jN��[J�G���sYv���*�8g��%���Z���?��p�$9��4�@��;�r�V�E����q������M��j�_I9tx;s)E%s4������XP����i������9S/�l,�G���O�n����]6/�\X���)D8�<�wl�|6w(��}������uW�?k*����e�@�c���C��r���g�>��vp��}/�������\�TvU�6���v�,�P��p�J��h�D%6(������!�9:o�2��7���n7�,�y,��G�x�~QJ{����#-�w �[���"9[E\pJ�z[��������o������1w2��UC�\���q���=�D}��p���N��i$�������.�gx��*�����C�X�uG��r��goi8���
����-��T�8�����$�������,Z�}�\en�:F{��C{-�N]8W�.�F��Kt&��*���i��V_W��'l(N��v8�OE���\������������)Lp�+���=F��V�`S��
}�=�4k���T����|�&r3�]�+&���KRr������������/��>��,v*?L�!+���3��AW=����0�.&CV>�o������x�������V,B�m?MSfU.���*Fu���|��2�2��7�5f���d-��`���9���H)xeNrWJ��^��=}������7g5�}���<���"_���y���
	�����������>�o�M��R��ZT&�:c�n�s1o�r��[8���\�s4V��ig-XH�[[�J����Q2B���f��/���;R*M���J��4���E����p$T�Zr���	��i���,�C�\�gVpG�~�29V��H�G��O����9��uWR����oy�x�A&��c��[%R�2��wc*,�=��
2��|�Jy��l�
��L!�{�%�A�rp�u��c���_���G�9���T�V�Ul���q2LJ���7��:�\�=�!�e���A�����~u��1�-o��$�������Mr�e1;XP��8����K+Q�G��5$�.�
n��j2;�����tK����0�^w}�W[�]��o�G<W���/�������=U�7�^i��e
/l0��
�����\�h�?z��C�v�T�[��%�2�I
�Iw�@g�H�Z������i��u������M��c#��
hv�+�D�T��;�y��6���Q�����9w��&����v$-�g�:����vD"�3�[���H!��WO���-��SX�8<��q��&z�XX�]xj�q���\����&��^��Zw�����p�jyg?���9��V����}v��w�G�����_��kRLW���C&<���c��0Rr��������S�g�/�j�=1v�����m��T^�f@���e+�|>��Ky�������!p�������������)��i����8���Avg�u��S��vF������:7���=��|��r�<u�q�����74��
�g�B�ON|:�(t�� 3��F�F0�I�N�C`_�S.�T��J��������L�h��$q��Q.��L>��_�b�r�����^������7�� ��\�'.��/�b4�e
|if��>����&��3�L���v��y�=]]�d������9�s y6�o�>�����!1�p^^l��+����sj	���.5x��%]�0I�:��$R[�V6���������G�w�1�j�uOY}O<��h�8:>�]'v������n�T()}1�E�8�u#F��pS�z�{���
���rB+���0i�N�SR��#�"sE�!���3/�.x��-�x��|�'�@\��eO��_��M_��Z�u-��
*���m��j�����$MF���y�f'WQ���>��a�^e���)���yD:�Fp�����=�>U<��Pv���k�?����NK[Z��t�EI!�L�2�g��������uq�m��U����
3g'���:��0Q��~�fw�
?�dMn�{��5:�Jl�%�STc9;]cH��2_�B��>��4��}Z3&�������j�x�~���j���R���s�KQn���$��c�~QG��P�YG�f[*$&���?�24?��������D�K����{R8���x�hiqb>����;�W0W97�w�wNE���B����r��b������I��~�F�0rf/���g1���4�J�CVu��;�����:�����Q����!�3����&�
�'����������-*R6��@O1����=�`����u�/f}$���1��C�d�u|���/��;� #<���r8\#��sL��1M�w��5)�����^���l�!�m|S� 0�m,���V�t����B_��u�-�����2���v� @����R���)S�SE�:YI���+���}s�u��O����J����X��{���-.;d�c9�����f�9��6�w�����F.D�e7'8����x7=�7�:��{���A�9��[X��8��4s/i��1�h�y'���c
�7�|�=J��:(����o��l<��G#k��������-�e�'?����jx�p��D,�9v�LH����������DY���w�T4�(=�8_��L����c��o��l�����%(3�N���������!]����=�Q���h/s^������N�zWu��`��_E��������vd�y�)i�H����A����=�X����@��'
���l��;�Bb���%���\96��Q�:�b�dy�HK,�����-�����^eM���m{AcK�$��"���[(h*S��#�������A��x/��cG�������R|�"���5�_���X������*��u80N�3��<�*����&{�C��[eNGDUg������{��2x+P����E���5-S�Ay�U�R���X�4���}C�K��O��w(QF�=�l���P�x����<T�L����SU7�$���kn�Sv�%���O��6K����.�~��K�K/n:NR�k(���H��8aq�����M������7;(iu�.��u;_�{sUC*T;R�����T��wZ��"{d��9��
x�����m���=���Y�`�`m��wi��u9=c�S����OM�C�O��.<���)������]P\�����+E�"�w��+I1u�_>15pD�����J��A-�;�]8G���4���<����K��R"��:�XK:-r����%���U�q��F��o���+�g�6�����~9�������{=���A�o��:w_yx!J�Ph�x��+��M\z��������i#�}fc\Or���i��X���4F||Gq�G�����_?�x)�qSaw\��gw��$^:��:�,<o�i�5�I�Z<�p�hz��@��u���(��z�P�b1��7�-}�����NuB~��zv�i�B��J�Z���E�p���7�
������fs2	�g �0���=����'o�>��MMjg����l���LB���;F���Q�������Y�F4���N~�*��{���v�����e�/��,:��~)U�����;����(d����d.�����d3��/����S�`���@��~8���+Fr�����k�-U)1��<���*��$�u<e
���X<L������FD�Rn�}��s�����
=���p��q��^g�������v���5}?���b��n�z�������sj��d<%�GWN�E��t��I�4���o�VR�P�xz������
H��3����3��.�g�\[<(����^����sk0�a��5:�e�>�7*��z��z
W��*F;v`}'��Rk��w�~����v��w7S����	��v����j)i�}���)T�{2���xx����<z��!6�����|i��Q���
��:_���u"N9�l�f���V�H�g��1�+1��r_��V��4�����5����T_�X����K�m���+����4��^-1�d�8������������4�!����V��]����q��w3������U)%����P^�����.Os��rx��+B�djI<�������i���Se'��)N)5]c���#4�C����#��$��&����7��Jl_F''&n��'�<'j����]��n)YSQ���k}|��CeR}�S#X���tT���\=��i=k���s!;��+H�w���MI�T���"��r����I\�v�3c�v������Z��m���$��0�X?�g�W�~.-~���FB���?�/;�?�f<+0����6��3�4������l�Q��T��<Y�1�>ve���:!�a�n��4�~�'�*��Z4�XT�f����p�5�^�����-���T�����L~w�y���#z^����|Y������0����$������W����$t1%�Xa�?:Y-S�f�7�����%:�B�L�j�v�����_����Ag�����������k�����-����g�;���JC��k����0�=�U3�=�;�z�Y��6��!����J��y�t��A���7.N2�[�_W���I����A�����!����x��qO�����t����*CJ���N��P��iv�Dd�PE��?{�y��`��{�u]���gf���lD��s_��a�p�[����L�]��~F����:��+����Yw���(tt������T���S��K[h�^N���i����wHeg���*��y�c������
��]Tb�\$^t��I$E�p��h���)�-�"�d��K��K�GK�YJ2��^��V������s���
�����d�:[���&S��-_�P�:&����.�����$]�m�`��&�`�|D������W.I����8*u��M��`���n^B�8��q���;�\�u��o�����/2�>�mz���������������3�z�L���x%�9��OXqZ���E����hJ����zs���:�;��K�m:�}���Q��������Jw������v�9~*g9;era�����C>����������
-/<I����RQf'0��VKjf����NSW-~*5Y��VR�<&�G�]�����+������=�)��^T�	�h�M�
AjfuM(r�7��li��R�`�����r��*���J:k+A��6������������gc����[�[��������k�"��y��c�T�C*��`i��[�0.j�}�������
{��r��2J4����S�3�"�@��}ZP��qt�kT��"q{*����;1
���Z�?�@��}�<�����`Dy���6"��]����=���_�#�{V�O�>N�gR:LKv����S��cOd������K�xOz��u�s���T	���*�Xj��}&��E��+�����y	T8��	�wP���R�r�/����@�kO�k��[7�9N��`��y�Ix
��v��S������!V�n������<}���#�8������?`�����O49��Dfm�������g���+���������dg�e��a��8����2a9'l��N�<�%�����V5y�����d����.�������(���;>J���w�u��\���(�k�.m��3��	)��)���h�O������Yl����f���ST��,l���}�d�9�%��s>�F,���M��2���"�"?#�>Q��]�����7��I~��a}5���f����c�<�	���t���z��������2�],]6�~p��^67��|:�vW�����73�����w�2��r2����]Q}j>-p��]��k[�Do�=-U���M�M _���pTG!��4w|���{������Ov�]sc�L$I!��B���r�}Md�G���b�i����u�Ed~��h�	��T���t2
FB��.�	����T��6���� �n[��I���s���U]7���x�+��?r���|"����e;(��r�G-iqG���T���SqS�|�(������\V�	�9�)&�#��`���r��4��_f:f���Vl��/�Q$�0���&�������a����Uf�'O�]�P�r��:�|�(N��0�]kPp�#)c�/����H��\
{�\V��k��Wxe��r��
13� a �R��=�����J����re����"���4U��o���	*0Y=�K�{���@�e���i�b�j��6�o�& �=�=eO[��C�vq�4�hg�G2zy�,W^�%RP\c�_���(W������}����d�����hR�H�������l�"���<����>��/oG��CW������}���;<{l������R��=��g��O>��$�A�7���c���M�����:|�o~�#n�^m��tl�F����,)����^*k���{��:��k�#v]r���Vf�lA$'��������n����FT5�K�{�#�Ve�pPYE�)�S��B�,��"��Y�wS�i��!�$Sb�Q�W�
�`$L���Q2&�����)�[+vx��!�}�~��ly��r��%�:�g��*D9f�5,f��=+7������HnQ��Fe����E�;�$^(=R��y��[��~��R1����]A���5_��Y�q>e�g�9�v+j`_�(�;So'k�9)Zs~Y�[�Mj�{I=-w����4���������
n�U�w��rV�q�'v_�o���;���&�������Vx�&'a�U+3���uu>5k�i������Yl�E�u��o[JoJ��AL�*9��'���yS�5�X�l�V��c/�,����=I�95O<��'
Nst�|��p�>������4�;zk�<����d�NqQ��-4��{��Ne;�o{�Y3H~4n�����������g��e����~����}�
s�qB�	�?�(R��]��=6��9W��/���+_�d�
�d���eG���`H��!����2�����x`���	����w�e��~b�G7��N�9���r���z��P���#�'��
�f��3\�i}�&�����)��X	O
�EPN�[�]�j��$�s{�=����q{82���V~_�M�C�<��d$�/��lP}����?L�����!��F��m�����D�����tc��m�:8��|�����HVnajTF�Va��z����q�A�r�;]���r�O���~h��-,��N����m�=��}�e��u��6�S����6��N���q�^�������v$���H�d.�=�}�UA���	B��J�y>��s��tk4!�.4~�;Z��#y8��J�I4�tm�+�����a��8+y��C����f�|HP�S��0I<b?�����A���$�.^9���5��lIG+C��[bZ�;LY���j����
D��D8Q/?_�"L!�W��T���y����������zG��:�.�J�����?�v��_����[�:i�N%���a7�� S���BY==L(P�gw�l��~��������!��C��:F}3�G��2���dU��*����.����q�-���a��D\Yw/\P�m�|��W?�<��*����2.�)x>?�������c���`2r�'#^!�F��a���4��5
n�����z;,�����:�T�2�y�-�b��3�q�WZ�Hr�z��u>��"����w*�"s��Cuz[-D��t�I+Kl3��c ���N��6��)Zf�z���<�<$U���O�������cVS����2��hO�e4�Q��zr�p�!���g���n���`.PZ-�cG�H�P�F�8�`+�Q�-��Vw�
m*���N�%�a�2�����3����Q[M	�}��$V��\���)����$�?�L�TVu����@�����m�l������!_����z����t�
~{
�O����\A:��,��I[���	"/����$��IW�j�%c�"����q�[�n�;1�~^��p����)C6������a�{��_N���ii����B��.3�Zvo�~��TMZ�����J��}���x��Q
�R�A7�s'8d�iX�����~3��A��������DY�j��Gldf���=����:]���!�	�Kn����7���38��:R�J�r+�&����q���W����%��2�h�a;�?�2�]:7h���b�KL�/���Hy�JIqx�[�M��-�{�'�:b��kN�*�C��J���7��D`���� ��'�����w���2�0��|n���
sF����K������R���F8�H�����i�Lt���l���U���-U9o�[����$mI�����P���bO�c��<�f�+�0�"29O=%�j���\������:���r�"j���n�Gnk�U�
��l�K������^`��!2I
f����U����� }P�9d&�>99p���������m�����}aK��{��3�~�:S��]�u3��T�]V��QN9���/��t�p���p�e�R��A�j���IU)#�Ql��<����:d_L�"g
G^W���N���qN���i�\��������	\)����:��/�E���=�S�jx�	��@w3��*=���I�Go'4�W��]tu0���0u<��^4�R@�����ALj����(�]$c%W/M|�2�r�P+<������Y��������wA�����P����v� �����'�}.�c����%�&%\��l8Jj�X�_@��Ow
:�]����n�=����q��J	X��L��>���b[]A�g�>�w��,Vw��DkA�'�~e����������T��[��3Z�KK��zy�_L������pd��X*�=G�@w���q\�I��Gu����,����o�s.?��L���s��s�)��#�i{��0?:G���X�����~�d��{!_����T>�����L �����J,���;����$�L�q�
4F�fz�{��{.���I��~����
��K�c�F�/���RU6
�xO������t�����5s�C����-w��Mf6�s�rM'96f_����O��<pvAg����}S7s%��`f}s��t9���D���
]<_��}��1��+�-=������* <t�Sl��0ee����P��
z�^�h�+6����w`��Vn���i���!�W�*��>������;�\qb�3Rgd�7���]?!�a{��y��M$Z�L�v����c��w�D�j�����4�6PM?w�5��}���'Z���EM\:�����D���PP�fz8�9	�5[��LQ��l����1�6���a�~�\!���#����[^8D�������>e��p���OZr�����~t��#���E2��=ei��h&�)�/������|0h[~8C�Cma~�~$��t�������
�~��CLTt������������a�Aa�h�����TQ�@^C[�JK^S�D�0dRy#y5
+
y-UCyUe}��3�JA�TU��@���JEMc�17����<���pC���b`V��04���V�@OMUUYO�bqr�����f�����AJ��tC�R;8���9�����v����hN~/���s���Cx��kCdY���:y�:A�o��04�-EJ���� ��?@&��9��e"�S��m�-��=����o�;��q�����-}���_[�����������a��	�EC�G!!XD
��#�P$D���:��00���
u���:a�v&&�
����F���by��x�`h��d�l��1G��`�@���`�
�^��JG��W
���U�baR!	^Q^A�����(�����ja^=��cY^!Q��������P��`�B@�@����@�`p4b�h#�+�����d|��E9��6�B;��$�|d�l��v0�#@@A1����qA���|6���4�4���� �
HE��NOg�P"�;#�"
�u��10�a5}m^		QI^��@������E���R	8,C���mfA���p�0���@@l`�{W�-0�v("("	�{��b�y8C�v0;>Rf)?��� � r�7|5g(�����Np>[)A����N7���I�y ��`{P��\��=�	��B{B�Er�j��3�aN��	4
AB���P�88��-
�x�FD����(Y-
.)V������YY��ca�G/
,i��C�a��AW&q38EE�c�"��#�	80<l=��v+&�ox�uTN��	�]7]R��8q�b8���`=��-��P��`��5������EHHl
�
�%�4���u��C:�:A�H��n�b6p;�f1�l<�(,���X���������
2 [��Q��z,�0�v��J���aA����j�
�nL�=��:d!�;O	q��~�oM���������X�ZOtC`,���j�I�%E��Ig��YE�(4E���~__�qeKn���/i�u��E6Y_t���6U_TPbmNe��U�
5d�O�����^���&'	���������@z��R�4���Zr��0�����F����������������a�t'�k������3�0���x:0n��o�	.A@������Q�3�n4�����@&�C������7(V����bV��8���O��CA�(��KP�������&�hss�C����-�a�/G�7R�i����j��U�m�|�kz��^����%�g���TOM��4���c��m#y�M��f�����7����w�o�B����`��~b�;��V`�
V- ���j���������A�h��������![��Kj��x���f��|�o��a0� ����`�NP�#�`�+�a�,�M�����k<$(����?w;��_	:Ev���`[4����~���@e�;t>�Q�H;����6��c~/!Q��#�~PO��0'�v��:#~�u6�A�@}�,	�^�@����ZX�/�P
F�!�!?��M�-,��}�+�k�:��5�C�c�t���@C�� ����@[�@��JCYK�����A�o���������y��;&:�
��.������`�i���$D�AX5��Pl�p��D�[�tu��0�	��:�0��x�C!��{8(�}��(�������}��
�����X�,���;��8�8�n�9��&�����FS�o������������4��B�<`8���.��������Y(W��>0�����OFr��
l-���/p����7�����>�^��2���b���@���8WX����J��(��L�~�+���
�����k��?��;�b������U:��(�D��2�N���O��+��|+��_$Q�nI������(W��>�bx�_0���a���w 0����L��a�K��4����H�'���8�/�'��x�}� �uF���E	����@(�
�`+�]���A��u��((X~e��������
>��3���
���?@ �(T7������a�x
-C

4��.���o�,^J���\5�i�0�K�_�YP���E��6�#�3�f��%
�v�!p�� ��(��oR,���{`
b�F9Al��'a���w��Y�8���3��V��M���Q�o6�=A ��#1�<�>��5&���X��*\M8z�o�i��M�CP����_[���~"����Wp8��&�����Z�4?P��A��\�n����k���$�5��H@v�`�@��uY���K4
x�S�N8>�
�����I��V���8���;�+e������|��r��
�h�d5u��K���a���>8��Bp�@����8���\�'�(w$d�x`W�	�
��E��q_QHG�������`���K@_���"����EG�z�@��(��C���[���~����I��'��^���8��)��&��`0Ye��ZLv�o��������Z������B��E��Z�K�5��+���_���,����M`�+�����a�ec��9���9��[|�xH��a���@8�c��+��0�l�r\H������R�Zm�I�\[@�����E��0��or#�[�x����_Q[�������]=�
=@���a6���
�$^W���Y +�G�9��SA�
��^92��q�x�����a�
�o?8�
$�
���1� ����!i�������� ~/��t#�0+<s���k��$~����0��?�X�_Q�����.����t>'8���������oF��Q�G�`V`�	�a�p�`�(���I{Z�EH�S����%7�Y	7���r�7��
���!�zC�T��x�j�`~�J�=@�h�8P�{�g�"BP���O�w��_]��@��l��@�����6�	[�������v6K�-��C�O��0[ �7��o'����-�_������yn4>�o�9N�7!�m]��a����rV���4��w�����?D�g����S%�����r���
q���U�����b4  �P���.z4��Fx�Vl��q������i��C�����������R�����R��>���q����������
r�����w�#����3l�����������A1�H[G4
�r�E�p�KW�m���6������������1���q���=��fL
~;�nR��F��.`f n
����������U��_g���h�� �
R��V�������L��b���y��q�O�-Wm���*��.��
\_s�������kV���l��4��{W�m���K��[i|�7
T�Ot(����7��7
Wv�-e�i����;<�����H�w|+���������(��	�bxg��.��a{	����m-�%7��B�l`�m'n�M��5�������k���'7�mBv�V���l�����w2���=*(�������X{;f[m�/7���Z�'a�VN0��������{�
�������x�hWw��N��.t�_��~K��V�;�O�6��P$�������OO��i�_~��M��Y�2�XG��;����$n�g�%0����(��$���������n������k{�`>�j�����1��;\�e�M�1[��~�z���l�~�.7��!xE��8�f�:j�Z|||�:A�'>"
1������qu��t
����W�u�"x�K��[$��C���!!���~v�	�������(O�xB`H4Q!�M0��������������
��������'W�*++�*���~�?r�C��k���(�bX8����`��W���?�hP�Jcp`��"m������nb��9+�*B4���� �����fp8���8�|pq�J�gX����T��4����x�}��W6����:�^k'��f�>Q�Y`kH��C��<�K�F�n9@���������v��\�����C���N��&w��svE�30�	E�q�nsD���E,J}Mm�
s����@�:�����+�6	�g��W�
c�[`��ZL���<+k|�0��p��}�n��k��76�:�����+�m�
�6��!��:x�N/j�8d�+(��u���+��p<�c<1X\6<�T� � �`�s�K�*��
T����k��,��f�i�$��&5���������	N�@�����������I+�
^�����c�����`���$�C B�AVP����3`k�k��w?P����|��<X�N`nC�T�8��Jl��h4d�2Y����d�	A�"���u��\�?���uWT��2�D�����XY'x����RpY1��v����E��$�3����?���u4��x�_���#�n���i��f���Vd<l-�m
�OC/?�W�Hxa�oH0�(��	>�'"��Rk�j)�$��p��v�#��=�?�����E�p����L	�\�=����6���7T]	�������e�����l�w��m�*��A\� k�V.�����d6��:
�5A��l��J����o������[�j����F
(�AoE|�av8ZV��p���X�6���Z>[P,EpM�N�����Y�h���qy���>g[�t1�����>�5���p��������\�<?�(z\�sp���.��k;������m|3AW��m�
V/�:O`p(X���}�
Z@O��@u�����
�����+[������;-)�k��zd����xQ`a�[^�I����
\&�/;����/W�o��Q�.��1�J����6\�u-yj��Z���~'x3��W�'���XY���W�Xv��jr��Z���E��D�:)��'
p.��J8e��mc��@��K`��\h8f�l)��O�{�[�z���������p\��wY%B���bx~XS�V���fX��p�md`<�4��D�x�����6A�O6�=�KV^3������%,h��abT+�?(��U�#��:�27�������U���������;Mp�qq`7�o�'�@�tM��S��[����l��:=���	�!�uEc�%�f1p��Na�\���D�F�k�`W*�Z������=4�W��{i8���u��h�p��zR0�/��N����V��
����v(y�6�
s��P�~�wVb�U�$E"���|����������-92xl��M��o(�m[�
	�v+=ap����W��-��z����z�~��F���]m��_y��(�%�l���������O(�m����p,��t���E���k���n��������Z�d3��_��-�s���_���>���x�K���~ ru���Q�v�P
(G����d�"��7����3�@���.LW0[W$`��M�W,\��`���������h�o��H��
$ �.
?�v��&��t��a�F����ru�fq		mr�
����C��q�s��[C��vB<�DD%�(���rr��2��V7�>y""�wP�����V��?$�dVM��wHl��?�_���bl<
�
�������:����yp�����3b�$��_�����5���8�X�B��D�����ls� ��:���nA'��.*$��'b�������E��W�yJ	��
;~�/&����
�$$���0~�&q3���tv��CH�F�e����A�����4��7��q.x�&�W+���ZE!!������y&�n��L?�Bx����o�F������#�
h9���~~O���rqE�?~����l-������(�3�q^�X��_��+�D����^04�C:`��p'8���o�k]��W�������&��6LX����a���m���?�_�|d��F�#!�������U�q+����Y�]R�W4�j]�? ���ZM
���{�#�7��'�:��W�,V�

|-k�'YYKIME�7Q�����uE�-F;Wg|���u85��L�ML������r���_M�_>u��f��x�,�3����J���W�S�w�����K����7�A�_{����D�)D�}p ��Y~
+31Y2(%F�#��P�tI����}��:3��]�+��JV��O��$�:�33�����.^g���f3��gc����X3 #��>��Nu�L^����M�`zC�&��Y �a6��9��\^��.f'`�q�hYL�����#"�]�1z���M|�j����z
��R�\��8{��".��:���)�����;�xT9�U*^9��
d�?��1,'���Y ����������R�����G'�+T�y������|�e��w�#�%K!	o�����)G*�F��(:Q��m�2�-/�	:~	g_��g>�%f�.l��6JP����zh-�nLY��,�~�}VBeU���D^����W�I�e��z)?��o�zt�`���Q����2����TGk@�pO����`��u��L�6	������+q���e�<Xn� �sRB�)e�m����[��;��j�����<H�4�#Y�����Iz<KN�������c�'���<��@��[H	4�Q�?p�X
<���9�{�O����e��{����&����O�
�W������r�������f]8��sV0�@&��1�a�
�v���N��G�
��Na��v:_��}[������
m-�����c��C@sR��������S���6�[���O�u�b	��U+v����ah}t���K"O�{�)K����lMZmt5+������&����Y����?�c��ho8I$����-y}	���]��Hv�Y����]>���P��SJ��'<P8��o�����p�>��[��J/�>��;QW7v�x��#���#�b��M6��.l��e���]<�J��!m�������3��.���g����jw[�����OD98���-|�d�#
GC���,
�������D)ySA*�)3x^f5��`�(� =�cf�Tt-nh�RyC�n�����>�<Ii��gn�c>�k%M��*�Vo��|@�������V�/6�������W4D����Xo��X�#t�C�b��-B�fR�
0h��X
��0c�y�����D�f_��3$�����)7
�[��1�E�Z�jO��D�@������9$�V������ ���$[�,��6��\�uC�r��k���>���H����6��_����w�$�$����9<H��E2�#8b�'�]�ej9����Pe����G�8M��AB�����l�i�yR�U��D���mj]����]�ti�V�^�-�k@��0B_�X����;U��������O;�
�9[]1Gq����rV�z#hwZ%Jn����V���k����z����3���k-������U����!9U}w�L`k7zu	��,B��] ��:����oB�/`�Z�G���"�Q8��4�D�b����%�-[p�h��k9��Dh?�#m����
I{�]K�[R�5Kh�P=cm)AH�M��Z��<��F�pk�
S���&L{�i��$�0�����(����[�L��S�����/��kw;eqY�F�cx+���z���b���A�6P���fN��W`*7�{���{@��~�;�W��&X���5�B���4Z����n��g������.K���P����s*�U�r�l��,��d���M�'�,���p@�"A��K�}���J��B��,�|�S�\���F�J��$�|�+�1�<p%��1�����A�Q�OI����z�^����z�����|�
In reply to: Euler Taveira de Oliveira (#8)
Re: ecpg localization

Euler Taveira de Oliveira wrote:

This is a second try.

I forgot to say that this patch doesn't include nls support to ecpg
files automagically. If you guys think that it's is a Good Thing to do,
we need to hack the preproc.y to hardcode the locale stuff; if you
decide that it isn't necessary, we need to document that the nls support
can be achieved by using the locale stuff. Comments?
There is a bogus fprintf message at ecpg_gettext(), please remove it.

--
Euler Taveira de Oliveira
http://www.timbira.com/

#10Peter Eisentraut
peter_e@gmx.net
In reply to: Euler Taveira de Oliveira (#8)
Re: ecpg localization

Am Samstag, 10. Mai 2008 schrieb Euler Taveira de Oliveira:

This is a second try. Fix some issues pointed by Peter. It's a little
fatter 'cause I worked on almost all of the strings. I attempted to
mimic the postgresql style but I think that those strings need more work
on as I pointed out in the first e-mail.

Committed.

#11Peter Eisentraut
peter_e@gmx.net
In reply to: Euler Taveira de Oliveira (#9)
Re: ecpg localization

Am Sonntag, 11. Mai 2008 schrieb Euler Taveira de Oliveira:

I forgot to say that this patch doesn't include nls support to ecpg
files automagically. If you guys think that it's is a Good Thing to do,
we need to hack the preproc.y to hardcode the locale stuff; if you
decide that it isn't necessary, we need to document that the nls support
can be achieved by using the locale stuff. Comments?

I don't understand what you mean here.

In reply to: Peter Eisentraut (#11)
Re: ecpg localization

Peter Eisentraut wrote:

I forgot to say that this patch doesn't include nls support to ecpg
files automagically. If you guys think that it's is a Good Thing to do,
we need to hack the preproc.y to hardcode the locale stuff; if you
decide that it isn't necessary, we need to document that the nls support
can be achieved by using the locale stuff. Comments?

I don't understand what you mean here.

I mean that you need to put <locale.h> and setlocale(LC_MESSAGES, "") at
.pgc so you get localized messages from ecpg program.

--
Euler Taveira de Oliveira
http://www.timbira.com/

#13Peter Eisentraut
peter_e@gmx.net
In reply to: Euler Taveira de Oliveira (#12)
Re: ecpg localization

Euler Taveira de Oliveira wrote:

I mean that you need to put <locale.h> and setlocale(LC_MESSAGES, "") at
.pgc so you get localized messages from ecpg program.

That seems perfectly reasonable.