) contains pieces of text in a language and/or script different than the language on the page level, it is recommended to mark this correctly in the content. When content on a Wikimedia wiki (be it Wikipedia, Wikisource. Pieces of text in a different language than the page language It is however not (yet) possible to change this other than via a MediaWiki hook. See mw:Page content language for more information. MediaWiki has a concept of "page content language".
Tagging numbers in different languages software#
The MediaWiki software adds a lang and dir attribute on the whole page according to the user language. An HTML element should contain a lang attribute identifying the language it is written in, and also a dir attribute, identifying the writing direction. It is a best practice to tag a web page or a piece of text in a web page in the correct language.
Thus you should never assume that you can hard-code the percent sign.
It can be written several ways: 98%, 98 %, 98 pct, %98. However, notice that Hindi uses a 2-digit grouping, except for the 3-digit grouping for denoting hundreds: 12,34,56,789.00 The placement of the percent sign (%) This refers to the number of digits contained between each separator for all digit groups that appear to the left of the decimal separator.įor example, the 3-digit group is used for most cultures, such as for English (United States): 123,456,789.00. Everything that can be counted will use one of the two systems, but seldom both. Korean regularly uses both a Sino-Korean system and a native Korean system. This 'extra digit' represents the number 10. Note how some scripts have one more digit than Latin or Arabic. Table 1: Digits used for a variety of scripts. (one of the scripts used to write Punjabi) (script used to write Hindi,Marathi, and other languages) Numbers might, of course, be shaped differently from one locale to another.Īlso, numbers in some locales might not correspond directly to there digits (0-9) used in, say, the United States. The shape of the numbers and representation of the number 10
Thus a negative five hundred and twenty-seven could be displayed as: The negative sign can be used at the beginning of the number, but it can also be used at the end of the number.Īlternatively, the number can be displayed with parentheses around it or even in a color such as red. Thus one thousand twenty-five and seven tenths is displayed as 1,025.7 in the United States and 1.025,7 in Germany. In the United States, this character is a period (.). The character used as the decimal separator In Sweden, the thousands separator is a space. Thus one thousand and twenty-five is displayed as 1,025 in the United States and 1.025 in Germany. In the United States, this character is a comma (,). The character used as the thousands separator When dealing with numeric values, there are several major items to pay attention to: Are the values currency (monetary) values?Ĭurrencies require separate treatment from other numeric values.