|
List Info
Thread: Document translation issues
|
|
| Document translation issues |

|
2006-09-22 08:19:32 |
Le 21 sept. 2006, à 14:45, Mikel Larreategi a écrit :
> Hi:
>
> If I create a document in my CPS site and translate it
into other
> languages, I always see the last version of the
document (the last
> translation) although I switch the language.
>
> Nevertheless, if I log in anonymously or with another
login, when I
> switch the language, I get the correct version of the
document.
>
> Is normal this behaviour?
Not exactly, what's your CPS version?
>
> Steps to reproduce:
>
> - Log in and go to your workspace.
> - Create a 'Web Document' and input some text.
> - Translate it into another language.
> - Switch language in the portal, always the last
translation is shown.
> - Submit the document for publishing in a section.
> - Log out.
> - Log in as a user that has reviewing rights in the
section.
> - Accept the document.
> - Switch the language of the portal, correct
translation of the
> document
> is shown.
>
> If I log in with the user who created the document, I
can only see its
> translations in the section but not in my workspace.
>
> Regards,
>
> Mikel Larreategi
>
>
> --
> Mikel Larreategi
> mlarreategi codesyntax.com
>
> CodeSyntax
> Azitaingo Industrialdea 3 K
> E-20600 Eibar
> Tel: (+34) 943 82 17 80
> _______________________________________________
> cps-users mailing list
> cps-users lists.nuxeo.com
> htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|
|
| Document translation issues |

|
2006-09-22 08:35:59 |
Georges Racinet(e)k dio:
>
> Le 21 sept. 2006, à 14:45, Mikel Larreategi a écrit :
>
>> Hi:
>>
>> If I create a document in my CPS site and translate
it into other
>> languages, I always see the last version of the
document (the last
>> translation) although I switch the language.
>>
>> Nevertheless, if I log in anonymously or with
another login, when I
>> switch the language, I get the correct version of
the document.
>>
>> Is normal this behaviour?
>
> Not exactly, what's your CPS version?
>
CPS 3.4
Regards,
Mikel
--
Mikel Larreategi
mlarreategi codesyntax.com
CodeSyntax
Azitaingo Industrialdea 3 K
E-20600 Eibar
Tel: (+34) 943 82 17 80
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|
|
| Document translation issues |

|
2006-10-11 15:34:37 |
We have to restart the browser to see the translations
correctly. Is
there any session/cache parameter that could generate this
behaviour?
Mikel Larreategi wrote:
> Georges Racinet(e)k dio:
>
>>Le 21 sept. 2006, à 14:45, Mikel Larreategi a écrit
:
>>
>>
>>>Hi:
>>>
>>>If I create a document in my CPS site and
translate it into other
>>>languages, I always see the last version of the
document (the last
>>>translation) although I switch the language.
>>>
>>>Nevertheless, if I log in anonymously or with
another login, when I
>>>switch the language, I get the correct version
of the document.
>>>
>>>Is normal this behaviour?
>>
>>Not exactly, what's your CPS version?
>>
>
>
> CPS 3.4
>
>
> Regards,
>
>
> Mikel
>
--
Aitzol Naberan Burgaña
CodeSyntax
http://www.codesyntax.com
a>
943 82 17 80
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|
|
| Document translation issues |

|
2006-10-11 17:18:39 |
On Oct 11, 2006, at 5:34 PM, Aitzol Naberan wrote:
> We have to restart the browser to see the translations
correctly. Is
> there any session/cache parameter that could generate
this behaviour?
There's a session cookie, right, but switching languages
should
precisely change its value.
The cookie id is 'Localizer' or something alike
>
> Mikel Larreategi wrote:
>> Georges Racinet(e)k dio:
>>
>>> Le 21 sept. 2006, à 14:45, Mikel Larreategi a
écrit :
>>>
>>>
>>>> Hi:
>>>>
>>>> If I create a document in my CPS site and
translate it into other
>>>> languages, I always see the last version of
the document (the last
>>>> translation) although I switch the
language.
>>>>
>>>> Nevertheless, if I log in anonymously or
with another login, when I
>>>> switch the language, I get the correct
version of the document.
>>>>
>>>> Is normal this behaviour?
>>>
>>> Not exactly, what's your CPS version?
>>>
>>
>>
>> CPS 3.4
>>
>>
>> Regards,
>>
>>
>> Mikel
>>
>
> --
> Aitzol Naberan Burgaña
> CodeSyntax
> http://www.codesyntax.com
a>
> 943 82 17 80
>
> _______________________________________________
> cps-users mailing list
> cps-users lists.nuxeo.com
> htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
---------
Georges Racinet Nuxeo SAS
gracinet nuxeo.com http://nuxeo.com
Tel: +33 (0) 1 40 33 71 73
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|
|
| Document translation issues |

