Parameter for ExtParams.Language

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
AteBe
User
Posts: 63
Joined: Thu Dec 06, 2018 7:02 am

Parameter for ExtParams.Language

Post by AteBe » Wed Sep 11, 2019 8:52 am

Hello,
I use the function "op.document.OCRPages" with the following parameters:

Code: Select all

	    int nID = getInst().Str2ID("op.document.OCRPages", false);
	    operation = getInst().CreateOp(nID);
	    operation.Params().Root().SetUnknown("Input", getActiveDocument());
	    options = operation.Params().Root().Item(new VARIANT("Options"));
	    options.SetString("PagesRange.Type", "All");
	    options.SetInt("OutputType", 0);
	    options.SetInt("OutputDPI", 300);
However, I do not set the parameter "ExtParams.Language". Which language will then be used?
Is there a list of all values that can be used with the parameter "ExtParams.Language"?

AteBe

User avatar
Sasha - Tracker Dev Team
User
Posts: 4888
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Parameter for ExtParams.Language

Post by Sasha - Tracker Dev Team » Wed Sep 11, 2019 9:26 am

Hello AteBe,

The first column of this list might help:

Code: Select all

	{
	L"afr", L"af", L"Afrikaans", L"Afrikaans",
	L"amh", L"am", L"Amharic", L"አማርኛ",
	L"ara", L"ar", L"Arabic", L"العربية",
	L"asm", L"as", L"Assamese", L"অসমীয়া",
	L"aze", L"az", L"Azerbaijani", L"Azərbaycan",
	L"aze_cyrl", L"az-cyrl", L"Azerbaijani - Cyrillic", L"Azərbaycan (Kiril)",
	L"bel", L"be", L"Belarusian", L"Беларуская",
	L"ben", L"bn", L"Bengali", L"বাংলা",
	L"bod", L"bo", L"Tibetan", L"བོད་ཡིག",
	L"bos", L"bs", L"Bosnian", L"Bosanski",
	L"bul", L"bg", L"Bulgarian", L"Български",
	L"cat", L"ca", L"Catalan; Valencian", L"Català",
	L"ceb", L"cb", L"Cebuano", L"",
	L"ces", L"cs", L"Czech", L"Čeština",
	L"chi_sim", L"zh-hans", L"Chinese - Simplified", L"中文(简)",
	L"chi_tra", L"zh-hant", L"Chinese - Traditional", L"中文(繁體)",
	L"chr", L"chr", L"Cherokee", L"ᏣᎳᎩ",
	L"cym", L"cy", L"Welsh", L"Cymraeg",
	L"dan", L"da", L"Danish", L"Dansk",
	L"deu", L"de", L"German", L"Deutsch",
	L"dzo", L"dz", L"Dzongkha", L"རྫོང་ཁ",
	L"ell", L"el", L"Greek, Modern", L"Ελληνικά",
	L"eng", L"en", L"English", L"English",
	L"enm", L"en-mid", L"English, Middle", L"",
	L"epo", L"eo", L"Esperanto", L"",
	L"est", L"et", L"Estonian", L"Eesti",
	L"eus", L"eu", L"Basque", L"Euskara",
	L"fas", L"fa", L"Persian", L"فارسی",
	L"fin", L"fi", L"Finnish", L"Suomi",
	L"fra", L"fr", L"French", L"Français",
	L"frk", L"frk", L"Frankish", L"",
	L"frm", L"fr-mid", L"French, Middle", L"Français (Milieu)",
	L"gle", L"ga-ie", L"Irish", L"Gaeilge",
	L"glg", L"gl", L"Galician", L"Galego",
	L"grc", L"el-old", L"Greek, Ancient", L"Ελληνικά (Αρχαίος)",
	L"guj", L"gu", L"Gujarati", L"ગુજરાતી",
	L"hat", L"fr-ht", L"Haitian; Haitian Creole", L"Kreyòl Ayisyen",
	L"heb", L"he", L"Hebrew", L"עברית",
	L"hin", L"hi", L"Hindi", L"हिन्दी",
	L"hrv", L"hr-hr", L"Croatian", L"Hrvatski",
	L"hun", L"hu", L"Hungarian", L"Magyar",
	L"iku", L"iu", L"Inuktitut", L"ᐃᓄᒃᑎᑐᑦ",
	L"ind", L"id", L"Indonesian", L"Indonesia",
	L"isl", L"is", L"Icelandic", L"Íslenska",
	L"ita", L"it", L"Italian", L"Italiano",
	L"ita_old", L"it-old", L"Italian - Old", L"Italiano (Antico)",
	L"jav", L"jv", L"Javanese", L"",
	L"jpn", L"ja", L"Japanese", L"日本語",
	L"kan", L"kn", L"Kannada", L"ಕನ್ನಡ",
	L"kat", L"ka", L"Georgian", L"ქართული",
	L"kat_old", L"ka-old", L"Georgian - Old", L"ქართული (ძველი)",
	L"kaz", L"kk", L"Kazakh", L"Қазақ тілі",
	L"khm", L"km", L"Central Khmer", L"ភាសាខ្មែរ",
	L"kir", L"ky", L"Kirghiz; Kyrgyz", L"Кыргыз",
	L"kor", L"ko", L"Korean", L"한국어",
	L"kur", L"ku-arab-ir", L"Kurdish", L"کوردیی ناوەڕاست",
	L"lao", L"lo", L"Lao", L"ລາວ",
	L"lat", L"lat", L"Latin", L"",
	L"lav", L"lv", L"Latvian", L"Latviešu",
	L"lit", L"lt", L"Lithuanian", L"Lietuvių",
	L"mal", L"ml", L"Malayalam", L"മലയാളം",
	L"mar", L"mr", L"Marathi", L"मराठी",
	L"mkd", L"mk", L"Macedonian", L"Македонски",
	L"mlt", L"mt", L"Maltese", L"Malti",
	L"msa", L"ms", L"Malay", L"Melayu",
	L"mya", L"my", L"Burmese", L"မြန်မာ",
	L"nep", L"ne", L"Nepali", L"नेपाली",
	L"nld", L"nl-be", L"Dutch; Flemish", L"Nederlands (Vlaams)",
	L"nor", L"no", L"Norwegian", L"Norsk",
	L"ori", L"or", L"Oriya", L"ଓଡ଼ିଆ",
	L"pan", L"pa", L"Panjabi; Punjabi", L"ਪੰਜਾਬੀ",
	L"pol", L"pl", L"Polish", L"Polski",
	L"por", L"pt", L"Portuguese", L"Português",
	L"pus", L"ps", L"Pushto; Pashto", L"پښتو",
	L"ron", L"ro-md", L"Romanian; Moldavian; Moldovan", L"Română",
	L"rus", L"ru", L"Russian", L"Русский",
	L"san", L"sa", L"Sanskrit", L"संस्कृत",
	L"sin", L"si", L"Sinhala; Sinhalese", L"සිංහල",
	L"slk", L"sk", L"Slovak", L"Slovenčina",
	L"slv", L"sl", L"Slovenian", L"Slovenščina",
	L"spa", L"es", L"Spanish; Castilian", L"Español",
	L"spa_old", L"es-old", L"Spanish; Castilian - Old", L"Español (Antiguo)",
	L"sqi", L"sq", L"Albanian", L"Shqip",
	L"srp", L"sr-cyrl", L"Serbian", L"Srpski (ћирилично)",
	L"srp_latn", L"sr", L"Serbian - Latin", L"Srpski (Латински)",
	L"swa", L"sw", L"Swahili", L"Kiswahili",
	L"swe", L"sv", L"Swedish", L"Svenska",
	L"syr", L"syr", L"Syriac", L"ܣܘܪܝܝܐ",
	L"tam", L"ta", L"Tamil", L"தமிழ்",
	L"tel", L"te", L"Telugu", L"తెలుగు",
	L"tgk", L"tg", L"Tajik", L"Тоҷикӣ",
	L"tgl", L"fil", L"Tagalog", L"Filipino",
	L"tha", L"th", L"Thai", L"ไทย",
	L"tir", L"ti", L"Tigrinya", L"ትግርኛ",
	L"tur", L"tr", L"Turkish", L"Türkçe",
	L"uig", L"ug", L"Uighur; Uyghur", L"ئۇيغۇرچە",
	L"ukr", L"uk", L"Ukrainian", L"Українська",
	L"urd", L"ur", L"Urdu", L"اُردو",
	L"uzb", L"uz", L"Uzbek", L"O‘zbek",
	L"uzb_cyrl", L"uz-cyrl", L"Uzbek - Cyrillic", L"O‘zbek (Kirill)",
	L"vie", L"vi", L"Vietnamese", L"Tiếng Việt",
	L"yid", L"yid", L"Yiddish", L"",
	L"slk_frak", L"sk-frak", L"Slovak (Fraktur)", L"Slovenčina (Fraktur)",
	L"swe_frak", L"sv-frak", L"Swedish (Fraktur)", L"Svenska (Fraktur)",
	L"deu_frak", L"de-frak", L"German (Fraktur)", L"Deutsch (Fraktur)",
	};
Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

AteBe
User
Posts: 63
Joined: Thu Dec 06, 2018 7:02 am

Re: Parameter for ExtParams.Language

Post by AteBe » Wed Sep 11, 2019 9:31 am

Hello Alex,
thanks for the list.
Which language will then be used if I do not set the parameter "ExtParams.Language"?
AteBe

User avatar
Sasha - Tracker Dev Team
User
Posts: 4888
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Parameter for ExtParams.Language

Post by Sasha - Tracker Dev Team » Wed Sep 11, 2019 9:33 am

Hello AteBe,

From what I know, English is default.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply