Forum Replies Created
-
AuteurArticles
-
replace the_category() tag of WP Core to translate items
The current template tag the_category is not hookable by plugin. So here the categories list of a post inside loop will be translated according the language of the current post.
< ?php the_tags(__('Tags: ','xiliips'), ', ', '
'); echo " "; _e('Posted in','xiliips'); echo " "; if (class_exists('xili_language')) { xiliml_the_category(get_the_ID(),', '); } else { the_category(', '); } ?> | < ?php edit_post_link(__('Edit','xiliips'), '', ' | '); ?> < ?php comments_popup_link(__('No Comments »','xiliips'), __('1 Comment »','xiliips'), __('% Comments »','xiliips')); ?>Display list of recent posts in a choosen language
Since xili-language version: 1.4.0[caption id="attachment_2194" align="aligncenter" width="262" caption="widget latest posts (fr)"][/caption]
– multiple widgets possible with different languages (fixed or dynamic)
– compatible with custom post typesTo fixes a warning
This theme twentyeleven-xili is available for tests (version 0.9.4 updated 2011 10 02).
Ce theme est disponible comme exemple en téléchargement ici: twentyeleven-xili (version 0.9.4 mise à jour le 2/10/2011)
In this topic, it is very important to understand that xili-language plugin is very powerful for multilingual cms websites. The automatic process provided in XL UI to create menu is for simple pages menu (and newbies) BUT, as shown above, when you need more complex menus (and specially adapted for each language), you need to use template tags and some php lines in a theme file copied in child theme…
dev.xiligroup
xili-language author
NextGEN plugin is localizable only and delivers adapted .mo files that translate currently the dashboard side.
Beginning by terms of the theme, xili-language « translate » according multilingual rules settings by switching the .mo file. Some framework terms as categories or descriptions are added to this .mo file because currently stable in a cms site.
Your question – Example : Some plugins add a label or button – visible in visitors side but the name of this button or label is inserted in function _e with domain of plugin but not domain of theme… xili-language introduces a tip to capture this term / domain and permits translation…
What happens in NEXTGEN which is like an app in app using his own tables (and not custom posts or custom taxonomies) few not gettext functions are also used …? so it will be very difficult to switch according languages the nextgen images and the descriptions.
The data model is fundamental and xili-language works only on the core of WP and his features with some tips and lot of filters..
Hope that help you !
What plugins concerned ? I will do a diagnosis according how there are designed on visitors side…
Yes to see the theme and other contexts…
$lang_perma var is ready for a future feature – with very complex permalinks functions (probably for premium version as visible running here http://2011.wpmu.xilione.com/ )… I will fixe this today error in option navmenu… – version 2.2.1 here : http://wordpress.org/extend/plugins/xili-language/download/ –
Thanks from your notes
Please send a support email from the xili-language settings page with all items checked… It will be better for me to make a quick diagnosis…
-
AuteurArticles