Solutions

MarkLogic Data Hub Service

Fast data integration + improved data governance and security, with no infrastructure to buy or manage.

Learn More

Learn

Stay On Top Of Everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

Community

Stay On Top Of Everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

Company

Stay On Top Of Everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

 
Knowledgebase:
MarkLogic supported ISO Codes for the representation of language names
27 January 2015 02:40 PM

Summary

In addition to the multiple language support in MarkLogic Server, MarkLogic Server also supports ISO codes listed below for representation of names for these languages.

 

MarkLogic supported ISO codes

MarkLogic supports following ISO codes for the representation of language names:
1. ISO 639-1
2. ISO 639-2/T , and
3. ISO 639-2/B

Further, NOTE:
a. MarkLogic uses the 2-letter ISO 639-1 codes, including zh's zh_Hant variant, and
b. MarkLogic uses the 3-letter ISO 639-2 codes. To get a more specific list of ISO 639-2 codes go to http://www.loc.gov/standards/iso639-2/php/code_list.php


Again, MarkLogic only supports below listed languages, http://docs.marklogic.com/guide/search-dev/languages#id_64343
English
French
Italian
German
Russian
Spanish
Arabic
Chinese (Simplified and Traditional)
Korean
Persian (Farsi)
Dutch
Japanese
Portuguese
Norwegian (Nynorsk and Bokmål)
Swedish

 

Suggestion

The function cdict:get-languages() can be used to get ISO Codes for all supported languages. Here is an example of the usage:

  xquery version "1.0-ml";
  import module namespace cdict = "http://marklogic.com/xdmp/custom-dictionary" 
		  at "/MarkLogic/custom-dictionary.xqy";

  cdict:get-languages()

  ==> ("en", "ja", "zh", "zh_Hant")

 

(1 vote(s))
Helpful
Not helpful

Comments (0)