DIR : /home/kozerus/public_html/pn/uize/site-source/examples/pseudo-localizer.html

/home/kozerus/public_html/pn/uize/site-source/examples

<!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">
<head>
	<title>Pseudo-localizer | JavaScript Tools | UIZE JavaScript Framework</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta name="keywords" content="tool Uize.Loc.Pseudo Uize.Widgets.Tools.PseudoLocalizer"/>
	<meta name="description" content="Experiment with the technique of pseudo-localization."/>
	<link rel="alternate" type="application/rss+xml" title="UIZE JavaScript Framework - Latest News" href="http://www.uize.com/latest-news.rss"/>
	<link rel="stylesheet" href="../css/page.css"/>
	<link rel="stylesheet" href="../css/page.example.css"/>
</head>

<body>

<script type="text/javascript" src="../js/Uize.js"></script>

<h1 class="header">
	<a id="page-homeLink" href="../index.html" title="UIZE JavaScript Framework home"></a>
	<a href="../index.html" class="homeLinkText" title="UIZE JavaScript Framework home">UIZE JavaScript Framework</a>
</h1>

<div class="main">
	<h1 class="document-title">
		<a href="../javascript-examples.html" class="breadcrumb breadcrumbWithArrow">JAVASCRIPT EXAMPLES</a>
		Pseudo-localizer
		<div class="pageActionsShell">
			<div id="page-actions" class="pageActions"><a href="source-code/pseudo-localizer.html" class="buttonLink">SOURCE</a></div>
		</div>
	</h1>

	<!-- explanation copy -->

	<div class="explanation">
		<p>The <b>Pseudo-localizer</b> tool (which makes use of the <a href="../reference/Uize.Widgets.Tools.PseudoLocalizer.html"><code>Uize.Widgets.Tools.PseudoLocalizer</code></a> widget module) lets you experiment with the technique of pseudo-localiztion.</p>

		<p>Pseudo-localization is a process of programmatically "translating" application text (typically English) to a pseudo-locale to aid in identifying i18n (internationalization) and L10n (localization) issues in the application. Pseudo-localization comprises the processes of accenting, expansion, and wrapping, which are applied to the source (untranslated) text to produce the pseudo-localized text. For more information on pseudo-localization, consult the reference for the <a href="../reference/Uize.Loc.Pseudo.html"><code>Uize.Loc.Pseudo</code></a> module.</p>

		<p>This tool lets you customize the various pseudo-localization options that are supported by the <code>Uize.Loc.Pseudo</code> module and pseudo-localize any custom source text that you enter.</p>
	</div>

	<div id="page-pseudoLocalizer"></div>
</div>

<script type="text/javascript">

Uize.require (
	[
		'UizeSite.Page.Example',
		'Uize.Widgets.Tools.PseudoLocalizer.Widget'
	],
	function () {
		'use strict';

		/*** create the example page widget ***/
			var page = window.page = UizeSite.Page.Example ();

		/*** add the pseudo-localizer widget ***/
			page.addChild (
				'pseudoLocalizer',
				Uize.Widgets.Tools.PseudoLocalizer.Widget,
				{
					built:false,
					source:[
						'This is some text that should be pseudo-localized.',
						'',
						'Text may contain <span style="font-weight: bold;">HTML<span> tags, and the tags will not be pseudo-localized.',
						'',
						'Expansion is based on the character count of the pseudo-localizable words, and is not influenced by numbers (123456789.0123456789), or whitespace (        ) or punctuation (!?.,;:&-=[]).'
					].join ('\n')
				}
			);

		/*** wire up the page widget ***/
			page.wireUi ();
	}
);

</script>

</body></html>

//


koh5_pano



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer