Skip to content

Commit d949b0c

Browse files
committed
Split about from index, etc
1 parent 8f2b9a5 commit d949b0c

5 files changed

Lines changed: 60 additions & 53 deletions

File tree

_config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ relative_permalinks: true
1010
title: messageformat.js
1111
tagline: 'ICU MessageFormat for Javascript'
1212
description: 'Gender- and plural-capable messages using ICU MessageFormat'
13-
url: http://messageformat.githu.io
13+
url: https://messageformat.github.io
1414
baseurl: /
1515

1616
author:
@@ -22,5 +22,8 @@ paginate: 5
2222
# Custom vars
2323
version: 0.3.0
2424

25+
npm:
26+
link: https://www.npmjs.com/package/messageformat
27+
2528
github:
2629
repo: https://github.com/SlexAxton/messageformat.js

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h1>
2727
{% endfor %}
2828

2929
<a class="sidebar-nav-item" href="{{ site.github.repo }}">GitHub project</a>
30-
<span class="sidebar-nav-item">Currently v{{ site.version }}</span>
30+
<span class="sidebar-nav-item">Currently at <a href="https://www.npmjs.com/package/messageformat">v{{ site.version }}</a></span>
3131
</nav>
3232

3333
<p>&copy; {{ site.time | date: '%Y' }}. All rights reserved.</p>

about.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: page
3+
title: About
4+
---
5+
6+
7+
## License
8+
9+
You may use this software under the MIT License.
10+
11+
You may contribute to this software under the [Dojo CLA](http://dojofoundation.org/about/cla).
12+
13+
14+
## Author
15+
16+
* Alex Sexton - [@SlexAxton](http://twitter.com/SlexAxton) - <http://alexsexton.com/>
17+
18+
## Major Contributors
19+
20+
* Eemeli Aro - [@eemeli](http://twitter.com/eemeli_aro) - <https://github.com/eemeli>
21+
22+
23+
## Credits
24+
25+
Thanks to:
26+
27+
* [Bazaarvoice](https://github.com/Bazaarvoice) - my employer - for letting me do cool stuff like this.
28+
* Google has an implementation that is similar in Google Closure, I tried to vet my code against many of their tests.
29+
* Norbert Lindenberg for showing me how good it can be.
30+
31+
32+
## Implementations in other languages
33+
34+
[Jeff Hansen](https://github.com/jeffijoe) ([@jeffijoe](https://twitter.com/jeffijoe)) has written an [implementation for .NET](https://github.com/jeffijoe/messageformat.net) - it's a Portable Class Library, making it possible to use on iOS, Android, Windows Phone, and pretty much any other .NET target.
35+
36+
37+
## Additional tools
38+
39+
[icu-converter](https://github.com/alex-dow/icu-converter) is a NodeJS tool for converting message files in the [ICU Resource Bundle](http://userguide.icu-project.org/locale/resources) format into JSON or .property files.

index.md

Lines changed: 15 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,30 @@ With this message:
2424

2525
```js
2626
> var msg =
27-
'{GENDER, select, male {He} female {She} other {They} }' +
28-
' found ' +
29-
'{RESULTS, plural, =0 {no results} one {1 result} other {# results} }' +
30-
' in the ' +
31-
'{CATEGORY, selectordinal, one{#st} two{#nd} few{#rd} other{#th} }' +
32-
' category.';
27+
'{GENDER, select, male{He} female{She} other{They} }' +
28+
' found ' +
29+
'{RES, plural, =0{no results} one{1 result} other{# results} }' +
30+
' in the ' +
31+
'{CAT, selectordinal, one{#st} two{#nd} few{#rd} other{#th} }' +
32+
' category.';
3333
```
3434

3535
You'll get these results:
3636

3737
```js
3838
> var mfunc = new MessageFormat('en').compile(msg);
3939

40-
> mfunc({ GENDER: 'male', RESULTS: 1, CATEGORIES: 2 })
41-
'He found 1 result in 2 categories.'
40+
> mfunc({ GENDER: 'male', RES: 1, CAT: 2 })
41+
'He found 1 result in the 2nd category.'
4242

43-
> mfunc({ GENDER: 'female', RESULTS: 1, CATEGORIES: 2 })
44-
'She found 1 result in 2 categories.'
43+
> mfunc({ GENDER: 'female', RES: 1, CAT: 2 })
44+
'She found 1 result in the 2nd category.'
4545

46-
> mfunc({ GENDER: 'male', RESULTS: 2, CATEGORIES: 1 })
47-
'He found 2 results in 1 category.'
46+
> mfunc({ GENDER: 'male', RES: 2, CAT: 1 })
47+
'He found 2 results in the 1st category.'
4848

49-
> mfunc({ RESULTS: 2, CATEGORIES: 2 })
50-
'They found 2 results in 2 categories.'
49+
> mfunc({ RES: 2, CAT: 2 })
50+
'They found 2 results in the 2nd category.'
5151
```
5252

5353

@@ -65,7 +65,7 @@ You'll get these results:
6565
* Supports Unicode
6666

6767

68-
## Install
68+
## Installation
6969

7070
### Node
7171
```
@@ -88,38 +88,3 @@ bower install messageformat
8888
var mf = new MessageFormat('en');
8989
</script>
9090
```
91-
92-
93-
## License
94-
95-
You may use this software under the MIT License.
96-
97-
You may contribute to this software under the Dojo CLA - <http://dojofoundation.org/about/cla>
98-
99-
100-
## Author
101-
102-
* Alex Sexton - [@SlexAxton](http://twitter.com/SlexAxton) - <http://alexsexton.com/>
103-
104-
## Major Contributors
105-
106-
* Eemeli Aro - [@eemeli](https://github.com/eemeli)
107-
108-
109-
## Credits
110-
111-
Thanks to:
112-
113-
* [Bazaarvoice](https://github.com/Bazaarvoice) - my employer - for letting me do cool stuff like this.
114-
* Google has an implementation that is similar in Google Closure, I tried to vet my code against many of their tests.
115-
* Norbert Lindenberg for showing me how good it can be.
116-
117-
118-
## Implementations in other languages
119-
120-
[Jeff Hansen](https://github.com/jeffijoe) ([@jeffijoe](https://twitter.com/jeffijoe)) has written an [implementation for .NET](https://github.com/jeffijoe/messageformat.net) - it's a Portable Class Library, making it possible to use on iOS, Android, Windows Phone, and pretty much any other .NET target.
121-
122-
123-
## Additional tools
124-
125-
[icu-converter](https://github.com/alex-dow/icu-converter) is a NodeJS tool for converting message files in the [ICU Resource Bundle](http://userguide.icu-project.org/locale/resources) format into JSON or .property files.

public/css/hyde.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ html {
8383
font-size: 1.6rem;
8484
}
8585
.sidebar .lead {
86-
font-size: 1.1rem;
86+
font-size: 1.2rem;
8787
}
8888

8989
/* Sidebar nav */

0 commit comments

Comments
 (0)