gtranslator r3665 - trunk/src
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3665 - trunk/src
- Date: Mon, 22 Sep 2008 09:41:47 +0000 (UTC)
Author: icq
Date: Mon Sep 22 09:41:47 2008
New Revision: 3665
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3665&view=rev
Log:
* po.c:
(gtranslator_po_save_header_in_msg):
Changed g_utf8_strncpy to g_strndup
Modified:
trunk/src/ChangeLog
trunk/src/po.c
Modified: trunk/src/po.c
==============================================================================
--- trunk/src/po.c (original)
+++ trunk/src/po.c Mon Sep 22 09:41:47 2008
@@ -674,7 +674,7 @@
aux = g_strconcat(gtranslator_header_get_translator(header), " ", "<",
gtranslator_header_get_tr_email(header), ">", NULL);
- comp_year = g_strconcat (" ", year, "\.", NULL);
+ comp_year = g_strconcat (" ", year, ".", NULL);
/*
* Current translator is already in comments but its last year < current year.
@@ -682,11 +682,7 @@
if (!strcmp (prev_translator, aux) &&
(strcmp(comments_translator_values[g_strv_length (comments_translator_values)-1], comp_year))) {
- if (!g_utf8_validate (comments_lines[j], -1, NULL))
- g_utf8_normalize (comments_lines[j], -1, G_NORMALIZE_DEFAULT);
-
- line_without_dot = g_utf8_strncpy (line_without_dot, comments_lines[j], strlen(comments_lines[j])-1);
-
+ line_without_dot = g_strndup (comments_lines[j], g_utf8_strlen(comments_lines[j], -1) -1);
line = g_strconcat (line_without_dot, ", ", year, ".", NULL);
for (l=j; l<(g_strv_length (comments_lines)); l++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]