Jump to content
Sign in to follow this  
pehja

Swedish language in posts

Recommended Posts

pehja

Where do i change the language "red full article" and "currently viewing" In wordpress i no where to find it. But where to I find it in "PageLine develop" Do i go in en edit with an external program, ore can I do it within Pageline in wordpress? Thanks for any reply Peter


Professionell musician | Webbdesigner | Apple freak

Pehja Production.png

Share this post


Link to post
Share on other sites
Simon
You need to edit the translation file pagelines.pot with poedit and create a new translation file. Or there are ways to translate strings with a filter for example http://blog.ftwr.co.uk/archives/2010/01/02/mangling-strings-for-fun-and-profit/

Share this post


Link to post
Share on other sites
pehja
Pageline.pot doesn't open with Poedit but the language files does. Can I open for example de_DE.po and cage that. And if so, what is the difference between that file and de_DE-mo ?

Professionell musician | Webbdesigner | Apple freak

Pehja Production.png

Share this post


Link to post
Share on other sites
Simon
po is the editable file, mo is the machine code file that wordpress reads. POedit will save the file as a mo

Share this post


Link to post
Share on other sites
pehja
Thanks pross! So I open the pot file and it will create a mo file that should go in the language map.

Professionell musician | Webbdesigner | Apple freak

Pehja Production.png

Share this post


Link to post
Share on other sites
Simon
yes, translate your strings then save it as a mo file, name it EXACTLY as you have the lang set in wp-congig.php FR_fr.mo for french for example. Then install the base child theme and put the new mo in /language/ inside the child theme, make sure the child is active and it should work.

Share this post


Link to post
Share on other sites
pehja
Simon, one other question. I have watched a tutorial about this. He named the file pt_SE.mo but in your theme they are called fr_FR.mo and so on. Should i name my file se_SE.mo and put that file in the language map. Then open the wp-config.php and put in se_SE so it looks like this? define('WPLANG', 'se_SE'); Need to be sure ;-)

Professionell musician | Webbdesigner | Apple freak

Pehja Production.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×