Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 452863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:06:54+00:00 2026-05-12T22:06:54+00:00

I have multiple configuration files describing Addins to my system. I’m looking for a

  • 0

I have multiple configuration files describing Addins to my system.
I’m looking for a way to globalize some of the tags in the configuration file (i.e – support multiple languages)

for example: in the file activity.xml i want to globalize some of the attributes:

<?xml version="1.0" encoding="UTF-8"?>
<Resource
  type="Activity"
  id="123456.ConcatenateStrings"
  version="1.0.0"
  group="String Manipulation"
  shortName="$$Concatenate_Strings"
  description="$$Concatenates_Strings_Description"
  assembly="VTDBasicActivities.dll"
  className="ConcatenateStringsActivity"
  visible="true"> 
</Resource>

I want the values of some of the attributes (shotName, description) to be taken from a different configuration file (resx probably) where the values could be written in any language.

I need a way to mark the values of some attributes, so that the xml parser would know to take their value from a configuration file (in my example I wrote “$$” before those values)

what is the best way for doing this?
I’m parsing the xml file with C#

Thanks!

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:06:54+00:00Added an answer on May 12, 2026 at 10:06 pm

    Use Resource files instead

    Instead of providing the actual string in configuration, rather provide Resource key and keep strings in resource files with different translations. That’s what Resource files are for and you should use them as well. Don’t reinvent the wheel.

    How Resources work (in a nutshell)?

    Have Resources.resx with default translation that all non localised languages will default to. Then create separate resource files for each language you’d like to support:

    Resources.sl.resx
    Resources.en-ie.resx
    Resources.de.resx
    etc...
    

    So when a spanish person would access your application they will get default language, Slovenians will get their own translation, so will Irish and German users… All of these files will have the same resource keys but provide different translations. All you need to do is to use these keys inside of your configuration file. Single one – language neutral.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple context files. Requirement is: one particular Bean (which makes some configuration
We have multiple war files packaged in an ear file. Some of the wars
I have multiple (8) WAR files and 1 EAR file that I want to
I'm looking for a way to edit a configuration file (web.config in an asp.net
What is the correct way to split Spring's configuration to multiple xml files? At
I have to grab a configuration directive from multiple configuration files for a series
In my build configuration I have multiple project queues: Queue1, Queue2, ... Queue(N) I
We have multiple log files like database log, weblog, quartzlog in our application. Any
I have multiple text files with logged data like this: 6/23/09 17:00 0.443 6/23/09
I have multiple programmers contributing examples for javadocs and some examples contain comments formatted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.