Skip to content

Commit

Permalink
Final cleanup of i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Jun 28, 2014
1 parent 1de2fcf commit 53f8f66
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 33 deletions.
46 changes: 26 additions & 20 deletions demos/api/i18n.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h3>Contributing</h3>

<p>The contribution system has been moved to gettext - this streamlines the submission process significantly. You can submit translations at <a href="http://crowdin.net/project/jquery-mobile-datebox">crowdin</a>.</p>

<p>If you prefer, the project .pot file is here: <a href="https://github.com/jtsage/jquery-mobile-datebox/blob/master/i18n/po/datebox.pot">datebox.pot</a>
<p>If you prefer, the project .pot file is here: <a href="https://github.com/jtsage/jquery-mobile-datebox/blob/master/i18n/datebox.pot">datebox.pot</a>

<p>Finally, you can generate the following:</p>

Expand Down Expand Up @@ -84,7 +84,8 @@ <h3>Contributing</h3>
timeOutput: '%k:%M', // 12hr: '%l:%M %p', 24hr: '%k:%M',
durationFormat: '%Dd %DA, %Dl:%DM:%DS',
calDateListLabel: 'Other Dates',
calHeaderFormat: '%B %Y'
calHeaderFormat: '%B %Y',
calTomorrowButtonLabel: "Jump to Tomorrow"
}
});
jQuery.extend(jQuery.mobile.datebox.prototype.options, {
Expand All @@ -95,30 +96,35 @@ <h3>Contributing</h3>

<h3>Special Thanks:</h3>
<ul data-role="listview" data-inset="true">
<li><h3>zh_CH</h3><p>ChiElvis &lt;[email protected]>, josher19 &lt;crowdin></p></li>
<li><h3>uk</h3><p>Alexander Zolotko &lt;[email protected]></p></li>
<li><h3>sv</h3><p>Henrik Ekselius &lt;[email protected]></p></li>
<li><h3>pt_BR</h3><p>Rodrigo Vieira &lt;[email protected]>, Marcelo Dezem &lt;crowdin></p></li>
<li><h3>pl</h3><p>Zbigniew Motyka &lt;[email protected]></p></li>
<li><h3>ar</h3><p>Michael de Lara &lt;[email protected]></p></li>
<li><h3>ar</h3><p>Michael de Lara &lt;[email protected]>, Houshmand Rastin &lt;crowdin></p></li>
<li><h3>bg</h3><p>How Bizarre &lt;[email protected]></p></li>
<li><h3>da</h3><p>Jnyrup &lt;crowdin></p></li>
<li><h3>de</h3><p>Chris P. Vigelius &lt;[email protected]>, Pascal Hofmann &lt;crowdin></p></li>
<li><h3>el</h3><p>Giannis Kosmas &lt;[email protected]></p></li>
<li><h3>lt</h3><p>Tadas Subonis &lt;[email protected]></p></li>
<li><h3>es</h3><p>Rafael Carballo Cerqueira</p></li>
<li><h3>es_ES</h3><p>Rafael Carballo Cerqueira</p></li>
<li><h3>es-ES</h3><p>Rafael Carballo Cerqueira, Josh W &lt;crowdin> Gui_gofu &lt;crowdin></p></li>
<li><h3>fi</h3><p>Ville Salonen &lt;[email protected]></p></li>
<li><h3>fr</h3><p>Jan Verhaeghe &lt;crowdin>, lgoncalves &lt;crowdin></p></li>
<li><h3>he</h3><p>Kobi Hikri &lt;[email protected]></p></li>
<li><h3>hr</h3><p>Marko &lt;[email protected]></p></li>
<li><h3>hu</h3><p>titititatatatititi &lt;crowdin></p></li>
<li><h3>id</h3><p>Sutisna &lt;crowdin>, Yashdiq Lubis &lt;crowdin></p></li>
<li><h3>it</h3><p>Giuseppe Petagine &lt;[email protected]>, mauretto &lt;crowdin></p></li>
<li><h3>ja</h3><p>Moon Dial, pokutuna popopo &lt;crowdin></p></li>
<li><h3>ko</h3><p>mooyoul &lt;crowdin></p></li>
<li><h3>lt</h3><p>Tadas Subonis &lt;[email protected]></p></li>
<li><h3>nl</h3><p>G. Hengeveld &lt;[email protected]>, Arjan ven Bentem &lt;crowdin></p></li>
<li><h3>ja</h3><p>Moon Dial</p></li>
<li><h3>it</h3><p>Giuseppe Petagine &lt;[email protected]></p></li>
<li><h3>it_IT</h3><p>Giuseppe Petagine &lt;[email protected]></p></li>
<li><h3>nb_NO</h3><p>Robin Heggelund Hansen &lt;[email protected]></p></li>
<li><h3>nl-BE</h3><p>Jan Verhaeghe &lt;crowdin></p></li>
<li><h3>no</h3><p>Robin Heggelund Hansen &lt;[email protected]></p></li>
<li><h3>pt-BR</h3><p>Rodrigo Vieira &lt;[email protected]>, Marcelo Dezem &lt;crowdin></p></li>
<li><h3>pt-PT</h3><p>Marcelo Dezem &lt;crowdin>, Sergio Martins &lt;crowdin></p></li>
<li><h3>pl</h3><p>Zbigniew Motyka &lt;[email protected]></p></li>
<li><h3>ru</h3><p>Alexander Zolotko &lt;[email protected]></p></li>
<li><h3>he</h3><p>Kobi Hikri &lt;[email protected]></p></li>
<li><h3>da</h3><p>Jnyrup &lt;crowdin></p></li>
<li><h3>hu</h3><p>titititatatatititi &lt;crowdin></p></li>
<li><h3>th</h3><p>tiratat.patana-anake &lt;[email protected]></p></li>
<li><h3>bg</h3><p>How Bizarre &lt;[email protected]></p></li>
<li><h3>sv-SE</h3><p>Henrik Ekselius &lt;[email protected]></p></li>
<li><h3>th</h3><p>tiratat.patana-anake &lt;[email protected]>, bu_echo &lt;crowdin></p></li>
<li><h3>tr</h3><p>weli.cengiz &lt;crowdin>, zlkklm &lt;crowdin></p></li>
<li><h3>uk</h3><p>Alexander Zolotko &lt;[email protected]></p></li>
<li><h3>zh-TW</h3><p>Ethan Chen &lt;[email protected]>, michelle4233536 &lt;crowdin></p></li>
<li><h3>zh-CN</h3><p>ChiElvis &lt;[email protected]>, Josh W &lt;crowdin>, ulone &lt;crowdin>, Fred Qiao &lt;crowdin>, Loexe_one &lt;crowdin>, share123 &lt;crowdin>, pokutuna popopo &lt;crowdin></p></li>
</ul>
</div>
<div data-role="footer" data-position="fixed">
Expand Down
2 changes: 1 addition & 1 deletion i18n/datebox.pot
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ msgstr "Other Dates"
msgid "%B %Y"
msgstr "%B %Y"

#. Header format for calendar mode (usually Month Year)
#. Jump to tomorrow label
#: generate-i18n.py:50
msgid "Jump to Tomorrow"
msgstr "Jump to Tomorrow"
33 changes: 21 additions & 12 deletions tests/dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>jQueryMobile - DateBox Demo</title>
<link href="http://code.jquery.com/mobile/latest/jquery.mobile.css" rel="stylesheet" type="text/css" />
<!--link href="http://code.jquery.com/mobile/latest/jquery.mobile.css" rel="stylesheet" type="text/css" /--s >
<!-- NOTE: Script load order is significant! -->

<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script>
<script src="http://code.jquery.com/mobile/latest/jquery.mobile.js"></script>
<!--script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.js"></script-->
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.1.js"></script>
<!--script src="http://code.jquery.com/mobile/latest/jquery.mobile.js"></script-->

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" />
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>

<!--link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.css" />
<script src="http://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.js"></script-->

<script type="text/javascript" src="http://dev.jtsage.com/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="../demos/extras.js"></script>
Expand All @@ -33,10 +35,15 @@
<script type="text/javascript" src="./jquery.mobile.datebox.i18n.en_US.utf8.js"></script>
<script type="text/javascript">
jQuery.extend(jQuery.mobile.datebox.prototype.options, {
'usePlaceholder': true,
//'usePlaceholder': true,
'useNewStyle': true,
'defaultValue': [2013,0,1],
'nadda': false,
'lockInput': true,
'useFocus': true,
'useTomorrowButton': 'true',

//'useClearButton': true,
});
</script>
<style>
Expand All @@ -52,21 +59,21 @@ <h1>jQueryMobile - Dev Page</h1>
<div data-role="content">
<div data-role="fieldcontain">
<label for="l1">l1</label>
<input name="l1" type="text" data-role="datebox" data-options='{"mode": "calbox", "calWeekMode": true, "showInitialValue":true}' id="l1" />
<input name="l1" type="text" s data-role="datebox" data-options='{"mode": "datebox", "calWeekModeDay":3, "calWeekMode": true, "showInitialValue":true}' id="l1" />
</div>
<div data-role="fieldcontain">
<label for="aa1">text comparison</label>
<input name="aa1" type="text" data-mini="true" id="aa1"/>
</div>
<div data-role="fieldcontain">
<!--div data-role="fieldcontain">
<label for="l7">durationbox</label>
<input name="l7" type="text" data-role="datebox" data-options='{"overrideDurationOrder":["h","i"], "mode": "durationflipbox"}' id="l7" />
</div>
</div-->
<div data-role="fieldcontain">
<label for="lang1">calbox</label>
<input name="lang1" type="text" data-role="datebox" data-options='{"calShowWeek":true, "calUsePickers":true, "mode": "calbox"}' id="lang1" />
<input name="lang1" type="text" data-role="datebox" data-options='{"calUsePickers":true, "mode": "calbox"}' id="lang1" />
</div>
<div data-role="fieldcontain">
<!--div data-role="fieldcontain">
<label for="c2">custom box</label>
<input name="c2" type="text" data-role="datebox" data-options='{"mode": "custombox", "overrideStyleClass":"ui-icon-dice"}' id="c2" />
</div>
Expand Down Expand Up @@ -99,7 +106,9 @@ <h1>jQueryMobile - Dev Page</h1>
<div data-role="fieldcontain">
<label for="lang7">durationbox</label>
<input name="lang7" type="text" data-role="datebox" data-options='{"defaultValue":10232, "overrideDurationOrder":["h","i"], "mode": "durationbox"}' id="lang7" />
</div>
</div-->


</div>
<div data-role="footer" data-position="fixed">
<h1>Some Footer Information or Something.</h1>
Expand Down

0 comments on commit 53f8f66

Please sign in to comment.