虽然这里已经问过很多类似的问题,但我没有找到我想要的答案..
开发多语言应用程序的最佳方法是什么,它应该非常快.. 我不知道我会翻译多少文本。
Method 1: create and keep all the text in an array for every language i want to support and include that file everywhere.
Method 2: Use gettext (.MO, .PO files)
Method 3: Store all the translations in a text file and write a function to go through all the text and when matched display its value
Method 4: Store all the text and its translations in database, But i don't think it will be faster than storage in Filesystem.
Method 5: Same as method 1 but i will create multiple files per language just to keep everything structured.
虽然所有这些都会起作用,但你们认为哪种方法最快,如果我错过了任何方法,请告诉我。