Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Add the date to the menubar clock' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Add the date to the menubar clock
Authored by: ploiku on Nov 20, '03 01:06:01PM

Why not just modify the setting in

/System/Library/CoreServices/Menu Extras/Clock.menu/Contents/Resources/English.lproj/Localizable.strings

(Change English.lproj to whatever your language is).

The strings file is even documented - and only used by the menu clock...



[ Reply to This | # ]
10.3: Add the date to the menubar clock
Authored by: PigDawg on Nov 20, '03 01:29:06PM

Where can I find documentation on the strings file? It appears to be binary



[ Reply to This | # ]
Example please...
Authored by: acalado on Nov 20, '03 01:30:46PM

Could you please provide an example? That plist doesn't seem to use the same format as those in the hint.

Thanks,

Andy



[ Reply to This | # ]
Example please...
Authored by: corvus on Nov 20, '03 01:55:48PM

You can open it with Project Builder.



[ Reply to This | # ]
10.3: modifying Localizable.strings doesn't work
Authored by: ces3001 on Nov 20, '03 02:14:00PM

In any case, I couldn't get the changes to actually take effect, even after logging out/in. (And yes, I used sudo /Applications/TextEdit.app/Contents/Mac OS/TextEdit to open the file and edit it, all other apps, including my favorite, pico, wouldn't open it correctly).



[ Reply to This | # ]
10.3: modifying Localizable.strings doesn't work
Authored by: joshuajestelle on Nov 20, '03 02:48:39PM

It won't work for me either.

Has anyone gotten this to work? This seems like the best way to go about changing this, as it shouldn't cause problems for any other apps.

Thanks,
Jsoh



[ Reply to This | # ]
10.3: modifying Localizable.strings doesn't work
Authored by: scottmc on Dec 18, '03 05:00:35PM
I've been working on this, and had the most success by ftping Localizable.strings to a host running Solaris 8, where Sun's version of vi opened it cleanly. It does seem that this file has some funky characters in it at the top which seem to throw off editors on OSX. I also looked at it with bvi (Binary vi) and it looked the same.

I haven't had a change to muck with the settings yet. Hopefully I'll have more time to test mods to it tonight. Anyone have the list of string values that this file uses?

For those who haven't been able to view the file, here are the contents (without the nasty control characters).


Listing of Localizable.strings



/* View as Icon Menu String */
"MBC_VIEW_AS_ICON_MENUITEM" = "View as Analog";

/* View as Text Menu String */
"MBC_VIEW_AS_TEXT_MENUITEM" = "View as Digital";

/* View in Floating Window */
"MBC_VIEW_IN_WINDOW_DIGITAL" = "View in Window as Digital";

/* View in Floating Window */
"MBC_VIEW_IN_WINDOW_TRADITIONAL" = "View in Window as Analog";

/* Open Date & Time String */
"MBC_OPEN_DATETIME_MENUITEM" = "Open Date & Time &";

/* 1st menu item date/time format string */
/* NO LONGER USED.  The first menu item displayed now uses NSDateFormatString */
/*  it doesn't include the time, but it solves a lot of localization issues and works */
/*  around some Foundation / International prefs interaction issues */
/* "MBC_DATETIME_MENUITEM_FORMAT" = "%A %1m/%e/%Y %1I:%M%p"; */


/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
/* The following 3 strings are used to set up the format the menu bar clock will use     */

/*  Localizations needs to follow these instructions for the menu clock to work properly. */

/*  MBC_CLOCK_FORMAT_STRING is the main format string.  It MUST contain a %a, %time, and %p */
/*      The order of the items can vary and any additional characters or punctuation is ok */
/*      For example, you could put the short day of week at the END of the menu bar clock by */
/*      changing the format to: "%time%p %a" */
//"MBC_CLOCK_FORMAT_STRING" = "%a %time%p";
"MBC_CLOCK_FORMAT_STRING" = "%a %time";


/* MBC_CLOCK_REMOVE_AMPM_STRING is a string that is used to REMOVE the AM/PM display when a user
 */
/*      turns off display AM/PM (or selects 24 hour formats).  This string MUST contain %p.  It 
should */
/*      also contain any additional characters that need to be removed when the AM/PM isn't bein
g */
/*      displayed.  For example, a format that wanted a dash to appear before the AM/PM would be
: */
/*      "%a %time-%p".  To remove it when a user turns off AM/PM display, the MBC_CLOCK_REMOVE_A
MPM_STRING */
/*      should contain "-%p" */
"MBC_CLOCK_REMOVE_AMPM_STRING" = " %p";


/* MBC_CLOCK_REMOVE_DAYOFWEEK_STRING is a string used to REMOVE the short day of week display when a user */
/*      turns off the show day of week option in the preferences.  This string MUST contain %a. It should */
/*      also contain any additional characters that need to be removed when the day of week isn't being */
/*      displayed.  For example, the US time format puts a space between the day of week and the start of */
/*      the time so MBC_CLOCK_REMOVE_DAYOFWEEK_STRING containds "%a " */
"MBC_CLOCK_REMOVE_DAYOFWEEK_STRING" = "%a ";

/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/


[ Reply to This | # ]
10.3: modifying Localizable.strings doesn't work
Authored by: msephton on Apr 12, '04 08:27:29AM

I'd also be interested in getting this to work. I'm reluctant to use third party clock apps just because they add extra bloat to a system. If we can tweak the OS to do it, surely that's better?



[ Reply to This | # ]