{"id":22710,"date":"2021-03-19T11:08:38","date_gmt":"2021-03-19T15:08:38","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/c-localization-application-example-root-by-sayed-ahmed\/"},"modified":"2025-05-11T20:19:39","modified_gmt":"2025-05-11T20:19:39","slug":"c-localization-application-example-root-by-sayed-ahmed","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=22710","title":{"rendered":"C# Localization Application Example #Root #By Sayed Ahmed"},"content":{"rendered":"<pre>The Resource File\r\n\r\n# GreetingResources.txt \r\n# A resource file in text format for a \"Hello World\" application.\r\n#\r\n# Initial prompt to the user.\r\nprompt=Enter your name: \r\n# Format string to display the result.\r\ngreeting=Hello, {0}!\r\n\r\n--\r\n\r\n<strong>Code to use the resource file<\/strong>\r\n\r\n<\/pre>\n<pre><span style=\"color: blue\">using<\/span> System;\r\n<span style=\"color: blue\">using<\/span> System.Reflection;\r\n<span style=\"color: blue\">using<\/span> System.Resources;\r\n\r\n<span style=\"color: blue\">public<\/span> <span style=\"color: blue\">class<\/span> Example\r\n{\r\n   <span style=\"color: blue\">public<\/span> <span style=\"color: blue\">static<\/span> <span style=\"color: blue\">void<\/span> Main()\r\n   {\r\n      ResourceManager rm = <span style=\"color: blue\">new<\/span> ResourceManager(<span style=\"color: #a31515\">\"GreetingResources\"<\/span>, <span style=\"color: blue\">typeof<\/span>(Example).Assembly);\r\n      Console.Write(rm.GetString(<span style=\"color: #a31515\">\"prompt\"<\/span>));\r\n      <span style=\"color: blue\">string<\/span> name = Console.ReadLine();\r\n      Console.WriteLine(rm.GetString(<span style=\"color: #a31515\">\"greeting\"<\/span>), name);                                                                          \r\n   }\r\n}\r\n<span style=\"color: green\">\/\/ The example displays output like the following:<\/span>\r\n<span style=\"color: green\">\/\/ Enter your name: Wilberforce<\/span>\r\n<span style=\"color: green\">\/\/ Hello, Wilberforce!<\/span>\r\n<\/pre>\n<pre><\/pre>\n<p> From: http:\/\/sitestree.com\/?p=1317<br \/> Categories:Root, By Sayed Ahmed<br \/>Tags:<br \/> Post Data:2014-08-06 22:20:54<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Resource File # GreetingResources.txt # A resource file in text format for a &#8220;Hello World&#8221; application. # # Initial prompt to the user. prompt=Enter your name: # Format string to display the result. greeting=Hello, {0}! &#8212; Code to use the resource file using System; using System.Reflection; using System.Resources; public class Example { public static &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=22710\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1973,1917],"tags":[],"class_list":["post-22710","post","type-post","status-publish","format-standard","hentry","category-c-misc","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":69872,"url":"http:\/\/bangla.sitestree.com\/?p=69872","url_meta":{"origin":22710,"position":0},"title":".Net: Globalizing Web Applications #19","author":"Author-Check- Article-or-Video","date":"August 21, 2021","format":false,"excerpt":"Three ways of globalizing web-applications Create one for each culture\/language - usually the web-interfaces. Redirect to a web-site built based on the current culture. Write one web-application but detect current culture, then change the user interface (texts, date time formats) to represent the current culture - dynamically Satellite Based: Use\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":70277,"url":"http:\/\/bangla.sitestree.com\/?p=70277","url_meta":{"origin":22710,"position":1},"title":".Net: Globalizing Web Applications #.Net Web Applications","author":"Author-Check- Article-or-Video","date":"August 31, 2021","format":false,"excerpt":"Brought from: http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=1145&title=.Net:%20Globalizing%20Web%20Applications Three ways of globalizing web-applications Create one for each culture\/language - usually the web-interfaces. Redirect to a web-site built based on the current culture Write one web-application but detect current culture, then change the user interface (texts, date time formats) to represent the current culture - dynamically\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10402,"url":"http:\/\/bangla.sitestree.com\/?p=10402","url_meta":{"origin":22710,"position":2},"title":"Demonstrates using a TexturePaint to fill an shape with a tiled image","author":"","date":"August 28, 2015","format":false,"excerpt":"^^^^^^^^^^^^^^^^^ TiledImages.java Demonstrates using a TexturePaint to fill an shape with a tiled image. Uses the following class and images: \u00a0\u00a0\u00a0 * ImageUtilities.java Simplifies creating a BufferedImage from an image file. ~~~~~~~~~~~~~~~~~~ import javax.swing.*; import java.awt.*; import java.awt.geom.*; import java.awt.image.*; \/** An example of using TexturePaint to fill objects with\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26880,"url":"http:\/\/bangla.sitestree.com\/?p=26880","url_meta":{"origin":22710,"position":3},"title":"Demonstrates using a TexturePaint to fill an shape with a tiled image #Programming Code Examples #Java\/J2EE\/J2ME #Drawing","author":"Author-Check- Article-or-Video","date":"May 4, 2021","format":false,"excerpt":"^^^^^^^^^^^^^^^^^ TiledImages.java Demonstrates using a TexturePaint to fill an shape with a tiled image. Uses the following class and images: * ImageUtilities.java Simplifies creating a BufferedImage from an image file. ~~~~~~~~~~~~~~~~~~ import javax.swing.*; import java.awt.*; import java.awt.geom.*; import java.awt.image.*; \/** An example of using TexturePaint to fill objects with tiled\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65977,"url":"http:\/\/bangla.sitestree.com\/?p=65977","url_meta":{"origin":22710,"position":4},"title":"Writing your first Spring application #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 18, 2021","format":false,"excerpt":"Requirements: JDK 1.4.2 (or above), Tomcat 5.0+, Ant 1.6.1+ Also, you can use cygwin in windows to emulate linux like commands set JAVA_HOME, ANT_HOME, CATALINA_HOME environment variables - paths to the installed software Add to PATH: JAVA_HOME\/bin, ANT_HOME\/bin, CATALINA_HOME\/bin You can start with the minimal application like struts-blanke.war or webapp-minimal\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":21636,"url":"http:\/\/bangla.sitestree.com\/?p=21636","url_meta":{"origin":22710,"position":5},"title":"Installing PHPUnit (and Pear package Manager) for Windows #Web Development #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 3, 2021","format":false,"excerpt":"Pre-requisite: 1. You need to install pear package manager first before installing PHPUnit I installed PHPUnit as well as Pear using Wamp. It should be the same with vanilla (i.e. plain) PHP The instructions at: http:\/\/nishutayaltech.blogspot.in\/2011\/04\/installing-phpunit-on-windows.html Worked well for me. One thing: remember to run command prompt as an administrator\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/22710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22710"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/22710\/revisions"}],"predecessor-version":[{"id":78141,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/22710\/revisions\/78141"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22710"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}