2005-10-16 [colin] 1.9.15cvs61
[claws.git] / src / exporthtml.c
index aa3414f6ebe7fa6da0669d720d207dd216afe455..0e2df451e0d0bfc379e934753b8b58d172e5f888 100644 (file)
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /*
@@ -27,8 +27,8 @@
 #include <time.h>
 #include <string.h>
 #include <glib.h>
+#include <glib/gi18n.h>
 
-#include "intl.h"
 #include "mgutils.h"
 #include "utils.h"
 #include "exporthtml.h"
@@ -284,12 +284,12 @@ void exporthtml_set_attributes( ExportHtmlCtl *ctl, const gboolean value ) {
 static gint exporthtml_create_css_dfl( const gchar *fileSpec ) {
        FILE *cssFile;
 
-       cssFile = fopen( fileSpec, "rb" );
+       cssFile = g_fopen( fileSpec, "rb" );
        if( cssFile ) {
                fclose( cssFile );
                return MGU_SUCCESS;
        }
-       cssFile = fopen( fileSpec, "wb" );
+       cssFile = g_fopen( fileSpec, "wb" );
        if( ! cssFile ) {
                return MGU_OPEN_FILE;
        }
@@ -342,12 +342,12 @@ static gint exporthtml_create_css_dfl( const gchar *fileSpec ) {
 static gint exporthtml_create_css_full( const gchar *fileSpec ) {
        FILE *cssFile;
 
-       cssFile = fopen( fileSpec, "rb" );
+       cssFile = g_fopen( fileSpec, "rb" );
        if( cssFile ) {
                fclose( cssFile );
                return MGU_SUCCESS;
        }
-       cssFile = fopen( fileSpec, "wb" );
+       cssFile = g_fopen( fileSpec, "wb" );
        if( ! cssFile ) {
                return MGU_OPEN_FILE;
        }
@@ -990,7 +990,7 @@ void exporthtml_process(
        gchar *dsName;
        static gchar *title;
 
-       htmlFile = fopen( ctl->path, "wb" );
+       htmlFile = g_fopen( ctl->path, "wb" );
        if( ! htmlFile ) {
                /* Cannot open file */
                printf( "Cannot open file for write\n" );
@@ -998,7 +998,7 @@ void exporthtml_process(
                return;
        }
 
-       title = _( "Sylpheed Address Book" );
+       title = _( "Sylpheed-Claws Address Book" );
        rootFolder = cache->rootFolder;
        dsName = cache->name;