{"id":69872,"date":"2021-08-21T04:10:07","date_gmt":"2021-08-21T08:10:07","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/net-globalizing-web-applications-19\/"},"modified":"2021-08-21T04:10:07","modified_gmt":"2021-08-21T08:10:07","slug":"net-globalizing-web-applications-19","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=69872","title":{"rendered":".Net: Globalizing Web Applications #19"},"content":{"rendered":"<p>  Three ways of globalizing web-applications  <\/p>\n<ul>\n<li> Create one for each culture\/language &#8211; usually the web-interfaces. Redirect to a web-site built based on the current culture.    <\/li>\n<li> Write one web-application but detect current culture, then change the user interface (texts, date time formats) to represent the current culture &#8211; dynamically   <\/li>\n<li> Satellite Based: Use resource files to keep culture specific messages. One resource file for one culture. Resource files will be in the format: key = value\/message. Use the keys in the user interfaces. The keys will be replaced with the messages\/values as stored in the resource files &#8211; based on current culture.   <\/li>\n<li> Best Approach: Satellite Based   <\/li>\n<li> Current culture: as set in the browsers\/operating systems &#8211; or give culture\/language change option on a button click   <\/li>\n<li> How to detect current culture: Use CultureInfo, Calendar, and comparison classes  <\/li>\n<li> Setting culture in the web.config file: Use the globalization element of the web.config file. You can set properties for each culture  <\/li>\n<li> Satellite Based\n<ul>\n<li> set the id and runat attributes for all the user-interface elements that require translation        <\/li>\n<li> create a fallback resource file to keep default strings (key=value) (displays by default or no culture is set or culture is not recognized)   <\/li>\n<li> create resource file for each culture that you want to support   <\/li>\n<li> Use the ResourceManager class to load the resource files   <\/li>\n<li> write code to detect the user&#8217;s current culture.   <\/li>\n<li> Write code to load strings from the resource files and display them   <\/li>\n<li> Example: <br \/> \n<pre style='padding:10px;font-size:12px'>  using System.Globalization  using System.Threading  using System.Resourcesprotected ResourceManager gStrings = new ResourceManager( \"JustEtcWebAppsCS.strings\", typeof(Satellite).Assembly);......head1.InnerHtml = gStrings.GetString(\"satellite.head1\");<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>From: http:\/\/sitestree.com\/?p=5232<br \/> Categories:19<br \/>Tags:<br \/> Post Data:2010-11-12 15:45:20<\/p>\n<pre><code>    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\"&gt;https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    (Big Data, Cloud, Security, Machine Learning): Courses: &lt;a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"&gt; http:\/\/Training.SitesTree.com&lt;\/a&gt; \n    In Bengali: &lt;a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\"&gt;http:\/\/Bangla.SaLearningSchool.com&lt;\/a&gt;\n    &lt;a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\"&gt;http:\/\/SitesTree.com&lt;\/a&gt;\n    8112223 Canada Inc.\/JustEtc: &lt;a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\"&gt;http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) &lt;\/a&gt;\n    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com'&gt; https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    Medium: &lt;a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"&gt; https:\/\/medium.com\/@SayedAhmedCanada &lt;\/a&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Three ways of globalizing web-applications Create one for each culture\/language &#8211; 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 &#8211; dynamically Satellite Based: Use resource files to keep culture &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=69872\">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":[1917],"tags":[],"class_list":["post-69872","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":70277,"url":"http:\/\/bangla.sitestree.com\/?p=70277","url_meta":{"origin":69872,"position":0},"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":66435,"url":"http:\/\/bangla.sitestree.com\/?p=66435","url_meta":{"origin":69872,"position":1},"title":"JSF: Lesson &#8211; 7: Using Message Bundles in JSF: Support Internationalization #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 19, 2021","format":false,"excerpt":"Target: Intermediate level web-developers (Java-platform). Sample application on Internationalization with JSF Video Tutorial on Internationalization with JSF To support Internationalization, in the web-pages, the text messages and the control texts make use of the keys for the values\/messages. In the value fields, keys are mentioned\/provided as the values. Later, based\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":65910,"url":"http:\/\/bangla.sitestree.com\/?p=65910","url_meta":{"origin":69872,"position":2},"title":"MVC : Struts : Java : Industry Web Application #Java Short Notes","author":"Sayed","date":"July 17, 2021","format":false,"excerpt":"Industries use frameworks for application development quite often. For example: Java concepts like JSP, Servlet, Swing, Bean, JDBC can be used directly to create web-applications but when such applications become big, it becomes difficult to maintain and develop them further. Hence, frameworks like struts are used to develop large web-based\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":70285,"url":"http:\/\/bangla.sitestree.com\/?p=70285","url_meta":{"origin":69872,"position":3},"title":"Razor, Web-page Model, Web-Application Development in C# #.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=1320&title=Razor,%20Web-page%20Model,%20Web-Application%20Development%20in%20C# (written long back) Razor, Web-page Model, Web-Application Development in C# Razor:a markup syntax to add server side code into ASP.net pages Razor example: Current time is @DateTime.Now Razor Code Syntax Single statement block @{ var message = \"Hello World\"; } Inline expression or variable The message: @message\u2026","rel":"","context":"In &quot;C# - Misc&quot;","block_context":{"text":"C# - Misc","link":"http:\/\/bangla.sitestree.com\/?cat=1973"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26197,"url":"http:\/\/bangla.sitestree.com\/?p=26197","url_meta":{"origin":69872,"position":4},"title":"Hacking Basics: Short Overview: A Short Breadth #Root","author":"Author-Check- Article-or-Video","date":"April 19, 2021","format":false,"excerpt":"Hacking Basics: Short Overview: A Short Breadth Audience: Ethical Hackers, Wanna be security researchers, interested to know the basics of Security Objective: Identify the key hacking concepts. Just the names primarily. key Topics: Password Cracking, Keyloggers, Trojans, Viruses, Worms, Rootkits, Social Engineering, Privilege Escalation, Denial of service attack, Botnet, Alternate\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":65714,"url":"http:\/\/bangla.sitestree.com\/?p=65714","url_meta":{"origin":69872,"position":5},"title":"If then else in shell programming. Count the number of files in current directory, and check &#8230; #Linux\/Unix: Shell Programming &#8211; 001","author":"Author-Check- Article-or-Video","date":"July 12, 2021","format":false,"excerpt":"#!\/bin\/sh #count the number of files in current directory, and check if the number is equal to or greater than or less than 26 #NOF represents number of files NOF=`ls -l | wc -l` if [ $NOF -eq 26 ] then echo \"No of files and directories is equal to\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\/69872","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=69872"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69872\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69872"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}