|
2006-10-16 07:58:41 |
LOCALIZER_LANGUAGE is set correctly, but the document
translation is not
shown.
I think there is something with the session manager, when I
edit a
translation, the system adds a item in the session manager
and while the
object is in the session manager the translation doesn't
work, but if I
flush the session data (manually, by changing timeout value)
all works fine.
Georges Racinet wrote:
>
> On Oct 11, 2006, at 5:34 PM, Aitzol Naberan wrote:
>
>> We have to restart the browser to see the
translations correctly. Is
>> there any session/cache parameter that could
generate this behaviour?
>
>
> There's a session cookie, right, but switching
languages should
> precisely change its value.
> The cookie id is 'Localizer' or something alike
>
>>
>> Mikel Larreategi wrote:
>>
>>> Georges Racinet(e)k dio:
>>>
>>>> Le 21 sept. 2006, à 14:45, Mikel Larreategi
a écrit :
>>>>
>>>>
>>>>> Hi:
>>>>>
>>>>> If I create a document in my CPS site
and translate it into other
>>>>> languages, I always see the last
version of the document (the last
>>>>> translation) although I switch the
language.
>>>>>
>>>>> Nevertheless, if I log in anonymously
or with another login, when I
>>>>> switch the language, I get the correct
version of the document.
>>>>>
>>>>> Is normal this behaviour?
>>>>
>>>>
>>>> Not exactly, what's your CPS version?
>>>>
>>>
>>>
>>> CPS 3.4
>>>
>>>
>>> Regards,
>>>
>>>
>>> Mikel
>>>
>>
>> --
>> Aitzol Naberan Burgaña
>> CodeSyntax
>> http://www.codesyntax.com
a>
>> 943 82 17 80
>>
>> _______________________________________________
>> cps-users mailing list
>> cps-users lists.nuxeo.com
>> htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
>
>
> ---------
> Georges Racinet Nuxeo SAS
> gracinet nuxeo.com http://nuxeo.com
> Tel: +33 (0) 1 40 33 71 73
>
>
>
--
Aitzol Naberan Burgaña
CodeSyntax
http://www.codesyntax.com
a>
943 82 17 80
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|
|
| Document translation issues |

