Re: crazy flags
Philippe Vollenweider <[email protected]> Wed, 14 Mar 2007 09:30:11 +0100
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
What is the generated image URL for your flags?
If you go to this URL, did you get an error message?
/P.
At 12.03.2007 21:05, you wrote:
>Hi,
>I have installed jahia 4.1.1 in my red hat
>server (no problem so far). But a few days ago
>we have to change it to windows 2003 server
>(same template and everything). However, when we
>set up on windows 2003 server on flag in our
>template was gone. I tried to set up the same
>environment in my virtual machine (windows xp)
>and for my surprise everything was just fineĀ
I
>tried again on windows 2003, but nothing, same problem.
>
>The code I used
>
>
> <td class="Rodape">IDIOMA:</td>
><%
>
> JahiaSite jahiaSite = jParams.getSite();
> Vector
> languageSettings = jahiaSite.getLanguageSettings(true);
> Enumeration
> languageEnum = languageSettings.elements();
> while (languageEnum.hasMoreElements()) {
>
>SiteLanguageSettings siteLanguageSettings
>=(SiteLanguageSettings)languageEnum.nextElement();
> String
> languageCode = siteLanguageSettings.getCode();
> Locale loc =
> LanguageCodeConverters.languageCodeToLocale(languageCode);
> String alt =
> loc.getDisplayLanguage(loc) + " [" + loc.getDisplayName() + "]";
>
> if
> (loc.getDisplayName().equals("Portuguese")){%>
> <td><a
> href='<%=jData.gui().drawPageLanguageSwitch(languageCode)%>'>
> <img
> src="<%=theURL%>/images/portugues_1.gif"
> alt="português" width="16" height="11" border="0">
> </a>
> </td>
> <%}
> if
> (loc.getDisplayName().equals("German")){%>
> <td><a
> href='<%=jData.gui().drawPageLanguageSwitch(languageCode)%>'>
> <img
> src="<%=theURL%>/images/deutsch_2.gif"
> alt="deutsch" width="15" height="11" border="0">
> </a>
> </td>
> <% }
>
> if
> (loc.getDisplayName().equals("Spanish")){ %>
> <td><a
> href='<%=jData.gui().drawPageLanguageSwitch(languageCode)%>'>
> <img
> src="<%=theURL%>/images/spanish_2.gif"
> alt="spanish" width="17" height="11" border="0">
> </a>
> </td>
> <%}
>
> if
> (loc.getDisplayName().equals("English")){%>
> <td><a
> href='<%=jData.gui().drawPageLanguageSwitch(languageCode)%>'>
> <img
> src="<%=theURL%>/images/englsh_2.gif"
> alt="english" width="16" height="11" border="0">
> </a>
> </td>
> <% }
> }%>
>
> </tr>
>
>--
>No virus found in this outgoing message.
>Checked by AVG Free Edition.
>Version: 7.5.446 / Virus Database: 268.18.7/713
>- Release Date: 07-03-2007 9:24
>
>--
>No virus found in this outgoing message.
>Checked by AVG Free Edition.
>Version: 7.5.446 / Virus Database: 268.18.9/719
>- Release Date: 12-03-2007 8:41
-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company