Permalink
Browse files

Fixed issue #7157: Some languages cannot be represented by flags

  • Loading branch information...
c-schmitz committed Jan 14, 2013
1 parent cac21ba commit 749540a696af83e5668070e46953be275427f095
Showing with 18 additions and 7 deletions.
  1. +18 −7 application/views/admin/survey/surveySummary_view.php
  2. BIN images/flags/af.png
  3. BIN images/flags/ar.png
  4. BIN images/flags/be.png
  5. BIN images/flags/bg.png
  6. BIN images/flags/bs.png
  7. BIN images/flags/ca.png
  8. BIN images/flags/cs.png
  9. BIN images/flags/cy.png
  10. BIN images/flags/da.png
  11. BIN images/flags/de-informal.png
  12. BIN images/flags/de.png
  13. BIN images/flags/el.png
  14. BIN images/flags/en.png
  15. BIN images/flags/es-MX.png
  16. BIN images/flags/es.png
  17. BIN images/flags/et.png
  18. BIN images/flags/eu.png
  19. BIN images/flags/fa.png
  20. BIN images/flags/fi.png
  21. BIN images/flags/fr.png
  22. BIN images/flags/gl.png
  23. BIN images/flags/he.png
  24. BIN images/flags/hi.png
  25. BIN images/flags/hr.png
  26. BIN images/flags/hu.png
  27. BIN images/flags/id.png
  28. BIN images/flags/ie.png
  29. 0 images/flags/index.html
  30. BIN images/flags/is.png
  31. BIN images/flags/it-formal.png
  32. BIN images/flags/it.png
  33. BIN images/flags/ja.png
  34. BIN images/flags/ko.png
  35. BIN images/flags/lt.png
  36. BIN images/flags/lv.png
  37. BIN images/flags/mk.png
  38. BIN images/flags/ms.png
  39. BIN images/flags/mt.png
  40. BIN images/flags/nb.png
  41. BIN images/flags/nl-informal.png
  42. BIN images/flags/nl.png
  43. BIN images/flags/nn.png
  44. BIN images/flags/pa.png
  45. BIN images/flags/pl.png
  46. BIN images/flags/pt-BR.png
  47. BIN images/flags/pt.png
  48. BIN images/flags/ro.png
  49. BIN images/flags/ru.png
  50. BIN images/flags/si.png
  51. BIN images/flags/sk.png
  52. BIN images/flags/sl.png
  53. BIN images/flags/sq.png
  54. BIN images/flags/sr.png
  55. BIN images/flags/sv.png
  56. BIN images/flags/th.png
  57. BIN images/flags/tr.png
  58. BIN images/flags/vi.png
  59. BIN images/flags/zh-Hans.png
  60. BIN images/flags/zh-Hant-HK.png
  61. BIN images/flags/zh-Hant-TW.png
  62. BIN images/flags/zh-Hant.png
@@ -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>
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Diff not rendered.
View
Diff not rendered.
View
No changes.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.

0 comments on commit 749540a

Please sign in to comment.