Choose language of entries in WordPress • WordPress Help

 wordpress-post-language-logo "width =" 525 "height =" 525 "class =" aligncenter size-full wp-image- 76375 "srcset =" http://bootstrapx.com/wp-content/uploads/2018/07/wordpress-post-language-logo.png 525w, https://ayudawp.com/wp-content/uploads/2014/ 09 / wordpress-post-language-logo-150x150.png 150w, https://ayudawp.com/wp-content/uploads/2014/09/wordpress-post-language-logo-500x500.png 500w "sizes =" ( max-width: 525px) 100vw, 525px "/> </p>
<p> With the recent changes in the <strong> internationalization in WordPress </strong>that <a href= since WordPress 4.0 already allows to choose language since installation and changes later in the general settings, there is an initiative for to translate this functionality also to each publication .

WordPress is mainly downloaded in English, with huge difference, but there are languages ​​like Chinese, German or Spanish that suppose u a huge installed base and it seems sensible to incorporate the concept of internationalization to every aspect of the system.

Currently there is no possibility of specifying the language in which a publication is written an element that once incorporated into the WordPress core and adopted by developers, would allow to personalize and define more and better the target audience of each entry or page, making WordPress a complete multilanguage publishing system without the need for external applications, practically all incompatible with each other.

The idea is that WordPress, among the current publishing options, allows to define the language in which each entry is written, something that could visually be solved in this way:

It would be a new field in which to specify in which language the entry is written, pu Logically, this type of change will require the incorporation of WordPress functions that, as of today, are not available, and could be the following:

Input language values ​​

] They should be accessible as template tags:

  • the_post_language ()
  • get_the_post_language ()

And possibly they would affect some values ​​like the following:

  • get_bloginfo ('language')
  • get_bloginfo ('text -direction ')
  • (and consequently to language_attributes () )

Or it could be implemented by a new attribute in each entry, similar to post_class () : [19659003] Something like this:

Y , could, in addition, differentiate microformats .

Finally, it is probably not a good idea to have this input language functionality active by default. It could be activated by a constant to include or enable in the configuration files wp-config.php so for example: define ('WP_POST_LANGUAGE', true) or, perhaps better , using a filter of this type: add_filter ('post_language', $ locale)
or even by a box in the general settings, inactive by default.

Logically, all this will require, as with any new function, that the developers incorporate it in their future themes and plugins, for a total compatibility and use of the feature, as with any other function such as the highlighted entries or the input formats.

If you dare , you can try a first version at the early stage of development on the same page of the project, or from the following link:

[download id=”76379″]

In any case it is only a proposal, which requires development through code and acceptance n of the idea by the community so that, if possible, be available in a future version of WordPress .

Personally I think a great, great idea. Do you agree?

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

WordPress 4.0 beta 1 ready to test • WordPress Help

We use third party cookies with services, also guarantors of your privacy, that analyze your browsing uses so that we can improve the contents, if you are already subscribed to the newsletter and the shared elements in social networks and the comments form. [19659002] 1P_JAR, APISID, CONSENT, HPSID, NID, SAPISID, SID, SIDCC, SSID, disqus_unique, disqusauth

disqus_unique, disqusauth

1P_JAR, APISID, CONSENT, HPSID, NID, SAPISID, SID, SIDCC, SSID

]