xili-dictionary : version 2.10.1 (add features to manage plugin files from folder WP_LANG_DIR – wp-content/languages)
New presentation of stats in WP plugins repository as well described here in article of Brian. Be aware of some issues in “Active Versions”. A new ticket was just open as #912 in tracs ! and close in 24 hours 😉 Sorting is now good!
Thanks to contributors of the week : Emmanuel, Gabriel,…
WordPress 4.1 “Dinah” shipping was an opportunity to update plugins designed to create a multilingual website with xili-language (v.2.16.0), xili-tidy-tags (v1.10.0) and xili-dictionary (2.10.0) and to create (as example) a multilingual child theme TwentyFiften-xili and his demo website.
xili-language version 2.15.2 is a technical updating for WordPress 4.0 (remains compatible with previous version) (constant WPLANG is now obsolete).
This site itself was used also as test before and after 4.0 update.
Another tests were done on empty websites and with importing of xml file from other multilingual sites powered by xili-language.
Soon a post with a step by step process to export / import xml datas that need some “attention” !
Thanks for your return !
xili-language v. 2.15.0 introduced function add_theme_support ( 'custom_xili_flag') to permit flag features inside Media Library.
By adding a parameter array ($args), xili-language v. 2.15.1 introduces a way to register default flags coming from a sub-folder of the theme’s folder. An easy way to provide adapted flags to the webmaster in conformity with the design and look of the theme. No need to upload these preset images.
Example of code to put inside a function call by an add_action ‘after_setup_theme‘ (priority set to 12)
%2$s is used in ‘path’ because the flags are inside the child theme in this example. Here, it is supposed that all the pictures are present.
To deliver examples of loop, twenty fourteen-xili theme is managed inside xili-language plugin itself using available language list and testing if picture exists. And latest version of twenty thirteen-xili, will include another way.
This week, xili-language version 2.15 will be shipped with important new features for webmasters and theme developers.
Even if flags in language selection lists have limits (*) xili-language v. 2.15, will support flags, up to now it was necessary to use CSS to replace the name of a language with a flag image.
(*) same languages are spoken in multiple countries!
Some examples have been delivered in the 5 bundled multilingual child themes already like twenty fourteen xili which is in use here live. A newer version of each child theme will be shipped and incorporate the recent new features introduced by xili-language 2.15.
With tools provided by the WordPress Core and those xili-language plugin introduces:
there is now an easy way to assign an image added to the media library as a flag,
a way to assign this flag to a language,
a new interface at the Appearance menu to adjust some parameters,
and an automatic process to generate style lines for the webpage header.
Developers will find:
a new add_theme_support() named ‘custom_xili_flag’,
new filters to set their custom themes,
new shortcodea to use flag images uploaded in library by the webmasters.
Some screenshots: Below, taken from the media list, a picture that is assigned as a flag (the second is assigned as header image)
The screenshot below shows the main option (flag or language name), a list of available flags uploaded to the media library and some very technical lines reserved for skilled and motivated users. For the five bundled themes, these values are provided as template style:
choice of flags are free, no need to define a name or a type…
the plugin chooses the good picture uploaded and assigned to a language from the media library.
using filters, theme developers can deliver default values and settings.
Step by step, xili-dictionary (> 5 years old) reaches maturity. It is possible to manage language files (.po, .pot and .mo) for current theme and plugins.
While using the available items (hook, api, UI items…) in the WP toolbox (and libraries), it is now possible to scan directly the sources of the current theme or a selected plugin. Found translatable items in sources are imported inside the dictionary (with informations and comments given by sources author).
poEdit is a powerful desktop tool for developers. Here, it is possible to work online. On the same screen, it is possible to see the original source text (msgid) and the translations both in multiple languages.
Two ways to see (and select, search or sort) the content of dictionary: a table like WP posts list and a interactive jQuery powered table.
More infos soon…
If you like this plugin, which we are offering for free by the way, we kindly ask you to contribute and make our FAQ and documentation better. Please support us and participate by translating, writing (or improving) blog posts, help and FAQ articles. If you are interested please get in contact with by using our contact page.
Step by step, updating continues…
Increment of third digit indicates minor fixes, improvements in sources and texts.
Side xili-language (2.13.2) :
– fixes settings for new CPT, (warning in debug mode) if CPT multilingual mode was set in 2.12, refresh the settings
– better selector (msgid for XD), XD again in bar admin,
– widget language file merged in main file of plugin.
Side xili-dictionary (2.7.2) :
– disable media button,
– subtitle of msg,
– formatted title (based on id with 7 digits)