Re: gtranslator bug shooting... votes.



On Fri, 2002-02-15 at 19:34, Pablo Saratxaga wrote:

    Kaixo!
    
    On Fri, Feb 15, 2002 at 06:27:59PM +0100, Fatih Demir wrote:
    
    > What is currently in my mind is the problem about b.g.o #70256
    > (http://bugzilla.gnome.org/show_bug.cgi?id=70256) -- as I did append to
    > the bug report, the only useful chars could be '°' or '~'. I don't like
    > the idea of putting '_' in place of '·' into gtranslator sources -- some
    > might even think of why :-)
    
    What about '^' ? it is not used in normal text. It may only appear in
    some mathematical notations in plain ascii; which would be very seldom
    in po files.
    So I think it may be the best ascii choice.

    Now, if you think it is very ugly, you could do something like this
    in the code:

    	bar = _(""); /* yes, an empty string */
    
    	if (bar[0] = "\0") { /* that means no translation is used */
    		/* here call iconv to convert the unicode value of '·'
    		   to the locale charset; if it went ok, you have a nice
    		   '·' to display. if it failed, it means the charset
    		   cannot display '·' */
    	} else {
    		foo = _("^");
    	}

Ok, I think, I've chosen what to do: I will change the
GTRANSLATOR_MIDDLE_DOT define in zpmd.h to include the unicode value
(which is it in escaped version BTW?) and will use a similar if-tree
like Pablo suggests to get a '·'-enabled view for those languages where
'·' is no problematic issue and will fall back to '^' for the other
languages.

The only thing, which could be problematic is now: is the unicode value
of the '·' rightly interpreted by gettext as Unicode if the value is
given in Unicode value code? If so, we're done here I guess.

If not, I will switch to use UTF-8 for all text messages (which will
surely only change 2, 3 strings as the message strings are mostly just
ASCII) and have got to "force" the translators to use "UTF-8" for their
po files, right?!
-- 
<([ Fatih Demir / kabalak / kabalak@gtranslator.org ])>
<([ ICQ 64241161 / fdemir2@ix.urz.uni-heidelberg.de ])>
<([ Studying Biology @ the University of Heidelberg ])>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]