Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Alessandro (Efisio) R. on December 22, 2014, 05:05:25 pm



Title: context menu localization
Post by: Alessandro (Efisio) R. on December 22, 2014, 05:05:25 pm
Hi,
I am looking for a way to localize the context menu entries on desktop windows, because I have already translated warnings and messages in the FGLDIR/msg and I didn't found anything about context menu translation on the manuals.

Thanks,
Alessandro.


Title: Re: context menu localization
Post by: Lionel F. on January 23, 2015, 02:43:08 pm
Hi Alessandro,

Did you already try this ? :
https://4js.com/online_documentation/fjs-fgl-manual-html/index.html#c_fgl_localized_strings_004.html

You can have a reference to your localize string identifier directly in the .4ad . Here is an example of structure:
<ActionDefault name="editcopy" text="Copy" image="copy"comment="Copy"  acceleratorName="Control-C" contextMenu="yes">
    <LStr text="Text.Copy"></LStr>
</ActionDefault>

And then in your .str file (that is afterwards compiled in .42s):
"Text.Copier"="My translation"

Now, the "copy" command of your context menu should be replaced by "My translation"

Best regards,
Lionel


Title: Re: context menu localization
Post by: Lionel F. on January 23, 2015, 04:01:51 pm

And then in your .str file (that is afterwards compiled in .42s):
"Text.Copier"="My translation"


Sorry, you must read :
"Text.Copy"="My translation"

It has to be the same entry as the Lstr text attribute of the .4ad file

Best regards,
Lionel