You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello @leocaseiro , COP already has two languages, english and portuguese, the translation process is very easy, all you need to do is download poedit, create a .mo file for whatever language you want to translate to(e. g. if someone want to translate it to korean, it would interesting save as ko_KR that is the locale of that country, here a list of references). The rest, you need to fill the plugin using __ functions with the string in english and the name of plugin like __('hello world', PLUGIN_NAME); (maybe you need to configure the file to read __ functions), next step is update the file, poedit will get all strings and list to you, so you will translate it to your idiom, when you finish, save the file. To change the language, i implemented a conditional that checks the lang of html tag and load the correct language. Other important thing, translate always ENGLISH to the language you desire, i had a lot of pain trying to translate portuguese to english in other projects because of utf8 characters until notice the logic is reverse :)
Implement translations with .mo
The text was updated successfully, but these errors were encountered: