443 posts Keep Walking
  • Has been part of the Envato Community for over 3 years
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has collected 100+ items on Envato Market
+3 more
UXbarn says

Hi,

As far as I know, textdomain should be the name of author or the theme itself that is unique enough. I’m now applying the gettext function to all strings in my theme for localization purpose using the same textdomain which is “uxbarn”.

Then I thought about what if using it differently depending on each section in the theme, for example;
  • Theme Options section: “uxbarn_options”
  • Shortcodes section: “uxbarn_shortcodes”
  • CPT section: “uxbarn_cpt”
I used to try to load the strings with different textdomain using WPML plugin and I think it’s great to see those strings grouped into their own contexts and to have their own .po, .mo files.

Just wondering that should I do this?

As a buyer, what do you think? Will this benefit you?

Or I would rather have to use the same textdomain for all strings?

Thank you. :)

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