1179 posts
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
mabuc says

thank you for the info..

does anyone here know how to test .po and .mo in a theme? I created .po and .mo already but I don’t know how to test it in my theme if it works or not..

thanks

1 post
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Sells items exclusively on Envato Market
  • Located in Sweden
designpalatset says

thank you for the info..

does anyone here know how to test .po and .mo in a theme? I created .po and .mo already but I don’t know how to test it in my theme if it works or not..

thanks

You need to edit your wp-config.php, change the line:

define('WPLANG', '');

to something like

define('WPLANG', 'sv_SE'); // Swedish locale etc.
FirestormGraphics
FirestormGraphics Recent Posts Threads Started
38 posts
  • Has collected 1+ items on Envato Market
  • Located in United Kingdom
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
FirestormGraphics says

just get users to donate theirs, im sure they wont mind in return for a little support and a credit in a txt file :)

2210 posts
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+13 more
mpc says

This first step in that explanation is not needed at all and makes the whole thing seem a little more complicated than it is.
Next, copy your theme into poedit/bin/ directory.

Don’t do that. Just leave your theme right where it is.

Here’s the steps with some screenshots as I do it.

1) Open the poEdit program, and create a new Catalog.

2) A dialog popup comes up. Enter in your theme info. I usually just put the name of the theme, but you can put as much info as you want.

3) Click the “Paths” tab. Assuming you plan to save this in a folder called “lang” or “language” that’s one level deep in your theme, you’d put in ”../” for the path as I’ve done in the screenshot.

4) Click the “Keywords” tab. You want to put it in just the two gettext elements we use in our WP themes, which I’ve done in the screenshot. ”__” and “_e”

5) So, now you’ve put in your project info, paths, and keywords. Click “okay” and poEdit will show you a save dialog box. Save the file directly in your theme’s “lang” folder (or whatever you called it). When you save it you can name it either theme-name.po or default.po or whatever.po.

Now that you’ve saved it there inside your theme on your computer, poEdit knows to take the relative path you entered in the “Paths” tab previously and apply it relatively to where you just saved the file.

6) Right after you click “Save” poEdit should process for a second and return all the translatable strings from your theme to you like this:

7) Now this is the part I always used to screw up because noone ever told me…

After you’re presented with this screen of all your translatable strings, hit “Save” again.

(The reason for this is because the first time you saved it, you were saving a blank file. Now poEdit has gone through and found all the strings, so you need to save again, or else you will be giving your buyers a blank file.)

I know this is an old thread but any idea here can I get this guide with images? :)

2210 posts
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+13 more
mpc says
1 post
  • Has been part of the Envato Community for over 1 year
VaneEssa says

I have been working with this localization tool which I recommend to you for wordpress: https://poeditor.com/ and it really does a great job. It support a large number of translators on the same project, working on different languages. There are also plenty of features that ease the work. It has API, a wordpress plugin and github integration also.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by