[xwiki-devs] [PROPOSAL] Automatic translations copy of renamed translation keys
Marius Dumitru Florea
mariusdumitru.florea at xwiki.com
Wed Jan 18 17:15:29 UTC 2012
On Wed, Jan 18, 2012 at 6:50 PM, Thomas Mortagne
<thomas.mortagne at xwiki.com> wrote:
> Hi devs,
>
> Right now renaming a key is a pain if we don't want to loose the
> existing translations associated to it. Basically it require to rename
> the key in all languages and reimport all of them on l10n.xwiki.org.
>
> We already have a section in the translation file to indicate which
> translations are deprecated. The idea is to indicate what is the new
> name of a deprecated translation key directly in the translation file
> so that l10n.xwiki.org can automatically copy the translation to the
> new key when it find a new deprecated key while importing default
> translation file.
>
> For that we need to decide a syntax to indicate what is the new name of the key.
>
> I propose to do something similar to java and indicate it in a comment
> like the following:
>
> new.key.name=Default translation
>
> #@deprecated new.key.name
> old.key.name=Default translation
+1
Thanks,
Marius
>
> Here are some other alternatives to "deprecated":
>
> * replacedBy
> * new
>
> others ?
>
> Here is my +1 for "deprecated", more intuitive for Java developers and
> it's clear it's a deprecated translation key.
>
> Thanks,
> --
> Thomas Mortagne
> _______________________________________________
> devs mailing list
> devs at xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
More information about the devs
mailing list