mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 22:20:57 -04:00
Fix format of source message in l10n client (adding a newline between plural forms)
This commit is contained in:
@@ -93,12 +93,13 @@ jQuery.extend(Gallery, {
|
||||
// Display the source message
|
||||
this.showSourceMessage = function(source, is_plural) {
|
||||
if (is_plural) {
|
||||
var pretty_source = '[one] - ' + source['one'] + "\n";
|
||||
pretty_source += '[other] - ' + source['other'];
|
||||
var pretty_source = $('#source-text-tmp-space').text('[one] - ' + source['one']).html();
|
||||
pretty_source += '<br/>';
|
||||
pretty_source += $('#source-text-tmp-space').text('[other] - ' + source['other']).html();
|
||||
} else {
|
||||
var pretty_source = source;
|
||||
var pretty_source = $('#source-text-tmp-space').text(source).html();
|
||||
}
|
||||
$('#l10n-client-string-editor .source-text').text(pretty_source);
|
||||
$('#l10n-client-string-editor .source-text').html(pretty_source);
|
||||
}
|
||||
this.isPluralMessage = function(message) {
|
||||
return typeof(message) == 'object';
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
<div id="l10n-client-string-editor">
|
||||
<div class="source">
|
||||
<p class="source-text"></p>
|
||||
<p id="source-text-tmp-space" style="display:none"></p>
|
||||
</div>
|
||||
<div class="translation">
|
||||
<form method="post" action="<?= url::site("l10n_client/save") ?>" id="gL10nClientSaveForm">
|
||||
|
||||
Reference in New Issue
Block a user