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

(feat)add translations to reports module #611

Merged
merged 13 commits into from
Dec 6, 2023
Merged

(feat)add translations to reports module #611

merged 13 commits into from
Dec 6, 2023

Conversation

jona42-ui
Copy link
Contributor

@jona42-ui jona42-ui commented Nov 23, 2023

Objective

Add translations to report module

Screens

Screenshot from 2023-12-05 23-53-35
Screenshot from 2023-12-05 23-53-57
Screenshot from 2023-12-05 23-54-18
Screenshot from 2023-12-05 23-54-37
Screenshot from 2023-12-05 23-55-04

Screenshot from 2023-12-06 12-35-22

@jona42-ui
Copy link
Contributor Author

cc @mozzy11

@mozzy11
Copy link
Collaborator

mozzy11 commented Nov 24, 2023

Thanks @jona42-ui .
can you attach the screenshots for translated pages for both languages?
Also, you don't need to include a default message as the translation logic already includes a default
message

ie instead of <FormattedMessage id="sidenav.label.statusreport" defaultMessage="Patient Status Report"/> ,
just do <FormattedMessage id="sidenav.label.statusreport"/>

@jona42-ui
Copy link
Contributor Author

Thanks @jona42-ui . can you attach the screenshots for translated pages for both languages? Also, you don't need to include a default message as the translation logic already includes a default message

ie instead of <FormattedMessage id="sidenav.label.statusreport" defaultMessage="Patient Status Report"/> , just do <FormattedMessage id="sidenav.label.statusreport"/>

thanks @mozzy11
can you now look at the screen cast for both pages?
Sure, let me revert the default thing

@jona42-ui
Copy link
Contributor Author

Screenshot from 2023-12-01 11-03-12
@mozzy11 what may be the cause of this, it consistently happens when I access the instance in the browser.

backend_logs.txt

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 1, 2023

you seem to be having a corrupted db . clean your docker db volumes and start afresh . its caused by a liquibase error

@jona42-ui
Copy link
Contributor Author

This has persisted am not sure how to get over this.
am not sure if its my machine with issues

@jona42-ui
Copy link
Contributor Author

the error still persists, what i did was;
sudo docker-compose -f dev.docker-compose.yml down
then;
sudo docker volume rm openelis-global-2_db-data
then;

sudo docker-compose -f dev.docker-compose.yml up -d
just I got proxy issues and remapped these ports
portsm

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 1, 2023

can we jump on a call

@jona42-ui
Copy link
Contributor Author

sure
sorry i was off abit

@jona42-ui
Copy link
Contributor Author

can we do on meet?
https://meet.google.com/fky-czvm-gia

@jona42-ui
Copy link
Contributor Author

or we can schedule probably at a better time for you

@jona42-ui
Copy link
Contributor Author

but I think you need to add me to the slack channel

@jona42-ui
Copy link
Contributor Author

for better communication

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 4, 2023

can you ping caesy on this thread

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 4, 2023

can you also fix your merge conflicts ??

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 4, 2023

are you there ??

@jona42-ui
Copy link
Contributor Author

yes I am there @mozzy11

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 4, 2023

were you able to run the setup ??

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 4, 2023

can we have a quick call ??

@jona42-ui
Copy link
Contributor Author

Yes i did when I sent the other PR but now its the same case

@jona42-ui
Copy link
Contributor Author

its now failing again

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 4, 2023

@jona42-ui
Copy link
Contributor Author

jona42-ui commented Dec 4, 2023 via email

@jona42-ui
Copy link
Contributor Author

hello @mozzy11 the logs show same errror with;

Screenshot from 2023-12-04 17-11-03

@jona42-ui
Copy link
Contributor Author

its up now. all oaky after spinning up fresh containers

@jona42-ui
Copy link
Contributor Author

jona42-ui commented Dec 4, 2023

though this PR is ready for review

@jona42-ui
Copy link
Contributor Author

am just looking into another component

@jona42-ui
Copy link
Contributor Author

Sorry i need to make more clean ups here

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 4, 2023

can you also attach the screen shots ??

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 5, 2023

@jona42-ui can you attach screen shots of both the pages you've added translations ??

@jona42-ui
Copy link
Contributor Author

ooh! okay though basically it was menu items
I was wondering how to translate the forms/reports from the dynamically constructed URLs

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 5, 2023

are you able to run openelis succesully ??

@jona42-ui
Copy link
Contributor Author

yes its running successfully

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 5, 2023

Alright , can you attach the screenshots of the translated pages ??

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 5, 2023

was wondering how to translate the forms/reports from the dynamically constructed URLs

i ddnt get you comment above

@jona42-ui
Copy link
Contributor Author

So, just to be sure am getting this well,, what is attached now above in the description is not what you expect?

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 5, 2023

are those the updated screenshots that reflect your current changes ??

@mozzy11
Copy link
Collaborator

mozzy11 commented Dec 5, 2023

are you done with any cleanups you wanted to do ??
ensure you update the screenshots that reflect your current changes

@jona42-ui
Copy link
Contributor Author

alright @mozzy11 just winding up, will make sure all is up to date

@jona42-ui
Copy link
Contributor Author

Thanks

@jona42-ui
Copy link
Contributor Author

Updated!
@mozzy11

@jona42-ui
Copy link
Contributor Author

As a follow up in another PR is translating this;
Screenshot from 2023-12-05 23-58-42

though I will need guidance on how!

@jona42-ui
Copy link
Contributor Author

@mozzy11 does this align your expectations?

icon: IbmWatsonNaturalLanguageUnderstanding,
SideNavMenuItem: [
{
link:
config.serverBaseUrl +
"/Report?type=indicator&report=activityReportByTest",
label: "By Test Type",
label: <FormattedMessage id="sideNav.label.bytesttype"/>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

did you just forget the english translation for this ??

@@ -179,6 +179,58 @@
"sidenav.label.admin.organizationmgt" : "Organization Management" ,
"sidenav.label.admin.usermgt" : "User Management",
"sidenav.label.admin.labNumber" : "Lab Number Management",
"sidenav.title.statusreport":"Patient Status Report",
"sidenav.label.statusreport": "Patient Status Report",
Copy link
Collaborator

Choose a reason for hiding this comment

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

you should avoid duplication of texts. just use a single text code for a similar text

Copy link
Contributor Author

Choose a reason for hiding this comment

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

my bad!
Thanks @mozzy11

@mozzy11 mozzy11 merged commit b9464b3 into I-TECH-UW:2.8 Dec 6, 2023
1 check passed
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.

2 participants