gtranslator r3781 - in trunk: . src
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3781 - in trunk: . src
- Date: Mon, 22 Sep 2008 10:18:49 +0000 (UTC)
Author: icq
Date: Mon Sep 22 10:18:49 2008
New Revision: 3781
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3781&view=rev
Log:
2008-09-22 Baris Cicek <baris teamforce name tr>
Reviwed by Ignacio Casal Quinteiro.
* po.c:
Fixes file name suggestion when trying to save file with .pot
extension.
Fixes bug #552999.
Modified:
trunk/ChangeLog
trunk/src/po.c
Modified: trunk/src/po.c
==============================================================================
--- trunk/src/po.c (original)
+++ trunk/src/po.c Mon Sep 22 10:18:49 2008
@@ -767,6 +767,8 @@
if (g_str_has_suffix (filename, ".pot"))
{
+ // Remove suffix
+ filename[strlen (filename) - 4] = '\0';
g_set_error (error,
GTR_PO_ERROR,
GTR_PO_ERROR_FILENAME,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]