Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: context menu localization  (Read 10484 times)
Alessandro (Efisio) R.
Posts: 42


« 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.


* context_menu.png (5.48 KB, 219x202 - viewed 1594 times.)
Lionel F.
Four Js
Posts: 82


« Reply #1 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
Lionel F.
Four Js
Posts: 82


« Reply #2 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
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines