-
Notifications
You must be signed in to change notification settings - Fork 461
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
cleanup extract-db-locale-terms.php script #6960
Conversation
Does the outcome change |
No and that's the point - to ensure the outcome is consistently the same regardless of what platform ran it. |
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 did a test on my local box, there are missing terms (countries) and the order has been changed...
I don't see how this change and the results you've seen are related |
Is the order important? I'm making some changes of my own that I hope to push soon, and it would be better if the part of the job that needs database access runs first. Then if it fails nothing else runs. Right now you can have an inconsistent end result due to partial failure. If order is important I can change it so the database part runs first, but it assembles the files in the correct order. |
oder is not important as long it does not change from run to run... this way we can tell what changed... |
I just did a build test going back to commit d88ef89 and there is still a change of order and missing countries. Very odd. Checking the last committed version of locale/messages.po I see some change of order, but the countries are there. I'll continue investigating. |
After those changes all the missing data is back again, but the order is still different. Unless Line 5 in da27702
I have no idea how the previous order came about. |
Best guess is something else has sorted the last committed messages.po file contents by the age of the original file. A strictly alphabetical sort of the file names would have all the api message strings first, which is what I'm getting. |
does this address #1432 |
Alternatively, we fix the 1 bad locale which has |
Okay, that to needs to be fixed. My understanding is \r is not allowed in gettext -- \n is. The translation system will translate \n to \r on a system that needs it, but \n is the only valid line ending that is allowed to be stored. So we need to replace \r, and \r with \n to have those warnings go away as the gettext strings will then be completely valid. |
Translated this string:
🤦 |
8411b5d
to
3dee8a2
Compare
3dee8a2
to
158e831
Compare
…ChurchCRM/CRM into cleanup-extract-db-locale-terms
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.
Tweak the formatting so that it works.
@DawoudIO is this good to go on your end? I think @respencer fixed the issue you found |
# Description & Issue number it closes <!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. --> @respencer and I chatted and found some areas for cleanup in this script ## How to test the changes? N/A --------- Co-authored-by: Robert Spencer <respencer@users.noreply.github.com>
Description & Issue number it closes
@respencer and I chatted and found some areas for cleanup in this script
How to test the changes?
N/A