{"id":24586,"date":"2011-09-11T00:00:00","date_gmt":"2011-09-11T00:00:00","guid":{"rendered":"https:\/\/alienroad.com\/google-bilgi-bankasi\/internationalization\/"},"modified":"2011-09-11T00:00:00","modified_gmt":"2011-09-11T00:00:00","slug":"internationalization","status":"publish","type":"ar_kb","link":"https:\/\/alienroad.com\/google-bilgi-bankasi\/internationalization\/","title":{"rendered":"\u00ce\u00f1\u0163\u00e9r\u00f1\u00e5\u0163\u00ee\u00f6\u00f1\u00e5\u013c\u00ee\u017e\u00e5\u0163\u00ee\u00f6\u00f1"},"content":{"rendered":"<p class=\"gargardate\">Sunday, September 11, 2011<\/p>\n<p>\n  So you&#8217;re going global, and you need your website to follow. Should be a simple case of getting<br \/>\n  the text translated and you&#8217;re good to go, right? Probably not. The Google Webmaster Team<br \/>\n  frequently builds sites that are localized into over 40 languages, so here are some things that we<br \/>\n  take into account when launching our pages in both other languages and regions.\n<\/p>\n<p>\n  <em>(Even if you think you might be immune to these issues because you only offer content in<br \/>\n    English, it could be that non-English language visitors are<br \/>\n    <a href=\"https:\/\/translate.google.com\/translate?sl=en&amp;tl=ja&amp;u=http%3A%2F%2Finvestor.google.com%2F\" class=\"external-link\">using tools like Google Translate to view your content in their language<\/a>.<br \/>\n    This traffic should show up in your analytics dashboard, so you can get an idea of how many<br \/>\n    visitors are not viewing your site in the way it&#8217;s intended.)<\/em>\n<\/p>\n<h2 id=\"more-languages-=-more-html-templates\" tabindex=\"-1\">More languages != more HTML templates<\/h2>\n<p>\n  We can&#8217;t recommend this enough: reuse the same template for all language versions, and always try<br \/>\n  to keep the HTML of your template simple.\n<\/p>\n<p>\n  Keeping the HTML code the same for all languages has its advantages when it comes to maintenance.<br \/>\n  Hacking around with the HTML code for each language to fix bugs doesn&#8217;t scale\u2013keep your page code<br \/>\n  as clean as possible and deal with any styling issues in the CSS. To name just one benefit of<br \/>\n  clean code: most translation tools will parse out the translatable content strings from the HTML<br \/>\n  document and that job is made much easier when the HTML is well-structured and valid.\n<\/p>\n<h2 id=\"how-long-is-a-piece-of-string\" tabindex=\"-1\">How long is a piece of string?<\/h2>\n<p>\n  If your design relies on text playing nicely with fixed-size elements, then translating your text<br \/>\n  might wreak havoc. For example, your left-hand side navigation text is likely to translate into<br \/>\n  much longer strings of text in several languages\u2013check out the difference in string lengths<br \/>\n  between some <a href=\"https:\/\/www.google.com\/intl\/en\/privacy\/\" class=\"external-link\">English<\/a><br \/>\n  and<br \/>\n  <a href=\"https:\/\/www.google.com\/intl\/nl\/privacy\/\" class=\"external-link\">Dutch<\/a> language<br \/>\n  navigation for the same content. Be prepared for navigation titles that might wrap onto more than<br \/>\n  one line by figuring out your line height to accommodate this (also worth considering when you<br \/>\n  create your navigation text in English in the first place).\n<\/p>\n<p>\n  Variable word lengths cause particular issues in form labels and controls. If your form layout<br \/>\n  displays labels on the left and fields on the right, for example, longer text strings can flow<br \/>\n  over into two lines, whereas shorter text strings do not seem associated with their form input<br \/>\n  fields\u2013both scenarios ruin the design and impede the readability of the form. Also consider the<br \/>\n  extra styling you&#8217;ll need for right-to-left (RTL) layouts (more on that later). For these reasons<br \/>\n  we design forms with labels above fields, for easy readability and styling that will translate<br \/>\n  well across languages.\n<\/p>\n<p><img decoding=\"async\" class=\"attempt-right screenshot\" src=\"https:\/\/alienroad.com\/wp-content\/uploads\/kb-gorsel\/g-fff0ba2bc5e5.png\" loading=\"lazy\" alt=\"Screenshots of Chinese and German versions of web forms\"><\/p>\n<p>\n  Also avoid fixed-height columns\u2013if you&#8217;re attempting to neaten up your layout with box backgrounds<br \/>\n  that match in height, chances are when your text is translated, the text will overrun areas that<br \/>\n  were only tall enough to contain your English content. Think about whether the UI elements you&#8217;re<br \/>\n  planning to use in your design will work when there is more or less text\u2013for instance,<br \/>\n  <a href=\"https:\/\/www.google.co.il\/about\/corporate\/company\/\" class=\"external-link\">horizontal<\/a> vs.<br \/>\n  <a href=\"https:\/\/www.google.com\/ads\/tv\/getstarted\" class=\"external-link\">vertical<\/a> tabs.\n<\/p>\n<h2 id=\"on-the-flip-side\" tabindex=\"-1\">On the flip side<\/h2>\n<p>\n  Source editing for bidirectional HTML can be problematic because many editors have not been built<br \/>\n  to support the Unicode bidirectional algorithm<br \/>\n  (<a href=\"https:\/\/www.sw.it.aoyama.ac.jp\/2008\/pub\/IUC32-bidi\/\" class=\"external-link\">more research on the problems and solutions<\/a>).<br \/>\n  In short, the way your markup is displayed might get garbled:\n<\/p>\n<div><\/div>\n<p>\n  Our own day-to-day usage has shown the following editors to currently provide decent solutions for<br \/>\n  bidirectional editing: particularly Coda, and also Dreamweaver, IntelliJ IDEA and JEditX.\n<\/p>\n<p>\n  When designing for RTL languages you can build most of the support you need into the core CSS and<br \/>\n  use the directional attribute of the <code>html<\/code> element (for backwards compatibility) in<br \/>\n  combination with a class on the <code>body<\/code> element. As always, keeping all styles in one<br \/>\n  core stylesheet makes for better maintainability.\n<\/p>\n<p>\n  Some key styling issues to watch out for: any elements floated right will need to be floated left<br \/>\n  and vice versa; extra padding or margin widths applied to one side of an element will need to be<br \/>\n  overridden and switched, and any text-align attributes should be reversed.\n<\/p>\n<p>\n  We generally use the following approach, including using a class on the body tag rather than a<br \/>\n  <code>html[dir=rtl]<\/code> CSS selector because this is compatible with older browsers:\n<\/p>\n<p>Elements:<\/p>\n<div><\/div>\n<p>Left-to-right (default) styling:<\/p>\n<div><\/div>\n<p>Right-to-left styling:<\/p>\n<div><\/div>\n<p>\n  (See this in action in<br \/>\n  <a href=\"https:\/\/www.google.com\/intl\/en\/privacy\/\" class=\"external-link\">English<\/a> and<br \/>\n  <a href=\"https:\/\/www.google.com\/intl\/ar\/privacy\/\" class=\"external-link\">Arabic<\/a>.)\n<\/p>\n<p>\n  One final note on this subject: most of the time your content destined for right-to-left language<br \/>\n  pages will be bidirectional rather than purely RTL, because some strings will probably need to<br \/>\n  retain their LTR direction\u2013for example, company names in Latin script or telephone numbers. The<br \/>\n  way to make sure the browser handles this correctly in a primarily RTL document is to wrap the<br \/>\n  embedded text strings with an inline element using an attribute to set direction, like this:\n<\/p>\n<div><\/div>\n<p>\n  In cases where you don&#8217;t have an HTML container to hook the dir attribute into, such as title<br \/>\n  elements or JavaScript-generated source code for message prompts, you can use this equivalent to<br \/>\n  set direction where <span>&amp;#x202B;<\/span> and <span>&amp;#x202C;\u202c<\/span> are Unicode control<br \/>\n  characters for right-to-left embedding:\n<\/p>\n<div><\/div>\n<p>Example usage in JavaScript code:<\/p>\n<div><\/div>\n<p>\n  (For more detail, see the W3C&#8217;s articles on<br \/>\n  <a href=\"https:\/\/www.w3.org\/International\/tutorials\/bidi-xhtml\/\" class=\"external-link\">creating HTML for Arabic, Hebrew and other right-to-left scripts<\/a><br \/>\n  and<br \/>\n  <a href=\"https:\/\/www.w3.org\/TR\/i18n-html-tech-bidi\/#ri20030218.135304584\" class=\"external-link\">authoring right-to-left scripts<\/a>.)\n<\/p>\n<h2 id=\"its-all-greek-to-me...\" tabindex=\"-1\">It&#8217;s all Greek to me&#8230;<\/h2>\n<p>\n  If you&#8217;ve never worked with non-Latin character sets before (Cyrillic, Greek, and a myriad of<br \/>\n  Asian and Indic), you might find that both your editor and browser do not display content as<br \/>\n  intended.\n<\/p>\n<p>\n  Check that your editor and browser encodings are set to UTF-8 (recommended) and consider adding a<br \/>\n  <code>&lt;span&gt;<\/code> element and the <code>lang<\/code> attribute of the <code>html<\/code><br \/>\n  element to your HTML template so browsers know what to expect when rendering your page\u2013this has<br \/>\n  the added benefit of ensuring that all Unicode characters are displayed correctly, so using HTML<br \/>\n  entities such as <code>&amp;eacute;<\/code> (\u00e9) will not be necessary, saving valuable bytes! Check<br \/>\n  <a href=\"https:\/\/www.w3.org\/International\/tutorials\/tutorial-char-enc\/en\/all.html\" class=\"external-link\">the W3C&#8217;s tutorial on character encoding<\/a><br \/>\n  if you&#8217;re having trouble\u2013it contains in-depth explanations of the issues.\n<\/p>\n<h2 id=\"a-word-on-naming\" tabindex=\"-1\">A word on naming<\/h2>\n<p>\n  Lastly, a practical tip on naming conventions when creating several language versions. Using a<br \/>\n  standard such as the<br \/>\n  <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_639-1\" class=\"external-link\">ISO 639-1 language codes<\/a><br \/>\n  for naming helps when you start to deal with several language versions of the same document.\n<\/p>\n<p>\n  Using a conventional standard will help users understand your site&#8217;s structure as well as making<br \/>\n  it more maintainable for all webmasters who might develop the site, and using the language codes<br \/>\n  for other site assets (logo images, PDF documents) is handy to be able to quickly identify files.\n<\/p>\n<p>\n  See previous Webmaster Central posts for advice about URL structures and other issues surrounding<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/working-with-multi-regional-websites\/\" class=\"external-link\">working with multi-regional websites<\/a><br \/>\n  and<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/working-with-multilingual-websites\/\" class=\"external-link\">working with multilingual websites<\/a>.\n<\/p>\n<p>\n  That&#8217;s a summary of the main challenges we wrestle with on a daily basis; but we can vouch for the<br \/>\n  fact that putting in the planning and work up front towards well-structured HTML and robust CSS<br \/>\n  pays dividends during localization!\n<\/p>\n<p class=\"byline-author\">Posted by<br \/>\n    <a href=\"https:\/\/plus.google.com\/113030639083158400706\/about\" rel=\"author\" class=\"external-link\">Kathryn Cullen<\/a>,<br \/>\n    Google Webmaster Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sunday, September 11, 2011 So you&#8217;re going global, and you need your website to follow. Should be a simple case of getting the text translated and you&#8217;re good to go, right? Probably not. The Google Webmaster Team frequently builds sites that are localized into over 40 languages, so here are some things that we take [&hellip;]<\/p>\n","protected":false},"menu_order":84772,"template":"","meta":{"footnotes":""},"ar_kb_kategori":[665],"ar_kb_etiket":[],"class_list":["post-24586","ar_kb","type-ar_kb","status-publish","has-post-thumbnail","hentry","ar_kb_kategori-blog"],"_links":{"self":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/24586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb"}],"about":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/types\/ar_kb"}],"version-history":[{"count":0,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/24586\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media\/26895"}],"wp:attachment":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media?parent=24586"}],"wp:term":[{"taxonomy":"ar_kb_kategori","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_kategori?post=24586"},{"taxonomy":"ar_kb_etiket","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_etiket?post=24586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}