Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialStefan Vitasovic
13,443 PointsWordPress - language
Is there a way of hardcoding a language into wordpress? I need a way to bypass the theme/plugin settings.
To be more specific, I need to convert the cyrillic letters into their latin equivalents. i.e. ш-š etc. I'm using a plugin that does not work a 100%, so I'm trying to fix the rest..
1 Answer
Zac Gordon
Treehouse Guest TeacherIf you are having problems with a specific plugin you would have to look into editing the plugin file's language files where you see the problem. There are language packs coming in WP that will change this a bit, but your best bet for now is to try to find the language file with the problem and edit and update it yourself if that will work?
Stefan Vitasovic
13,443 PointsStefan Vitasovic
13,443 PointsSeems that some plugins favor bilinguality a bit more, hence I did not have much luck with translating the .pot/.po files... Also, WP registers my language (Serbian) as cyrillic by default, so I use a plugin to convert it to latin, but not all things get converted, and some stay in English. I had to hardcode a bunch of php template files so the language could become more or less what it should display.
Stefan Vitasovic
13,443 PointsStefan Vitasovic
13,443 Pointsp.s. It would sure be nice to have a course relating to this topic :)