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

Improve I18n schema by including comments and default and NOT NULL or… #14484

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

seamuslee001
Copy link
Contributor

… NULL statements to be more consistant with non lingual schema

Overview

This adds more information to the I18n schema structure so that when the translated schema is created it is more similar to the non multilingual schema

Before

New columns that are added may not have correct default or missing comments

After

More consistent schema

ping @mlutfy @pfigel @eileenmcnaughton thoughts?

@civibot
Copy link

civibot bot commented Jun 9, 2019

(Standard links)

@civibot civibot bot added the master label Jun 9, 2019
@seamuslee001 seamuslee001 force-pushed the l18n_improved_schema branch from 33a0a87 to e22beda Compare June 9, 2019 00:51
… NULL statements to be more consistant with non lingual schema

Minor improvement
@seamuslee001 seamuslee001 force-pushed the l18n_improved_schema branch from e22beda to b2f1ab2 Compare June 9, 2019 00:55
@mlutfy
Copy link
Member

mlutfy commented Jun 13, 2019

I agree on the concept, this would be a nice improvement.

I slightly worry on the duplication. We could run into issues where a description is changed in an XML schema file, but not updated in this i18n file. Probably an exception that does not happen often: some time ago, the interpretation of a field was reversed (is_something).

(not against merging, just raising the concern)

@seamuslee001
Copy link
Contributor Author

@mlutfy i think that is the same issue as ensuring DAOs are regenerated etc (which btw this file gets generated when you generate the DAOs by ./bin/setup.sh -g or ./bin/regen.sh)

@eileenmcnaughton
Copy link
Contributor

I think @seamuslee001 is correct - this is 'the same' as the main DAOS - merging based on otherwise positive feedback

@eileenmcnaughton eileenmcnaughton merged commit 43574a3 into civicrm:master Jun 13, 2019
@eileenmcnaughton eileenmcnaughton deleted the l18n_improved_schema branch June 13, 2019 20:38
@mlutfy
Copy link
Member

mlutfy commented Jun 13, 2019

Perfect, thank you!

@MegaphoneJon
Copy link
Contributor

This seems to have caused a regression - it was caught earlier (translation#38, possible core#1800 as well) but isn't recent at this point, so I didn't tag #20753 as a regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants