[index] [options] [help]
See the Contact page for how to subscribe and unsubscribe.

eprints_tech messages

Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.

[EP-tech] does not generate static in languages different from english

From: Alfredo Cosco <alfredo.cosco AT gmail.com>
Date: Wed, 1 Jul 2009 00:50:41 +0200


Threading:      • This Message
             [EP-tech] Re: does not generate static in languages different from english from alfredo.cosco AT gmail.com
             [EP-tech] R: Re: does not generate static in languages different from english from michele AT asb.unisi.it

http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** EPrints community wiki - http://wiki.eprints.org/
Hallo,
I'm setting a bilingual archive: italian (as default) and english.

So, i download italian translation from this page: 
http://files.eprints.org/409/

I added a dir called "it/" with translation content (only the dir
called "phrases") in  " lib/defaultcfg/lang" and in " 
lib/lang "

I changed the default language and available languages in
/lib/defaultcfg/cfg.d/languages.pl in this way:

$c->{defaultlanguage} = 'it';

$c->{languages} = [ 'it' ];
$c->{languages} = [ 'en' ];

so i create the archive (bin/epadmin create), i run generate_views and
generate_static in verbose mode and i see that ongli en/ directori is
filled

so if I set only Italian language in browser i receive an error:

EPrints System Error

Error. Template not loaded.
Language: it
Template ID: default
Not Found

then if I add english in browser languages the archive works, but in italian!

What do I wrong?


[EP-tech] Re: does not generate static in languages different from english

From: Alfredo Cosco <alfredo.cosco AT gmail.com>
Date: Wed, 1 Jul 2009 14:11:41 +0200


Threading: [EP-tech] does not generate static in languages different from english from alfredo.cosco AT gmail.com
      • This Message

http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** EPrints community wiki - http://wiki.eprints.org/
Any suggestion?

2009/7/1 Alfredo Cosco <alfredo.cosco AT gmail.com>:
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** EPrints community wiki - http://wiki.eprints.org/
> Hallo,
> I'm setting a bilingual archive: italian (as default) and english.
>
> So, i download italian translation from this page: 
http://files.eprints.org/409/
>
> I added a dir called "it/" with translation content (only the 
dir
> called "phrases") in  " lib/defaultcfg/lang" and in 
" lib/lang "
>
> I changed the default language and available languages in
> /lib/defaultcfg/cfg.d/languages.pl in this way:
>
> $c->{defaultlanguage} = 'it';
>
> $c->{languages} = [ 'it' ];
> $c->{languages} = [ 'en' ];
>
> so i create the archive (bin/epadmin create), i run generate_views and
> generate_static in verbose mode and i see that ongli en/ directori is
> filled
>
> so if I set only Italian language in browser i receive an error:
>
> EPrints System Error
>
> Error. Template not loaded.
> Language: it
> Template ID: default
> Not Found
>
> then if I add english in browser languages the archive works, but in 
italian!
>
> What do I wrong?
>


[EP-tech] R: Re: does not generate static in languages different from english

From: Michele Pinassi <michele AT asb.unisi.it>
Date: Wed, 1 Jul 2009 14:25:51 +0200


Threading: [EP-tech] does not generate static in languages different from english from alfredo.cosco AT gmail.com
      • This Message

http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** EPrints community wiki - http://wiki.eprints.org/
> I changed the default language and available languages in 
> /lib/defaultcfg/cfg.d/languages.pl in this way:
>
> $c->{defaultlanguage} = 'it';
>
> $c->{languages} = [ 'it' ];
> $c->{languages} = [ 'en' ];

Maybe you need to change it as follow:

$c->{languages} = ['it','en'] 

because it's a Perl array.

Good luck, Michele


[index] [options] [help]