On 2013-10-24 18:32 -0200 Marcelo Schots wrote:
> 1) I couldn't find a way to present language names instead of their
> codes (i.e., "English" instead of "en").
> Previously I used the langbar tag:
>
> {langbar: {lang_names: {pt: Português, en: English}}}
>
> It seems that the lang_names option was removed. Is there an
> explanation for that, or even a workaround?
The current workaround would be to create a custom tag template.
I have refactored tag.langbar one and a half years ago and I don't
remember why I removed the lang_names option. Probably because creating
a custom template for a tag is now possible.
However, I have re-implemented some functionality that allows basic
modification for some tags and therefore I should re-implement support
for the lang_names option, too. This will be in the next release.
> 2) As you may have noticed in the previous issue, I would like to
> present a Portuguese version of my website. I never found a way to
> use special characters in the template, so I always used the HTML
> encoding (see Português = Português), but now I am having
> problems also with the .page files (which always worked well for me).
> I already specify in the template the following:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "
> http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang:}">
>
> This worked well in webgen's previous versions. Now the generated
> webpage does not present the results as I expected.
>
> I've tried to use the options presented in the configuration page
> related to escaping special HTML characters, but I didn't manage to
> solve this problem. Is there any information in the webgen page that
> can help me? I didn't find any, unfortunately.
I can't really reproduce the problem.
One possible source for the problem may be the file encoding. You
specified 'iso-8859-1'. Try changing that to 'UTF-8' if the output of
the following command is also UTF-8:
ruby -e "puts Encoding.default_external"
If this doesn't work could you provide a small sample website that
exhibits this behavior?
Best regards,
Thomas
_______________________________________________
webgen-users mailing list
webgen...@rubyforge.org
http://rubyforge.org/mailman/listinfo/webgen-users