Make variables automatically translate=false

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Post Reply
jjacquelin
Posts: 2
Joined: Thu Jul 28, 2022 9:20 am

Make variables automatically translate=false

Unread post by jjacquelin »

Hi!

Is there a way to configure HM7 to make all variables (existing and newly created ones) translate=false?

Thank you :)
User avatar
Tim Green
Site Admin
Posts: 22716
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Make variables automatically translate=false

Unread post by Tim Green »

Hi Jacqueline,
Is there a way to configure HM7 to make all variables (existing and newly created ones) translate=false?
You can't do this from within Help+Manual itself. You need to use the uncompressed HMXP format and then edit the .hmxp file in a text editor like Notepad++. Close the project in Help+Manual before doing this! You will find the list of variable definitions in the lower portion of the file. The variable defintions look like this:

Code: Select all

<variable id="BTNTEXT_HOMETIP" type="text" translate="true">Go to top topic</variable>
<variable id="BTNTEXT_LTABLE" type="text" translate="true">Tap to View Table</variable>
<variable id="BTNTEXT_NEXT" type="text" translate="true">Next</variable>
<variable id="BTNTEXT_NEXTNO" type="text" translate="true">This is the last topic</variable>
Note that there is no translate="false" option! Variables that are protected just don't have this setting, so you need to delete the translate="true" attribute, so that the variables look like this:

Code: Select all

<variable id="BTNTEXT_HOMETIP" type="text">Go to top topic</variable>
<variable id="BTNTEXT_LTABLE" type="text">Tap to View Table</variable>
<variable id="BTNTEXT_NEXT" type="text">Next</variable>
<variable id="BTNTEXT_NEXTNO" type="text">This is the last topic</variable>
Don't try to do a global delete of all translate="true" attributes in the file, becaused there are a lot of other tags in which you must not remove it. Be careful to only remove it in the variable definitions.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Post Reply