I did some modification of GnuCash website.

Geert Janssens janssens-geert at telenet.be
Thu May 20 14:18:54 EDT 2010


On Thursday 20 May 2010, Tao Wang wrote:
> I'm sorry for last patch, I got something wrong during spliting the
> patch. This time it should be ok. I've tried to apply them to HEAD,
> it's ok.
> 
> One thing should be noticed is that
> 'gnucash-htdocs_search_fix2_part2_misc' and
> 'gnucash-htdocs_search_fix2_part5_remove_ja_templates' should be
> applied *after*
> 'gnucash-htdocs_search_fix2_part0_fix_search_templates' is applied.
> 
> On Fri, May 21, 2010 at 2:41 AM, Geert Janssens
> 
> <janssens-geert at telenet.be> wrote:
> > On Wednesday 19 May 2010, Tao Wang wrote:
> >> Hi,
> >>
> >> I'm sorry about forgeting answer the question last time. I was just
> >> focused on the fixing the problem.
> >>
> >> When I reach the website codes, I just feel the site structure doesn't
> >> look in a nice way. There are better ways to do the multilanguage than
> >> making a set of soft link/copy for each language. That is the reason
> >> why I start tried to optimize the code.
> >>
> >> I was not realized the multilanguage support for mail list site will
> >> stop working by my modifications. I thought they were different code
> >> base. But, don't be worry, I believe the patches I provided will fix
> >> the problem and get it to normal. And, actually, my previous patch
> >> already works, I found the cookies for 'lists.gnucash.org' has been
> >> set already, it already passed the correct LANG to namazu. The reason
> >> why it shows English only is that the makefile didn't work since the
> >> structure changed. I fixed the problem, so just apply the patch and
> >> 'make nmz'.
> >>
> >> For utf-8, after I received replies about the mailing list problem, I
> >> realized that the multi-language support for mail lists searching
> >> never worked for me. I always saw the chaos header, which should be
> >> Chinese/Japanese characters. And I remembered that I didn't see
> >> Chinese translation for menu or namazu works ever on
> >> 'lists.gnucash.org', when I click 'zh_CN', it only shows the English
> >> interface, maybe because missing locale or forget regenerate the
> >> template. My previous modification of using php-gettext instead of
> >> default gettext will fix the former.
> >>
> >> After I go through the code, that the header chaos string problem is
> >> caused by encoding problem, unless it encoded by "utf-8", it will show
> >>
> >> "日本語 | Nederlands | Norsk Bokmål | Português | 中文"
> >>  as
> >> " 日本語 | Nederlands | Norsk Bokmål | Português | 中文  "
> >>
> >> And for the menu translated by CJK, definitely will become chaos if
> >> the encoding is not 'utf-8', so, even my patch works to be able
> >> generating correct templates for zh_CN, it will only shows chaos for
> >> the CJK strings.
> >>
> >> I splitted my previous patch to 6 parts, which should make each parts
> >> more clear target.
> >>
> >> [gnucash-htdocs_search_fix2_part0_fix_search_templates]
> >>
> >> This is the urgent patch, which will fix the makefile and links
> >> problems, so after this patch applied and regenerated templates, the
> >> site will works for multi-languages support.
> >
> > I'm afraid something is not right with this patch. I tried to apply it,
> > but returns FAILED hunks for externals/menu.phtml and then bails out
> > completely on externals/header.phtml (invalid patch). Are you sure you
> > created the patches against the current htdocs trunk ?
> >
> > I want to do this one first to get search working as before again, so can
> > you please recheck ?
> >
> > Geert
> 
I'm sorry, but the other patches don't apply cleanly either. Can you please 
recreate them ?

Thanks,

Geert


More information about the gnucash-devel mailing list