diff options
author | David Rothstein <drothstein@gmail.com> | 2015-03-29 18:18:17 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-03-29 18:18:17 -0400 |
commit | 25ddf78e41129890dd671b9c8c4f817bfc411200 (patch) | |
tree | 6f9144b8f495d07fbeb011a50c4496b84e84376c /modules/locale | |
parent | 9ddfc4697d91b75823bad166666e27f433517b80 (diff) | |
download | brdo-25ddf78e41129890dd671b9c8c4f817bfc411200.tar.gz brdo-25ddf78e41129890dd671b9c8c4f817bfc411200.tar.bz2 |
Issue #495930 by fietserwin: Translated strings not correctly marked in the administrative interface when the default language is not English
Diffstat (limited to 'modules/locale')
-rw-r--r-- | modules/locale/locale.admin.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/locale/locale.admin.inc b/modules/locale/locale.admin.inc index b736f79b7..e813962d0 100644 --- a/modules/locale/locale.admin.inc +++ b/modules/locale/locale.admin.inc @@ -1139,11 +1139,11 @@ function locale_translate_edit_form($form, &$form_state, $lid) { '#value' => $source->location ); - // Include default form controls with empty values for all languages. - // This ensures that the languages are always in the same order in forms. + // Include both translated and not yet translated target languages in the + // list. The source language is English for built-in strings and the default + // language for other strings. $languages = language_list(); $default = language_default(); - // We don't need the default language value, that value is in $source. $omit = $source->textgroup == 'default' ? 'en' : $default->language; unset($languages[($omit)]); $form['translations'] = array('#tree' => TRUE); |