mailtrain icon indicating copy to clipboard operation
mailtrain copied to clipboard

Translation

Open lightonflux opened this issue 10 years ago • 18 comments

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.

Guide for github

lightonflux avatar Apr 16 '16 07:04 lightonflux

+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.

bago avatar Apr 16 '16 16:04 bago

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.

andris9 avatar Apr 26 '16 12:04 andris9

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?

witzig avatar Feb 27 '17 12:02 witzig

Translation support now exists

andris9 avatar Mar 21 '17 11:03 andris9

@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 avatar Mar 21 '17 12:03 lightonflux

@lightonflux, see: https://github.com/andris9/mailtrain/blob/master/README.md#translations

In case you need german translation, I'm 90% done.

witzig avatar Mar 21 '17 12:03 witzig

Thanks.

I'm 90% done.

Nice. Looking forward to test it!

lightonflux avatar Mar 21 '17 12:03 lightonflux

@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. :)

witzig avatar Mar 21 '17 13:03 witzig

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. :(

lightonflux avatar Jan 14 '18 15:01 lightonflux

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.

saschafoerster avatar Mar 08 '18 14:03 saschafoerster

This is correct! I´m finishing up Brazilian Portuguese pt_BR and French FR.

Thanks,

mailanetworks avatar Mar 08 '18 14:03 mailanetworks

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?

saschafoerster avatar Mar 08 '18 15:03 saschafoerster

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,

mailanetworks avatar Mar 08 '18 15:03 mailanetworks

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

saschafoerster avatar Mar 08 '18 16:03 saschafoerster

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?

lightonflux avatar Mar 11 '18 18:03 lightonflux

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.

saschafoerster avatar Mar 13 '18 12:03 saschafoerster

This is correct! I´m finishing up Brazilian Portuguese pt_BR and French FR.

Thanks,

Have you finished the translation into Portuguese?

Thanks.

rafaelpouzada avatar Jan 15 '19 12:01 rafaelpouzada

I'm also having the language issue, do I have to do like @saschafoerster to make a different language work?

mmomasters avatar Apr 02 '19 13:04 mmomasters