Linux 软件免费装
Banner图

xili-language

开发者 michelwppi
MS dev.xiligroup.com
更新时间 2020年8月5日 15:22
捐献地址: 去捐款
PHP版本: 4.3.5 及以上
WordPress版本: 4.7.3
版权: GPLv2

标签

post widget posts plugin page theme admin multisite taxonomy language jetpack category i18n l10n polylang localization blogroll international multilingual bbpress translation-ready rtl bilingual dictionary japanese .mo file .po file WP network khmer

下载

0.9.8 1.0.2 1.1 1.2.1 1.3.1 1.4.1 1.5.3 1.5.4 1.5.5 1.6.0 1.6.1 1.7.1 1.8.0 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9.3 1.9.1 2.0.0 2.1.0 2.1.1 2.1.9 2.10.2 2.11.3 2.13.2 2.14.1 2.15.4 2.16.5 2.17.1 2.18.1 2.19.3 2.2.0 2.2.1 2.2.2 2.20.2 2.21.2 2.23.14 2.3.1 2.3.2 2.3.9 2.4.1 2.4.3 2.5.0 2.6.0 2.6.1 2.6.2 2.7.0 2.7.1 2.8.0 2.8.1 2.8.10 2.8.3.1 2.8.4.3 2.8.5 2.8.6 2.8.7 2.8.9 2.9.0 2.9.1 2.9.10 2.9.11 2.9.2 2.9.21 2.9.3

详情介绍:

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) or page. Theme's behaviour can be fully personalized through settings, hooks and api. Ready for CMS developers and designers. Version 2.21.2 Prequisite What to prepare before and during installation before activating Links and documentation to read before activating Themes provided as examples Other compatible plugins by xiligroup dev TRILOGY FOR MULTILINGUAL CMS WEBSITE including xili-language plugin Please verify that you have installed the latest versions of: That this plugin does not With around 8000 php lines, xili-language is not everything… Newbie, WP user, Developer,… Licence, donation, services, "as is", ... Contrary to popular belief, GPL doesn't say that everything must be zero-cost, just that when you receive the software (plugin or theme) that it not restrict your freedoms in how you use it. Free open source plugin does not mean free services Roadmap

安装:

READ CAREFULLY ALL THE README FILE AND PREREQUISITES Read this recent page and also wiki for older versions and features.
  1. Upload the folder containing xili-language.php and language files to the /wp-content/plugins/ directory,
  2. Verify that your theme is international compatible - translatable terms like _e('the term','mytheme') and no text hardcoded - and contains .mo and .po files for each target language - (application poEdit and/or plugin xili-dictionary can be used)
  3. Verify that a domain name is defined in your theme - see note at end list below,
  4. Activate the plugin through the 'Plugins' menu in WordPress,
  5. Go to the dashboard settings tab - languages - 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).
  6. Modify each post by setting (checking) the language in xili-language box (under the content box) before publishing.
  7. Other settings and parts (Browser detection, widgets, shortcode, template tags) see below… and examples.
Some steps to prepare a rich installation: Tabs of settings Settings are progressively reorganized in 6 tabs:
  1. Languages list: Where you define the list of languages needed in your multilingual website.
  2. Languages front-end settings: Where you define some rules and behaviour when visitor arrives in the website or navigates inside.
  3. Settings for experts: Where experts are able to set and recovers previous sets. (backwards compatibility)
  4. Managing language files: To import .mo files for theme or dashboard (if available in GlotPress or Automattic servers).
  5. Managing Authoring rules: To define rules and settings in the dashboard side and help authoring.
  6. xili-language support: A form to send an email to xiligroup support.
(online help on the top right tab for each settings page) Additional infos
  1. Before using your own theme, to understand how xili-language works, install the example child theme of one of the bundled themes like TwentyFourteen shown in this commented demo site.
  2. Child of bundled themes include a navigation menu - see links in FAQ -. In xili-language settings, it is possible to insert automatically languages list in the menu previously set by you.
  3. If you are webmaster and want to add lot of personalizations in your theme, read source and visit latest news.
Browser detection for visitors or authors 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. 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. xili-language and widgets Three widgets are created to enrich sidebar : list of languages, recent posts and recent comments with sub-selection according current language. xili-language and shortcode SHORTCODE to add a link to other language inside content of a post like: [linked-post-in lang="fr_fr"]Voir cet article[/linked-post-in] by default use context 'linktitle' for translation 'A similar post in %s' text of link title attribut. SHORTCODE to display only content if current language: [xili-show-if lang=fr_FR ]contenu de la page boutique multilingue[/xili-show-if] param lang can be ISO or slug. SHORTCODE to insert translated msgid content according current language Easy to insert .mo item in your current content. [xili18n msgid='yes'] domain by default is here theme textdomain [xili18n msgid='yes' ctxt='front' textdomain='default'] above it is the WP core textdomain SHORTCODE to insert URL of flag set with a language: [xili-flag lang='fr_FR'] returns url of french flag xili-language and template tags The most current template tags don't need special work: wp_list_categories(), wp_title(),... wp_get_archives Possible that very special permalinks need to use hook named xiliml_get_archives_link. - Sub selection of archives for wp_get_archives() with &lang= (see § below) wp_list_pages() with optional query tag &lang= xili_language_list() - outside loop (sidebar) display the languages of the site (used also by widget) xiliml_the_category() - replace the_category() template tag of WP Core 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. xili-language and specific functions Requires knowledges in php and WP ! After class in sources files, some functions are available - see sources for details. Archives selection 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.

