<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Martin, hi and thanks for your answer!<br>
<br>
I have generated static, the html folder of my deposit has been
populated with the correct html files (I've looked into their
content), and when I select the Greek language through an href (on
an image), as I said, it displays the "language has changed" page
in Greek, but when I click on any link (menu, whatever) the
content served is in English.<br>
<br>
I have used Chrome, Firefox and Opera and it won't work in any of
them.<br>
<br>
I have to re-inform you that I installed the Greek translation
(which is for a previous version of eprints, 3.0) without using
any guide, which means that I just copied the folders contained in
the zip file where it seemed appropriate (./lib/defaultcfg and
./lib/lang in the eprints folder, and cfg/lang/el in the specific
archive). As I read in eprints' documentation regarding previous
versions (<3), a few stuff needed to be done in order to
install translations, that didn't seem "compatible" with my
version. Maybe I am missing something here...<br>
<br>
If not, then I am not sure what part of eprints' core
functionality fails and doesn't load the language correctly or if
the problem is related to the set_lang script.<br>
<br>
Thanks again for your answer!<br>
<br>
PS. I wasn't sure about the activity of this list, so a few hours
ago (before receiving your answer) I started an analogous question
in stackoverflow:
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/30254057/eprints-multilingual-site">http://stackoverflow.com/questions/30254057/eprints-multilingual-site</a><br>
<br>
On 15/05/2015 11:03 πμ, <a class="moz-txt-link-abbreviated" href="mailto:martin.braendle@id.uzh.ch">martin.braendle@id.uzh.ch</a> wrote:<br>
</div>
<blockquote
cite="mid:EMEW3|c60ade3f286e35ebe504492f8cf61354r4E94j14eprints-tech-bounces|ecs.soton.ac.uk|OF29A3219C.83B7E354-ONC1257E46.002A66E0-C1257E46.002C4D6F@lotus.uzh.ch"
type="cite">
<p><font size="2" face="sans-serif">Hi,</font><br>
<br>
<font size="2" face="sans-serif">two questions come to my mind:</font><br>
<br>
<font size="2" face="sans-serif">- did you run
bin/generate_static your_repo --prune ?</font><br>
<font size="2" face="sans-serif">- which browser did you use to
test? Safari sends a slightly different Accept-Language token
in the HTTP header, which is not properly recognized by
Repository.pm.</font><br>
<br>
<font size="2" face="sans-serif">A possible patch is:</font><br>
<br>
<tt><font size="2">Modified:
trunk/src/core/perl_lib/EPrints/Repository.pm<br>
===================================================================<br>
--- trunk/src/core/perl_lib/EPrints/Repository.pm 2014-08-12
12:23:41 UTC (rev 857)<br>
+++ trunk/src/core/perl_lib/EPrints/Repository.pm 2014-09-10
13:00:28 UTC (rev 858)<br>
@@ -2264,6 +2264,8 @@<br>
foreach my $browser_lang ( split( /, */, $accept_language )
)<br>
{<br>
$browser_lang =~ s/;.*$//;<br>
+ # UZH CHANGE ZORA-274 fix for Safari browser 2014/08/15/mb<br>
+ $browser_lang =~ s/-.*$//;<br>
push @prefs, $browser_lang;<br>
}<br>
}</font></tt><br>
<br>
<br>
<font size="2" face="sans-serif">Best regards,</font><br>
<br>
<font size="2" face="sans-serif">Martin</font><br>
<font size="2" face="sans-serif"> </font><br>
<font size="2" face="sans-serif">--</font><br>
<font size="2" face="sans-serif">Dr. Martin Brändle</font><br>
<font size="2" face="sans-serif">Zentrale Informatik</font><br>
<font size="2" face="sans-serif">Universität Zürich</font><br>
<font size="2" face="sans-serif">Winterthurerstr. 190</font><br>
<font size="2" face="sans-serif">CH-8057 Zürich</font><br>
<br>
</p>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
George Mamalakis
IT and Security Officer,
Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),
PhD (Aristotle Univ. of Thessaloniki),
MSc (Imperial College of London)
School of Electrical and Computer Engineering
Aristotle University of Thessaloniki
phone number : +30 (2310) 994379
</pre>
</body>
</html>