Skip to content

Commit 968da94

Browse files
author
Jee Yi
authored
UI enhancement for translation unit history (#511)
1 parent 0458453 commit 968da94

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

webapp/src/main/resources/properties/en.properties

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -710,14 +710,11 @@ textUnit.gitBlameModal.screenshotModalOpen=View
710710
workbench.translationHistoryModal.info=Text unit history
711711

712712
# Title of the translation history modal dialog
713-
workbench.translationHistoryModal.title=Translation History for Locale {locale}
713+
workbench.translationHistoryModal.title=Translation History
714714

715715
# Label for the button to close the translation history modal dialog
716716
textUnit.translationHistoryModal.close=Close
717717

718-
# Text in the section in the translation history dialog where info about the translation unit is given
719-
textUnit.translationHistoryModal.source=Source: "{source}"
720-
721718
# Label for the column that contains the username of the user that made the translation
722719
textUnit.translationHistoryModal.User=User Name
723720

webapp/src/main/resources/public/js/components/workbench/TranslationHistoryModal.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,13 @@ class translationHistoryModal extends React.Component {
9393
<Modal className={"git-blame-modal"} show={show} onHide={this.closeModal}>
9494
<Modal.Header closeButton>
9595
<Modal.Title>
96-
<FormattedMessage id="workbench.translationHistoryModal.title" values={{
97-
locale: textUnit.getTargetLocale()
98-
}}/>
96+
<FormattedMessage id={"workbench.translationHistoryModal.title"}/>
9997
</Modal.Title>
10098
</Modal.Header>
10199
<Modal.Body>
102100
<div className={"row"}>
103-
<div className={"col-sm-4"}>
104-
<div>
105-
<FormattedMessage id={"textUnit.translationHistoryModal.source"} values={{
106-
source: textUnit.getSource()
107-
}}/>
108-
</div>
101+
<div className={"history-source"}>
102+
{textUnit.getSource()}
109103
</div>
110104
</div>
111105
<p/>

webapp/src/main/resources/sass/mojito.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,14 @@ div.targetstring-container textarea {
498498
padding: 8px;
499499
}
500500

501+
.history-source {
502+
color: $brand-primary;
503+
font-style: italic;
504+
padding-left: 30px;
505+
padding-right: 30px;
506+
padding-bottom: 20px;
507+
}
508+
501509
/**
502510
* LOGIN
503511
*/

0 commit comments

Comments
 (0)