Permalink
Browse files

localize new preferences

  • Loading branch information...
1 parent 7f74559 commit 4f727df0ae0e05c20723d3f1feb30f66281e06a3 @cstigler cstigler committed Sep 27, 2014
Showing with 8,485 additions and 12,713 deletions.
  1. +41 −0 .gl/repository
  2. +4 −4 AppController.h
  3. +14 −31 AppController.m
  4. +14 −0 PreferencesAdvancedViewController.h
  5. +34 −0 PreferencesAdvancedViewController.m
  6. +16 −0 PreferencesGeneralViewController.h
  7. +63 −0 PreferencesGeneralViewController.m
  8. 0 SelfControl Killer/{Base.lproj → en.lproj}/MainMenu.xib
  9. +1,456 −4,234 SelfControl.xcodeproj/project.pbxproj
  10. BIN de.lproj/Localizable.strings
  11. +30 −977 de.lproj/MainMenu.xib
  12. +74 −0 de.lproj/PreferencesAdvancedViewController.xib
  13. +123 −0 de.lproj/PreferencesGeneralViewController.xib
  14. BIN en.lproj/Localizable.strings
  15. +30 −978 en.lproj/MainMenu.xib
  16. +74 −0 en.lproj/PreferencesAdvancedViewController.xib
  17. +123 −0 en.lproj/PreferencesGeneralViewController.xib
  18. BIN es.lproj/Localizable.strings
  19. +22 −1,012 es.lproj/MainMenu.xib
  20. +74 −0 es.lproj/PreferencesAdvancedViewController.xib
  21. +123 −0 es.lproj/PreferencesGeneralViewController.xib
  22. BIN it.lproj/Localizable.strings
  23. +23 −976 it.lproj/MainMenu.xib
  24. +74 −0 it.lproj/PreferencesAdvancedViewController.xib
  25. +123 −0 it.lproj/PreferencesGeneralViewController.xib
  26. BIN ja.lproj/Localizable.strings
  27. +23 −976 ja.lproj/MainMenu.xib
  28. +74 −0 ja.lproj/PreferencesAdvancedViewController.xib
  29. +123 −0 ja.lproj/PreferencesGeneralViewController.xib
  30. BIN ko.lproj/Localizable.strings
  31. +1 −170 ko.lproj/MainMenu.xib
  32. +74 −0 ko.lproj/PreferencesAdvancedViewController.xib
  33. +123 −0 ko.lproj/PreferencesGeneralViewController.xib
  34. +74 −0 pt-BR.lproj/PreferencesAdvancedViewController.xib
  35. +123 −0 pt-BR.lproj/PreferencesGeneralViewController.xib
  36. +34 −28 pt_BR.lproj/DomainList.xib
  37. BIN pt_BR.lproj/Localizable.strings
  38. +59 −1,006 pt_BR.lproj/MainMenu.xib
  39. +232 −164 pt_BR.lproj/TimerWindow.xib
  40. BIN sv.lproj/Localizable.strings
  41. +22 −1,012 sv.lproj/MainMenu.xib
  42. +74 −0 sv.lproj/PreferencesAdvancedViewController.xib
  43. +123 −0 sv.lproj/PreferencesGeneralViewController.xib
  44. BIN test/SelfControl/SelfControl.console
  45. BIN test/SelfControl/SelfControl.ilocalize
  46. BIN test/SelfControl/SelfControl~.ilocalize
  47. +37 −0 ...ntrol/Source/SelfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.h
  48. +40 −0 ...l/Source/SelfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h
  49. +36 −0 ...ontrol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Headers/SUStandardVersionComparator.h
  50. +178 −0 ...ntrol/Source/SelfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Headers/SUUpdater.h
  51. +29 −0 ...ontrol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h
  52. +27 −0 ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Headers/SUVersionDisplayProtocol.h
  53. +22 −0 ...Control/Source/SelfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Headers/Sparkle.h
  54. +50 −0 ...app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Info.plist
  55. BIN ...ntents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/MacOS/Autoupdate
  56. +1 −0 ...ol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/PkgInfo
  57. BIN .../Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/SUStatus.nib
  58. BIN .../Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/Sparkle.icns
  59. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/ar.lproj/Sparkle.strings
  60. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/cs.lproj/Sparkle.strings
  61. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/da.lproj/Sparkle.strings
  62. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/de.lproj/Sparkle.strings
  63. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/en.lproj/Sparkle.strings
  64. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/es.lproj/Sparkle.strings
  65. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/fr.lproj/Sparkle.strings
  66. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/is.lproj/Sparkle.strings
  67. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/it.lproj/Sparkle.strings
  68. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/ja.lproj/Sparkle.strings
  69. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/ko.lproj/Sparkle.strings
  70. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/nb.lproj/Sparkle.strings
  71. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/nl.lproj/Sparkle.strings
  72. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/pl.lproj/Sparkle.strings
  73. BIN ...rkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/pt_BR.lproj/Sparkle.strings
  74. BIN ...rkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/pt_PT.lproj/Sparkle.strings
  75. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/ro.lproj/Sparkle.strings
  76. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/ru.lproj/Sparkle.strings
  77. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/sk.lproj/Sparkle.strings
  78. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/sl.lproj/Sparkle.strings
  79. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/sv.lproj/Sparkle.strings
  80. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/th.lproj/Sparkle.strings
  81. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/tr.lproj/Sparkle.strings
  82. BIN ...Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/uk.lproj/Sparkle.strings
  83. BIN ...rkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/zh_CN.lproj/Sparkle.strings
  84. BIN ...rkle.framework/Versions/A/Resources/Autoupdate.app/Contents/Resources/zh_TW.lproj/Sparkle.strings
  85. +40 −0 ...trol/Source/SelfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Info.plist
  86. +50 −0 ...Control/Source/SelfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/LICENSE
  87. +228 −0 ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/SUModelTranslation.plist
  88. BIN ...ol/Source/SelfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib
  89. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUAutomaticUpdateAlert.nib
  90. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUUpdateAlert.nib
  91. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/SUUpdatePermissionPrompt.nib
  92. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ar.lproj/Sparkle.strings
  93. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUAutomaticUpdateAlert.nib
  94. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUUpdateAlert.nib
  95. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/SUUpdatePermissionPrompt.nib
  96. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/cs.lproj/Sparkle.strings
  97. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUAutomaticUpdateAlert.nib
  98. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUUpdateAlert.nib
  99. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/SUUpdatePermissionPrompt.nib
  100. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/da.lproj/Sparkle.strings
  101. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib
  102. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib
  103. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib
  104. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.strings
  105. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib
  106. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib
  107. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib
  108. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings
  109. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib
  110. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib
  111. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib
  112. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.strings
  113. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib
  114. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib
  115. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib
  116. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.strings
  117. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUAutomaticUpdateAlert.nib
  118. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUUpdateAlert.nib
  119. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/SUUpdatePermissionPrompt.nib
  120. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/is.lproj/Sparkle.strings
  121. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib
  122. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib
  123. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib
  124. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.strings
  125. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUAutomaticUpdateAlert.nib
  126. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUUpdateAlert.nib
  127. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/SUUpdatePermissionPrompt.nib
  128. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ja.lproj/Sparkle.strings
  129. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUAutomaticUpdateAlert.nib
  130. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUUpdateAlert.nib
  131. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/SUUpdatePermissionPrompt.nib
  132. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ko.lproj/Sparkle.strings
  133. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/nb.lproj/SUAutomaticUpdateAlert.nib
  134. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/nb.lproj/SUUpdateAlert.nib
  135. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/nb.lproj/SUUpdatePermissionPrompt.nib
  136. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/nb.lproj/Sparkle.strings
  137. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib
  138. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib
  139. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib
  140. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.strings
  141. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUAutomaticUpdateAlert.nib
  142. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUUpdateAlert.nib
  143. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/SUUpdatePermissionPrompt.nib
  144. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/pl.lproj/Sparkle.strings
  145. BIN ...Contents/Frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUAutomaticUpdateAlert.nib
  146. BIN ...trol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUUpdateAlert.nib
  147. BIN ...ntents/Frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/SUUpdatePermissionPrompt.nib
  148. BIN ...ontrol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/pt_BR.lproj/Sparkle.strings
  149. BIN ...Contents/Frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUAutomaticUpdateAlert.nib
  150. BIN ...trol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUUpdateAlert.nib
  151. BIN ...ntents/Frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/SUUpdatePermissionPrompt.nib
  152. BIN ...ontrol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/pt_PT.lproj/Sparkle.strings
  153. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUAutomaticUpdateAlert.nib
  154. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUUpdateAlert.nib
  155. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/SUUpdatePermissionPrompt.nib
  156. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ro.lproj/Sparkle.strings
  157. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib
  158. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib
  159. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib
  160. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.strings
  161. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUAutomaticUpdateAlert.nib
  162. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUUpdateAlert.nib
  163. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/SUUpdatePermissionPrompt.nib
  164. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sk.lproj/Sparkle.strings
  165. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUAutomaticUpdateAlert.nib
  166. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUUpdateAlert.nib
  167. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/SUUpdatePermissionPrompt.nib
  168. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sl.lproj/Sparkle.strings
  169. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib
  170. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib
  171. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib
  172. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.strings
  173. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUAutomaticUpdateAlert.nib
  174. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUUpdateAlert.nib
  175. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/SUUpdatePermissionPrompt.nib
  176. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/th.lproj/Sparkle.strings
  177. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUAutomaticUpdateAlert.nib
  178. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUUpdateAlert.nib
  179. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/SUUpdatePermissionPrompt.nib
  180. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/tr.lproj/Sparkle.strings
  181. BIN ...pp/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUAutomaticUpdateAlert.nib
  182. BIN ...Control.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUUpdateAlert.nib
  183. BIN .../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/SUUpdatePermissionPrompt.nib
  184. BIN ...lfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/uk.lproj/Sparkle.strings
  185. BIN ...Contents/Frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUAutomaticUpdateAlert.nib
  186. BIN ...trol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUUpdateAlert.nib
  187. BIN ...ntents/Frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/SUUpdatePermissionPrompt.nib
  188. BIN ...ontrol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/zh_CN.lproj/Sparkle.strings
  189. BIN ...Contents/Frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUAutomaticUpdateAlert.nib
  190. BIN ...trol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUUpdateAlert.nib
  191. BIN ...ntents/Frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/SUUpdatePermissionPrompt.nib
  192. BIN ...ontrol.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/zh_TW.lproj/Sparkle.strings
  193. BIN test/SelfControl/Source/SelfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
  194. +2,557 −0 ...rce/SelfControl.app/Contents/Frameworks/Sparkle.framework/Versions/A/_CodeSignature/CodeResources
  195. +82 −0 test/SelfControl/Source/SelfControl.app/Contents/Info.plist
  196. BIN test/SelfControl/Source/SelfControl.app/Contents/MacOS/SelfControl
  197. BIN test/SelfControl/Source/SelfControl.app/Contents/MacOS/org.eyebeam.SelfControl
  198. BIN test/SelfControl/Source/SelfControl.app/Contents/MacOS/scheckup
  199. +1 −0 test/SelfControl/Source/SelfControl.app/Contents/PkgInfo
  200. +14 −0 test/SelfControl/Source/SelfControl.app/Contents/Resources/Credits.rtf
  201. +28 −0 test/SelfControl/Source/SelfControl.app/Contents/Resources/ERRORS
  202. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/NSAddTemplate.jpg
  203. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/NSRemoveTemplate.jpg
  204. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/SelfControlBlocklist.icns
  205. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/SelfControlIcon.icns
  206. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/de.lproj/DomainList.nib
  207. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/de.lproj/InfoPlist.strings
  208. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/de.lproj/Localizable.strings
  209. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/de.lproj/MainMenu.nib
  210. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/de.lproj/TimerWindow.nib
  211. +20 −0 test/SelfControl/Source/SelfControl.app/Contents/Resources/dsa_pub.pem
  212. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/en.lproj/DomainList.nib
  213. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/en.lproj/InfoPlist.strings
  214. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/en.lproj/Localizable.strings
  215. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/en.lproj/MainMenu.nib
  216. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/en.lproj/TimerWindow.nib
  217. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/es.lproj/DomainList.nib
  218. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/es.lproj/InfoPlist.strings
  219. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/es.lproj/Localizable.strings
  220. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/es.lproj/MainMenu.nib
  221. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/es.lproj/TimerWindow.nib
  222. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/it.lproj/DomainList.nib
  223. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/it.lproj/InfoPlist.strings
  224. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/it.lproj/Localizable.strings
  225. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/it.lproj/MainMenu.nib
  226. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/it.lproj/TimerWindow.nib
  227. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/ja.lproj/DomainList.nib
  228. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/ja.lproj/InfoPlist.strings
  229. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/ja.lproj/Localizable.strings
  230. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/ja.lproj/MainMenu.nib
  231. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/ja.lproj/TimerWindow.nib
  232. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/ko.lproj/DomainList.nib
  233. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/ko.lproj/InfoPlist.strings
  234. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/ko.lproj/Localizable.strings
  235. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/ko.lproj/MainMenu.nib
  236. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/ko.lproj/TimerWindow.nib
  237. +33 −0 test/SelfControl/Source/SelfControl.app/Contents/Resources/org.eyebeam.SelfControl.plist
  238. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/pt_BR.lproj/DomainList.nib
  239. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/pt_BR.lproj/InfoPlist.strings
  240. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/pt_BR.lproj/Localizable.strings
  241. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/pt_BR.lproj/MainMenu.nib
  242. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/pt_BR.lproj/TimerWindow.nib
  243. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/sv.lproj/DomainList.nib
  244. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/sv.lproj/InfoPlist.strings
  245. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/sv.lproj/Localizable.strings
  246. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/sv.lproj/MainMenu.nib
  247. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/sv.lproj/TimerWindow.nib
  248. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/tr.lproj/DomainList.nib
  249. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/tr.lproj/InfoPlist.strings
  250. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/tr.lproj/Localizable.strings
  251. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/tr.lproj/MainMenu.nib
  252. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/tr.lproj/TimerWindow.nib
  253. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/zh-Hans.lproj/DomainList.nib
  254. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/zh-Hans.lproj/InfoPlist.strings
  255. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/zh-Hans.lproj/Localizable.strings
  256. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/zh-Hans.lproj/MainMenu.nib
  257. BIN test/SelfControl/Source/SelfControl.app/Contents/Resources/zh-Hans.lproj/TimerWindow.nib
  258. +1,098 −0 test/SelfControl/Source/SelfControl.app/Contents/_CodeSignature/CodeResources
  259. BIN tr.lproj/Localizable.strings
  260. +1 −170 tr.lproj/MainMenu.xib
  261. +74 −0 tr.lproj/PreferencesAdvancedViewController.xib
  262. +123 −0 tr.lproj/PreferencesGeneralViewController.xib
  263. BIN zh-Hans.lproj/Localizable.strings
  264. +22 −975 zh-Hans.lproj/MainMenu.xib
