Translation
What's planned in regard to translation? I didn't see anything on the roadmap.
I would prefer it when the project integrated with a service like transifex so people without or very little code and git knowledge can easily contribute.
Transifex is gratis for open source projects. And it is pretty easy to integrate and more importantly easy to use.
+1 For mosaico we're using Transifex and I have to say it works fine. https://github.com/voidlabs/mosaico/tree/master/res/lang
The good think in Transifex is that the translation can be collaborative and when you add new string translators will be able to easily see what they need to complete.
Generally, as I'm not an native english speaker either, I support adding translations. At this point though it would mean too much work as the code and strings change all the time. I would defer this until there's some actual stability reached.
Ten months later, has actual stability been reached? At minimum, I need to translate the templates in views/emails. @andris9 what's your call? i18n-node?
Translation support now exists
@andris9 how do you translate the project?
Do i just copy the .po file and start translating or do you plan to integrate the project in a service like transifex. Which is very handy because you can notify your translators, when you prepare a new release.
@lightonflux, see: https://github.com/andris9/mailtrain/blob/master/README.md#translations
In case you need german translation, I'm 90% done.
Thanks.
I'm 90% done.
Nice. Looking forward to test it!
@lightonflux, de_DE is in master now.
It would be great if you could polish it up a bit, since Hochdeutsch isn't my native language. :)
Tried to use it with the docker setup by changing the language key to "de". But when starting with docker-compose i only get EN. :(
I am ready to help with the german translation. But I need somehow to get it working with docker as well. I tried all the options. I think I should only change the setting in production.toml to
language="de_DE"
then, docker-composer build and start again, no? But somehow it always stays in english, even with "zz" and others.
This is correct! I´m finishing up Brazilian Portuguese pt_BR and French FR.
Thanks,
https://news.bonn.digital But why does it keep showing the english version of it? Is there a way to debug the options in docker?
Oh I see, maybe Docker uses a template, in this case you would need to modify the template. I´ll install a docker version and see how it goes.
Thanks,
I found the solution (not well documented, I guess):
I had to change some things in docker-compose.override.yml, so it doesn't need to copy files from the server into docker, but uses the folders directly, where I can make changes, which get into effect with the next rebuild. I am not shure, what will happen, when I download a fresh copy via git, but I hope that .gitignore will work well and not overwrite my changes.
version: '2'
services:
mysql:
restart: always
redis:
restart: always
mailtrain:
build: ./
volumes:
- "/home/mailtrain/config/production.toml:/app/config/production.toml"
- "/home/mailtrain/languages/de_DE.mo:/app/languages/de_DE.mo"
- "/home/mailtrain/languages/de_DE.po:/app/languages/de_DE.po"
ports:
- "3000:3000"
restart: always
Great to hear that you got it working. But it feels wrong that you need to explicitly exclude files and manage them manually just to get translations working.
Do we need a separate bug report for this?
I guess the documentation and the dockerfile are already in change, just the master-version doesn't reflect this. So I don't think so.
This is correct! I´m finishing up Brazilian Portuguese pt_BR and French FR.
Thanks,
Have you finished the translation into Portuguese?
Thanks.
I'm also having the language issue, do I have to do like @saschafoerster to make a different language work?