[lqfb-main] Translating frontend config file with Umlauts?
Jan Behrens
jbe at public-software-group.org
Sun Jul 8 11:46:34 UTC 2012
Hello Janne,
Did you create the files with UTF-8 (Unicode) encoding?
Also note that your locale settings need to be correct. For this reason
we recommend the following entry in the webserver config:
Example for lighttpd:
$HTTP["url"] =~ "^/lf" {
setenv.add-environment += (
"LANG" => "en_US.UTF-8",
"WEBMCP_APP_BASEPATH" => "/opt/liquid_feedback_frontend/",
"WEBMCP_CONFIG_NAME" => "myconfig")
}
( as described in
http://dev.liquidfeedback.org/trac/lf/wiki/installation )
Example for apache:
<Location /lf>
SetEnv WEBMCP_APP_BASEPATH '/opt/liquid_feedback_frontend/'
SetEnv WEBMCP_CONFIG_NAME 'myconfig'
SetEnv LANG 'en_US.UTF-8'
</Location>
Nuno Cardoso's proposal to change the Haskell parser to
main = do
hSetEncoding stdin utf8
hSetEncoding stdout utf8
interact wikiParse
is an alternative and should lead to the same results.
Regards
Jan Behrens
On 07/08/12 01:17, Janne P Hukkinen wrote:
> Greetings List!
>
> If I use Umlauts in translation like this...
>
> config.use_terms = "=== Terms of Use ==="
>
> config.use_terms = "=== Käyttösäännöt ==="
>
> ..I get the (rocketwiki-lqfb?) error below. I got the impression the
> config file isn't included in the language files.
>
> BR,
>
> --
> Janne
>
> PS. An example Terms of Use would help to localize one.
>
> PPS. Is there a practical way to remove the /index/ from the URL? They
> can be quite long.
>
> ------------------------------- clip
> ---------------------------------------------
>
> If you write a bug report, please include the following output in your
> bug report.
> Falls Du einen Fehlerbericht erstellst, füge bitte die folgenden
> Ausgaben mit ein.
>
> */home/hukkinen/Liquid/liquid_feedback_frontend/env/format/w:7: Wiki
> parser process returned with error code 1*
>
> Stack trace follows:
> [C]: in function 'error'
> /home/hukkinen/Liquid/liquid_feedback_frontend/env/format/w:7: in
> function 'wiki_text'
> ...liquid_feedback_frontend/app/main/index/register.lua:155: in function
> <...liquid_feedback_frontend/app/main/index/register.lua:151>
> [C]: in function 'tag'
> ../env/ui/container.lua:88: in function 'container'
> ...liquid_feedback_frontend/app/main/index/register.lua:149: in function
> 'content'
> ../env/ui/form.lua:154: in function <../env/ui/form.lua:146>
> [C]: in function 'tag'
> ../env/ui/form.lua:143: in function 'form'
> ...liquid_feedback_frontend/app/main/index/register.lua:9: in function
> 'func'
> ...
> ../env/execute/wrapped.lua:21: in function <../env/execute/wrapped.lua:11>
> (tail call): ?
> (tail call): ?
> ../env/execute/filtered_view.lua:28: in function 'filtered_view'
> webmcp.lua:379: in function <webmcp.lua:256>
> [C]: in function 'xpcall'
> webmcp.lua:255: in main chunk
> [C]: in function 'pcall'
> ...me/hukkinen/Liquid/webmcp/cgi-bin/webmcp-wrapper.lua:7: in main chunk
> [C]: ?
>
> *
> Configuration "palautevirta.hukkinen.jp--frontend"
> o
> Configuration "init_hukkinen"
> *
> REQUESTED VIEW: index/register
> *
> /main/_filter/20_session.lua
> o SELECT "session".* FROM "session" WHERE (ident =
> '6gkgsBCLZz7wOVjXDxeCKznz3jQDQ6D0') LIMIT 1;
> o
> /main/_filter/21_auth.lua
> + No authentication needed.
> +
> /main/_filter_view/30_navigation.lua
> #
> EXECUTE VIEW: index/_menu
> #
> /main/_filter_view/32_searchbox.lua
> *
> /main/_filter_view/33_help_hidden.lua
> o
> /main/_filter_view/34_stylesheet.lua
> +
> /main/_filter_view/36_html_title.lua
> #
> EXECUTE VIEW: index/register
> *
> EXECUTE VIEW: index/_lang_chooser
> * SELECT "member".* FROM "member"
> WHERE (invite_code = 'a') AND
> (activated ISNULL) LIMIT 1 FOR UPDATE;
> *
> UNEXPECTED ERROR
> *
> Finished after 71.7 ms (20.0 ms CPU)
>
>
> --
> Janne P. Hukkinen
>
> http://www.Hukkinen.JP/VAALILIITTOKONE : Uusi menetelmä poliittisten
> ohjelmien asiasisälöjen muotoiluun äänestäjälähtöisesti
> ja vaalilistakohtaisesti
>
> 050 55 666 77 (mobile)
>
> skype: hukkinen
>
> http://twitter.com/hukkinen
> http://facebook.com/hukkinen
> http://plus.google.com/103639822411983971745
> http://youtube.com/hukkinen
> http://citeulike.org/user/hukkinen
> http://www.linkedin.com/in/hukkinen
> http://www.quora.com/Janne-Hukkinen
--
Jan Behrens
Public Software Group e. V.
Johannisstr. 12, 10117 Berlin, Germany
www.public-software-group.org
vorstand at public-software-group.org
eingetragen in das Vereinregister
des Amtsgerichtes Charlottenburg
Registernummer: VR 28873 B
Vorstände (einzelvertretungsberechtigt):
Jan Behrens
Axel Kistner
Andreas Nitsche
Björn Swierczek
More information about the Main
mailing list