Comments (9)
@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.
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.
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.
@guytarded any update on this?
from forkcms.
Have the core devs talked about which file format they would prefer; XML, PHP or YAML?
from forkcms.
I personally prefer yaml, I've seen those XLIFF and they are just unreadable
from forkcms.
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.
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.
why would you split that up in two different modules? That will only be confusing
from forkcms.
Related Issues (20)
- Pages - preview url for home HOT 1
- Pages - rename HTML field HOT 1
- Core - addCSS and addJS
- Env variables in parameters.yml are not supported on module list HOT 2
- Profiles module frontend, users need to login twice HOT 8
- Pages - Broken usertemplates HOT 2
- Send email from within ajax callback HOT 1
- GenerateUrl ajax call error HOT 3
- Formbuilder : Labels with special chars HOT 2
- Error 500 in 5.11 release. Missing autoload.php HOT 10
- Breadcrumbs: code "if loop last" removes delimiter in pure bootstrap HOT 4
- Can't add links to images in editor HOT 1
- Add toggles to MediaLibrary and disable default 'strip' functionality
- Locale - Only rows with the "label" type fields are exported, the rest are ignored HOT 1
- Fix htaccess redirect for URL's which contain "bin/" HOT 1
- Exception when creating entities during Module install HOT 1
- Problem with Cache component and igbinary
- Broken search live results
- Frontend login or logout logs you out of the backend HOT 2
- forkcms 6 phpunit broken for php8.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forkcms.