Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pages/prettytime/translate-for-your-language.page #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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