public class WikimediaLanguageCodes extends Object
| Constructor and Description |
|---|
WikimediaLanguageCodes() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLanguageCode(String wikimediaLanguageCode)
Get a BCP 47
language code for the given Wikimedia language code.
|
public static String getLanguageCode(String wikimediaLanguageCode)
wikimediaLanguageCode - the language code as used by WikimediaIllegalArgumentException - if the given Wikimedia language code is not known. In
particular, the method will not assume that unknown codes
agree with BCP 47 by default (since they have no reason to do
this).Copyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage