To enable the translation feature of libglade only 2 changes has to be made to the source code.
1. fix a bug in desktop/netsurf.c line 137
change setlocale(LC_ALL, "C"); to setlocale(LC_ALL, "");
This change will set the locale acording to the enviroment variable LC_ALL, LC_MESSAGES or LANG on a glibc system.
2. add code to gtk/gtk_gui.c line 195 (before gtk_init)
Remember to #incude so the code will compile clean.
Now you can build pot and po files using standard gettext tools ;-)
I can not resist the chance to post some screenshoots of NetSurf (partly) in danish
Nu kan du få 25 GB på dit online USB-stik. Få Sky Drive nu!
well not trying to get a competition going here for who puts in the most
patches :-) , in fact it was really to see how quickly I work, that I
wrote the view source patch as well;
I have cleaned up the code for the toolbutton patch, noticing that A -
my linked list was not 'netsurf style', B there was an appropriate
global linked list I could tap in to, the list of struct gui_window
The view source patch represents one day's work as it stands, working
well save for the print function + occasional utf8 errors from unruly pages;
the new files gtk/gtk_source.h, gtk/gtk_source.c, replace the no longer
needed gtk/gtk_utils.h, gtk/gtk_utils.c
Key ID 046B65CF
You were suggesting I should work at the bugs; now I understand what the
bug page is referring to, I've resolved the warnings, adding all the
functions/variables/prototypes as appropriate
– unless Rob has already solved it
Key ID 046B65CF
On Sun, 2009-04-05 at 19:17 +0000, netsurf(a)semichrome.net wrote:
> Author: jmb
> Date: Sun Apr 5 14:17:24 2009
> New Revision: 7047
> URL: http://source.netsurf-browser.org?rev=7047&view=rev
> Revert r6973. Apparently, it causes loads of problems.
I did, of course, mean 6793.
Of course, at that time of the morning when I'm in a rush, I obviously
accidentally send it to the wrong address. Apologies if some of this
isn't relevant now.
=== BEGIN FORWARDED MESSAGE ===
On Fri, 03 Apr 2009 02:27:10 -0000, wrote:
> + $(eval $(call feature_enabled,HUBBUB,-DWITH_HUBBUB,-lhubbub0 -lparserutils0,Hubbub HTML parser))
> + $(eval $(call feature_enabled,BMP,-DWITH_BMP,-lnsbmp0,NetSurf BMP decoder))
> + $(eval $(call feature_enabled,GIF,-DWITH_GIF,-lnsgif0,NetSurf GIF decoder))
Should these not be -lhubbub-0 as they are further down?
Also it might be an idea to add
etc to the build system and then they can just be referenced as
-lhubbub with the proper symlinking (apologies if you've done this -
It's funny how after sending it to the public list you notice more
little improvements :-)
the new files should be gtk/dialogs/gtk_source.h, gtk/dialogs/gtk_source.c
Key ID 046B65CF
I was asked in a comment to my application to provide some evidence of
my knowledge of C and Objective-C/Cocoa. Attached is a C program
which implements basic huffman compression and a Cocoa program which
is a very basic version of Boggle for the iPhone. Each was a smallish
project for school, so each represents about 2 weeks of work (though
more time per day for the iPhone app). I hope this helps.
here's a brief summary of the patch:
* Added: context menu for links in browser window: "Open link in new
tab" (opens url in new, active tab) and "Open link in background"
(just open url in new tab).
* Change: Local History window is:
- smaller by default,
- positioned relative to mouse pointer,
- transient for main window,
- slightly transparent.
* Change: by default new tab is:
- blank with title "New Tab",
- added at the end of tabs list,
- set as active in notebook container.
* Change : urlbar gets focus on new tab.
* Change: bool new_tab -> int new_tab_option (to allow opening tab in
background or in specified position).
* Present in rev 7027: creating a new tab generates GTK-Critical on
Netsurf exit (see log_new_tab.txt).
* NS_NEW_TAB_FOCUS, NS_NEW_TAB_BACKGROUND - is this a good naming convention?
* Either make Local History window more compact (no frame;
self-resizeable [probably requires an extension in history_core.c];
close button or onclick close event)
or change it to display text list when invoked by history button
click [Comments, thoughts?].
* LH as a tab.
This update includes previous patch (local history button) [is it too
much in one package?].
PGP Key-Id: C33C A45D