|
2006-10-17 07:50:26 |
I have made some changes:
-Patch ProxyTool-s getBestRevision
This method's search path includes session. When I
translate a document
is stored in session, and while session is active the only
revision of a
document is shown from there.
-Change content_translate.py
Calls Localizer to change the language before editing the
document.
With this changes all seems to work fine. Do you think this
is a good
way to solve the problem? May I have some other problem with
the
ProxyTool patch?
Aitzol Naberan wrote:
> LOCALIZER_LANGUAGE is set correctly, but the document
translation is not
> shown.
>
> I think there is something with the session manager,
when I edit a
> translation, the system adds a item in the session
manager and while the
> object is in the session manager the translation
doesn't work, but if I
> flush the session data (manually, by changing timeout
value) all works fine.
>
> Georges Racinet wrote:
>
>>On Oct 11, 2006, at 5:34 PM, Aitzol Naberan wrote:
>>
>>
>>>We have to restart the browser to see the
translations correctly. Is
>>>there any session/cache parameter that could
generate this behaviour?
>>
>>
>>There's a session cookie, right, but switching
languages should
>>precisely change its value.
>>The cookie id is 'Localizer' or something alike
>>
>>
>>>Mikel Larreategi wrote:
>>>
>>>
>>>>Georges Racinet(e)k dio:
>>>>
>>>>
>>>>>Le 21 sept. 2006, à 14:45, Mikel
Larreategi a écrit :
>>>>>
>>>>>
>>>>>
>>>>>>Hi:
>>>>>>
>>>>>>If I create a document in my CPS
site and translate it into other
>>>>>>languages, I always see the last
version of the document (the last
>>>>>>translation) although I switch the
language.
>>>>>>
>>>>>>Nevertheless, if I log in
anonymously or with another login, when I
>>>>>>switch the language, I get the
correct version of the document.
>>>>>>
>>>>>>Is normal this behaviour?
>>>>>
>>>>>
>>>>>Not exactly, what's your CPS version?
>>>>>
>>>>
>>>>
>>>>CPS 3.4
>>>>
>>>>
>>>>Regards,
>>>>
>>>>
>>>>Mikel
>>>>
>>>
>>>--
>>>Aitzol Naberan Burgaña
>>>CodeSyntax
>>>http://www.codesyntax.com
a>
>>>943 82 17 80
>>>
>>>_______________________________________________
>>>cps-users mailing list
>>>cps-users lists.nuxeo.com
>>>htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
>>
>>
>>---------
>>Georges Racinet Nuxeo SAS
>>gracinet nuxeo.com http://nuxeo.com
>>Tel: +33 (0) 1 40 33 71 73
>>
>>
>>
>
>
>
>
------------------------------------------------------------
------------
>
> _______________________________________________
> cps-users mailing list
> cps-users lists.nuxeo.com
> htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
--
Aitzol Naberan Burgaña
CodeSyntax
http://www.codesyntax.com
a>
943 82 17 80
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|
|
| Document translation issues |

|
2006-10-17 16:30:38 |
Aitzol Naberan wrote:
> I have made some changes:
>
> -Patch ProxyTool-s getBestRevision
> This method's search path includes session. When I
translate a document
> is stored in session, and while session is active the
only revision of a
> document is shown from there.
>
> -Change content_translate.py
> Calls Localizer to change the language before editing
the document.
>
> With this changes all seems to work fine. Do you think
this is a good
> way to solve the problem? May I have some other problem
with the
> ProxyTool patch?
Where are your patches?
BTW, the sessionGet in getBestRevision is a heavy hotspot in
CPS. Since
getBestRevision is called with no language on multiple
occasions (e.g.,
proxy.title_or_id() -> .Title() -> getContent() ->
getBestRevision()), calling
folder_view on a folder with a few thousands documents leads
to multiple
ReadConflictError and a quasi-unusable server.
Regards,
yves
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|
|
| Document translation issues |

|
2006-10-18 07:09:56 |
Sorry but I didn't think that my patch can be interesting to
any other
:o . The only thing that I have done in the patch is comment
the lines
that search in the session.
So you don't think that this is a good solution, but I'm not
sure of
understanding why. You talk about calling getBestRevision
from
folder_view, but in this case when gets the best revision
from the session?
Do tou have any better solution?
Thanks!
Yves Bastide wrote:
> Aitzol Naberan wrote:
>> I have made some changes:
>>
>> -Patch ProxyTool-s getBestRevision
>> This method's search path includes session.
When I translate a
>> document
>> is stored in session, and while session is active
the only revision of a
>> document is shown from there.
>>
>> -Change content_translate.py
>> Calls Localizer to change the language before
editing the document.
>>
>> With this changes all seems to work fine. Do you
think this is a good
>> way to solve the problem? May I have some other
problem with the
>> ProxyTool patch?
>
> Where are your patches?
>
> BTW, the sessionGet in getBestRevision is a heavy
hotspot in CPS. Since
> getBestRevision is called with no language on multiple
occasions (e.g.,
> proxy.title_or_id() -> .Title() -> getContent()
-> getBestRevision()),
> calling folder_view on a folder with a few thousands
documents leads to
> multiple ReadConflictError and a quasi-unusable server.
>
> Regards,
>
> yves
>
> _______________________________________________
> cps-users mailing list
> cps-users lists.nuxeo.com
> htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
>
--
Aitzol Naberan Burgaña
CodeSyntax
http://www.codesyntax.com
a>
943 82 17 80
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|
|
[1-8]
|
|