Blair, thank you ! If this way is correct and good, I think it's not necessary to add anything more to ft:object !
-- Knut On 6 Feb., 23:35, Blair McKenzie <[email protected]> wrote: > That probably is the best way. I could add something to ft:object to handle > alternative translations, but it might be too confusing for plugin > developers. > > Blair > > On Sun, Feb 7, 2010 at 3:46 AM, Knut <[email protected]> wrote: > > OK Blair, I think I've got und understand it now ! > > > To overwrite the standard labels in "/core/packages/forms/ > > farLogin.cfc" I've added the following code in "/core/webskin/farLogin/ > > displayLogin.cfm". > > > This works without any error, but is this the right way to do it ??? > > .... > > <cfset stMetadata = structnew() /> > > <cfset stMetadata.username.ftLabel = > > "#application.rb.getResource('webtop.security.usern...@label','User > > name')#" /> > > <cfset stMetadata.password.ftLabel = > > "#application.rb.getResource('webtop.security.passw...@label','Password')#" > > / > > > <ft:object typename="farLogin" lFields="username,password" > > stPropMetadata="#stMetadata#" prefix="login" legend="" > > focusField="username" /> > > .... > > > Of course I have the translated RBkeys > > "webtop.security.usern...@label" and "webtop.security.passw...@label" > > in my resource bundle ! > > > -- Knut > > > On 4 Feb., 06:40, Blair McKenzie <[email protected]> wrote: > > > I just finished looking - and it seems like the stPropMetadata > > information > > > is merged in after the label is retrieved from the resource bundles. So > > the > > > value passed in with that attribute overrides everything else. > > > > Blair > > > > On Thu, Feb 4, 2010 at 10:00 AM, Blair McKenzie <[email protected]> > > wrote: > > > > I'm thinking about it now. I hope to have a fix soon. > > > > > On Thu, Feb 4, 2010 at 9:40 AM, Knut <[email protected]> wrote: > > > > >> Blair, thanks for your response ! - Maybe in the future .... > > > > >> -- Knut > > > > >> On 3 Feb., 20:58, Blair McKenzie <[email protected]> wrote: > > > >> > At the moment the translation engine doesn't account for that, which > > is > > > >> a > > > >> > problem. > > > > >> > On Wed, Feb 3, 2010 at 11:53 PM, Knut <[email protected]> wrote: > > > >> > > Blair, it works perfectly !!! - Thanks for fixing the bug. > > > > >> > > Just ONE more question I originally asked in this thread (right on > > the > > > >> > > top !). > > > > >> > > Underhttp://bugs.farcrycms.org/browse/FC-2149yourwrote: > > > >> > > >> Note that label changes via the ft:object's stPropMetadata > > > >> attribute > > > >> > > will be ignored if there is a translation available for the label. > > << > > > > >> > > Can you tell me how to use the "ft:object's stPropMetadata" in a > > form > > > >> > > to send "custom translations" (that do NOT exist in the recouce > > > >> > > bundle) to a form ??? > > > >> > > I've looked at the FarCry docs underhttp://docs.farcrycms.org, > > but I > > > >> > > didn't find a usefully hint. > > > > >> > > Regards .. Knut > > > > >> > > On 3 Feb., 04:10, Blair McKenzie <[email protected]> wrote: > > > >> > > > I think I've fixed this issue in 6.0, but it can be back ported > > if > > > >> needs > > > >> > > be. > > > >> > > > Let me know if it's not working for you. > > > > >> > > > Blair > > > > >> > > > On Wed, Feb 3, 2010 at 2:32 AM, Knut <[email protected]> > > wrote: > > > >> > > > > OK, I posted the i18 BUG under: > > > >> > >http://bugs.farcrycms.org/browse/FC-2149 > > > > >> > > > > On 2 Feb., 13:05, Marco van den Oever < > > [email protected] > > > > >> > > > > wrote: > > > >> > > > > > And please share the link so i (and maybe others) can > > vote??? > > > >> > > > > > Thanks :) > > > > >> > > > > > On Feb 2, 12:34 pm, Blair McKenzie <[email protected]> > > wrote: > > > > >> > > > > > > That's interesting. It must be a side effect of the UI > > > >> changes. > > > >> > > I'll > > > >> > > > > talk to > > > >> > > > > > > Matt about it, hopefully it's something easy to fix. Can > > you > > > >> raise > > > >> > > a > > > >> > > > > bug > > > >> > > > > > > ticket and let me know and I'll have a look right away. > > > > >> > > > > > > Blair > > > > >> > > > > > > On Tue, Feb 2, 2010 at 5:42 PM, Knut < > > [email protected]> > > > >> wrote: > > > >> > > > > > > > Blair, I've checked my german resource bundle and saw > > that > > > >> I've > > > >> > > > > > > > already translated the rbKeys f.e. for "dmProfile": > > > > >> > > > > > > > coapi.dmprofile.properties.firstn...@label=vorname > > > >> > > > > > > > coapi.dmprofile.properties.lastn...@label=nachname > > > >> > > > > > > > coapi.dmprofile.properties.emailaddr...@label=e-mail > > > >> > > > > > > > coapi.dmprofile.properties.ph...@label=telefon > > > >> > > > > > > > coapi.dmprofile.properties....@label=telefax > > > >> > > > > > > > and more ... > > > > >> > > > > > > > But the translations are NOT shown in FC 6.0 webtop when > > I > > > >> call > > > >> > > "Edit > > > >> > > > > > > > your profile" !??? > > > >> > > > > > > > Just the english default labels are on the screen !!! > > > > >> > > > > > > > I can remember that the translations were already > > working in > > > >> FC > > > >> > > 5.2.x > > > >> > > > > > > > - but in V 6.0 it does not work. > > > > >> > > > > > > > Regards .. Knut > > > > >> > > > > > > > On 2 Feb., 06:16, Blair McKenzie <[email protected]> > > wrote: > > > >> > > > > > > > > Resource bundles are automatically checked for > > property > > > >> > > > > translations. A > > > >> > > > > > > > > simple example (from the core base bundle) is this: > > > >> > > > > > > > > coapi.dmfile.properties.datetimelastupda...@label > > =Last\ > > > >> > > Updated > > > > >> > > > > > > > > The naming format is > > > >> > > > > coapi.[typename].properties.[propertyna...@label. > > > >> > > > > > > > You > > > >> > > > > > > > > can also translate @ftHint. There are also equivilents > > for > > > >> the > > > >> > > > > wizard the > > > >> > > > > > > > > fieldset labels. Let me know if you need them, you > > might > > > >> be > > > >> > > able to > > > >> > > > > find > > > >> > > > > > > > > those in the base bundle too. > > > > >> > > > > > > > > Blair > > > > >> > > > > > > > > On Tue, Feb 2, 2010 at 7:24 AM, Knut < > > > >> [email protected]> > > > >> > > wrote: > > > >> > > > > > > > > > Hi, > > > > >> > > > > > > > > > is there a way also to send the field labels for > > > > >> "firstname,lastname,phone,fax,emailaddress,breceiveemail" as > > > >> > > > > > > > > > "rbKeys" ? > > > > >> > > > > > > > > > <ft:object objectid="#stObj.objectid#" > > > >> typename="dmProfile" > > > > >> > > lfields="firstname,lastname,phone,fax,emailaddress,breceiveemail" > > > >> > > > > > > > > > legend="Contact Details" /> > > > > >> > > > > > > > > > I don't have an idea :-( blockhead ? ) > > > > >> > > > > > > > > > Regards .. Knut > > > > >> > > > > > > > > > -- > > > >> > > > > > > > > > You received this message cos you are subscribed to > > > >> > > "farcry-dev" > > > >> > > > > Google > > > >> > > > > > > > > > group. > > > >> > > > > > > > > > To post, email: [email protected] > > > >> > > > > > > > > > To unsubscribe, email: > > > >> > > [email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> > > > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> > > > > > > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> > > > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > >> <farcry-dev%[email protected]<farcry-dev%[email protected]> > > ... > > Erfahren Sie mehr ยป -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
