mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* doc/html/C/account-tree-demo.html: add a simple demo of
embedding a gnucash main window widget in HTML
* src/gnome/dialog-options.c: add a 'pixmap' option type to
the GNC options
* src/gnome-dialog-style-sheet.{c,h}: new dialog for creating
and editing HTML style sheets
* src/gnome/druid-qif-import.c: add support for false-if-exception
error handling within QIF import process
* src/gnome/gnc-html-embedded.c: add backslash escaping for
converting string arrays to and from single HTML strings
* src/gnome/gnc-html-embedded.c: error handling in creating guppi
plots, and add new embedded object type for embedding a gnucash
mainwindow-account-tree in HTML (preliminary). Add x axis
label rotation as an option to the barchart.
* src/gnome/gnc-html.c: fixes for renaming of report objects and
handling false-if-exception returns from report runs. Use async
mode for ghttp requests and add a gtk_timeout callback to check on
their status. Add a gnc_html_cancel() which gets rid of pending
ghttp requests (called by the stop buttons in help, report
windows)
* src/gnome/window-help.c: bug fixes for search results printing.
Don't expand help topics nodes on creation. Add stop and reload
buttons to the toolbar.
* src/gnome/window-report.c: Add stop and reload buttons to the
toolbar.
* src/guile/gnc-helpers.c: fix helpers for recordization of
<gnc-numeric> on Scheme side
* src/scm/engine-utilities.scm: rewrite transaction map functions
to eliminate ith-transaction calls
* src/scm/gnc-numeric.scm: make gnc-numeric into a first class
type on the scheme side (<gnc-numeric>)
* src/scm/html-*.scm (7 files): new architecture for generating
HTML within reports. See src/scm/report-html.txt for an overview.
* src/scm/options.scm: support for pixmap options
* src/scm/qif-import/: add false-if-exception error catching in
QIF import entry points.
* src/scm/report-utilities.scm: add functions to get immediate
subaccounts; rewrite get-balance-at-date.
* src/scm/report.scm: rename report objects; now the thing that
gets created by define-report is a <report-template> and the thing
that has a window and a set of parameters is a <report>. Add a
"style sheet" option automatcally to EVERY report, and a "General"
section to put it in; report with only 1 page of options should
use "General". Add false-if-exception error catching to report
run.
* src/scm/report/account-summary.scm, src/scm/report/hello-world.scm,
src/scm/report/average-balance.scm: rewrite some reports using the
new HTML generation infrastructure. Old reports won't work until
they are rewritten.
* src/scm/report/stylesheet-*.scm (2 files): create some sample
stylesheet templates.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3452 57a11ea4-9604-0410-9ed3-97b8803252fd
This document explains how to create a GnuCash translation file for
use with GNU gettext.
by Yannick LE NY <y-le-ny@ifrance.com>, the French translator
V1.1 - 20000813
1) Take the file gnucash.pot, edit it with any text editor and save it
as 'CODE-COUNTRY.po' (it must be a plain text file only not formatted text)
where the CODE-COUNTRY is two or more letters which denote the language
and country for the translation.
For example: 'it' for Italy, 'fr' for France, 'de' for Germany,
and fr_BE.po for people in Belgium who speak French.
For france, the file is 'fr.po'.
2) Now at the top of the file, you have this:
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
You need to update this with the current information.
For example in the de.po file, we have this:
# Messages in Deutsch für GnuCash
# Copyright (C) 1999 Free Software Foundation, Inc.
# Jan-Uwe Finck <Jan-Uwe.Finck@bigfoot.de>, 1999.
3) Next, you need to translate each English string into the target
language, for example:
Before:
#: messages-i18n.c:11
msgid ""
"The GnuCash personal finance manager.\n"
"The GNU way to manage your money!"
msgstr ""
After, the tranlation in the de.po file:
#: messages-i18n.c:11
msgid ""
"The GnuCash personal finance manager.\n"
"The GNU way to manage your money!"
msgstr ""
"GnuCash: Ihr persönlicher Finanzmanager.\n"
"Der GNU-Weg, ihr Geld zu verwalten !"
4) When you are ready to test out the strings you have translated,
save the file in the 'po' directory of the gnucash source tree.
You can test if your file is good with this command line:
msgfmt -c -v -o /dev/null FILE.po where FILE is the CODE-COUNTRY.
If you have fuzzy errors, take a look at the end of this document.
5) Now, if you have the gettext package installed, you can compile your
po file with this command (run it in the gnucash/po directory):
msgfmt fr.po --output=./gnucash.mo
This will create the file 'gnucash.mo' which you can copy to the
appropriate locale directory for your installation. On a RedHat 6.1
installation, the directory is /usr/share/locale/fr/LC_MESSAGES.
Alternatively, instead of creating and installing the gnucash.mo
file by hand, you can edit the file 'configure.in' and the file
'configure' and add your language string ('it', 'fr', etc.) to
the definition of the ALL_LINGUAS variable.
If you add the be.po file, the old line is in the 2 files:
ALL_LINGUAS = "de en_GB fr it ja ru sv"
and the new line is in the 2 files:
ALL_LINGUAS = "de en_GB fr it ja ru sv be"
Now rerun 'make' and 'make install' to build and install the
gnucash.mo file.
When running GnuCash, you must set the appropriate locale environment
variables:
In French, with bash:
export LANG=fr_FR
In French, with tcsh:
setenv LANG fr_FR
6) Once you have a finished, working po file, need to compress your file
with gzip. On command line, type 'gzip fr.po' (for the French file) and
now you have a new compressed file named 'fr.po.gz'.
Email this file to gnucash-patches@gnucash.org.
------------------------------------------------------------------------------
Remarks
You can get more information about gettext and the po file format in
the 'info' pages for GNU gettext. Type 'info gettext' at the command
line.
Dave Peticolas <dave@krondo.com>, the CVS maintainer for GnuCash,
regularly updates the po files, and you may need to add some
translations to the file or correct some strings.
In the updated po files, you should not have the word 'fuzzy',
otherwise GnuCash will not use the translated string.
Two examples from the file de.po:
1) You have this:
#: messages-i18n.c:35
#, fuzzy, c-format
msgid ""
"There was an error writing the file\n"
" %s\n"
"\n"
"%s"
msgstr ""
"Es gab einen Fehler beim Öffnen der Datei. \n"
" %s."
You need to correct the translated string and remove the 'fuzzy' keyword.
For example:
#: messages-i18n.c:35
#, c-format
msgid ""
"There was an error writing the file\n"
" %s\n"
"\n"
"%s"
msgstr ""
"Es gab einen Fehler beim Öffnen der Datei. \n"
" %s."
2) You have this:
#: messages-i18n.c:251
#, fuzzy
msgid "Show Income/Expense"
msgstr "Einnahmen/Ausgaben anzeigen"
You need to correct the translated string and remove the 'fuzzy' keyword.
For example:
#: messages-i18n.c:251
msgid "Show Income/Expense"
msgstr "Einnahmen/Ausgaben anzeigen"