<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Internationalization on Marko Apfel</title><link>http://blog.marko-apfel.de/tags/internationalization/</link><description>Recent content in Internationalization on Marko Apfel</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 01 Nov 2008 10:11:00 +0100</lastBuildDate><atom:link href="http://blog.marko-apfel.de/tags/internationalization/index.xml" rel="self" type="application/rss+xml"/><item><title>Multilanguage with C#</title><link>http://blog.marko-apfel.de/posts/multilanguage-with-c-sharp/</link><pubDate>Sat, 01 Nov 2008 10:11:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/multilanguage-with-c-sharp/</guid><description>&lt;p&gt;The .NET-Frameworks offers a good support for application which needs to be localizable.
For each of my C#-projects i create three resources under the properties-folder.&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Resource&lt;/th&gt;
					&lt;th&gt;Description&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;Images.resx&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;contains images for the application &lt;!-- raw HTML omitted --&gt; (mostly not needed to be localized, only for simple resource-access)&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;Messages.resx&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;contains strings of messages for users &lt;!-- raw HTML omitted --&gt; (such as contents of MessageBoxes)&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;Resources.resx&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;(normally created from VS by default) &lt;!-- raw HTML omitted --&gt; contains GUI-relevant stuff (such as label- and button-texts)&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;For this example we use a simple message text in Messages.resx. The name of the localizable message text is MsgSampleText.
&lt;img src="https://web.archive.org/web/20090203002049id_/http://marko.apfel.googlepages.com/EsriDe.Samples.Localization.02.png" alt="Screenshot for Multilanguage with C#" loading="lazy" decoding="async"&gt;&lt;/p&gt;</description></item></channel></rss>