-
Notifications
You must be signed in to change notification settings - Fork 22
Feat/translation #348
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/translation #348
Conversation
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.
Looks sweet! Only one question that needs resolved...
spec/validation_spec.rb
Outdated
# and point schemaLocation to it instead | ||
schema_doc = Nokogiri::XML(File.read('BuildingSync.xsd')) | ||
|
||
GEOJSON_XSD_PATH = 'geojson.xsd' |
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.
Isn't this supposed to be GBXML_XSD_PATH and not GEOJSON?
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.
whoops, not sure how that happened, I'll get that fixed
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.
terminology leaking from other projects :(
``` | ||
Then transform your file(s) with | ||
```bash | ||
xsltproc [-o <output>] <stylesheet> <file> [<file> ...] |
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.
👍
</xsl:template> | ||
|
||
<!-- Map "Repair leaks / seal ducts" to "Repair leaks in ducts" --> | ||
<xsl:template match="auc:MeasureName[. = 'Repair leaks / seal ducts']"> |
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.
noice!
These files are no longer used
3004b72
to
9088d45
Compare
@aviveiros11 or @JieXiong9119 can one of you also take a look at this? |
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.
Worked as expected for me 🚀
I just tested it on pc. Working fine! |
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.
looks shweet! Thanks for fixing the GeoJSON name.
Any background context you want to provide?
BuildingSync v3 is being developed with breaking changes from v2
What does this PR do?
Creates the translation file for transforming breaking v3 changes from v2 bsync instance documents.
This includes translations for the breaking changes that were already merged into v3:
/
with spaces #335How should this be manually tested?
See validation_spec.rb. You can run locally and see the translated v2 file in spec/output
What are the relevant tickets?
#347