Skip to content

Commit

Permalink
rename pomodoroName to timerName
Browse files Browse the repository at this point in the history
  • Loading branch information
martakostova committed Aug 8, 2014
1 parent e22f9b1 commit 48d5b8b
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 50 deletions.
16 changes: 8 additions & 8 deletions Pomodoro/English.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Calendar end text */
"$duration minutes Pomodoro '$pomodoroName'" = "$duration minutes Timer '$timerName'";
"$duration minutes Pomodoro '$timerName'" = "$duration minutes Timer '$timerName'";

/* Speech every minutes */
"$time minutes to go" = "$time minutes to go";
Expand Down Expand Up @@ -32,10 +32,10 @@
"Great! A full pomodoro!" = "Great! A full timer!";

/* Growl pomodoro start */
"Have a great pomodoro! You have $duration minutes to do '$pomodoroName'." = "Have a great timer! You have $duration minutes to do '$timerName'.";
"Have a great pomodoro! You have $duration minutes to do '$timerName'." = "Have a great timer! You have $duration minutes to do '$timerName'.";

/* Twitter pomodoro reset */
"I have just reset pomodoro '$pomodoroName'" = "I have just reset timer '$timerName'";
"I have just reset pomodoro '$timerName'" = "I have just reset timer '$timerName'";

/* Pomodoro name prompt */
"Insert here the pomodoro name" = "Insert here the timer name";
Expand All @@ -50,16 +50,16 @@
"interruption over, sorry" = "interruption over, sorry";

/* Twitter break finished */
"Just finished break after pomodoro '$pomodoroName'" = "Just finished break after timer '$timerName'";
"Just finished break after pomodoro '$timerName'" = "Just finished break after timer '$timerName'";

/* Twitter pomodoro end */
"Just finished pomodoro '$pomodoroName'" = "Just finished timer '$timerName'";
"Just finished pomodoro '$timerName'" = "Just finished timer '$timerName'";

/* Tooltip for finished pomodoros */
"Just finished: %@" = "Just finished: %@";

/* Twitter pomodoro start */
"Just started pomodoro '$pomodoroName'" = "Just started timer '$timerName'";
"Just started pomodoro '$timerName'" = "Just started timer '$timerName'";

/* Tooltip for interrupt-reset pomodoros */
"Last: %@ (interrupted)" = "Last: %@ (interrupted)";
Expand Down Expand Up @@ -122,10 +122,10 @@
"You have $secs seconds to resume." = "You have $secs seconds to resume.";

/* Mood Message */
"Pomodoro '$pomodoroName'. Back at $dueTime" = "Timer '$timerName'. Back at $dueTime";
"Pomodoro '$timerName'. Back at $dueTime" = "Timer '$timerName'. Back at $dueTime";

/* Mood Message Break*/
"Resting after Pomodoro '$pomodoroName'" = "Resting after Timer '$timerName'";
"Resting after Pomodoro '$timerName'" = "Resting after Timer '$timerName'";

/* Release Number */
"Release" = "Release: %@";
Expand Down
2 changes: 1 addition & 1 deletion Pomodoro/English.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</comboBoxCell>
<connections>
<binding destination="36" name="value" keyPath="values.pomodoroName" id="38"/>
<binding destination="36" name="value" keyPath="values.timerName" id="38"/>
</connections>
</comboBox>
<button verticalHuggingPriority="750" id="30">
Expand Down
Binary file modified Pomodoro/German.lproj/Localizable.strings
Binary file not shown.
2 changes: 1 addition & 1 deletion Pomodoro/German.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</comboBoxCell>
<connections>
<binding destination="36" name="value" keyPath="values.pomodoroName" id="38"/>
<binding destination="36" name="value" keyPath="values.timerName" id="38"/>
</connections>
</comboBox>
<button verticalHuggingPriority="750" id="30">
Expand Down
2 changes: 1 addition & 1 deletion Pomodoro/Pomodoro-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBuildNumber</key>
<integer>547</integer>
<integer>548</integer>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
Expand Down
16 changes: 8 additions & 8 deletions Pomodoro/it-IT.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Calendar end text */
"$duration minutes Pomodoro '$pomodoroName'" = "$duration minutes Timer '$timerName'";
"$duration minutes Pomodoro '$timerName'" = "$duration minutes Timer '$timerName'";

