Skip to content

Commit

Permalink
Merge pull request #793 from folio-org/lokalise_20190321T130117
Browse files Browse the repository at this point in the history
Lokalise 20190321 t130117
  • Loading branch information
zburke authored Apr 9, 2019
2 parents 1e2faf4 + fba3b1a commit 7f99776
Show file tree
Hide file tree
Showing 20 changed files with 382 additions and 206 deletions.
2 changes: 1 addition & 1 deletion src/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const filterConfig = [
label: <FormattedMessage id="ui-users.information.patronGroup" />,
name: 'pg',
cql: 'patronGroup',
values: [], // will be filled in by componentWillUpdate
values: [], // will be filled in by componentDidUpdate
},
];

Expand Down
10 changes: 5 additions & 5 deletions src/components/BulkOverrideDialog/BulkOverrideInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,16 @@ class BulkOverrideInfo extends React.Component {
</Row>
<Layout className="textRight">
<Button
disabled={!canBeSubmitted}
onClick={this.submitOverride}
onClick={onCancel}
>
<FormattedMessage id="ui-users.button.override" />
<FormattedMessage id="ui-users.cancel" />
</Button>
<Button
buttonStyle="primary"
onClick={onCancel}
disabled={!canBeSubmitted}
onClick={this.submitOverride}
>
<FormattedMessage id="ui-users.cancel" />
<FormattedMessage id="ui-users.button.override" />
</Button>
</Layout>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
IconButton,
} from '@folio/stripes/components';
import {
IfPermission,
stripesShape,
} from '@folio/stripes/core';

