Code Duplication    Length = 8-8 lines in 3 locations

src/accounts/create.php 1 location

@@ 194-201 (lines=8) @@
191
192
$supported_locales = get_supported_locales_sorted();
193
194
foreach ($supported_locales as $locale_id => $locale_name)
195
{
196
    $xml .= ($locale == $locale_id
197
                ? '<listitem value="' . $locale_id . '" selected="true">'
198
                : '<listitem value="' . $locale_id . '">')
199
          . $locale_name
200
          . '</listitem>';
201
}
202
203
$xml .= '</combobox>'
204
      . '</control>'

src/accounts/modify.php 1 location

@@ 221-228 (lines=8) @@
218
219
$supported_locales = get_supported_locales_sorted();
220
221
foreach ($supported_locales as $locale_id => $locale_name)
222
{
223
    $xml .= ($locale == $locale_id
224
                ? '<listitem value="' . $locale_id . '" selected="true">'
225
                : '<listitem value="' . $locale_id . '">')
226
          . $locale_name
227
          . '</listitem>';
228
}
229
230
$xml .= '</combobox>'
231
      . '</control>'

src/settings/appearance.php 1 location

@@ 120-127 (lines=8) @@
117
118
$supported_locales = get_supported_locales_sorted();
119
120
foreach ($supported_locales as $locale_id => $locale_name)
121
{
122
    $xml .= ($locale == $locale_id
123
                ? '<listitem value="' . $locale_id . '" selected="true">'
124
                : '<listitem value="' . $locale_id . '">')
125
          . ustr2html($locale_name)
126
          . '</listitem>';
127
}
128
129
$xml .= '</combobox>'
130
      . '</control>'