author | hurons@caf4f556-3d62-0410-8435-a86758001935 |
Thu, 18 Mar 2010 09:56:33 +0000 | |
changeset 170 | 8e3a5a6fc63e |
child 194 | 32102edaa81b |
permissions | -rw-r--r-- |
170
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
1 |
=== xili-language === |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
2 |
Contributors: MS dev.xiligroup.com |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
3 |
Donate link: http://dev.xiligroup.com/ |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
4 |
Tags: theme,post,plugin,posts,page,category,admin,multilingual, bilingual, taxonomy,dictionary,.mo file,.po file,localization,widget,language,international, i18n, l10n |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
5 |
Requires at least: 2.7 |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
6 |
Tested up to: 2.9.2 |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
7 |
Stable tag: 1.4.1 |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
8 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
9 |
xili-language provides for a multilingual website an automatic selection of language (.mo) in theme according to the language of current post(s). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
10 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
11 |
== Description == |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
12 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
13 |
**xili-language provides for a bilingual (or multilingual) website an automatic selection of language (.mo) in theme according to the language of current post(s).** |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
14 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
15 |
* xili-language plugin provides an automatic selection of language in theme according to the language of displayed post, series of posts, page or articles. *If the post is in gaelic, the texts of the theme will be in gaelic if the author checks the post as gaelic and if the theme contains the right .mo file for this target language.* |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
16 |
* xili-language select *on the fly* the .mo files present in the theme's folder. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
17 |
* Themes with *localization* can be easily transformed for realtime multilingual sites. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
18 |
* xili-language is dedicated for theme's creator or webmaster with knowledges in CMS and WP and having (or not) tools to create .mo language files. Through API (hook), the plugin add automatic tools (or links or filters) for sidebar or top menus. Categories or Archives lists are translated also. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
19 |
* xili-language provides also series of functions which can be *hooked* in the functions.php file of the theme that you create i.e. for a multilingual cms like website. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
20 |
* With **xili-tidy-tags** [plugin here](http://wordpress.org/extend/plugins/xili-tidy-tags/), it is now possible to display sub-selection (cloud) of **tags** according language. With [xili-dictionary](http://wordpress.org/extend/plugins/xili-dictionary/) plugin (beta), it is easier to create or update online, via admin UI, the files .mo of each language. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
21 |
* xili-language plugin **does not create addition tables in the database**. xili-language simply makes proper use of the taxonomy tables and postmeta table offered by WordPress to define language and link items between them. Because xili-language plugin does not modify deeply the post edit UI, it is possible to use **iPhone / iPod Touch** Wordpress app to prepare and draft the post. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
22 |
* **Documentation**: A new [table](http://dev.xiligroup.com/?p=1432) summarizes all the technical features (widgets, template tags, functions and hooks) of this powerful plugin for personalized CMS created by webmaster. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
23 |
* Check out the [screenshots](http://wordpress.org/extend/plugins/xili-language/screenshots/) to see it in action. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
24 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
25 |
= 1.4.1 = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
26 |
* Browser's window title now translated for categories (`wp_title()`). Option in post edit UI to auto-search linked posts in other languages - [see this post](http://dev.xiligroup.com/?p=1498). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
27 |
* New option to adapt the home query according rules defined by chief editor. If home page loop is filled by most recent posts (via index or home.php), formerly, by default xili-language is able to choose the theme's language but not to sub-select the loop (without php coding). Now when checking in Settings *'Modify home query'* - no need to be a php developer. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
28 |
* New widget for **recent posts** (able to choose language). This new widget solves conflicts or issues occuring when WP default widget is present (contains an *obscur* `wp_reset_query`). Also a choice of language of this list of recent posts is possible - not necessary the same of the current page. And you can install multiple widgets. **Replace WP Recent Posts widget by this one named** - *List of recent posts* - |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
29 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
30 |
= 1.3.x = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
31 |
* New functions to change and restore loop's language query-tag (see functions [table](http://dev.xiligroup.com/?p=1432) ). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
32 |
* Better dashboard post UI to create linked post (and page): *from one post, it possible to create linked post in another language and the links are prefilled. Just need to save draft to save the links between root and translated posts filled by authors.* [See](http://dev.xiligroup.com/?p=1498) |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
33 |
* fixes lost languages's link when trash or untrash (WP 2.9.1). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
34 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
35 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
36 |
= summary of main features improved in previous releases up to 1.2.1 = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
37 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
38 |
*(this chapter is rewritten for 1.4.1 - see readme in [previous versions](http://wordpress.org/extend/plugins/xili-language/download/) to read the chronology)* |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
39 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
40 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
41 |
* xili-language "*translates*" template tags and permits some variations for webmasters: |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
42 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
43 |
The most current template tags don't need special work: `wp_list_categories()`, `wp_title()`,... |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
44 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
45 |
`wp_get_archives` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
46 |
Possible that very special permalinks need to use hook named `xiliml_get_archives_link`. - |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
47 |
Sub selection of archives for `wp_get_archives()` with &lang= [see installation notes](http://wordpress.org/extend/plugins/xili-language/installation/). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
48 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
49 |
`wp_list_pages()` with optional query tag &lang= |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
50 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
51 |
* xili-language "*provides*" new template tags (or widgets) to solve issues from WP core or add new features for CMS: |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
52 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
53 |
`xili_language_list()` - outside loop (sidebar) display the languages of the site (used also by widget) |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
54 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
55 |
`xiliml_the_category()` - replace the_category() template tag of WP Core |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
56 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
57 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
58 |
improved `xiliml_the_others_posts()` function and theme tag to be used in multilingual category loop and by option (array) to return an array of linked posts in other languages (useful for CMS webmasters) (array of lang and id ) - the id is easily transformable in permalink with function `get_permalink()` when using this array. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
59 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
60 |
* widget for recent comments that can subselect those for current language. (a function `xiliml_recent_comments()` is also available if you want to create a template tag with resulting objects array). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
61 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
62 |
* ... |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
63 |
* Automatic detection of `THEME_TEXT_DOMAIN` constant and languages (.mo) sub-folder in theme's folder. More infos in Settings UI Special sidebox. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
64 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
65 |
= Technical infos = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
66 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
67 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
68 |
**Prerequisite: ** |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
69 |
Verify that your theme is international compatible (translatable terms like `_e('the term','mytheme')` and no displayed texts 'hardcoded' (example in theme 'default-i18n' of WP). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
70 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
71 |
* Based on class and oop - New settings UI according to new rules and style of WP 2.7 (meta_boxes, js) - *ONLY USE WITH Wordpress 2.7 and more* - Hooks (Action, Filter) usable in your functions.php. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
72 |
* Optional improving hooking ways to be compatible with l10n cache of Johan's plugin see line 2200. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
73 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
74 |
**CMS:** |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
75 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
76 |
* Contains features dedicated to multilingual theme's creators and webmasters. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
77 |
**Documentation**: A new [table](http://dev.xiligroup.com/?p=1432) summarizes all the technical features (widgets, template tags, functions and hooks) of this powerful plugin for personalized CMS created by webmaster. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
78 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
79 |
* Some new php functions, a folder to include functions shared by themes (not necessary to put functions in functions.php of the current theme); example with a shortcode to insert link inside content toward another post in a language. A post explaining these improvements can be found [here](http://dev.xiligroup.com/?cat=480&lang=en_us). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
80 |
* Provides infos about **text direction** *ltr* ou *rtl* of languages (arabic, hebraic,...) of theme and of each post in loop see note [direction in installation](http://wordpress.org/extend/plugins/xili-language/installation/) |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
81 |
* unique id for category link hook [see expert's corner posts](http://dev.xiligroup.com/?p=1045) |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
82 |
* fixes unexpected like tags metabox added by WP 28 ( see [trac #10437](http://core.trac.wordpress.org/ticket/10437) ). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
83 |
* hooks to define header metas or language attributes in html tag. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
84 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
85 |
**More infos and docs** |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
86 |
… other texts and more descriptions [here](http://dev.xiligroup.com/xili-language/ "why xili-language ?") |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
87 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
88 |
= Compatibility = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
89 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
90 |
xili-language is compatible with the plugin [xili-dictionary](http://dev.xiligroup.com/?p=312 "why xili-dictionary ?") which is able to deliver .mo files on the fly with the WP admin UI (and .po files translatable by other translators). [xili-dictionary](http://dev.xiligroup.com/xili-dictionary/ "xili-dictionary posts") used a specific taxonomy without adding tables in WP database. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
91 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
92 |
xili-language is full compatible with the plugin [xilitheme-select](http://wordpress.org/extend/plugins/xilitheme-select/ "xilitheme-select") to be used with iPhone, iPod Touch or other mobiles. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
93 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
94 |
xili-language is compatible with the plugin [xili-tidy-tags](http://dev.xiligroup.com/xili-tidy-tags/ ). xili-tidy-tags lets you create multiple group of tags. That way, you can have a tag cloud for tags in English, another cloud for French tags, another for Spanish ones, and so on. You can also use the plugin for more than multilingual blogs. Basically, you can create any group of tags you want. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
95 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
96 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
97 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
98 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
99 |
More informations on the site [dev.xiligroup.com](http://dev.xiligroup.com/ "xiligroup plugins") |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
100 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
101 |
Check out the [screenshots](http://wordpress.org/extend/plugins/xili-language/screenshots/) to see it in action. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
102 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
103 |
== Installation == |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
104 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
105 |
1. Upload the folder containing `xili-language.php` and language files to the `/wp-content/plugins/` directory, |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
106 |
2. Verify that your theme is international compatible - translatable terms like `_e('the term','mytheme')` and no text hardcoded - |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
107 |
3. define domain name of your theme - see note at end list below, |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
108 |
4. Activate the plugin through the *'Plugins'* menu in WordPress, |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
109 |
5. Go to the dashboard settings tab - language - and adapt default values if necessary by adding your languages in the catalog. You can set the order (1,2,3...) of the series. (used in `language_attributes()` template_tag). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
110 |
6. Modify each post by setting (checking) the language flag in xili-language box at the right of the post editing window before publishing. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
111 |
7. If you are webmaster and want to add lot of personalizations in your theme, visit [expert's corner](http://dev.xiligroup.com/?cat=480&lang=en_us). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
112 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
113 |
= SPECIAL NOTE FOR VERSION >= 1.1.9 = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
114 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
115 |
With the cost of 50 lines more, plugin now detect automatically (if theme is good) `the theme_text_domain` and languages (.mo) sub-folder. It not mandatory to declare the two constants (but compatible with previous settings). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
116 |
Only encapsule the `load_theme_textdomain()` like in that example for a theme named fusion: |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
117 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
118 |
` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
119 |
if (!class_exists('xili_language')) { // class in not (!) present... |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
120 |
load_theme_textdomain('fusion', get_template_directory() . '/lang'); |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
121 |
} |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
122 |
` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
123 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
124 |
= NOTE = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
125 |
In the functions php file of the theme : replace by commenting `load_theme_textdomain` line `//load_theme_textdomain('mythemename'); ` by a *define* `define('THEME_TEXTDOMAIN','mythemename'); //second text must be used in theme texts with _e( , ) or __( , )` where 'mythemename' is `'kubrik'` in default international theme. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
126 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
127 |
Another example with fusion theme that offer localization : |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
128 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
129 |
replace |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
130 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
131 |
`function init_language(){ |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
132 |
load_theme_textdomain('fusion', get_template_directory() . '/lang'); |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
133 |
}` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
134 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
135 |
by |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
136 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
137 |
`function init_language(){ |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
138 |
if (class_exists('xili_language')) { |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
139 |
define('THEME_TEXTDOMAIN','fusion'); |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
140 |
define('THEME_LANGS_FOLDER','/lang'); |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
141 |
} else { |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
142 |
load_theme_textdomain('fusion', get_template_directory() . '/lang'); |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
143 |
} |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
144 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
145 |
}` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
146 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
147 |
see the [recent post](http://dev.xiligroup.com/?p=427 "Transform a theme with localization"). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
148 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
149 |
= Browser detection for visitors or authors = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
150 |
To change the language of the frontpage according to the language of the visitor's browser, check the popup in right small box in settings. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
151 |
To change the default language of a new post according to the language of the author's browser, check the popup in right small box in settings. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
152 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
153 |
= text direction, since 0.9.9 = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
154 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
155 |
Examples *for theme's designer* of functions to keep text **direction** of theme and of current post : |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
156 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
157 |
` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
158 |
<?php |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
159 |
$themelangdir = ((class_exists('xili_language')) ? the_cur_lang_dir() : array ()) ; ?> |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
160 |
<div class="inside <?php echo $themelangdir['direction'] ?>"> |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
161 |
... |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
162 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
163 |
` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
164 |
example in loop : |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
165 |
` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
166 |
<?php while (have_posts()) : the_post(); |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
167 |
$langdir = ((class_exists('xili_language')) ? get_cur_post_lang_dir($post->ID) : array()); |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
168 |
?> |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
169 |
<div class="story <?php echo $langdir['direction'] ?>" > |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
170 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
171 |
` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
172 |
minimal example in css : |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
173 |
` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
174 |
.rtl {direction: rtl; text-align:right !important; font-size:130% !important;} |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
175 |
.ltr {direction: ltr; text-align:left !important;} |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
176 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
177 |
` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
178 |
**Caution** : *multilingual theme with both ltr and rtl texts needs a rigourous structure of the css !* |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
179 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
180 |
= Archives selection = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
181 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
182 |
Archives tags is a very complex template tag in his background and not very easy source hookable. So we decided to add few features : by adding query in vars of the function, it will be possible to display a monthly list of archives for a selected language - `wp_get_archives('..your.vars..&lang=fr_fr')` - or the current the theme language - `wp_get_archives('..your.vars..&lang=')` -. The displayed list of links will be translated and link restrited to display only archives of this language. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
183 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
184 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
185 |
= Wordpress 2.9.2 = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
186 |
Today, xili-language is 'compatible'. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
187 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
188 |
== Frequently Asked Questions == |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
189 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
190 |
= How to see post or page ID in dashbord ? = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
191 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
192 |
*Reveal IDs for WP Admin* is an efficient plugin [found](http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/) in WP repository. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
193 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
194 |
= Since 1.4.1, after the translated lines, the parenthesis containing root languages *disappear* in sidebar categories list ? = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
195 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
196 |
Yes, only translated cat name remains. But, if you want to recover the old behaviour, you can add **graceful to hooking features of xili_language** by adding this lines of codes inside the functions.php file of the current theme. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
197 |
` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
198 |
function my_rules_for_cat_language ($content, $category = null, $curlang='') { |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
199 |
if (!is_admin()) : /*to detect admin UI*/ |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
200 |
$new_cat_name = __($category->name,THEME_TEXTDOMAIN); |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
201 |
if ($new_cat_name != $content) : |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
202 |
$new_cat_name .= " (". $content .") "; |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
203 |
endif |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
204 |
else : |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
205 |
$new_cat_name = $content; |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
206 |
endif; |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
207 |
return $new_cat_name; |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
208 |
} |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
209 |
add_filter('xiliml_cat_language','my_rules_for_cat_language',2,3); |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
210 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
211 |
` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
212 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
213 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
214 |
= Where can I see websites using this plugin ? = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
215 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
216 |
dev.xiligroup.com [here](http://dev.xiligroup.com/?p=187 "why xili-language ?") |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
217 |
and |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
218 |
www.xiliphone.mobi [here](http://www.xiliphone.mobi "a theme for mobile") also usable with mobile as iPhone. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
219 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
220 |
And as you can see in [stats](http://wordpress.org/extend/plugins/xili-language/stats/), hundreds of sites use xili-language. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
221 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
222 |
= For commercial websites, is it possible to buy support ? = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
223 |
Yes, use contact form [here](http://dev.xiligroup.com/?page_id=10). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
224 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
225 |
= What is gold functions ?, is it possible to buy them ? = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
226 |
Some gold functions (in xilidev-libraries) are explained [here](http://dev.xiligroup.com/?p=1111) and some belong to pro services for commercial websites. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
227 |
Yes, use contact form [here](http://dev.xiligroup.com/?page_id=10). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
228 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
229 |
= Support Forum or contact form ? = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
230 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
231 |
Effectively, prefer [forum](http://forum.dev.xiligroup.com/) to obtain some support. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
232 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
233 |
= Does xiligroup provide free themes ? = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
234 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
235 |
No yet, but a lot of well designed themes like fusion or Arclite are very easily adaptable ( or the author incorporates automatic detection of xili-language as presented [here](http://dev.xiligroup.com/?p=427) ). And [xili-dictionary](http://wordpress.org/extend/plugins/xili-dictionary/) avoids to use poEdit to update .mo files with contents of terms of your database (categories, ...) |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
236 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
237 |
== Screenshots == |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
238 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
239 |
1. an example of wp-content/themes folder |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
240 |
2. the admin settings UI |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
241 |
3. the language setting in post writting UI |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
242 |
4. coding extract with 'international' text in 'xiliphone' theme |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
243 |
5. xili-dictionary: Admin Tools UI - list of translated terms |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
244 |
6. xili-dictionary: Admin Tools UI - functionalities windows |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
245 |
7. xili-language: Admin Tools UI - set homepage and author according his browser's language. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
246 |
8. xili-tidy-tags: Admin Tools UI - see this compatible plugin to group tags according languages |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
247 |
9. xili-language widget: Admin widgets UI - since 0.9.9.6, "multiple" languages list widget |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
248 |
10. xili-language: Special Admin UI sidebox - infos about theme's content for multilingual settings. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
249 |
11. xili-language: Post Edit UI - when clicking Add New, a new browser window is open and links input are prefilled. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
250 |
12. xili-language widgets: the new "multiple" widget to display list of recent posts in a choosen language. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
251 |
13. xili-language: Post Edit UI - Check option to auto search will be useful for editor when working on existing posts and with multiple authors. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
252 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
253 |
== Changelog == |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
254 |
= 1.4.1 = wp_title translation for categories, () suppressed in cats list display -see FAQ-, auto-search linked posts option |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
255 |
= 1.4.0 = Option to modify home query according rules by chief editor. Fixes gold functions. New Recent Posts Widget. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
256 |
= 1.3.1 = Just to correct a minor omission - Add New works now for linked pages. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
257 |
= 1.3.0 = new functions for CMS usages. Better Post Edit UI. Fixes some issues when trash/untrash. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
258 |
= 1.2.1 = fixes some directories issues in (rare) xamp servers - Some improvements in post edit UI. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
259 |
= 1.1.8 - 1.1.9 = new features for theme's developers - see code lines - Fix title of `wp_get_archives` links with current permalinks. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
260 |
= 1.1 = improve `xiliml_the_others_posts` function optionally to return an array of linked posts |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
261 |
= 1.0.2 = fix unexpected like tags metabox added by WP 28 in post edit UI - tracs #10437 |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
262 |
= 1.0 = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
263 |
* New ways to define default language of front-page, |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
264 |
* also compatible with new recent WP 2.8. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
265 |
* Some fixes. Unique id for category link hook |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
266 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
267 |
= 0.9.9.6 = ready for new multiple widgets - fixed filter by in class |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
268 |
= 0.9.9.5 = php doc enhanced, link to modify linked posts |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
269 |
= 0.9.9.4 = Recent commments, 'Get_archives' translatable, some fixes or improvements... |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
270 |
= 0.9.9.3 = sub selection of pages for `wp_list_pages()` with `&lang=` , some fixes |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
271 |
= 0.9.9 = give dir of lang ltr or rtl, fixes for cat popup in post edit admin UI, fixes quick-edit update (0.9.9.1 fixes internal `get_cur_language()` that now deliver array. 0.9.9.2 fixe class of metabox has-right-sidebar for 2.8, W3C) |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
272 |
= 0.9.8.3 = (dashboard) for new post, pre-set default language of author according his browser's language. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
273 |
= 0.9.8.2 = better query (`get_terms_of_groups_lite`) - fixes W3C xml:lang |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
274 |
= 0.9.8.1 = Counting only published posts and pages, add filter for widget's titles, in admin UI link to posts of one language, compatible with xili-tidy-tags plugin. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
275 |
= 0.9.8 = data model now include future sub-group and sorting of languages. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
276 |
= 0.9.7.6 = Add new hooks to define header metas or language attributes in html tag... |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
277 |
= 0.9.7.5 = Add detection of browser language, fixes W3C errors, record undefined state of post,... |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
278 |
= 0.9.7.4 = Add a box in post admin edit UI to easily set link to similar posts in other languages. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
279 |
= 0.9.7.1 = fixes, add subfolder for langs in theme - add new tag for theme : `the_xili_local_time()` |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
280 |
= 0.9.7 = OOP and CLASS coding - New settings UI according to new rules and style of WP 2.7 (`meta_boxes`, js). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
281 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
282 |
= 0.9.6 = New settings UI according to new rules and style of WP 2.7 (meta_boxes, js) |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
283 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
284 |
= 0.9.4 = fixes and hooks from plugin to functions defined in functions.php |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
285 |
= 0.9.3 = third public release (beta) some fixes and display language in post/page lists |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
286 |
= 0.9.2 = second public release (beta) ready to include xili-dictionary plugin (tools) |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
287 |
= 0.9.0 = first public release (beta) |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
288 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
289 |
© 20100221 - MS - dev.xiligroup.com |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
290 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
291 |
== Upgrade Notice == |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
292 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
293 |
As usually, don' forgot to backup the database before major upgrade. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
294 |
Upgrading can be easily procedeed through WP admin UI or through ftp. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
295 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
296 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
297 |
== More infos == |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
298 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
299 |
= What about plugin settings UI localization ? = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
300 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
301 |
It is simple, if you have translated the settings UI of plugin in your mother language, you send us a message through the contact form that contains the link to your site where you have add the .po and .mo files. Don't forget to fill the header of the .po file with your name and email. If all is ok, the files will be added to the xili-language wp plugins repository. Because I am not able to verify the content, you remain responsible of your translation. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
302 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
303 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
304 |
= What happens if frontpage is a page ? = |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
305 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
306 |
Since 0.9.9.4, the plugin incorporates now features that are formerly possible through the hookable functions of xili-language. The page frontpage must have her clones in each other languages. As for posts, if the user's browser is not in the default language, xili-language will display the page in the corresponding language if set by the editor. [home page of website dev.xiligroup.com](http://dev.xiligroup.com/) uses this feature. |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
307 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
308 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
309 |
The plugin post is frequently updated [dev.xiligroup.com](http://dev.xiligroup.com/xili-language/ "Why xili-language ?") |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
310 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
311 |
See also the [Wordpress plugins forum](http://wordpress.org/tags/xili-language/) and [dev.xiligroup Forum](http://forum.dev.xiligroup.com/). |
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
312 |
|
8e3a5a6fc63e
English version just for user loged view
hurons@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
313 |
© 2008-2010 - MS - dev.xiligroup.com |