Convert All Variables to Text

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Ken S
Propeller Head
Posts: 26
Joined: Fri Aug 14, 2009 2:15 pm

Convert All Variables to Text

Post by Ken S »

Is there a way to convert all variables in a Flare project to text in a single step?
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Convert All Variables to Text

Post by LTinker68 »

Yes. Build the project. :P

The only way to convert all instances of a variable into text in the authoring environment is to do a find-and-replace in Flare. Open one of the topics containing a variable in the Internal Text Editor and look for the variable tag. It would look something like <MadCap:variable name="MyVariables.CompanyName" />, where "MyVariables" is the name of your variable set and "CompanyName" is the name of a specific variable. In the find-and-replace pane, put that code in the find and type the text you want to replace it with (e.g., "MadCap Software"). In the middle of the FAR pane, enable the option "Find in source code". Select to find in all topics then click Start.

I'd make a copy of the project before you do that, though, just as a precaution.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Convert All Variables to Text

Post by ChoccieMuffin »

That would convert all instances of a single variable, Lisa, but if you have several hundred dotted around, I don't think I'd fancy having to do several hundred search and replace actions.

Why would you need to convert all variables into text? (Just curious in case I bump into the same situation, you understand, not being critical.)
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Ken S
Propeller Head
Posts: 26
Joined: Fri Aug 14, 2009 2:15 pm

Re: Convert All Variables to Text

Post by Ken S »

This was a request from our translation manager. The vendor is having some difficulties with variables and the manager was wondering if this would be a potential solution to these problems.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Convert All Variables to Text

Post by LTinker68 »

You might want to look into MadCap's Lingo software. It's to assist with translations so I'm guessing it has some way to allow for translating variables.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Convert All Variables to Text

Post by LTinker68 »

ChoccieMuffin wrote:... but if you have several hundred dotted around...
Several hundred instances of a few variables, or several hundred variables? I can't imagine having that many variables in a variable set, but I suppose it's possible.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
alt_jennifer
Propeller Head
Posts: 57
Joined: Mon Mar 08, 2010 12:33 pm
Location: Fayetteville, NC
Contact:

Re: Convert All Variables to Text

Post by alt_jennifer »

There's no way that I know of to convert all variables to text in one step. Variables do make translation more difficult, but they don't make it impossible -- unless you're using variables all over the place, and for ordinary, everyday words. We usually leave all the variables intact when we translated our clients' Flare projects. They do have to be repositioned, and in some cases, they might need to be converted to text on a topic by topic basis -- if the variable that was setup doesn't work well with that language's grammatical rules. I haven't seen that happen very often, but I could imagine "doomsday scenarios" when it might happen all the time ;)

Is there a specific reason the variables aren't working for them?
Jennifer Schudel
Localization Manager/Flare Operator
Advanced Language Translation / http://www.advancedlanguage.com
* MadCap Recommended Translation Vendor *
Ken S
Propeller Head
Posts: 26
Joined: Fri Aug 14, 2009 2:15 pm

Re: Convert All Variables to Text

Post by Ken S »

Thanks Jennifer. We've discussed this with our translators and come to a mutual understanding that will allow us to continue to use variables.

That said, we have run into a minor issue with East Asian languages and variables. Specifically, when we receive content back from the translators, there are spaces before and after the variables. According to our translation manager, this can impact legibility in these languages. Is there something we can do in Flare before translation or that the translator can do in Lingo to remove these spaces?
Post Reply