• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mirego / accent / 187
76%

Build:
DEFAULT BRANCH: master
Ran 31 Mar 2019 08:25PM UTC
Jobs 1
Files 245
Run time 11s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
187

push

travis-ci-com

web-flow
Add basic support for XLIFF 1.2 file format (#79)

![image](https://user-images.githubusercontent.com/464900/55203015-35c17980-51a0-11e9-8647-d91209c7b6de.png)

## Issue
📚 https://github.com/mirego/accent/issues/21

## Feature
This is a basic implementation of the XLIFF 1.2 format. This format is used heavily in a lot of translations related tool (and in XCode) so I may have missed some of the implementation details. But it’s a good start for someone who want to contribute to Accent 😉 

## Refactor
This format is a bit trickier than other since it required the master language to export the targets. We needed to refactor some module to use the master language in the serialization process. Also, not needed but cleaner, we wrap the document’s key `top_of_the_file_comment` and `header` inside a new struct `Language.Document`. This will become handy if we ever need to add an attribute to the document OR if we add a different attribute to the serialization input.

## Next steps
This format includes 2 new dependencies to handle XML encode and decode. _Why not use the same XML library used for the XML Android format?_ Because… \*drum roll\* The `<source>` XML tag when encoded by the `mochiweb_html` module is a self closing tag (per the HTML spec) 🥇 

Since those 2 new deps are required for the XLIFF format and can pretty print XML, we should use them _instead of `mochiweb`_ 🎉

1440 of 1470 relevant lines covered (97.96%)

15.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 187.1 31 Mar 2019 08:25PM UTC 0
97.96
Travis Job 187.1
Source Files on build 187
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #187
  • ae0df57d on github
  • Prev Build on master (#188)
  • Next Build on master (#189)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc