Unlike in some other languages, main() is just like any other function in Python. If you want it to run, you have to explicitly call it: def main(): ... main() ...
That would work as a first approximation. The problem with fixed word lists for language detection, though, is that real texts (and especially short ones) may not provide enough hits in your list. A more reliable approach would collect parts of other language features (like statistics of letter n-grams that...
typo3,typoscript,typo3-6.2.x,language-detection
I've added the following configuration; plugin.tx_rlmplanguagedetection_pi1 { useOneTreeMethod = 1 defaultLang = de limitToLanguages = de,en } page.987 =< plugin.tx_rlmplanguagedetection_pi1 I understood that the functionality is not working only with this configuration. We need to "Select Official Language (ISO code):" in the website langauge ( alternate language we added in...
node.js,utf-8,character-encoding,redis,language-detection
Do a google search for "language detect node". This turned up https://github.com/FGRibreau/node-language-detect and https://github.com/dachev/node-cld.