Skip to content

Language issues

April 6, 2010

Have been working on making my new site bilingual and its been really useful to get hold of a Welsh language file for WordPress ‘cy.mo’ from:

http://codex.wordpress.org/Installing_WordPress_in_Your_Language

The codex site has been really useful and has been a fantastic source of help for bits of code to my many questions. The installation of the above .mo file was easy enough just had to change the wp-config file by opening in a text editor and changing the line “define (‘WPLANG’, ‘cy’);” to add ‘cy’ as it shows. Then upload the file to the root and make a ‘languages’ folder in the wp-content folder and upload the cy.mo

When I reviewed the site all the dates had changed to Welsh which was great yet some of the text that introduces the comments was still in english so maybe that’s just the parameters of the language file. Some bits of code that were included in my footer page & main index page had to be changed manually in the php code to Welsh and also the buttons in the navigation - basically anything that is visible text in any php file will not be changed and will have to be switched manually (which kind of makes sense really). Good thing to remember for next time when doing a bilingual site - keep as much text and links in pages and posts as possible. One thing that caught me out though was the Dashboard completely changed to Welsh – yikes – good job I know where most things are by now!

Advertisement
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.