Translate main menu items

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Translate main menu items

Илья Михайлов
Hallo!

I try to find out how translate main menu item of my custom plugin.

I go to widgets folder and open menu file. See title.

name="MainAppBar" title="${uiLabelMap.PharmacyApplication}"

I add PharmacyApplication key to config folder UiLabels with my translations, but nothing happened.

Where i go wrong?

And how i can hide menu item if i want to?

Thanks.Regards.
Reply | Threaded
Open this post in threaded view
|

Re: Translate main menu items

Rishi Solanki
Server restart requires to reload the configuration changes. Also check the
locale in the current context.
HTH!


*Rishi Solanki* | Sr Manager, Enterprise Software Development
HotWax Systems <http://www.hotwaxsystems.com/>
Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center, Indore,
M.P 452010
Linkedin: *Rishi Solanki*
<https://www.linkedin.com/in/rishi-solanki-62271b7/>
Direct: +91-9893287847


On Tue, Mar 19, 2019 at 12:24 PM Илья Михайлов
<[hidden email]> wrote:

> Hallo!
>
> I try to find out how translate main menu item of my custom plugin.
>
> I go to widgets folder and open menu file. See title.
>
> name="MainAppBar" title="${uiLabelMap.PharmacyApplication}"
>
> I add PharmacyApplication key to config folder UiLabels with my
> translations, but nothing happened.
>
> Where i go wrong?
>
> And how i can hide menu item if i want to?
>
> Thanks.Regards.
>
Reply | Threaded
Open this post in threaded view
|

Re: Translate main menu items

Oleg Andreyev-2
In reply to this post by Илья Михайлов
Hi,

What does it mean “add PharmacyApplication key”? You need to find file where PharmacyApplication is defined and add a translation in your language to the existing key.
Don’t forget restart or clear caches, it is not appear immediately.

> On Mar 19, 2019, at 08:54, Илья Михайлов <[hidden email]> wrote:
>
> Hallo!
>
> I try to find out how translate main menu item of my custom plugin.
>
> I go to widgets folder and open menu file. See title.
>
> name="MainAppBar" title="${uiLabelMap.PharmacyApplication}"
>
> I add PharmacyApplication key to config folder UiLabels with my translations, but nothing happened.
>
> Where i go wrong?
>
> And how i can hide menu item if i want to?
>
> Thanks.Regards.

Reply | Threaded
Open this post in threaded view
|

Re: Translate main menu items

Pierre Smits-3
In reply to this post by Rishi Solanki
When updating label files to have your translations in you don't need to
restart the OFBiz instance. You can reload the label data by invoking the
'Clear All Caches'  function in Web Tools/Cache Maintenance. See
https://demo-trunk.ofbiz.apache.org/webtools/control/FindUtilCache

Best regards,

Pierre Smits

*Apache Trafodion <https://trafodion.apache.org>, Vice President*
*Apache Directory <https://directory.apache.org>, PMC Member*
Apache Incubator <https://incubator.apache.org>, committer
*Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges)
since 2008*
Apache Steve <https://steve.apache.org>, committer


On Tue, Mar 19, 2019 at 11:05 AM Rishi Solanki <[hidden email]>
wrote:

> Server restart requires to reload the configuration changes. Also check the
> locale in the current context.
> HTH!
>
>
> *Rishi Solanki* | Sr Manager, Enterprise Software Development
> HotWax Systems <http://www.hotwaxsystems.com/>
> Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center,
> Indore,
> M.P 452010
> Linkedin: *Rishi Solanki*
> <https://www.linkedin.com/in/rishi-solanki-62271b7/>
> Direct: +91-9893287847
>
>
> On Tue, Mar 19, 2019 at 12:24 PM Илья Михайлов
> <[hidden email]> wrote:
>
> > Hallo!
> >
> > I try to find out how translate main menu item of my custom plugin.
> >
> > I go to widgets folder and open menu file. See title.
> >
> > name="MainAppBar" title="${uiLabelMap.PharmacyApplication}"
> >
> > I add PharmacyApplication key to config folder UiLabels with my
> > translations, but nothing happened.
> >
> > Where i go wrong?
> >
> > And how i can hide menu item if i want to?
> >
> > Thanks.Regards.
> >
>