-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Empty translation for default language gets added always #2507
Comments
Which versions of globalize and refinerycms are you using, please? |
I have the problem in two projects: first:
second:
|
The second shouldn't have this problem.. Hmm. So for some reason it's got an unpersisted translation for the page? |
Yes..and I really did nothing magic or so on.. Just default refinerycms setup. In one project I have an own extension, but that´s not the problem. |
cc @shioyama .. sorry |
Hmm... the latest AR3 version of globalize is 3.0.2, but there's nothing between 3.0.1 and 3.0.2 related to this, so it looks like a bug. I'll see if I can isolate a test that reproduces this, but if you could write one that would make it easier to solve. i.e. take refinery out of the picture and see if you can reproduce the same behaviour. |
p.s. I would recommend updating the first project to |
Ok I don't see this in a vanilla globalized model, so it's coming from something refinery is doing. I can help but I don't know refinery well so it would help to investigate a bit further and figure out where it's coming from. Perhaps related to #2462? |
Case 1:
Case 2:
So there must be a problem with refinery frontend locales or something similar? I do not get it..hmm.. The backend looks good and it works with globalize, everything gets saved correctly. But in the frontend there is a problem.. |
Sometimes I think we should delete all translation functionality and rebuild it with the current versions of globalize. |
Isn't this just some kind of interface issue, unrelated to the backend (globalize, etc.)? Looks that way to me. |
I have "de" as default language. If I add a page and change the language to "en" and only save the new "en" translated page I have a new page with one "en" translation in the database - so far so good, that´s what I want.
But if I now do this for my locales menu:
app/helpers/application_helper.rb
I will get:
As you can see there is an "empty" translation for "de" - and I really have no idea why? I do not magic stuff or something like that, but it is annoying..I have to filter out all these "empty" translations.. on locales menu, navigation, subnavigation, subsubnavigation, and so on..
Anyone an idea what´s wrong here?
I think that´s the top of the mountain of the following issues:
#2487
#2488
The text was updated successfully, but these errors were encountered: