-
-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OBPIH-5177 update missing translations on transaction report #3759
OBPIH-5177 update missing translations on transaction report #3759
Conversation
5ca0c25
to
86bd5f1
Compare
<th><g:message code="default.date.label" default="Date"/></th> | ||
<th><g:message code="default.time.label" default="Time"/></th> | ||
<th><g:message code="transaction.transactionType.label" default="Type"/></th> | ||
<th><g:message code="report.transactionType.transactionCode.label" default="Transaction Code"/></th> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's include the missing code to message.properties instead of adding a brand new code.
transactionType.label=Transaction Type
transactionType.transactionCode.label=Transaction Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the transactionType.label
is already an existing translation code, here I only added the default message
<th><g:message code="transaction.transactionType.label" default="Type"/></th>
<th><g:message code="transaction.transactionType.label" default="Type"/></th> | ||
<th><g:message code="report.transactionType.transactionCode.label" default="Transaction Code"/></th> | ||
<th><g:message code="default.quantity.label" default="Quantity"/></th> | ||
<th><g:message code="report.quantityBalance.label" default="Balance"/></th> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer leaving this as default.balance.label
@@ -112,7 +116,8 @@ | |||
name="tags" | |||
id="tags" | |||
value="${params?.tags}" | |||
multiple="true" | |||
data-placeholder="${g.message(code: "default.selectSomeOptions.label", default: "Select some option")}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to
default.selectOptions.label=Select Options
I think the default "Select some option(s)" (or whatever) is provided by the chosen plugin and I'm not a fan.
<g:selectCategory | ||
id="category" | ||
class="chzn-select-deselect filter" | ||
data-placeholder="${g.message(code: 'product.selectACategory.label', default: 'Select a category')}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In cases where the label / message has an article (a, the, etc) you can exclude the article in the code (even if you keep it in the translated value).
product.selectCategory.label=Select a category
also for this one the namespace should be category.
category.selectCategory.label=Select a category
86bd5f1
to
a49835f
Compare
@drodzewicz this one has conflicts |
@drodzewicz @kchelstowski As we discussed last week, once the PR is ready for review just remove all labels i.e. don't add |
a49835f
to
9ae6edf
Compare
9ae6edf
to
c4b0e9e
Compare
No description provided.