Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pages/prettytime/translate-for-your-language.page
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ public class Resources extends ListResourceBundle
This would effectively print <code>5 freakin' days ago</code>. Fun!</li>
</ul>

<p>
NOTE: As a good practice, ALWAYS unicode the words inside your bundle.
If you use Eclipse, there is a nice plugin who already does that: http://andrei.gmxhome.de/anyedit/
<p> <br/>

<h2 class=toc>Putting it all together</h2>
You should now be ready to implement your own custom translation for PrettyTime. Don't forget to <a href="https://github.com/ocpsoft/prettytime/blob/master/core/src/test/java/org/ocpsoft/prettytime/PrettyTimeTest.java" target="_blank">write a test-case</a> to prove that everything works!

Expand Down