Skip to content
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

Conversation

drodzewicz
Copy link
Collaborator

No description provided.

@drodzewicz drodzewicz self-assigned this Jan 5, 2023
@drodzewicz drodzewicz force-pushed the OBPIH-5177-not-translatable-with-crowdin-in-transactions-report branch from 5ca0c25 to 86bd5f1 Compare January 5, 2023 15:25
@drodzewicz drodzewicz requested review from kchelstowski and jmiranda and removed request for kchelstowski January 5, 2023 15:26
<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>
Copy link
Member

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

Copy link
Collaborator Author

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>
Copy link
Member

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")}"
Copy link
Member

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')}"
Copy link
Member

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

@drodzewicz drodzewicz force-pushed the OBPIH-5177-not-translatable-with-crowdin-in-transactions-report branch from 86bd5f1 to a49835f Compare January 9, 2023 11:39
@jmiranda
Copy link
Member

@drodzewicz this one has conflicts

@jmiranda
Copy link
Member

@drodzewicz @kchelstowski As we discussed last week, once the PR is ready for review just remove all labels i.e. don't add ready for review. It's easier to spot the PRs that are ready for review if there are no labels.

@drodzewicz drodzewicz force-pushed the OBPIH-5177-not-translatable-with-crowdin-in-transactions-report branch from a49835f to 9ae6edf Compare January 10, 2023 15:20
@drodzewicz drodzewicz force-pushed the OBPIH-5177-not-translatable-with-crowdin-in-transactions-report branch from 9ae6edf to c4b0e9e Compare January 10, 2023 15:24
@jmiranda jmiranda merged commit f3eed1d into develop Jan 10, 2023
@jmiranda jmiranda deleted the OBPIH-5177-not-translatable-with-crowdin-in-transactions-report branch January 10, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants