[MKDoc-modules] ANNOUNCE: i18nfool 0.1
Chris Croome
chris at webarchitects.co.uk
Mon Jul 26 15:29:26 BST 2004
Hi
On Mon 26-Jul-2004 at 02:29:33PM +0100, Jean-Michel Hiver wrote:
>
> > msgid "search-input-title;
> > onblur search-input-onblur;
> > onfocus search-input-onfocus
> > value search-input"
> > msgstr ""
> >
> It's probably a bug, both in your template but also in PO::Locale.
>
> Multilines should look like:
>
> msgid ""
> mgsid "This is a "
> msgid "multi-line id"
Hmm, this is the XHTML:
<input
type="text"
size="12"
name="q"
id="q"
value="Keyword(s)"
onblur="if(this.value=='')this.value='Keyword(s)';"
onfocus="if(this.value=='Keyword(s)')this.value='';"
title="Enter your search term(s) here [ Accesskey 4 ]"
accesskey="4"
i18n:attributes="title search-input-title;
onblur search-input-onblur;
onfocus search-input-onfocus;
value search-input;"
/>
That generates this .pot stuff:
msgid "search-input-title;
onblur search-input-onblur;
onfocus search-input-onfocus;
value search-input"
The XHTML looks OK to me...
Also another small bug is that if i18nfool is only passed one file
then it does nothing -- you need to have at least 2 files as input
on the command line.
Chris
--
Chris Croome <chris at webarchitects.co.uk>
web design http://www.webarchitects.co.uk/
web content management http://mkdoc.com/
More information about the MKDoc-modules
mailing list