Skip to content

Commit

Permalink
Fixed issue #7157: Some languages cannot be represented by flags
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 14, 2013
1 parent cac21ba commit 749540a
Show file tree
Hide file tree
Showing 62 changed files with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions application/views/admin/survey/surveySummary_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,28 @@
</tr>
<tr>
<td>
<strong><?php echo $clang->gT("Survey URL") ." (".getLanguageNameFromCode($surveyinfo['language'],false)."):";?></strong>
<strong><?php echo $clang->gT("Survey URL") ." - ".getLanguageNameFromCode($surveyinfo['language'],false).":";?></strong>
</td>
<td>
<?php $tmp_url = $this->createAbsoluteUrl("/survey/index/sid/{$surveyinfo['sid']}");
echo "<a href='{$tmp_url}/lang/{$surveyinfo['language']}' target='_blank'>{$tmp_url}/lang/{$surveyinfo['language']}</a>";
<?php $tmp_url = $this->createAbsoluteUrl("/survey/index/sid/{$surveyinfo['sid']}/lang/{$surveyinfo['language']}"); ?>
<a href='<?php echo $tmp_url?>/lang/<?php echo $surveyinfo['language']; ?>' target='_blank'><?php echo $tmp_url; ?></a>
</td>
</tr>
<?php
foreach ($aAdditionalLanguages as $langname)
{
echo "&nbsp;<a href='{$tmp_url}/lang/$langname' target='_blank'><img title='".$clang->gT("Survey URL for language:")." ".getLanguageNameFromCode($langname,false)
."' alt='".getLanguageNameFromCode($langname,false)." ".$clang->gT("Flag")."' src='".Yii::app()->getConfig("imageurl")."/flags/{$langname}.png' /></a>";
{?>
<tr>
<td>
<strong><?php echo getLanguageNameFromCode($langname,false).":";?></strong>
</td>
<td>
<?php $tmp_url = $this->createAbsoluteUrl("/survey/index/sid/{$surveyinfo['sid']}/lang/{$langname}"); ?>
<a href='<?php echo $tmp_url?>/lang/<?php echo $langname; ?>' target='_blank'><?php echo $tmp_url; ?></a>
</td>
</tr>

<?php
} ?>
</td>
</tr>
<tr>
<td>
Expand Down
Binary file removed images/flags/af.png
Binary file not shown.
Binary file removed images/flags/ar.png
Binary file not shown.
Binary file removed images/flags/be.png
Binary file not shown.
Binary file removed images/flags/bg.png
Binary file not shown.
Binary file removed images/flags/bs.png
Binary file not shown.
Binary file removed images/flags/ca.png
Binary file not shown.
Binary file removed images/flags/cs.png
Binary file not shown.
Binary file removed images/flags/cy.png
Binary file not shown.
Binary file removed images/flags/da.png
Binary file not shown.
Binary file removed images/flags/de-informal.png
Binary file not shown.
Binary file removed images/flags/de.png
Binary file not shown.
Binary file removed images/flags/el.png
Binary file not shown.
Binary file removed images/flags/en.png
Binary file not shown.
Binary file removed images/flags/es-MX.png
Binary file not shown.
Binary file removed images/flags/es.png
Binary file not shown.
Binary file removed images/flags/et.png
Binary file not shown.
Binary file removed images/flags/eu.png
Binary file not shown.
Binary file removed images/flags/fa.png
Binary file not shown.
Binary file removed images/flags/fi.png
Binary file not shown.
Binary file removed images/flags/fr.png
Binary file not shown.
Binary file removed images/flags/gl.png
Binary file not shown.
Binary file removed images/flags/he.png
Binary file not shown.
Binary file removed images/flags/hi.png
Binary file not shown.
Binary file removed images/flags/hr.png
Binary file not shown.
Binary file removed images/flags/hu.png
Binary file not shown.
Binary file removed images/flags/id.png
Diff not rendered.
Binary file removed images/flags/ie.png
Diff not rendered.
Empty file removed images/flags/index.html
Empty file.
Binary file removed images/flags/is.png
Diff not rendered.
Binary file removed images/flags/it-formal.png
Diff not rendered.
Binary file removed images/flags/it.png
Diff not rendered.
Binary file removed images/flags/ja.png
Diff not rendered.
Binary file removed images/flags/ko.png
Diff not rendered.
Binary file removed images/flags/lt.png
Diff not rendered.
Binary file removed images/flags/lv.png
Diff not rendered.
Binary file removed images/flags/mk.png
Diff not rendered.
Binary file removed images/flags/ms.png
Diff not rendered.
Binary file removed images/flags/mt.png
Diff not rendered.
Binary file removed images/flags/nb.png
Diff not rendered.
Binary file removed images/flags/nl-informal.png
Diff not rendered.
Binary file removed images/flags/nl.png
Diff not rendered.
Binary file removed images/flags/nn.png
Diff not rendered.
Binary file removed images/flags/pa.png
Diff not rendered.
Binary file removed images/flags/pl.png
Diff not rendered.
Binary file removed images/flags/pt-BR.png
Diff not rendered.
Binary file removed images/flags/pt.png
Diff not rendered.
Binary file removed images/flags/ro.png
Diff not rendered.
Binary file removed images/flags/ru.png
Diff not rendered.
Binary file removed images/flags/si.png
Diff not rendered.
Binary file removed images/flags/sk.png
Diff not rendered.
Binary file removed images/flags/sl.png
Diff not rendered.
Binary file removed images/flags/sq.png
Diff not rendered.
Binary file removed images/flags/sr.png
Diff not rendered.
Binary file removed images/flags/sv.png
Diff not rendered.
Binary file removed images/flags/th.png
Diff not rendered.
Binary file removed images/flags/tr.png
Diff not rendered.
Binary file removed images/flags/vi.png
Diff not rendered.
Binary file removed images/flags/zh-Hans.png
Diff not rendered.
Binary file removed images/flags/zh-Hant-HK.png
Diff not rendered.
Binary file removed images/flags/zh-Hant-TW.png
Diff not rendered.
Binary file removed images/flags/zh-Hant.png
Diff not rendered.

0 comments on commit 749540a

Please sign in to comment.