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-5076 Add missing translation labels on stock movement #3672

Conversation

drodzewicz
Copy link
Collaborator

No description provided.

@drodzewicz drodzewicz self-assigned this Nov 29, 2022
Copy link
Collaborator

@awalkowiak awalkowiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmiranda do we want to go with g:message -> warehouse:message change, or we're waiting with the g:message investigation?

@jmiranda
Copy link
Member

jmiranda commented Dec 2, 2022

@jmiranda do we want to go with g:message -> warehouse:message change, or we're waiting with the g:message investigation?

I would prefer to wait on the investigation so we don't needlessly change this all around.

@drodzewicz drodzewicz force-pushed the OBPIH-5076-elements-of-the-shipment-view-page-not-translatable-with-crowdin branch 2 times, most recently from c79ef9d to dbef1e2 Compare December 7, 2022 14:14
@drodzewicz
Copy link
Collaborator Author

I have rolled back my changes where I changed g:message into warehouse:message since we have kind of figured out why it wasn't translating labels.

@@ -130,7 +130,12 @@
<g:message code="stockMovement.status.label"/>
</td>
<td class="value">
<format:metadata obj="${stockMovement?.shipment?.status?:stockMovement?.statusCode}"/>
<g:if test="${stockMovement?.shipment?.status}">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@drodzewicz Is there a reason behind this change into if-else? You could add the ?.code to the first part and have the same result:
<format:metadata obj="${stockMovement?.shipment?.status?.code ?: stockMovement?.statusCode}"/>

@@ -166,7 +166,12 @@
<warehouse:message code="stockMovement.status.label"/>
</td>
<td class="value">
<format:metadata obj="${stockMovement?.shipment?.status?:stockMovement?.requisition?.status }"/>
<g:if test="${stockMovement?.shipment?.status}">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as above

@drodzewicz drodzewicz force-pushed the OBPIH-5076-elements-of-the-shipment-view-page-not-translatable-with-crowdin branch from dbef1e2 to e421632 Compare December 8, 2022 16:44
@awalkowiak awalkowiak merged commit c31491f into develop Dec 8, 2022
@awalkowiak awalkowiak deleted the OBPIH-5076-elements-of-the-shipment-view-page-not-translatable-with-crowdin branch December 8, 2022 17:44
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