NP_Fuzzytime.php

Use this plugin to show the time like “quarter past five”, instead of “5:13:43”. Different languages available and easily translatable into your own.

General Plugin info
Author: Novi O'Magum
Current Version: 0.1
Download: NP_Fuzzytime.tgz (2.1K) NP_Fuzzytime.zip (4.1K)
Demo: None yet…

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. If your language is not available, copy one of the language-files in the “fuzzytime-directory” and translate it
  3. Install the plugin

How to use the plugin

  1. <%Fuzzytime({CODE})%> (where {CODE} is the code of the language to be used (default=“en”, for English)).
  2. Currently availabe languages: af (Afrikaans), de (German), en (English), eo (Esperanto), es (Spanish), it (Italian), nl (Dutch). If you want to translate the plugin into your own language, simply copy one of the available language files in the “fuzzytime”-directory to fuzzytime_data_{CODE}.php (where {CODE} is the code of your language) and edit it.

Bugs

  • Times between midnight and about quarter past midnight will not be shown correctly. To fix this, replace line 16: $string=str_replace(”%0”,$fuzzytime_numbers[($hr-1)%12],$string); with: $string=str_replace(”%0”,$fuzzytime_numbers[($hr+11)%12],$string);

Ma.rkus.nl 2006/11/18 23:31

  • some evident but also some really strange results in German, doesn't seems to be only fuzzy ??? (2007-11-04 kg)

History

  • Version 0.1, released November 17th, 2006

Plugin Review

NP_FuzzyTime version 1.0 works with Nucleus CMS version 3.31 - 2007-11-04 kg

fuzzytime.txt · Last modified: 2007/11/04 00:07 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki