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

Re: dia --version



On Thu, 3 Apr 2003, Vitaly Lipatov wrote:
> On 2 Апрель 2003 23:02, Lars Clausen wrote:
>> Vitaly (or others with different locales), could you try the
>> attached patch, which uses g_printf for the version output,
>> and see if the output is properly encoded (given an
>> appropriate translation of that text, I suppose, which few
>> languages have so far).
> I tried your patch it make no difference :(
> I still view of UTF-8 sequences.

Hm.  Here's an attempt using g_locale_from_utf8.  Please check if that
works better.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
Index: app/app_procs.c
===================================================================
RCS file: /cvs/gnome/dia/app/app_procs.c,v
retrieving revision 1.104
diff -u -r1.104 app_procs.c
--- app/app_procs.c	2 Apr 2003 05:09:38 -0000	1.104
+++ app/app_procs.c	4 Apr 2003 18:28:09 -0000
@@ -325,9 +325,9 @@
   if (version) {
 #if (defined __TIME__) && (defined __DATE__)
     /* TRANSLATOR: 2nd and 3rd %s are time and date respectively. */
-    printf(_("Dia version %s, compiled %s %s\n"), VERSION, __TIME__, __DATE__);
+    printf(g_locale_from_utf8(_("Dia version %s, compiled %s %s\n"), -1, NULL, NULL, NULL), VERSION, __TIME__, __DATE__);
 #else
-    printf(_("Dia version %s\n"), VERSION);
+    printf(g_locale_from_utf8(_("Dia version %s\n"), -1, NULL, NULL, NULL), VERSION);
 #endif
     exit(0);
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK