Bug 652 - simple eyesight warning enhancement - customise existing string
Status:
RESOLVED FIXED
Component:
Core
Version:
unspecified
Hardware:
PC Windows
Importance:
P4 enhancement
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
Jul 9 2007 00:37:52 UTC
by:
ma**@bl**.net
Modified:
Sep 19 2007 23:07:02 UTC
CC List:
Ray Satiro
WhoWhenWhatRemovedAdded
Ray SatiroJul 12 2007 06:05:17 UTCccRay Satiro
Rob CaelersAug 27 2007 14:04:10 UTCpriorityP2P4
Ray SatiroSep 19 2007 23:07:02 UTCstatusNEWRESOLVED
resolutionFIXED
Description
ma**@bl**.net  Jul 9 2007 00:37:52 UTC
Could I have please have the ability to customise the Micro-break string ("Please relax for a few seconds"), maybe by moving it to an xml file.

This will allow me to use workrave as eyesight protection, I would add the 10-10-10 rule text (from http://www.holistichealthtools.com/7things.html & other similar websites)
Comment 1
Ray Satiro  Jul 12 2007 05:53:21 UTC
This is possible to do but I don't know that it will be implemented in a public version. Workrave is in many languages and all text in Workrave must be available in all translated languages.

If you really think it will help I can hack out something quick and basic, but I won't commit to updating it when new code is released. I would create an unsupported "private" version just to test that idea out.

If you're interested let me know.
Comment 2
Ray Satiro  Jul 12 2007 21:58:36 UTC
I thought of a better way almost right after I wrote that. What you want to do is possible but you will need a special editor to do it. If you want to change just that one line, please do the following:

-You might need to be an administrator depending on your configuration, so please switch to administrator.

-Find your workrave directory, and switch to subdirectory lib\locale
-Create a folder in locale named: en
-Create a folder in en named: LC_MESSAGES
-Create a file in LC_MESSAGES: workrave.po
--For example:
C:\Program Files\Workrave\lib\locale\en\LC_MESSAGES\workrave.po

-Open workrave.po in notepad, add the following two lines & save:
msgid "Please relax for a few seconds"
msgstr "this is the line you will edit in poedit"

-Download poEdit from sourceforge & install:
http://switch.dl.sourceforge.net/sourceforge/poedit/poedit-1.3.7-setup.exe
f99257d0f52a90442dadf318217a01e2 *poedit-1.3.7-setup.exe

-Open workrave.po in poEdit, change the line & save. If the line is too long it could throw the window off-center, although you can add a \n to start a newline. For example, this would appear as two lines:
THERE WAS A BIG BAD FUZZY DINOSAUR \nWHO ATE ALL THE CROPS IN MY YARD

-Start workrave & wait for a micro break.


If you don't think you can do this, let me know what you want to say and I will send you the file.
Comment 3
ma**@bl**.net  Jul 18 2007 16:01:39 UTC
Thank you, that works well!