屏幕截图:

  • An example of wp-content/themes folder and his languages sub-folder containing mo and po files.
  • Source coding extract with 'international' text in 'xiliphone' theme.
  • The plugin settings UI - first tab: the languages list and edit form to add or edit.
  • The plugin settings UI - second tab: Settings of front side (front-end) and languages behaviour.
  • The plugin settings UI - third tab: Settings for navigation menus and experts.
  • The language dashboard in post writting UI under the content textarea. For more infos and how to, visit the [wiki website](http://wiki.xiligroup.org/index.php/Xili-language_v2.5#Getting_started_:_linking_posts_with_different_language).
  • List of posts with language column and infos about linked posts. For more infos and how to, visit the [wiki website](http://wiki.xiligroup.org/index.php/Xili-language_v2.5).
  • Dashboard: Posts edit list with language sub-selection, quick edit and bulk edit available.
  • Tab in settings to manage language files.
  • xili-tidy-tags: Admin Tools UI - see this compatible plugin to group tags according languages.
  • xili-language widget: Admin widgets UI - since 0.9.9.6, "multiple" languages list widget.
  • xili-language: Widget to display recent posts in choosen target language.
  • Blogroll and bookmarks taxonomies and language sub-selection.
  • Since 2.2.0, new xili-language trilogy menu in admin bar menu to group main settings for multilingual website.
  • Since 2.12.0, Authoring settings (Custom post types, bookmarks) (rules propagation of post features) when creating translated posts are ajustable through the 5th settings tab.

升级注意事项:

Please read the readme.txt before upgrading. As usually, don't forget to backup the database before major upgrade or testing no-current version. Upgrading can be easily procedeed through WP admin UI or through ftp (delete previous release folder before upgrading via ftp). Verify you install latest version of trilogy (xili-language, xili-tidy-tags, xili-dictionary). v2.1.0 is compatible with settings of previous release BUT introduces now a way to choose multiple navmenu locations - so revisit the settings page to confirm your previous choice or sets to new navigation way including singular links.

更新日志:

Also read latest news (and infos) on this multilingual website. version 2.21.2 version 2.21.1 (2016-01-24) version 2.21.0 (2015-09-28) version 2.20.3 (2015-09-17) version 2.20.2 (2015-09-14) - 2.20.1 (2015-09-03) version 2.20.0 (2015-08-31) version 2.19.3 (2015-08-16) version 2.19.0 (2015-07-05) 2.19.1 (2015-07-08) version 2.18.1 (2015-06-01) version 2.18.0 (2015-05-14) version 2.17.1 (2015-04-24) version 2.17.0 (2015-04-17) version 2.16.6 (2015-04-01) version 2.16.4 (2015-03-23) version 2.16.3 (2015-03-06) version 2.16.2 (2015-02-28) version 2.16.1 (2014-12-21) version 2.16.0 (2014-12-18) version 2.15.4 (2014-12-16) version 2.15.3 (2014-11-17) version 2.15.2 (2014-09-08) version 2.15.1 (2014-08-24) Version 2.15.0 (2014-07-27) Version 2.14.1 (2014-06-15) Version 2.14.0 (2014-06-10) Version 2.13.2 b (2014-06-02) Version 2.13.1 (2014-05-28) Version 2.13.0 (2014-05-26) Version 2.12.1 (2014-05-16) Version 2.12.0 (2014-05-12) Version 2.11.3 (2014-04-21) Version 2.11.2 (2014-04-13) Version 2.11.1 (2014-03-17) Version 2.11.0 (2014-03-10) Version 2.10.1 (2014-02-27) Version 2.10.0 (2014-02-01) Version 2.9.30 (2013-12-12) Version 2.9.22 (2013-12-08) Version 2.9.21 (2013-11-24) Version 2.9.20 (2013-11-10) Version 2.9.11 (2013-11-03) Version 2.9.2, 2.9.3 (2013-10-11) Version 2.9.1 (2013-10-02) Version 2.9.0 (2013-08-20) Version 2.8.10 (2013-07-16) Version 2.8.9 (2013-05-26) Version 2.8.8 (2013-05-12, 2013-05-19) Version 2.8.7 (2013-04-16) 2.8.4, 2.8.6 (2013-03-22) 2.8.3.1 (2013-01-06) Version 2.8.0, 2.8.1 (2012-09-21) Version 2.7.0, 2.7.1 (2012-08-20) Version 2.6.0 to 2.6.3 (2012-07-08) Version 2.5.0 (2012-04-18) Versions 2.4.0, 2.4.4 (2012-03-29) 2.3.0, 2.3.2 (2011-11-13) 2.2.0, 2.2.3 (2011-10-08) 2.1.0, 2.1.1 (2011-06-28) 2.0.0 (2011-04-10) 1.9.0, 1.9.1 (2011-03-16) 1.8.0, 1.8.9.3 (2011-01-24) 1.7.0 - 1.7.1 (2010-07-21) 1.6.0 - 1.6.1 (2010-06-28) 1.5.2, 3, 4, 5 (2010-05-27) 1.3.x to 1.4.2a (2010-04-03) main features improved in previous releases up to 1.3.1 © 20160728 - MS - dev.xiligroup.com