Hi all,
Now gnucash's gnome code work in french at home, it is very good but all
menus and messages are not in french, we need to
update po files.
* Take a look at this 2 pages, it's very interessant for gnucash's i18n, I
think we need to include these informations in gnucash's project at least it
was made :
http://www.linuxi18n.org/gettext-en.html
http://www.linuxi18n.org/gtk-en.html
* 2 questions:
1)
In gnucash, we can import qif files with MM/DD/YY format and if I want
DD/MM/YY format I need to modify the following code to have the import qif
files with DD/MM/YY.
It is not possible to modify the gnucash code and choose in "Preferences"
Import QIF with DD/MM/YY or MM/DD/YY ?
/********************************************************************\
* xaccParseQIFDate *
* parses date of the form MM/DD/YY *
* *
* Args: str -- pointer to string rep of date *
* Return: time_t -- date in format used by UNIX time_t *
\********************************************************************/
time_t
xaccParseQIFDate (char * str)
{
char * tok;
time_t secs;
struct tm dat;
int favechar = 0; /* Which delimiter do we have? */
if (!str) return 0; /* If the string is null, we're done. */
/* First, figure out the delimiter. */
/* Choices: "." or "-" or "/" */
favechar = FindDateDelimiter(str);
if (!favechar) return 0;
tok = strchr (str, favechar);
if (!tok) return 0;
*tok = 0x0;
// dat.tm_mon = atoi (str) - 1; import QIF with MM/DD/YY
dat.tm_mday = atoi (str); // import QIF with DD/MM/YY
str = tok+sizeof(char);
tok = strchr (str, favechar);
if (!tok) return 0;
*tok = 0x0;
// dat.tm_mday = atoi (str); import QIF with MM/DD/YY
dat.tm_mon = atoi (str) - 1; // import QIF with DD/MM/YY
str = tok+sizeof(char);
tok = strchr (str, '\r');
if (!tok) {
tok = strchr (str, '\n');
if (!tok) return 0;
}
*tok = 0x0;
dat.tm_year = atoi (str);
TryToFixDate(&dat);
/* a quickie Y2K fix: assume two digit dates with
* a value less than 50 are in the 21st century. */
if (50 > dat.tm_year) dat.tm_year += 100;
dat.tm_sec = 0;
dat.tm_min = 0;
dat.tm_hour = 11;
secs = mktime (&dat);
return secs;
}
2)
By default, now, gnucash display help in english but I have translated doc
help from gnucash 1.2.x in french.
Anybody have a solution when you have english locale , it display help in
english and with french in french.
I have made a rpm package with gnucash-1.2.5 in french, you can take it at :
http://www.multimania.com/yleny/gnucash
Yannick
______________________________________________________________________________
Si votre email etait sur iFrance vous pourriez ecouter ce message au tel !
http://www.ifrance.com : ne laissez plus vos emails loin de vous ...
gratuit sur iFrance : emails (20 MO, POP, FAX), Agenda, Site perso
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]