View
@@ -0,0 +1,41 @@
+[config]
+project = SelfControl
+
+[master_files]
+en.lproj/Localizable.strings = d003a5111aad658a5eface51d3f1e18b
+
+[locale_map]
+SCKillerHelper/en.lproj/Localizable.strings/de = SCKillerHelper/de.lproj/Localizable.strings
+SelfControl Killer/en.lproj/Localizable.strings/de = SelfControl Killer/de.lproj/Localizable.strings
+en.lproj/Localizable.strings/de = de.lproj/Localizable.strings
+SCKillerHelper/en.lproj/Localizable.strings/es = SCKillerHelper/es.lproj/Localizable.strings
+SelfControl Killer/en.lproj/Localizable.strings/es = SelfControl Killer/es.lproj/Localizable.strings
+en.lproj/Localizable.strings/es = es.lproj/Localizable.strings
+SCKillerHelper/en.lproj/Localizable.strings/sv = SCKillerHelper/sv.lproj/Localizable.strings
+SelfControl Killer/en.lproj/Localizable.strings/sv = SelfControl Killer/sv.lproj/Localizable.strings
+en.lproj/Localizable.strings/sv = sv.lproj/Localizable.strings
+SCKillerHelper/en.lproj/Localizable.strings/ja = SCKillerHelper/ja.lproj/Localizable.strings
+SelfControl Killer/en.lproj/Localizable.strings/ja = SelfControl Killer/ja.lproj/Localizable.strings
+en.lproj/Localizable.strings/ja = ja.lproj/Localizable.strings
+SCKillerHelper/en.lproj/Localizable.strings/zh-Hans = SCKillerHelper/zh-Hans.lproj/Localizable.strings
+SelfControl Killer/en.lproj/Localizable.strings/zh-Hans = SelfControl Killer/zh-Hans.lproj/Localizable.strings
+en.lproj/Localizable.strings/zh-Hans = zh-Hans.lproj/Localizable.strings
+SCKillerHelper/en.lproj/Localizable.strings/it = SCKillerHelper/it.lproj/Localizable.strings
+SelfControl Killer/en.lproj/Localizable.strings/it = SelfControl Killer/it.lproj/Localizable.strings
+en.lproj/Localizable.strings/it = it.lproj/Localizable.strings
+SCKillerHelper/en.lproj/Localizable.strings/tr = SCKillerHelper/tr.lproj/Localizable.strings
+SelfControl Killer/en.lproj/Localizable.strings/tr = SelfControl Killer/tr.lproj/Localizable.strings
+en.lproj/Localizable.strings/tr = tr.lproj/Localizable.strings
+SCKillerHelper/en.lproj/Localizable.strings/pt_BR = SCKillerHelper/pt_BR.lproj/Localizable.strings
+SelfControl Killer/en.lproj/Localizable.strings/pt_BR = SelfControl Killer/pt_BR.lproj/Localizable.strings
+en.lproj/Localizable.strings/pt_BR = pt_BR.lproj/Localizable.strings
+SCKillerHelper/en.lproj/Localizable.strings/ko = SCKillerHelper/ko.lproj/Localizable.strings
+SelfControl Killer/en.lproj/Localizable.strings/ko = SelfControl Killer/ko.lproj/Localizable.strings
+en.lproj/Localizable.strings/ko = ko.lproj/Localizable.strings
+SCKillerHelper/en.lproj/Localizable.strings/Base = SCKillerHelper/Base.lproj/Localizable.strings
+SelfControl Killer/en.lproj/Localizable.strings/Base = SelfControl Killer/Base.lproj/Localizable.strings
+en.lproj/Localizable.strings/Base = Base.lproj/Localizable.strings
+
+[status]
+data = []
+
View
@@ -42,6 +42,7 @@
IBOutlet id editBlacklistButton_;
IBOutlet DomainListWindowController* domainListWindowController_;
IBOutlet TimerWindowController* timerWindowController_;
+ NSWindowController* preferencesWindowController_;
NSUserDefaults* defaults_;
NSLock* refreshUILock_;
BOOL blockIsOn;
@@ -102,10 +103,6 @@
// was just changed a few seconds ago.
@property (nonatomic, readonly) BOOL networkConnectionIsAvailable;
-// Called whenever the selection of sound to play in the Preferences menu changes.
-// Plays the sound so that the user can "sample" them.
-- (IBAction)soundSelectionChanged:(id)sender;
-
// Called by timerWindowController_ after its sheet returns, to add a specified
// host to the blacklist (and refresh the block to use the new blacklist). Launches
// a new thread with refreshBlock:
@@ -125,6 +122,9 @@
// as a separate thread.
- (void)refreshBlock:(NSLock*)lockToUse;
+// open preferences panel
+- (IBAction)openPreferences:(id)sender;
+
// Opens a save panel and saves the blocklist.
- (IBAction)save:(id)sender;
View
@@ -21,6 +21,9 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#import "AppController.h"
+#import "MASPreferencesWindowController.h"
+#import "PreferencesGeneralViewController.h"
+#import "PreferencesAdvancedViewController.h"
NSString* const kSelfControlErrorDomain = @"SelfControlErrorDomain";
@@ -242,6 +245,17 @@ - (void)closeTimerWindow {
timerWindowController_ = nil;
}
+- (IBAction)openPreferences:(id)sender {
+ if (preferencesWindowController_ == nil) {
+ NSViewController* generalViewController = [[PreferencesGeneralViewController alloc] init];
+ NSViewController* advancedViewController = [[PreferencesAdvancedViewController alloc] init];
+ NSString* title = NSLocalizedString(@"Preferences", @"Common title for Preferences window");
+
+ preferencesWindowController_ = [[MASPreferencesWindowController alloc] initWithViewControllers: @[generalViewController, advancedViewController] title: title];
+ }
+ [preferencesWindowController_ showWindow: nil];
+}
+
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
[NSApp setDelegate: self];
@@ -349,37 +363,6 @@ - (BOOL)networkConnectionIsAvailable {
return reachable && (status & kSCNetworkFlagsReachable) && !(status & kSCNetworkFlagsConnectionRequired);
}
-- (IBAction)soundSelectionChanged:(id)sender {
- // Map the tags used in interface builder to the sound
- NSArray* systemSoundNames = @[@"Basso",
- @"Blow",
- @"Bottle",
- @"Frog",
- @"Funk",
- @"Glass",
- @"Hero",
- @"Morse",
- @"Ping",
- @"Pop",
- @"Purr",
- @"Sosumi",
- @"Submarine",
- @"Tink"];
- NSSound* alertSound = [NSSound soundNamed: systemSoundNames[[defaults_ integerForKey: @"BlockSound"]]];
- if(!alertSound) {
- NSLog(@"WARNING: Alert sound not found.");
-
- NSError* err = [NSError errorWithDomain: kSelfControlErrorDomain
- code: -901
- userInfo: @{NSLocalizedDescriptionKey: @"Error -901: Selected sound not found."}];
-
- [NSApp presentError: err];
-
- }
- else
- [alertSound play];
-}
-
- (void)addToBlockList:(NSString*)host lock:(NSLock*)lock {
if(host == nil)
return;
@@ -0,0 +1,14 @@
+//
+// PreferencesAdvancedViewController.h
+// SelfControl
+//
+// Created by Charles Stigler on 9/27/14.
+//
+//
+
+#import <Cocoa/Cocoa.h>
+#import "MASPreferencesViewController.h"
+
+@interface PreferencesAdvancedViewController : NSViewController <MASPreferencesViewController>
+
+@end
@@ -0,0 +1,34 @@
+//
+// PreferencesAdvancedViewController.m
+// SelfControl
+//
+// Created by Charles Stigler on 9/27/14.
+//
+//
+
+#import "PreferencesAdvancedViewController.h"
+
+@interface PreferencesAdvancedViewController ()
+
+@end
+
+@implementation PreferencesAdvancedViewController
+
+- (instancetype)init {
+ return [super initWithNibName: @"PreferencesAdvancedViewController" bundle: nil];
+}
+
+#pragma mark MASPreferencesViewController
+
+- (NSString*)identifier {
+ return @"AdvancedPreferences";
+}
+- (NSImage *)toolbarItemImage {
+ return [NSImage imageNamed: NSImageNameAdvanced];
+}
+
+- (NSString *)toolbarItemLabel {
+ return NSLocalizedString(@"Advanced", @"Toolbar item name for the Advanced preference pane");
+}
+
+@end
@@ -0,0 +1,16 @@
+//
+// PreferencesGeneralViewController.h
+// SelfControl
+//
+// Created by Charles Stigler on 9/27/14.
+//
+//
+
+#import <Cocoa/Cocoa.h>
+#import "MASPreferencesViewController.h"
+
+@interface PreferencesGeneralViewController : NSViewController <MASPreferencesViewController>
+
+- (IBAction)soundSelectionChanged:(id)sender;
+
+@end
@@ -0,0 +1,63 @@
+//
+// PreferencesGeneralViewController.m
+// SelfControl
+//
+// Created by Charles Stigler on 9/27/14.
+//
+//
+
+#import "PreferencesGeneralViewController.h"
+
+@interface PreferencesGeneralViewController ()
+
+@end
+
+@implementation PreferencesGeneralViewController
+
+- (instancetype)init {
+ return [super initWithNibName: @"PreferencesGeneralViewController" bundle: nil];
+}
+
+- (IBAction)soundSelectionChanged:(id)sender {
+ // Map the tags used in interface builder to the sound
+ NSArray* systemSoundNames = @[@"Basso",
+ @"Blow",
+ @"Bottle",
+ @"Frog",
+ @"Funk",
+ @"Glass",
+ @"Hero",
+ @"Morse",
+ @"Ping",
+ @"Pop",
+ @"Purr",
+ @"Sosumi",
+ @"Submarine",
+ @"Tink"];
+ NSInteger blockSoundIndex = [[NSUserDefaults standardUserDefaults] integerForKey: @"BlockSound"];
+ NSSound* alertSound = [NSSound soundNamed: systemSoundNames[blockSoundIndex]];
+ if(!alertSound) {
+ NSLog(@"WARNING: Alert sound not found.");
+ NSError* err = [NSError errorWithDomain: @"SelfControlErrorDomain"
+ code: -901
+ userInfo: @{NSLocalizedDescriptionKey: @"Error -901: Selected sound not found."}];
+ [NSApp presentError: err];
+ } else {
+ [alertSound play];
+ }
+}
+
+#pragma mark MASPreferencesViewController
+
+- (NSString*)identifier {
+ return @"GeneralPreferences";
+}
+- (NSImage *)toolbarItemImage {
+ return [NSImage imageNamed: NSImageNamePreferencesGeneral];
+}
+
+- (NSString *)toolbarItemLabel {
+ return NSLocalizedString(@"General", @"Toolbar item name for the General preference pane");
+}
+
+@end
Oops, something went wrong.

0 comments on commit 4f727df

Please sign in to comment.