Forum Moderators: phranque
I want to have various translations of a resource in a directory:
index.en.shtml
index.de.shtml
index.sv.shtml
Now I am trying to discover the SSI code that tests if a file/translation exists:
<!--#if expr="-e index.fi.shtml" -->
<li><a href="index.fi.shtml">Suomeksi</a></li>
<!--#if expr="-e index.fi.shtml" -->
<li><a href="index.en.shtml">English</a></li>
<!--#endif -->
This is not working.
[httpd.apache.org...]
I am not sure if apache's mod_include expr syntax can do it. My apache server has disabled exec.
Comments?
----
re negotiation
I'm surprised ht*p://www.debian.org/intro/cn#howtoset suggests not to use country extensions to a language eg. en-GB, suggesting these aren't aknowledged.
Not having content negotiation enabled I settled on PHP, which does accept language extensions etc, your welcome to the code if you need it.