From: <be...@us...> - 2012-08-05 07:16:05
|
Revision: 9990 http://xoops.svn.sourceforge.net/xoops/?rev=9990&view=rev Author: beckmi Date: 2012-08-05 07:15:59 +0000 (Sun, 05 Aug 2012) Log Message: ----------- Updating Doc files Modified Paths: -------------- XoopsModules/xlanguage/trunk/xlanguage/docs/install.txt XoopsModules/xlanguage/trunk/xlanguage/docs/lang_diff.txt XoopsModules/xlanguage/trunk/xlanguage/docs/readme.txt Modified: XoopsModules/xlanguage/trunk/xlanguage/docs/install.txt =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/docs/install.txt 2012-08-05 07:11:22 UTC (rev 9989) +++ XoopsModules/xlanguage/trunk/xlanguage/docs/install.txt 2012-08-05 07:15:59 UTC (rev 9990) @@ -1,6 +1,6 @@ INSTALL/UNISTALL ================= -No special measures necessary, follow the standard installation process \x96 extract the xoopspartners folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. +No special measures necessary, follow the standard installation process \x96 extract the module folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. Detailed instructions on installing modules are available in the XOOPS Operations Manual (http://goo.gl/adT2i) \ No newline at end of file Modified: XoopsModules/xlanguage/trunk/xlanguage/docs/lang_diff.txt =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/docs/lang_diff.txt 2012-08-05 07:11:22 UTC (rev 9989) +++ XoopsModules/xlanguage/trunk/xlanguage/docs/lang_diff.txt 2012-08-05 07:15:59 UTC (rev 9990) @@ -1,56 +1,14 @@ -LANGUAGE DIFFERENCES -===================== - -Below are language differences from a version to next version. - -Version 1.11 ----------------- -admin.php ----------- -Changed prefixes for defines from '_AM_' to _AM_XPARTNERS_' - -// About.php -define("_AM_XPARTNERS_ABOUT_RELEASEDATE", "Released: "); -define("_AM_XPARTNERS_ABOUT_UPDATEDATE", "Updated: "); -define("_AM_XPARTNERS_ABOUT_AUTHOR", "Author: "); -define("_AM_XPARTNERS_ABOUT_CREDITS", "Credits: "); -define("_AM_XPARTNERS_ABOUT_LICENSE", "License: "); -define("_AM_XPARTNERS_ABOUT_MODULE_STATUS", "Status: "); -define("_AM_XPARTNERS_ABOUT_WEBSITE", "Website: "); -define("_AM_XPARTNERS_ABOUT_AUTHOR_NAME", "Author name: "); -define("_AM_XPARTNERS_ABOUT_CHANGELOG", "Change Log"); -define("_AM_XPARTNERS_ABOUT_MODULE_INFO", "Module Infos"); -define("_AM_XPARTNERS_ABOUT_AUTHOR_INFO", "Author Infos"); -define("_AM_XPARTNERS_ABOUT_DESCRIPTION", "Description: "); -define("_AM_XPARTNERS_EMPTYDATABASE", "There is nothing to sort. Please add some Partners first!"); - -define("_AM_XPARTNERS_ACTIONS", "Actions"); -define("_AM_XPARTNERS_INVALIDID", "No partner exists with this ID"); - -Removed: -_AM_EDIT -_AM_DELETE - -blocks.php ------------ -Changed prefix of all defines from '_MB_' to '_MB_XPARTNERS_' - -help.php ------------ -New file with defines - -main.php ------------ -//file /admin/index.php -define("_MD_XPARTNERS_DASHBOARD","Xoops Partner Dashboard"); -define("_MD_XPARTNERS_TOTALPARTNERS","Total Partners: <strong>%s</strong> "); -define("_MD_XPARTNERS_TOTALACTIVE","Active Partners: <strong>%s</strong> "); -define("_MD_XPARTNERS_TOTALNONACTIVE","Non-Active Partners: <strong>%s</strong> "); -//define("_MD_XPARTNERS_TOTALPARTNERS","There are <strong>%s</strong> Active Partners in our Database"); - -modinfo.php -------------- -// index.php -define("_MI_XPARTNERS_MENU_01", "Home"); -define("_PARTNERS_ADMIN_ABOUT", "About"); -define("_PARTNERS_ADMIN_HELP", "Help"); \ No newline at end of file +LANGUAGE DIFFERENCES +===================== + +Below are language differences from a version to next version. + +Legend : ++ Added +- Removed +* Modified +x renamed + +--------------------------------------- +3.04 RC2 2012-07-30 +--------------------------------------- Modified: XoopsModules/xlanguage/trunk/xlanguage/docs/readme.txt =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/docs/readme.txt 2012-08-05 07:11:22 UTC (rev 9989) +++ XoopsModules/xlanguage/trunk/xlanguage/docs/readme.txt 2012-08-05 07:15:59 UTC (rev 9990) @@ -30,36 +30,16 @@ ---------- 1 install "xlanguage" as a regular module -2 insert one line (ONLY for XOOPS version lower than 2.4.0) - - include_once XOOPS_ROOT_PATH.'/modules/xlanguage/api.php'; - into XOOPS/include/common.php - RIGHT BEFORE - // #################### Include site-wide lang file ################## - if ( file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/global.php") ) { - include_once XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/global.php"; - } else { - include_once XOOPS_ROOT_PATH."/language/english/global.php"; - } - -3 modify language/LocalLanguage/global.php, take "schinese" as example - //%%%%% LANGUAGE SPECIFIC SETTINGS %%%%% - //define('_CHARSET', 'GB2312'); - //define('_LANGCODE', 'zh-CN'); - define('_CHARSET', empty($xlanguage["charset"])?'GB2312':$xlanguage["charset"]); - define('_LANGCODE', empty($xlanguage["code"])?'zh-CN':$xlanguage["code"]); - $xlanguage['charset_base'] = "gb2312"; - -4 select basic langauges (from an available language list) and add extended languages (upon a selected basic language) from module admin page +2 select basic langauges (from an available language list) and add extended languages (upon a selected basic language) from module admin page for instance, to make language switch between: English, Simplified Chinese (gb2312), Traditional Chinese (big5) and UTF-8 Chinese: base 1: name: english; description(optional): English; charset: iso-8859-1; code: en (or anyother like "xen", not a true language code, just the tag for indicating English content) base 2: name: schinese; description(optional): Simplified Chinese; charset: gb2312; code: zh (or anyother like "sc", not a true language code, just the tag for indicating Chinese content) extended lang of schinese 1: name: tchinese; description(optional): Traditional Chinese; charset: big5 code: zh-TW (the true language code of Traditional Chinese) base: schinese extended lang of schinese 2: name: utf8; description(optional): Simplified Chinese UTF-8; charset: utf-8 code: zh-CN (the true language code of Simplified Chinese) base: schinese -5 make the block "langauge selection" visible +3 make the block "langauge selection" visible -6 add multilingual content with according tags sepcified for each base language (in step 4) to your modules, templates or themes[Skip this step if you do not use multi-language content display but only use charset encoding]: +4 add multilingual content with according tags sepcified for each base language (in step 4) to your modules, templates or themes[Skip this step if you do not use multi-language content display but only use charset encoding]: wrap content of each language with respective tag specified in step 4: [langcode1]Content of the language1[/langcode1] [langcode2]Content of the language2[/langcode2] [langcode3]Content of the language3[/langcode3] ... if two or more languages have same content, you do not need add them one by one but use delimiter "|": @@ -69,13 +49,12 @@ OR: [english|french]This is my content in English and French[/english|french][schinese]\xD6\xD0\xCE\xC4\xC4\xDA\xC8\xDD[/schinese] -7 automatic conversion of content from one charset(extended language) to another [Actually on action needed in this step] +5 automatic conversion of content from one charset(extended language) to another [Actually on action needed in this step] -8 __if__ you would like to insert hardcoded scripts for language switch in your theme or any template besides the language selection box: +6 __if__ you would like to insert hardcoded scripts for language switch in your theme or any template besides the language selection box: 1) modify /modules/xlanguage/api.php "$xlanguage_theme_enable = true;" 2) config options "$options = array("images", " ", 5); // display mode, delimitor, number per line"; 3) insert "<{$smarty.const.XLANGUAGE_SWITCH_CODE}>" into your theme or template files anywhere you prefer it present - xlangauge description @@ -91,7 +70,7 @@ 2 converting content from one character encoding set to another -What xlanguage canNOT do +What xlanguage can NOT do ------------------------ 1 xlanguage does NOT have the ability of translating content from one language to another one. You have to input contents of various languages by yourself 2 xlanguage does NOT work without adding one line to XOOPS/include/common.php (see guide below) @@ -107,40 +86,4 @@ Note: M-S-M: Multiple encoding input, Single encoding storage, Multiple encoding output. -M-S-M allows one site to fit various users with different language character encoding usages. For example, a site having xlanguage implemented porperly allows users to input content either with GB2312, with BIG5 or UTF-8 encoding and to store the content into DB with specified encoding, for say GB2312, and to display the content either with GB2312, with BIG5 or with UTF-8 encoding. - - -Changelog ---------- -xlanguage 3.02 changelog: -1 adjusted for Xoops 2.4.0 using Preloads, no hacks of Core files required anymore in 2.4.0 and above (trabis) - -xlanguage 3.0 changelog: -1 compatable for all Xoops active versions -2 added smarty template for block -3 added inline scripts for displaying language switch manner anywhere prefered - -xlanguage 2.04 changelog: -capable for different language cache, reported by suico @ xoops.org - -xlanguage 2.03 changelog: -"input" parse improvement, reported by irmtfan @ xoops.org - -xlanguage 2.02 bugfix for XSS vulnerability -Thanks domifara @ dev.xoops.org - -xlanguage 2.01 bugfix for nonexisting language - - - -Credits -------- -1 Adi Chiributa - web...@ar..., language handler -2 wjue - http://www.wjue.org, ziling BIG5-GB2312 conversion -3 GIJOE - http://www.peak.ne.jp, easiest multilanguage hack - -Author ------- -D.J. (phppp) -http://xoops.org.cn -http://xoopsforge.com \ No newline at end of file +M-S-M allows one site to fit various users with different language character encoding usages. For example, a site having xlanguage implemented porperly allows users to input content either with GB2312, with BIG5 or UTF-8 encoding and to store the content into DB with specified encoding, for say GB2312, and to display the content either with GB2312, with BIG5 or with UTF-8 encoding. \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |