On 5 Mar 2015 at 15:58:48, vincent(a)massol.net
(vincent@massol.net(mailto:vincent@massol.net)) wrote:
On 5 Mar 2015 at 15:52:55, vincent(a)massol.net
(vincent@massol.net(mailto:vincent@massol.net)) wrote:
Hi Thomas,
On 4 Mar 2015 at 10:34:53, Thomas Mortagne
(thomas.mortagne@xwiki.com(mailto:thomas.mortagne@xwiki.com)) wrote:
I’ve tried to use it but I’m probably not using it in the right as it fails.
I’ve used for example:
https://www.evernote.com/shard/s119/sh/3c713dcc-95bc-4878-bc78-e0a41adfbaa6…
ok i’ve now checked the source code and found what to use for the source names:
https://www.evernote.com/shard/s119/sh/791c01b1-5ed4-4379-968a-705291d13da7…
However it fails with:
Caused by: java.lang.Exception: No translation could be found for app:Platform,
name:XWikiCoreResources and key:xe.spaces
(Platform.XWikiCoreResources_-941714866_xe-spaces_hr)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at
org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
at L10NApp.copyTranslationKey(script14254616330231355553252.groovy:2790)
at L10NApp.copyTranslationKey(script14254616330231355553252.groovy:2773)
A search doesn’t find it indeed:
http://l10n.xwiki.org/xwiki/bin/view/L10N/Search?application=Platform&n…
Ok a flush cache helped and the key can be found now.
However I still get the same error for the copy…
Thanks
-Vincent
However it’s there in ApplicationResources.properties
in platform oldcore…
Any idea?
Thanks
-Vincent
> Thanks
> -Vincent
>
>
> > note: I think in this case it's a copy not a move since you want to
> > keep the old keys as deprecated keys
> >
> > On Wed, Mar 4, 2015 at 10:16 AM, vincent(a)massol.net wrote:
> > > Hi devs,
> > >
> > > Here’s my use case:
> > >
> > > * Some keys for an XE page are currently located in platform’s
ApplicationResources.properties
> > > * I’m moving the XE page to platform and I need to:
> > > ** Rename the key (since it had "xe" as prefix)
> > > ** Move it to a Translations wiki page
> > >
> > > How can I do this without loosing all the translations that already
exist?
> > >
> > > Thanks
> > > -Vincent
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/devs