Items are not translated in the Panel

This forum contains topics that were moved from Get Satisfaction
Hawk
Posts: 0
Joined: Mon Aug 04, 2014 11:23 am

Items are not translated in the Panel

Post by Hawk »

I am translated an entire app, 3 of the pages have a panel that opens when I click a button. Although the parent image (that contains the panel) is translated correctly, the items inside the panel are not translated (label and radiogroup buttons).

I've added in more properties (data-i18n : [text]) for each item.

To reporoduce:

Link: http://appery.io/app/mobile-frame?src...

choose the language from selectMenu in login page
credentials: 1234/star1234

Navigate: NavBar: Points -- click on the button (2) in described in the screenshot below, panel will open, which contains the radiogroupbuttons.

Image

Image

I deeply appreciate your help!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Items are not translated in the Panel

Post by Kateryna Grynko »

Hi Hawk,

Please note 'more properties' is applied to Input component while you need to translate a label, so run the following code before calling codei18n()/code to fix it:prevar arr = Apperyio("panel_132").find("input");
arr.each(function(){
$(this).parent().find("label").attr("data-i18n",$(this).attr("data-i18n"));
});
$(document).i18n();/pre

Post Reply