PDA

View Full Version : Global Text Resources



NewsArchive
10-13-2018, 01:53 AM
Hi Friedrich,

What is the way to modify text/language resources and make them update
in all my install scripts? I use a lot of compiler variables to set
things up and I'm trying to get rid of all static text that I need to
edit in the various scripts I use. For example: I want to change the
"Welcome" dialog text and I want use the same text in all my installs.
How can I accomplish that without editing the text in each of my scripts?

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
10-14-2018, 02:56 AM
Hi Arnor,

> What is the way to modify text/language resources and make them update in
> all my install scripts? I use a lot of compiler variables to set things up
> and I'm trying to get rid of all static text that I need to edit in the
> various scripts I use. For example: I want to change the "Welcome" dialog
> text and I want use the same text in all my installs. How can I accomplish
> that without editing the text in each of my scripts?

Text Resources for your installs are stored in your project files (based on
the language modules in Tools | Options | Languages).

In theory, you have to change the text in the language module(s) and then,
in your project, select:

Project | Refresh Text Resources

This "should" refresh all text resources.

Friedrich

NewsArchive
10-14-2018, 02:56 AM
Hi Friedrich,

> Text Resources for your installs are stored in your project files
> (based on
> the language modules in Tools | Options | Languages).
>
> In theory, you have to change the text in the language module(s) and then,
> in your project, select:

This is a bit of a problem, because the .lng files are installed under
Program Files and when I try to access them inside SB, SB tells me it
can't open them because they need write access. I copied one and was
able to access it, but it then appears in the language list in the same
way as the original (i.e. English (US) showed up twice)

> Project | Refresh Text Resources
>
> This "should" refresh all text resources.

So this would have to be done every time any of the resources change in
all the installs that use them?

I'll keep poking at this and see what I find out.

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
10-14-2018, 02:56 AM
Hi Arnor,

> This is a bit of a problem, because the .lng files are installed under
> Program Files and when I try to access them inside SB, SB tells me it
> can't open them because they need write access. I copied one and was able
> to access it, but it then appears in the language list in the same way as
> the original (i.e. English (US) showed up twice)

Just right-click the SB Shortcut and start it with administrator privileges.

> So this would have to be done every time any of the resources change in
> all the installs that use them?

Yes, that is correct. Text resources are stored per project.

Friedrich

NewsArchive
10-14-2018, 02:57 AM
Hi Friedrich,

> Just right-click the SB Shortcut and start it with administrator
> privileges.

I knew there was a simple solution! Damn, I missed that one<bg>

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC