[Jsxe-cvs] SF.net SVN: jsxe: [1223] trunk/web/htdocs
Status: Inactive
Brought to you by:
ian_lewis
From: <ian...@us...> - 2006-09-02 01:13:07
|
Revision: 1223 http://svn.sourceforge.net/jsxe/?rev=1223&view=rev Author: ian_lewis Date: 2006-09-01 18:12:52 -0700 (Fri, 01 Sep 2006) Log Message: ----------- More changes for internationalization Modified Paths: -------------- trunk/web/htdocs/content/en/downloads.html trunk/web/htdocs/content/en/features.html trunk/web/htdocs/content/en/get-involved.html trunk/web/htdocs/content/en/overview.html trunk/web/htdocs/content/ja/_global.php trunk/web/htdocs/downloads.php trunk/web/htdocs/features.php trunk/web/htdocs/footer.php trunk/web/htdocs/functions.php trunk/web/htdocs/get-involved.php trunk/web/htdocs/index.php trunk/web/htdocs/screenshots.php Added Paths: ----------- trunk/web/htdocs/images/anybrowser.png trunk/web/htdocs/images/css.png trunk/web/htdocs/images/xhtml.png Modified: trunk/web/htdocs/content/en/downloads.html =================================================================== --- trunk/web/htdocs/content/en/downloads.html 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/content/en/downloads.html 2006-09-02 01:12:52 UTC (rev 1223) @@ -1,5 +1,3 @@ -<h2>Downloads</h2> - <h3>Requirements</h3> <ul> @@ -16,8 +14,8 @@ <h3>Download</h3> <ul> - <li>The latest stable version of jsXe is <a href="https://sourceforge.net/project/showfiles.php?group_id=58584&package_id=120827">0.4 beta</a></li> - <li>The latest development version of jsXe is <a href="https://sourceforge.net/project/showfiles.php?group_id=58584&package_id=54488">0.5 pre2</a></li> + <li>The latest stable version of jsXe is <?php echo get_stable_download_link(); ?></li> + <li>The latest development version of jsXe is <?php echo get_devel_download_link(); ?></li> </ul> <h3>Install</h3> Modified: trunk/web/htdocs/content/en/features.html =================================================================== --- trunk/web/htdocs/content/en/features.html 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/content/en/features.html 2006-09-02 01:12:52 UTC (rev 1223) @@ -1,5 +1,3 @@ -<h2>Features</h2> - <p>These are features currently implemented in the stable version of jsXe</p> <h3>General</h3> Modified: trunk/web/htdocs/content/en/get-involved.html =================================================================== --- trunk/web/htdocs/content/en/get-involved.html 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/content/en/get-involved.html 2006-09-02 01:12:52 UTC (rev 1223) @@ -1,5 +1,3 @@ -<h2>Getting Involved</h2> - <p>jsXe needs developers to implement new features and fix bugs, testers for testing jsXe, translators for translating messages and the website, and web designers who are interested in updating the project's @@ -15,7 +13,7 @@ <h3>Developers</h3> <p>If you are interested in working on jsXe, please - <a href="http://lists.sourceforge.net/mailman/listinfo/jsxe-devel">subscribe</a> + <a href="#lists">subscribe</a> and send a mail to the jsxe-devel mailing list. The developers can help get you started. Developers should know how to use SVN and have some experience with Java swing or XML.</p> @@ -23,7 +21,7 @@ <h3>Testers</h3> <p>If you are interested in testing jsXe, please - <a href="http://lists.sourceforge.net/mailman/listinfo/jsxe-devel">subscribe</a> + <a href="#lists">subscribe</a> and send a mail to the jsxe-devel mailing list. Testing will normally be done on SVN and beta releases. Familiarity with <a href="http://subversion.tigris.org/">SVN</a> and @@ -33,7 +31,7 @@ <h3>Translators</h3> <p>If you are interested in translating for the jsXe project. Please - <a href="http://lists.sourceforge.net/mailman/listinfo/jsxe-devel">subscribe</a> + <a href="#lists">subscribe</a> and send a mail to the jsxe-devel mailing list. For those who are knowlegeable of SVN, you can check out the messages files from jsXe's <a href="http://svn.sourceforge.net/viewcvs.cgi/jsxe/trunk/jsxe/">SVN repository</a>. @@ -43,7 +41,7 @@ <h3>Web Developers</h3> <p>If you are interested in working on jsXe's webpage, please - <a href="http://lists.sourceforge.net/mailman/listinfo/jsxe-devel">subscribe</a> + <a href="#lists">subscribe</a> and send a mail to the jsxe-devel mailing list. The developers can help get you started. Web developers should have some knowledge of CSS and PHP.</p> @@ -51,18 +49,19 @@ <h3>Users</h3> <p>Let us know what you think! - <a href="http://lists.sourceforge.net/mailman/listinfo/jsxe-users">Subscribe</a> + <a href="#lists">Subscribe</a> to the jsxe-users mailing list and let us know what you think and what features you would like to have implemented. Or you could submit a <a href="http://sourceforge.net/tracker/?atid=488271&group_id=58584&func=browse">feature request</a>.</p> -<h3>Mailing Lists</h3> +<h3><a name="lists">Mailing Lists</a></h3> <p>These three mailing lists will be low traffic.</p> <ul> - <li>jsXe-users: <a href="http://lists.sourceforge.net/mailman/listinfo/jsxe-users">Subscribe/Unsubscribe/Preferences</a>: a general discussion list for users of jsXe.</li> - <li>jsXe-devel: <a href="http://lists.sourceforge.net/mailman/listinfo/jsxe-devel">Subscribe/Unsubscribe/Preferences</a>: a list for technical discussion regarding jsXe development.</li> + <li>jsXe-users (English): <a href="http://lists.sourceforge.net/mailman/listinfo/jsxe-users">Subscribe/Unsubscribe/Preferences</a>: a general discussion list for users of jsXe.</li> + <li>jsXe-devel (English): <a href="http://lists.sourceforge.net/mailman/listinfo/jsxe-devel">Subscribe/Unsubscribe/Preferences</a>: a list for technical discussion regarding jsXe development.</li> + <li>jsXe-users (日本語): <a href="http://lists.sourceforge.jp/mailman/listinfo/jsxe-users">Subscribe/Unsubscribe/Preferences</a>: a general discussion list for users of jsXe.</li> <li>jsXe-cvs: <a href="http://lists.sourceforge.net/mailman/listinfo/jsxe-cvs">Subscribe/Unsubscribe/Preferences</a>: a list where SVN commits are posted. Anyone subscribing to this list will be notified when changes are commited to SVN.</li> </ul> Modified: trunk/web/htdocs/content/en/overview.html =================================================================== --- trunk/web/htdocs/content/en/overview.html 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/content/en/overview.html 2006-09-02 01:12:52 UTC (rev 1223) @@ -1,5 +1,3 @@ -<h2>Overview</h2> - <p>jsXe is the <b>J</b>ava <b>S</b>imple <b>X</b>ML <b>E</b>ditor.</p> <p>jsXe is a fast, intuitive, scalable, platform-independent XML editor. It is written in <a href="http://java.sun.com">Java</a> using the Swing @@ -14,4 +12,4 @@ are not currently implemented. If you are interesting in helping to make jsXe a great editor by contributing your suggestions and needs or if you are a developer and would like to contribute time and code check - out <a href="get-involved.php">how to get involved</a></p> \ No newline at end of file + out <?php echo create_link('get-involved.php', 'how to get involved'); ?>.</p> \ No newline at end of file Modified: trunk/web/htdocs/content/ja/_global.php =================================================================== --- trunk/web/htdocs/content/ja/_global.php 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/content/ja/_global.php 2006-09-02 01:12:52 UTC (rev 1223) @@ -1,6 +1,7 @@ <?php $trans['ja'] = array( - 'News' => 'ニュース', + 'Overview' => 'jsXeとは', + 'News' => 'ニュース', 'Features' => '機能概要', 'Screenshot' => 'スクリーンショット', 'Screenshots' => 'スクリーンショット', Modified: trunk/web/htdocs/downloads.php =================================================================== --- trunk/web/htdocs/downloads.php 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/downloads.php 2006-09-02 01:12:52 UTC (rev 1223) @@ -6,7 +6,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo get_locale() ?>" lang="<?php echo get_locale() ?>"> <head> - <title>jsXe: Downloads</title> + <title>jsXe: <?php echo T_("Downloads"); ?></title> <?php include("meta.php") ?> </head> <body> @@ -18,6 +18,8 @@ <div id="mainBody"> + <h2><?php echo T_("Downloads"); ?></h2> + <?php get_content('downloads') ?> <?php include("footer.php") ?> Modified: trunk/web/htdocs/features.php =================================================================== --- trunk/web/htdocs/features.php 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/features.php 2006-09-02 01:12:52 UTC (rev 1223) @@ -6,7 +6,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo get_locale() ?>" lang="<?php echo get_locale() ?>"> <head> - <title>jsXe: Features</title> + <title>jsXe: <?php echo T_("Features"); ?></title> <?php include("meta.php") ?> </head> <body> @@ -18,6 +18,8 @@ <div id="mainBody"> + <h2><?php echo T_("Features"); ?></h2> + <?php get_content('features'); ?> <?php include("footer.php") ?> Modified: trunk/web/htdocs/footer.php =================================================================== --- trunk/web/htdocs/footer.php 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/footer.php 2006-09-02 01:12:52 UTC (rev 1223) @@ -1,11 +1,7 @@ <?php if( !defined('ROOT') ) die( 'Please, do not access this page directly.' ); ?> <div id="images"> - <a href="http://validator.w3.org/check/referer"><img title="This site is valid XHTML." alt="Valid XHTML 1.0 Transitional" src="http://www.ianlewis.org/images/xhtml.png"/></a> - <a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fjsxe.sourceforge.net%2Fcss%2Fmain.css&usermedium=all"><img title="This site is valid CSS." alt="Valid CSS" src="http://www.ianlewis.org/images/css.png"/></a> - <img title="This site is usable in any web browser." alt="Any Browser!" src="http://www.ianlewis.org/images/anybrowser.png"/> - <!--<a href="http://sourceforge.net/"><img alt="SourceForge Logo" src="http://sourceforge.net/sflogo.php?group_id=58584"/></a> - <a href="http://validator.w3.org/check/referer"><img alt="Valid XHTML 1.0 Transitional" src="http://www.w3.org/Icons/valid-xhtml10"/></a> - <a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fjsxe.sourceforge.net%2Fcss%2Fmain.css&usermedium=all"><img alt="Valid CSS" src="http://jigsaw.w3.org/css-validator/images/vcss"/></a> - <a href="http://www.jedit.org"><img alt="Made with jEdit" src="images/made-with-jedit-6.png"/></a>--> + <a href="http://validator.w3.org/check/referer"><?php echo get_image('xhtml.png', 'Valid XHTML 1.0 Transitional', 'This site is valid XHTML.' ); ?></a> + <a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fjsxe.sourceforge.net%2Fcss%2Fmain.css&usermedium=all"><?php echo get_image('css.png', 'Valid CSS', 'This site is valid CSS.'); ?></a> + <?php echo get_image('anybrowser.png', 'Any Browser!', 'This site is usable in any browser'); ?> </div> Modified: trunk/web/htdocs/functions.php =================================================================== --- trunk/web/htdocs/functions.php 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/functions.php 2006-09-02 01:12:52 UTC (rev 1223) @@ -73,10 +73,10 @@ //{{{ get_image() -function get_image($image, $alt='') { +function get_image($image, $alt='', $title='') { $location = 'http://jsxe.sourceforge.net/images/'.$image; // $location = 'http://www.ianlewis.org/jsxetest/images/'.$image; - return '<img src="'.$location.'" alt="'.$alt.'"/>'; + return '<img src="'.$location.'" alt="'.T_($alt).'" title="'.T_($title).'"/>'; }//}}} //{{{ create_link() @@ -120,40 +120,21 @@ //{{{ get_content() function get_content( $name ) { + // $file = 'content/'.get_locale().'/'.$name.'.html'; + // if (!file_exists($file)) { + // $file = 'content/en/'.$name.'.html'; + // } + // $fh = fopen($file, 'r'); + // $data = fread($fh, filesize($file)); + // fclose($fh); + // echo $data; $file = 'content/'.get_locale().'/'.$name.'.html'; if (!file_exists($file)) { $file = 'content/en/'.$name.'.html'; } - $fh = fopen($file, 'r'); - $data = fread($fh, filesize($file)); - fclose($fh); - echo $data; + include($file); }//}}} -//{{{ get_news() - -function get_news() { - - $file = 'content/'.get_locale().'/news-header.html'; - if (!file_exists($file)) { - $file = 'content/en/news-header.html'; - } - $fh = fopen($file, 'r'); - $header = fread($fh, filesize($file)); - fclose($fh); - - $file = 'content/'.get_locale().'/news.html'; - if (!file_exists($file)) { - $file = 'content/en/news.html'; - } - $fh = fopen($file, 'r'); - $data = fread($fh, filesize($file)); - fclose($fh); - - echo $header; - echo $data; -}//}}} - //{{{ T_() function T_( $string, $lang = '' ) { @@ -355,4 +336,28 @@ exit(0); }//}}} +//{{{ get_devel_download_link() + +function get_devel_download_link() { + return '<a href="https://sourceforge.net/project/showfiles.php?group_id=58584&package_id=54488">'.get_devel_version().'</a>'; +}//}}} + +//{{{ get_stable_download_link() + +function get_stable_download_link() { + return '<a href="https://sourceforge.net/project/showfiles.php?group_id=58584&package_id=120827">'.get_stable_version().'</a>'; +}//}}} + +//{{{ get_devel_version() + +function get_devel_version() { + return "0.4 beta"; +}//}}} + +//{{{ get_stable_version() + +function get_stable_version() { + return "0.4 beta"; +}//}}} + ?> \ No newline at end of file Modified: trunk/web/htdocs/get-involved.php =================================================================== --- trunk/web/htdocs/get-involved.php 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/get-involved.php 2006-09-02 01:12:52 UTC (rev 1223) @@ -6,7 +6,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo get_locale() ?>" lang="<?php echo get_locale() ?>"> <head> - <title>jsXe: Getting Involved</title> + <title>jsXe: <?php echo T_("Get Involved"); ?></title> <?php include("meta.php") ?> </head> <body> @@ -18,6 +18,8 @@ <div id="mainBody"> + <h2><?php echo T_("Get Involved"); ?></h2> + <?php get_content('get-involved') ?> <?php include("footer.php") ?> Added: trunk/web/htdocs/images/anybrowser.png =================================================================== (Binary files differ) Property changes on: trunk/web/htdocs/images/anybrowser.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/web/htdocs/images/css.png =================================================================== (Binary files differ) Property changes on: trunk/web/htdocs/images/css.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/web/htdocs/images/xhtml.png =================================================================== (Binary files differ) Property changes on: trunk/web/htdocs/images/xhtml.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/web/htdocs/index.php =================================================================== --- trunk/web/htdocs/index.php 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/index.php 2006-09-02 01:12:52 UTC (rev 1223) @@ -18,10 +18,14 @@ <div id="mainBody"> + <h2><?php echo T_("Overview"); ?></h2> + <?php get_content('overview'); ?> - <?php get_news() ?> + <h2><?php echo T_("News"); ?></h2> + <?php get_content('news') ?> + <?php include("footer.php") ?> </div> </body> Modified: trunk/web/htdocs/screenshots.php =================================================================== --- trunk/web/htdocs/screenshots.php 2006-09-01 23:33:32 UTC (rev 1222) +++ trunk/web/htdocs/screenshots.php 2006-09-02 01:12:52 UTC (rev 1223) @@ -6,7 +6,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo get_locale() ?>" lang="<?php echo get_locale() ?>"> <head> - <title>jsXe: Screenshots</title> + <title>jsXe: <?php echo T_("Screenshots"); ?></title> <?php include("meta.php") ?> </head> <body> @@ -25,11 +25,13 @@ } else { ?> - <h2>Screenshots</h2> + <h2><?php echo T_("Screenshots"); ?></h2> <table border="0" cellpadding="0" cellspacing="15" width="100%"> <tr> + <td> + <?php $params = array(); $params['id'] = '86758'; @@ -37,10 +39,10 @@ ?> </td> <td> - jsXe with Japanese locale. + <?php echo T_("jsXe with Japanese locale."); ?> <br/> - (jsXe 0.5 pre3 running on Ubuntu Linux) + (jsXe 0.5 pre3, Ubuntu Linux) </td> </tr> <tr> @@ -55,7 +57,7 @@ A screenshot showing the context dialog including cut/paste <br/> - (jsXe 0.4 pre3 running on Windows XP) + (jsXe 0.4 pre3, Windows XP) </td> </tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |