Jahia DX > Language flags issue...

0 (0 Good)
0 (0 Bad)

Language flags issue (shows the same flag)

by  rvt »  2011/06/07 18:04

I am not sure if I should put this in the issue tracker,
but here we go.

I have a multi-language site where in the country Switzerland I can show the following languages:

de_CH
it_CH
fr_CH

The problem is however, that the current language switcher shows 3 times the same flag, and that's the flag for Switzerland. Would it not be better to show for de_CH the german flag, for it_CH the italian flag and for fr_CH the french flag? Since there is in reality no such thing as a flag for a language, I believe this is the best solution.

Currently I solve this issue by adding a bit of CSS to my base.css file. But I think this should be solved in core. When I was looking at the CSS (over 3800 lines) I wasn't planning yet to write a little patch smiley but I am sure you guys have a script to generate the CSS (I hope....)??

Ries

  • Language flags issue (shows the same flag)
    2011/06/30 15:05

    rvt <p> I am not sure if I should put this in the issue tracker,<br /> but here we go.<br /> <br /> I have a multi-language site where in the country Switzerland I can show the following languages:<br /> <br /> de_CH<br /> it_CH<br /> fr_CH<br /> <br /> The problem is however, that the current language switcher shows 3 times the same flag, and that&#39;s the flag for Switzerland. Would it not be better to show for de_CH the german flag, for it_CH the italian flag and for fr_CH the french flag? Since there is in reality no such thing as a flag for a language, I believe this is the best solution.<br /> <br /> Currently I solve this issue by adding a bit of CSS to my base.css file. But I think this should be solved in core. When I was looking at the CSS (over 3800 lines) I wasn&#39;t planning yet to write a little patch <img alt="smiley" height="20" src="https://www.jahia.com/modules/assets/javascript/ckeditor/plugins/smiley/images/regular_smile.gif" title="smiley" width="20" />&nbsp;but I am sure you guys have a script to generate the CSS (I hope....)??<br /> <br /> Ries</p>

  • Number of messages  185
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Language flags issue (shows the same flag)

    by  shyrkov »  2011/06/07 18:04

    Ries, could you, please, post a screenshot to better understand which language switcher is the concern?
    Thank you in advance!

    Kind regards
    Sergiy
  • Re: Language flags issue (shows the same flag)
    2011/06/07 18:04

    shyrkov Ries, could you, please, post a screenshot to better understand which language switcher is the concern?<br/>Thank you in advance!<br/><br/>Kind regards<br/>Sergiy

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Language flags issue (shows the same flag)

    by  rvt »  2011/06/07 18:04

    Sure!

    See the below attachments. If I use the language flags 'as is' it basically shows the flag of the country in question (Second screenshot), what i want to show, and I think what also makes sense for the rest of the world is the flag of the language and not the country, see the first screenshot.

    What I currently did is within my CSS of my templates I added the folloing CSS code:

    span.flag_de_CH {
    
     background:
     url("../../../modules/assets/css/images/flags/plain/flag_germany.png") no-repeat 0 0;
    }
    span.flag_it_CH {
       background: url("../../../modules/assets/css/images/flags/plain/flag_italy.png") no-repeat 0 0;
    }
    span.flag_fr_CH {
       background: url("../../../modules/assets/css/images/flags/plain/flag_france.png") no-repeat 0 0;
    }

     

    I think the best thing we can do is show the flag of the country the language is normally spoken in, since there are officially no such things are 'language flags'.

    If I just leave the CSS 'as-is' then the 3 flags are the same and the web-user doesn't have no idea what language he can pick from.

    Ries

  • Re: Language flags issue (shows the same flag)
    2011/06/30 15:08

    rvt <p> Sure!</p> <p> See the below attachments. If I use the language flags &#39;as is&#39; it basically shows the flag of the country in question (Second screenshot), what i want to show, and I think what also makes sense for the rest of the world is the flag of the language and not the country, see the first screenshot.</p> <p> What I currently did is within my CSS of my templates I added the folloing CSS code:</p> <pre> span.flag_de_CH { background: url(&quot;../../../modules/assets/css/images/flags/plain/flag_germany.png&quot;) no-repeat 0 0; } span.flag_it_CH { background: url(&quot;../../../modules/assets/css/images/flags/plain/flag_italy.png&quot;) no-repeat 0 0; } span.flag_fr_CH { background: url(&quot;../../../modules/assets/css/images/flags/plain/flag_france.png&quot;) no-repeat 0 0; }</pre> <p> &nbsp;</p> <p> <meta charset="utf-8" /> I think the best thing we can do is show the flag of the country the language is normally spoken in, since there are officially no such things are &#39;language flags&#39;.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> If I just leave the CSS &#39;as-is&#39; then the 3 flags are the same and the web-user doesn&#39;t have no idea what language he can pick from.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> <br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /> Ries</p>

  • Number of messages  185
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Language flags issue (shows the same flag)

    by  shuber »  2011/06/07 18:04

    I think this might be a good candidate for the issue tracker smiley

    Regards,
    Serge Huber.

    Serge Huber (shuber)

    Number of messages  271
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Language flags issue (shows the same flag)

    by  rvt »  2011/06/07 18:04

    Serge,

    I created the issue here : http://jira.jahia.org/browse/JAHIA-5290

    Ries
  • Re: Language flags issue (shows the same flag)
    2011/06/07 18:04

    rvt Serge,<br/><br/>I created the issue here : <!-- m --><a class="postlink" href="http://jira.jahia.org/browse/JAHIA-5290">http://jira.jahia.org/browse/JAHIA-5290</a><!-- m --><br/><br/>Ries

  • Number of messages  185
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Language flags issue (shows the same flag)

    by  shuber »  2011/06/07 18:04

    Hi Ries,

    Thanks for doing that. I added the Jahia version to the ticket.

    Regards,
    Serge Huber.

    Serge Huber (shuber)

    Number of messages  271
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Language flags issue (shows the same flag)

    by  rvt »  2011/06/07 18:04

    David,

    i need to reply here...

    You mentioned:


    This is the wanted behavior of the component. 

    A flag represents a country, not a language. 

    If people wants to change the behavior of the component, they can easily, as suggested, create another view of the component that use a different CSS than the one provide.

    it might be the wanted behavior, but not the expected by implementors smiley
    I am good with the situation I am in right now (by adding a bit of CSS to my templates) so you can close the issue.

    Ries

  • Re: Language flags issue (shows the same flag)
    2011/06/30 15:12

    rvt <p> David,<br /> <br /> i need to reply here...<br /> <br /> You mentioned:</p> <blockquote> <p> <br /> This is the wanted behavior of the component.&nbsp;</p> <p> A flag represents a country, not a language.&nbsp;</p> <p> If people wants to change the behavior of the component, they can easily, as suggested, create another view of the component that use a different CSS than the one provide.</p> </blockquote> <p> <meta charset="utf-8" /> it might be the wanted behavior, but not the expected by implementors&nbsp;<img alt="smiley" height="20" src="https://www.jahia.com/modules/assets/javascript/ckeditor/plugins/smiley/images/regular_smile.gif" title="smiley" width="20" /><br /> I am good with the situation I am in right now (by adding a bit of CSS to my templates) so you can close the issue.<br /> <br /> Ries</p>

  • Number of messages  185
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Language flags issue (shows the same flag)

    by  shuber »  2011/06/07 18:04

    Hello Ries,

    I still believe this should be handled at some point in the future, so I re-opened the ticket but modified it as an improvement.

    Regards,
    Serge Huber.

    Serge Huber (shuber)

    Number of messages  271
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page