Giter Club home page Giter Club logo

Comments (3)

mangerlahn avatar mangerlahn commented on May 25, 2024

Apple also updated their identifiers for plurals in .xliff files. Plus, they added syntax for conditionals to provide additional strings under certain conditions like device type etc.. These changes to xliff files apply only when String Catalog files are used within Xcode. I believe both types of syntax can occur within one xliff file. More at 23:30 in the above mentioned session.

from translate.

nijel avatar nijel commented on May 25, 2024

It's always annoying to implement support for a format that is not documented. We can definitely look for existing examples (like https://github.com/liamnichols/xcstrings-tool-demo/blob/main/DogTracker/Localizable.xcstrings), but that doesn't have to cover all the features and might be fragile. If the format is desired for interoperability, having a JSON schema for it would be the best approach.

The good thing on using the XLIFF ids is that the XLIFF file will just work (similar to #4614). The only drawback is that the plural forms will be shown as individual forms instead of as a plural forms of a single string.

from translate.

nijel avatar nijel commented on May 25, 2024

Quoting https://forums.developer.apple.com/forums/thread/732120?answerId=756602022#756602022:

As for the specifics of the JSON format itself, we have not published documentation because it is primarily intended to be read/written by Xcode. If you do end up writing your own parser for this format, please be aware that Xcode reserves the right to change it.

So they apparently consider the format private and will not be helpful. Still, from a Weblate perspective, it might be useful to support it.

from translate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.