/* Speech every minutes */
"$time minutes to go" = "$time minuti alla fine";
Expand Down Expand Up @@ -32,10 +32,10 @@
"Great! A full pomodoro!" = "Fantastico! Concluso un Timer!";

/* Growl pomodoro start */
"Have a great pomodoro! You have $duration minutes to do '$pomodoroName'." = "Buon Timer! Hai $duration minuti per completare '$timerName'.";
"Have a great pomodoro! You have $duration minutes to do '$timerName'." = "Buon Timer! Hai $duration minuti per completare '$timerName'.";

/* Twitter pomodoro reset */
"I have just reset pomodoro '$pomodoroName'" = "Ho appena annullato '$timerName'";
"I have just reset pomodoro '$timerName'" = "Ho appena annullato '$timerName'";

/* Pomodoro name prompt */
"Insert here the pomodoro name" = "Inserisci il nome del Timer";
Expand All @@ -50,16 +50,16 @@
"interruption over, sorry" = "spiacente, Interruzione conclusa";

/* Twitter break finished */
"Just finished break after pomodoro '$pomodoroName'" = "Ho appena finito di riposare dopo '$timerName'";
"Just finished break after pomodoro '$timerName'" = "Ho appena finito di riposare dopo '$timerName'";

/* Twitter pomodoro end */
"Just finished pomodoro '$pomodoroName'" = "Ho appena finito '$timerName'";
"Just finished pomodoro '$timerName'" = "Ho appena finito '$timerName'";

/* Tooltip for finished pomodoros */
"Just finished: %@" = "Appena finito: %@";

/* Twitter pomodoro start */
"Just started pomodoro '$pomodoroName'" = "Ho appena iniziato '$timerName'";
"Just started pomodoro '$timerName'" = "Ho appena iniziato '$timerName'";

/* Tooltip for interrupt-reset pomodoros */
"Last: %@ (interrupted)" = "Ultimo: %@ (interrupted)";
Expand Down Expand Up @@ -122,10 +122,10 @@
"You have $secs seconds to resume." = "Hai $secs secondi per riprendere.";

/* Mood Message */
"Pomodoro '$pomodoroName'. Back at $dueTime" = "Timer '$timerName'. Torno alle $dueTime";
"Pomodoro '$timerName'. Back at $dueTime" = "Timer '$timerName'. Torno alle $dueTime";

/* Mood Message Break*/
"Resting after Pomodoro '$pomodoroName'" = "Sto riposando dopo '$timerName'";
"Resting after Pomodoro '$timerName'" = "Sto riposando dopo '$timerName'";

/* Release Number */
"Release" = "Release: %@";
Expand Down
8 changes: 4 additions & 4 deletions Pomodoro/it-IT.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
pomodoroName<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1060</int>
Expand Down Expand Up @@ -6969,15 +6969,15 @@
<array class="NSMutableArray" key="connectionRecords">
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: values.pomodoroName</string>
<string key="label">value: values.timerName</string>
<reference key="source" ref="872363035"/>
<reference key="destination" ref="39262419"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="872363035"/>
<reference key="NSDestination" ref="39262419"/>
<string key="NSLabel">value: values.pomodoroName</string>
<string key="NSLabel">value: values.timerName</string>
<string key="NSBinding">value</string>
<string key="NSKeyPath">values.pomodoroName</string>
<string key="NSKeyPath">values.timerName</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
Expand Down
2 changes: 1 addition & 1 deletion Pomodoro/src/CommonController.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#import <Foundation/Foundation.h>

#define _pomodoroName [[NSUserDefaults standardUserDefaults] objectForKey:@"pomodoroName"]
#define _timerName [[NSUserDefaults standardUserDefaults] objectForKey:@"timerName"]
#define _initialTime [[[NSUserDefaults standardUserDefaults] objectForKey:@"initialTime"] intValue]
#define _interruptTime [[[NSUserDefaults standardUserDefaults] objectForKey:@"interruptTime"] intValue]
#define _breakTime [[[NSUserDefaults standardUserDefaults] objectForKey:@"breakTime"] intValue]
Expand Down
4 changes: 2 additions & 2 deletions Pomodoro/src/CommonController.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ -(void)observeUserDefault:(NSString*) property{
}

- (NSString*) bindCommonVariables:(NSString*)name {
NSArray* variables = [NSArray arrayWithObjects:@"$pomodoroName", @"$duration", @"$dailyPomodoroDone", @"$globalPomodoroDone",nil];
NSArray* variables = [NSArray arrayWithObjects:@"$timerName", @"$duration", @"$dailyPomodoroDone", @"$globalPomodoroDone",nil];
NSString* durationString = [[[NSUserDefaults standardUserDefaults] objectForKey:@"initialTime"] stringValue];
NSString* dailyPomodoroDone = [[[NSUserDefaults standardUserDefaults] objectForKey:@"dailyPomodoroDone"] stringValue];
NSString* globalPomodoroDone = [[[NSUserDefaults standardUserDefaults] objectForKey:@"globalPomodoroDone"] stringValue];
Expand All @@ -58,7 +58,7 @@ - (NSString*) bindCommonVariables:(NSString*)name {
globalPomodoroDone = @"0";
}

NSArray* values = [NSArray arrayWithObjects:[[NSUserDefaults standardUserDefaults] objectForKey:@"pomodoroName"], durationString, dailyPomodoroDone, globalPomodoroDone, nil];
NSArray* values = [NSArray arrayWithObjects:[[NSUserDefaults standardUserDefaults] objectForKey:@"timerName"], durationString, dailyPomodoroDone, globalPomodoroDone, nil];
return [Binder substituteDefault:name withVariables:variables andValues:values];
}

Expand Down
4 changes: 2 additions & 2 deletions Pomodoro/src/GettingThingsDoneController.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ -(void) setPomodoroNametoLastBeforeCancel:(NSNotification*)notification {

NSInteger howMany = [namesCombo numberOfItems];
if (howMany > 0) {
[[NSUserDefaults standardUserDefaults] setObject:[namesCombo itemObjectValueAtIndex:howMany-1] forKey:@"pomodoroName"];
[[NSUserDefaults standardUserDefaults] setObject:[namesCombo itemObjectValueAtIndex:howMany-1] forKey:@"timerName"];
}

}

-(void) pomodoroNameGiven:(NSNotification*) notification {

NSInteger howMany = [namesCombo numberOfItems];
NSString* name = _pomodoroName;
NSString* name = _timerName;
BOOL isNewName = YES;
NSInteger i = 0;
while ((isNewName) && (i<howMany)) {
Expand Down
2 changes: 1 addition & 1 deletion Pomodoro/src/PomodoroArrayController.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ - (id) newPomodoro:(NSInteger)duration withExternalInterruptions:(NSInteger)exte
id newPomodoro = [super newObject];
NSDate *now = [NSDate date];
[newPomodoro setValue:now forKey:@"when"];
[newPomodoro setValue:[[NSUserDefaults standardUserDefaults] objectForKey:@"pomodoroName"] forKey:@"name"];
[newPomodoro setValue:[[NSUserDefaults standardUserDefaults] objectForKey:@"timerName"] forKey:@"name"];

[newPomodoro setValue:[NSNumber numberWithLong:duration] forKey:@"durationMinutes"];
[newPomodoro setValue:[NSNumber numberWithLong:externalInterruptions] forKey:@"externalInterruptions"];
Expand Down
20 changes: 10 additions & 10 deletions Pomodoro/src/PomodoroController.m
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ - (IBAction) quickStats:(id)sender {

NSInteger time = pomodoro.time;
NSString* quickStats = [NSString stringWithFormat:NSLocalizedString(@"QuickStatistics",@"Quick statistic format string"),
_pomodoroName, time/60, time%60,
_timerName, time/60, time%60,
pomodoro.externallyInterrupted, pomodoro.internallyInterrupted, pomodoro.resumed,
_globalPomodoroStarted, _globalPomodoroDone, _globalPomodoroReset,
_dailyPomodoroStarted, _dailyPomodoroDone, _dailyPomodoroReset,
Expand Down Expand Up @@ -340,7 +340,7 @@ -(void) pomodoroStarted:(NSNotification*) notification {

[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_dailyPomodoroStarted)+1] forKey:@"dailyPomodoroStarted"];
[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_globalPomodoroStarted)+1] forKey:@"globalPomodoroStarted"];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Working on: %@",@"Tooltip for running Pomodoro"), _pomodoroName];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Working on: %@",@"Tooltip for running Pomodoro"), _timerName];
[statusItem setToolTip:name];

}
Expand All @@ -349,7 +349,7 @@ -(void) pomodoroExternallyInterrupted:(NSNotification*) notification {

[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_dailyExternalInterruptions)+1] forKey:@"dailyExternalInterruptions"];
[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_globalExternalInterruptions)+1] forKey:@"globalExternalInterruptions"];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Externally Interrupted: %@",@"Tooltip for Interruption"), _pomodoroName];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Externally Interrupted: %@",@"Tooltip for Interruption"), _timerName];
[statusItem setToolTip:name];

}
Expand All @@ -360,7 +360,7 @@ -(void) pomodoroInternallyInterrupted:(NSNotification*) notification {
[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_dailyInternalInterruptions)+1] forKey:@"dailyInternalInterruptions"];
[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_globalInternalInterruptions)+1] forKey:@"globalInternalInterruptions"];

NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Internally Interrupted: %@",@"Tooltip for Interruption"), _pomodoroName];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Internally Interrupted: %@",@"Tooltip for Interruption"), _timerName];
[statusItem setToolTip:name];

}
Expand All @@ -370,7 +370,7 @@ -(void) pomodoroInterruptionMaxTimeIsOver:(NSNotification*) notification {

[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_dailyPomodoroReset)+1] forKey:@"dailyPomodoroReset"];
[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_globalPomodoroReset)+1] forKey:@"globalPomodoroReset"];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Last: %@ (interrupted)",@"Tooltip for interrupt-reset pomodoros"), _pomodoroName];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Last: %@ (interrupted)",@"Tooltip for interrupt-reset pomodoros"), _timerName];
[statusItem setToolTip:name];

[self updateMenu];
Expand All @@ -381,7 +381,7 @@ -(void) pomodoroReset:(NSNotification*) notification {

[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_dailyPomodoroReset)+1] forKey:@"dailyPomodoroReset"];
[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_globalPomodoroReset)+1] forKey:@"globalPomodoroReset"];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Last: %@ (reset)",@"Tooltip for reset pomodoro"), _pomodoroName];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Last: %@ (reset)",@"Tooltip for reset pomodoro"), _timerName];
[statusItem setToolTip:name];

}
Expand All @@ -390,22 +390,22 @@ -(void) pomodoroResumed:(NSNotification*) notification {

[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_dailyPomodoroResumed)+1] forKey:@"dailyPomodoroResumed"];
[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_globalPomodoroResumed)+1] forKey:@"globalPomodoroResumed"];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Working on: %@",@"Tooltip for running Pomodoro"), _pomodoroName];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Working on: %@",@"Tooltip for running Pomodoro"), _timerName];
[statusItem setToolTip:name];
[statusItem setImage:pomodoroImage];

}

-(void) breakStarted:(NSNotification*) notification {

NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Break after: %@",@"Tooltip for break"), _pomodoroName];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Break after: %@",@"Tooltip for break"), _timerName];
[statusItem setToolTip:name];
[self updateMenu];
}

-(void) breakFinished:(NSNotification*) notification {

NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Just finished: %@",@"Tooltip for finished pomodoros"), _pomodoroName];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Just finished: %@",@"Tooltip for finished pomodoros"), _timerName];
[statusItem setToolTip:name];

[self updateMenu];
Expand Down Expand Up @@ -438,7 +438,7 @@ -(void) pomodoroFinished:(NSNotification*) notification {
[[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt:(_globalPomodoroDone)+1] forKey:@"globalPomodoroDone"];
longBreakCounter++;

NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Just finished: %@",@"Tooltip for finished pomodoros"), _pomodoroName];
NSString* name = [NSString stringWithFormat:NSLocalizedString(@"Just finished: %@",@"Tooltip for finished pomodoros"), _timerName];
[statusItem setToolTip:name];


Expand Down
Loading

0 comments on commit 48d5b8b

Please sign in to comment.