[html-formfu] H::F::Model::DBIC -- How is the localize_label supposed to work?

Carl Franks fireartist at gmail.com
Wed Aug 22 12:06:00 GMT 2012


On 22 August 2012 12:13, Jan Grmela <jan.grmela at imakers.cz> wrote:
> Hello,
> I'm currently trying to get the localize_label working with HTML::FormFu::Model::DBIC and all the i18n stuff from Catalyst:
>
>  - type: Select
>    name: fuel
>    label_loc: Fuel
>    empty_first: 1
>    empty_first_label_loc: (doesn't matter)
>    model_config:
>      localize_label: 1
>      resultset: CarsFuels
>      label_column: name
>
> I thought that it's just needed to have the localized database strings in the PO file, the same way as I tread the other FormFu labels (which do work) but I'm just getting the original values, not the translated ones though I've supplied the required strings in the PO file.
>
> What is the search key for the translation? Is it the label value itself or something else? I'm currently providing the app with the label values.

Hi,
I've just fixed the other issue you were having last week (see my other reply).
How did you work around that problem - as that would have a bearing on
whether this above is working or not?
Could you test again with the fix I posted, and let me know if the
localization still isn't working?
Carl



More information about the HTML-FormFu mailing list