Coder Social home page Coder Social logo

Comments (9)

 avatar commented on May 26, 2024

@WouterSioen i'll take a look at this when my essay is done, probably it will be during the summer if it still needs to be done then.
Are you guys planning to use the XLIFF format to store the translations?

from forkcms.

WouterSioen avatar WouterSioen commented on May 26, 2024

I think we will still store the translations in a database system to make them editable for clients who don't have access to the repo. Export/import in xliff would be great though.

from forkcms.

 avatar commented on May 26, 2024

I guess we better have a chat about this at the meetup 😊

-----Oorspronkelijk bericht-----
Van: "Wouter Sioen" [email protected]
Verzonden: ‎17/‎02/‎2015 8:59
Aan: "forkcms/forkcms" [email protected]
CC: "John Poelman" [email protected]
Onderwerp: Re: [forkcms] Refactor locale module using Translation (#408)

I think we will still store the translations in a database system to make them editable for clients who don't have access to the repo. Export/import in xliff would be great though.

Reply to this email directly or view it on GitHub.

from forkcms.

carakas avatar carakas commented on May 26, 2024

@guytarded any update on this?

from forkcms.

jeroendesloovere avatar jeroendesloovere commented on May 26, 2024

Have the core devs talked about which file format they would prefer; XML, PHP or YAML?

from forkcms.

carakas avatar carakas commented on May 26, 2024

I personally prefer yaml, I've seen those XLIFF and they are just unreadable

from forkcms.

jeroendesloovere avatar jeroendesloovere commented on May 26, 2024

What do you guys think of the following:

  • Yaml files everywhere
  • A "locale" module, which "shows" (read-only) all the translations from the yaml files. With the advantage that you can add your "custom overwrite", which will be added to a database table. So if you have no custom overwrites, this database table is empty.

Then the translator library can:

  • Load in all yaml files - using its symfony caching mechanism.
  • Inject an array in the translator with only the "custom" translations (which you have inserted in the locale module). Because custom overwrites are so rare.

So we have best of both worlds.
=> What do you think?

from forkcms.

jeroendesloovere avatar jeroendesloovere commented on May 26, 2024

Note to myself: check out this bundle https://github.com/lexik/LexikTranslationBundle

=> Which does exactly what I described.
Loading in files
Overwriting with custom translation.

from forkcms.

carakas avatar carakas commented on May 26, 2024

why would you split that up in two different modules? That will only be confusing

from forkcms.

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.