You can see what can be used as "application" and "name" when you look at http://l10n.xwiki.org/xwiki/bin/view/Platform/XWikiCoreResources (in Move section, which is essentially the same API but pre-filled).
On Thu, Mar 5, 2015 at 4:13 PM, [email protected] <[email protected]> wrote: > > > On 5 Mar 2015 at 16:02:08, [email protected] > ([email protected](mailto:[email protected])) wrote: > >> >> On 5 Mar 2015 at 15:58:48, [email protected] >> ([email protected](mailto:[email protected])) wrote: >> >> > >> > >> > On 5 Mar 2015 at 15:52:55, [email protected] >> > ([email protected](mailto:[email protected])) wrote: >> > >> > > Hi Thomas, >> > > >> > > On 4 Mar 2015 at 10:34:53, Thomas Mortagne >> > > ([email protected](mailto:[email protected])) wrote: >> > > >> > > > http://l10n.xwiki.org/xwiki/bin/view/L10N/Refactoring >> > > >> > > 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/a29a281958d2baf385bb639cdc7db1a1 >> > >> > 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/9faa59725c3071c4d94bba7446755a82 >> > >> > 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&name=&key=xe.spaces&origtext=&lang=&transtext=&status=all >> >> Ok a flush cache helped and the key can be found now. >> >> However I still get the same error for the copy… > > ok found it, I needed to use PlatformXWikiCoreResources and > PlatformIndexTranslations > > Thanks > -Vincent > >> 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, [email protected] 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 >> > > [email protected] >> > > http://lists.xwiki.org/mailman/listinfo/devs >> >> _______________________________________________ >> devs mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/devs -- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