Expand Down Expand Up @@ -49,7 +48,8 @@ class ActionsDropdown extends React.Component {
data-role="menu"
overrideStyle={{ padding: '7px 3px' }}
>
<IfPermission perm="inventory.items.item.get">
{
stripes.hasPerm('inventory.items.item.get') &&
<MenuItem itemMeta={{
loan,
action: 'itemDetails',
Expand All @@ -62,7 +62,7 @@ class ActionsDropdown extends React.Component {
<FormattedMessage id="ui-users.itemDetails" />
</Button>
</MenuItem>
</IfPermission>
}
<MenuItem itemMeta={{
loan,
action: 'renew',
Expand Down
13 changes: 12 additions & 1 deletion translations/ui-users/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -796,5 +796,16 @@
"transfers.columns.desc": "الوصف",
"transfers.modalHeader": "حذف حساب التحويل",
"transfers.singular": "حساب التحويل",
"transfers.nodata": "لا توجد رسوم/غرامات: حسابات التحويل"
"transfers.nodata": "لا توجد رسوم/غرامات: حسابات التحويل",
"payments.nodata": "لا توجد رسوم/غرامات: طرق السداد",
"details.button.new": "معلومات موظف جديد",
"accounts.cancelError": "ملغى كخطأ",
"accounts.comment.staffInfo": "معلومات موظف جديد",
"blocks.additionalReasons": "عرض تفاصيل الحظر لمعرفة المزيد من أسباب الحظر...",
"accounts.status.partially": "جزئيًا",
"accounts.status.fully": "بالكامل",
"accounts.actions.payment": "السداد",
"accounts.actions.waive": "الإعفاء",
"accounts.actions.tag.staff": "الموظفين",
"accounts.actions.tag.patron": "المستفيد"
}
45 changes: 28 additions & 17 deletions translations/ui-users/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@
"charge.item.status": "Item Status",
"charge.item.callNumber": "Call number",
"charge.item.location": "Location",
"details.columns.comments": "Comments",
"details.columns.date": "Action Date",
"details.columns.comments": "Additional information",
"details.columns.date": "Action date",
"details.columns.action": "Action",
"details.columns.amount": "Amount",
"details.columns.balance": "Balance",
Expand Down Expand Up @@ -544,19 +544,19 @@
"accounts.history.columns.status": "Payment Status",
"accounts.history.columns.due": "Due Date",
"accounts.history.columns.returned": "Returned Date",
"accounts.pay.field.totalamount": "Total owed amount:",
"accounts.pay.field.selectedamount": "Selected amount:",
"accounts.pay.field.paymentamount": "Payment amount*",
"accounts.pay.field.remainingamount": "Remaining amount:",
"accounts.pay.field.paymentmethod": "Payment method*",
"accounts.pay.field.totalamount": "Total owed amount",
"accounts.pay.field.selectedamount": "Selected amount",
"accounts.pay.field.paymentamount": "Payment amount",
"accounts.pay.field.remainingamount": "Remaining amount",
"accounts.pay.field.paymentmethod": "Payment method",
"accounts.pay.field.trasactioninfo": "Transaction information",
"accounts.pay.field.comment": "Additional information",
"accounts.waive.field.totalamount": "fees/fines for a total amount of",
"accounts.waive.field.totalowed": "Total owed amount:",
"accounts.waive.field.selectedamount": "Selected amount:",
"accounts.waive.field.waiveamount": "Waive amount*",
"accounts.waive.field.remainingamount": "Remaining amount:",
"accounts.waive.field.waivereason": "Waive reason*",
"accounts.waive.field.totalowed": "Total owed amount",
"accounts.waive.field.selectedamount": "Selected amount",
"accounts.waive.field.waiveamount": "Waive amount",
"accounts.waive.field.remainingamount": "Remaining amount",
"accounts.waive.field.waivereason": "Waive reason",
"accounts.waive.field.comment": "Additional information",
"accounts.waive.field.cancel": "Cancel",
"accounts.waive.field.waive": "Waive",
Expand All @@ -582,7 +582,7 @@
"charge.messageOf": " fee/fine Of ",
"charge.messageSuccessfully": " has been successfully ",
"charge.messageFor": " for ",
"details.columns.transactioninfo": "Transaction Information",
"details.columns.transactioninfo": "Transaction information",
"details.paneTitle.feeFineDetails": "Fee/fine details",
"details.label.loanDetails": "Loan details",
"accounts.button.new": " New",
Expand Down Expand Up @@ -740,7 +740,7 @@
"accounts.error.message": "Enter an amount greater than 0",
"accounts.error.exceeds": "Pay amount exceeds the selected amount",
"accounts.warning.itemSelected": "{total, number} items selected. {items, number} {items, plural, one {item} other {items}} cannot be {action} because they are already closed.",
"blocks.reason": "Reason for block:",
"blocks.reason": "Reason for block",
"blocks.modal.header": "Patron blocked from renewing",
"blocks.detailsButton": "Block details",
"blocks.closeButton": "Close",
Expand All @@ -751,7 +751,7 @@
"selectColumns": "Select Columns",
"cddd.dateRequired": "Date*",
"cddd.timeRequired": "Time*",
"additionalInfo.label": "Additional information*",
"additionalInfo.label": "Additional information",
"additionalInfo.placeholder": "Enter more information about the override (required)",
"button.override": "Override",
"override.emptyNewDueDate": "Select due date above",
Expand All @@ -774,7 +774,7 @@
"blocks.layer.newBlockTitle": "New Block",
"accounts.totalOpenAccounts": "(Total: {amount})",
"accounts.error.select": "Select one",
"accounts.pay.field.ownerDesk": "Fee/fine owner desk*",
"accounts.pay.field.ownerDesk": "Fee/fine owner desk",
"accounts.pay.field.infoPatron": "Additional information for patron",
"accounts.pay.owner.placeholder": "Select desk",
"accounts.pay.method.placeholder": "Select type",
Expand All @@ -796,5 +796,16 @@
"transfers.columns.desc": "Description",
"transfers.modalHeader": "Delete transfer account",
"transfers.singular": "Transfer account",
"transfers.nodata": "There are no Fee/fine: Transfer accounts"
"transfers.nodata": "There are no Fee/fine: Transfer accounts",
"payments.nodata": "There are no Fee/fine: Payment methods",
"details.button.new": "New staff info",
"accounts.cancelError": "Cancelled as Error",
"accounts.comment.staffInfo": "New staff info",
"blocks.additionalReasons": "View block details to see additional reasons for block...",
"accounts.status.partially": "partially",
"accounts.status.fully": "fully",
"accounts.actions.payment": "payment",
"accounts.actions.waive": "waive",
"accounts.actions.tag.staff": "STAFF",
"accounts.actions.tag.patron": "PATRON"
}
45 changes: 28 additions & 17 deletions translations/ui-users/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@
"charge.item.status": "Item Status",
"charge.item.callNumber": "Call number",
"charge.item.location": "Location",
"details.columns.comments": "Comments",
"details.columns.date": "Action Date",
"details.columns.comments": "Additional information",
"details.columns.date": "Action date",
"details.columns.action": "Action",
"details.columns.amount": "Amount",
"details.columns.balance": "Balance",
Expand Down Expand Up @@ -544,19 +544,19 @@
"accounts.history.columns.status": "Payment Status",
"accounts.history.columns.due": "Due Date",
"accounts.history.columns.returned": "Returned Date",
"accounts.pay.field.totalamount": "Total owed amount:",
"accounts.pay.field.selectedamount": "Selected amount:",
"accounts.pay.field.paymentamount": "Payment amount*",
"accounts.pay.field.remainingamount": "Remaining amount:",
"accounts.pay.field.paymentmethod": "Payment method*",
"accounts.pay.field.totalamount": "Total owed amount",
"accounts.pay.field.selectedamount": "Selected amount",
"accounts.pay.field.paymentamount": "Payment amount",
"accounts.pay.field.remainingamount": "Remaining amount",
"accounts.pay.field.paymentmethod": "Payment method",
"accounts.pay.field.trasactioninfo": "Transaction information",
"accounts.pay.field.comment": "Additional information",
"accounts.waive.field.totalamount": "fees/fines for a total amount of",
"accounts.waive.field.totalowed": "Total owed amount:",
"accounts.waive.field.selectedamount": "Selected amount:",
"accounts.waive.field.waiveamount": "Waive amount*",
"accounts.waive.field.remainingamount": "Remaining amount:",
"accounts.waive.field.waivereason": "Waive reason*",
"accounts.waive.field.totalowed": "Total owed amount",
"accounts.waive.field.selectedamount": "Selected amount",
"accounts.waive.field.waiveamount": "Waive amount",
"accounts.waive.field.remainingamount": "Remaining amount",
"accounts.waive.field.waivereason": "Waive reason",
"accounts.waive.field.comment": "Additional information",
"accounts.waive.field.cancel": "Cancel",
"accounts.waive.field.waive": "Waive",
Expand All @@ -582,7 +582,7 @@
"charge.messageOf": " fee/fine Of ",
"charge.messageSuccessfully": " has been successfully ",
"charge.messageFor": " for ",
"details.columns.transactioninfo": "Transaction Information",
"details.columns.transactioninfo": "Transaction information",
"details.paneTitle.feeFineDetails": "Fee/fine details",
"details.label.loanDetails": "Loan details",
"accounts.button.new": " New",
Expand Down Expand Up @@ -740,7 +740,7 @@
"accounts.error.message": "Enter an amount greater than 0",
"accounts.error.exceeds": "Pay amount exceeds the selected amount",
"accounts.warning.itemSelected": "{total, number} items selected. {items, number} {items, plural, one {item} other {items}} cannot be {action} because they are already closed.",
"blocks.reason": "Reason for block:",
"blocks.reason": "Reason for block",
"blocks.modal.header": "Patron blocked from renewing",
"blocks.detailsButton": "Block details",
"blocks.closeButton": "Close",
Expand All @@ -751,7 +751,7 @@
"selectColumns": "Select Columns",
"cddd.dateRequired": "Date*",
"cddd.timeRequired": "Time*",
"additionalInfo.label": "Additional information*",
"additionalInfo.label": "Additional information",
"additionalInfo.placeholder": "Enter more information about the override (required)",
"button.override": "Override",
"override.emptyNewDueDate": "Select due date above",
Expand All @@ -774,7 +774,7 @@
"blocks.layer.newBlockTitle": "New Block",
"accounts.totalOpenAccounts": "(Total: {amount})",
"accounts.error.select": "Select one",
"accounts.pay.field.ownerDesk": "Fee/fine owner desk*",
"accounts.pay.field.ownerDesk": "Fee/fine owner desk",
"accounts.pay.field.infoPatron": "Additional information for patron",
"accounts.pay.owner.placeholder": "Select desk",
"accounts.pay.method.placeholder": "Select type",
Expand All @@ -796,5 +796,16 @@
"transfers.columns.desc": "Description",
"transfers.modalHeader": "Delete transfer account",
"transfers.singular": "Transfer account",
"transfers.nodata": "There are no Fee/fine: Transfer accounts"
"transfers.nodata": "There are no Fee/fine: Transfer accounts",
"payments.nodata": "There are no Fee/fine: Payment methods",
"details.button.new": "New staff info",
"accounts.cancelError": "Cancelled as Error",
"accounts.comment.staffInfo": "New staff info",
"blocks.additionalReasons": "View block details to see additional reasons for block...",
"accounts.status.partially": "partially",
"accounts.status.fully": "fully",
"accounts.actions.payment": "payment",
"accounts.actions.waive": "waive",
"accounts.actions.tag.staff": "STAFF",
"accounts.actions.tag.patron": "PATRON"
}
45 changes: 28 additions & 17 deletions translations/ui-users/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@
"charge.item.status": "Item Status",
"charge.item.callNumber": "Call number",
"charge.item.location": "Location",
"details.columns.comments": "Comments",
"details.columns.date": "Action Date",
"details.columns.comments": "Additional information",
"details.columns.date": "Action date",
"details.columns.action": "Action",
"details.columns.amount": "Amount",
"details.columns.balance": "Balance",
Expand Down Expand Up @@ -544,19 +544,19 @@
"accounts.history.columns.status": "Payment Status",
"accounts.history.columns.due": "Due Date",
"accounts.history.columns.returned": "Returned Date",
"accounts.pay.field.totalamount": "Total owed amount:",
"accounts.pay.field.selectedamount": "Selected amount:",
"accounts.pay.field.paymentamount": "Payment amount*",
"accounts.pay.field.remainingamount": "Remaining amount:",
"accounts.pay.field.paymentmethod": "Payment method*",
"accounts.pay.field.totalamount": "Total owed amount",
"accounts.pay.field.selectedamount": "Selected amount",
"accounts.pay.field.paymentamount": "Payment amount",
"accounts.pay.field.remainingamount": "Remaining amount",
"accounts.pay.field.paymentmethod": "Payment method",
"accounts.pay.field.trasactioninfo": "Transaction information",
"accounts.pay.field.comment": "Additional information",
"accounts.waive.field.totalamount": "fees/fines for a total amount of",
"accounts.waive.field.totalowed": "Total owed amount:",
"accounts.waive.field.selectedamount": "Selected amount:",
"accounts.waive.field.waiveamount": "Waive amount*",
"accounts.waive.field.remainingamount": "Remaining amount:",
"accounts.waive.field.waivereason": "Waive reason*",
"accounts.waive.field.totalowed": "Total owed amount",
"accounts.waive.field.selectedamount": "Selected amount",
"accounts.waive.field.waiveamount": "Waive amount",
"accounts.waive.field.remainingamount": "Remaining amount",
"accounts.waive.field.waivereason": "Waive reason",
"accounts.waive.field.comment": "Additional information",
"accounts.waive.field.cancel": "Cancel",
"accounts.waive.field.waive": "Waive",
Expand All @@ -582,7 +582,7 @@
"charge.messageOf": " fee/fine Of ",
"charge.messageSuccessfully": " has been successfully ",
"charge.messageFor": " for ",
"details.columns.transactioninfo": "Transaction Information",
"details.columns.transactioninfo": "Transaction information",
"details.paneTitle.feeFineDetails": "Fee/fine details",
"details.label.loanDetails": "Loan details",
"accounts.button.new": " New",
Expand Down Expand Up @@ -740,7 +740,7 @@
"accounts.error.message": "Enter an amount greater than 0",
"accounts.error.exceeds": "Pay amount exceeds the selected amount",
"accounts.warning.itemSelected": "{total, number} items selected. {items, number} {items, plural, one {item} other {items}} cannot be {action} because they are already closed.",
"blocks.reason": "Reason for block:",
"blocks.reason": "Reason for block",
"blocks.modal.header": "Patron blocked from renewing",
"blocks.detailsButton": "Block details",
"blocks.closeButton": "Close",
Expand All @@ -751,7 +751,7 @@
"selectColumns": "Select Columns",
"cddd.dateRequired": "Date*",
"cddd.timeRequired": "Time*",
"additionalInfo.label": "Additional information*",
"additionalInfo.label": "Additional information",
"additionalInfo.placeholder": "Enter more information about the override (required)",
"button.override": "Override",
"override.emptyNewDueDate": "Select due date above",
Expand All @@ -774,7 +774,7 @@
"blocks.layer.newBlockTitle": "New Block",
"accounts.totalOpenAccounts": "(Total: {amount})",
"accounts.error.select": "Select one",
"accounts.pay.field.ownerDesk": "Fee/fine owner desk*",
"accounts.pay.field.ownerDesk": "Fee/fine owner desk",
"accounts.pay.field.infoPatron": "Additional information for patron",
"accounts.pay.owner.placeholder": "Select desk",
"accounts.pay.method.placeholder": "Select type",
Expand All @@ -796,5 +796,16 @@
"transfers.columns.desc": "Description",
"transfers.modalHeader": "Delete transfer account",
"transfers.singular": "Transfer account",
"transfers.nodata": "There are no Fee/fine: Transfer accounts"
"transfers.nodata": "There are no Fee/fine: Transfer accounts",
"payments.nodata": "There are no Fee/fine: Payment methods",
"details.button.new": "New staff info",
"accounts.cancelError": "Cancelled as Error",
"accounts.comment.staffInfo": "New staff info",
"blocks.additionalReasons": "View block details to see additional reasons for block...",
"accounts.status.partially": "partially",
"accounts.status.fully": "fully",
"accounts.actions.payment": "payment",
"accounts.actions.waive": "waive",
"accounts.actions.tag.staff": "STAFF",
"accounts.actions.tag.patron": "PATRON"
}
2 changes: 1 addition & 1 deletion translations/ui-users/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@
"blocks.message":"patron block will be removed",
"blocks.textField.place":"Patron has blocks in place",

"additionalInfo.label": "Additional information*",
"additionalInfo.label": "Additional information",
"additionalInfo.placeholder": "Enter more information about the override (required)",

"button.override": "Override",
Expand Down
Loading

0 comments on commit 7f99776

Please sign in to comment.