Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Contenttype translation updates automatically any time #5703

Closed
sibputnik opened this issue Aug 24, 2016 · 13 comments
Closed

[BUG] Contenttype translation updates automatically any time #5703

sibputnik opened this issue Aug 24, 2016 · 13 comments

Comments

@sibputnik
Copy link

sibputnik commented Aug 24, 2016

Bolt uses auto-created translation for contenttypes in backend any time. When I go to "translation-contenttypes" I have newly created app/resources/translations/ru/contenttypes.ru.yml any time.
What I done:

  • Set ru_Ru or Ru localce.
  • Add new contenttypes.
  • Update database

And now I can refresh contenttypes translatin page and have new generates translation each time. I can change contenttypes.ru.yml by external editor or in Bolt backend, but it not give any changes - contenttype options in backend is still without translation.

Each time I open contenttypes.ru.yml, I see new creation time in first line (e.g. # app/resources/translations/en_GB/contenttypes.ru.yml – generated on 2016-08-24 15:44:53 Europe/Moscow)

I can change contenttypes.entries.text.* or contenttypes.showcases values and it saves. But if I change translation for my contenttype, it not saves,

I set locale to en_Gb and have same problem.
My contenttypes works correctly in backend and frontend (templates).

Details

  • Relevant Bolt Version: 3.0.12
  • Install type: Zip/tarball install
  • PHP version: 5.6-x64
  • Used web server: Apache 2.4-x64
@sibputnik
Copy link
Author

hey! Can anybody fix this?

@sibputnik
Copy link
Author

heeeeeeeeeeeey!!!

@GwendolenLynch
Copy link
Contributor

Those translations are currently distributed by Bolt, as that part of the translations is not quote finished.

@sibputnik
Copy link
Author

sibputnik commented Sep 19, 2016

Can I disable translation auto-generation? I need my translation for my contenttypes

@bobdenotter
Copy link
Member

Hi,

No, you cannot do that currently.. If you really wish to prevent Bolt from updating the files, you should edit them in an external editor.

@rarila
Copy link
Contributor

rarila commented Sep 20, 2016

@sibputnik I don’t know what’s goes wrong on your side but it absolutely should work.

The date you see in the editor is always a new date as it is the date the file is generated and not the date the file is written. When opening the translation page the file is read, data extracted, missing translations get added, translations get sorted by category. So no user edited translations are overwritten. Could it be that your translations won’t be actually saved at all?

(Btw, removing access rights to that file sends us to the debbugger with an ContextErrorException, but that’s another problem then:-)

@sibputnik
Copy link
Author

sibputnik commented Sep 20, 2016

bobdenotter, I edit translation in external editor, but it recreates each time I open backend (any part of backend)

@rarila
Copy link
Contributor

rarila commented Sep 21, 2016

@sibputnik You mean contenttypes.ru.yml gets overwritten automatically by just being in backend?

@sibputnik
Copy link
Author

In russian not all can be auto-translated by flat logic, so after auto-translation I need correct it by hands.

@rarila
Copy link
Contributor

rarila commented Sep 22, 2016

@sibputnik Could it be that you didn’t remove the comment sign # from the edited translation?

@GwendolenLynch
Copy link
Contributor

Just a note, Russian is one of the great examples of why we need to look very seriously at how we're (not properly) using Symfony's translation component … Apparently, Russian isn't very forgiving as a language in this way 😄

@sibputnik
Copy link
Author

sibputnik commented Oct 31, 2016

@rarila where I need to remove # ? Any special line or near changed line?

@GwendolenLynch
Copy link
Contributor

Automatic translation of ContentTypes was removed in #6802 and it is now possible to specify site specific translation files. This will land in a stable release in the coming days when 3.3.0 is tagged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants