Extract unauthorized project resource string
Extract unauthorized project resource string

--- a/locale/gitphp.pot
+++ b/locale/gitphp.pot
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: GitPHP 0.2.8\n"
 "Report-Msgid-Bugs-To: xiphux@gmail.com\n"
-"POT-Creation-Date: 2012-10-13 23:16-0500\n"
+"POT-Creation-Date: 2012-10-14 17:02-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -61,7 +61,7 @@
 #: templates/treelist.tpl
 #: templates/projectlist.tpl
 #: templates/shortloglist.tpl
-#: include/controller/Controller_Snapshot.class.php:112
+#: include/controller/Controller_Snapshot.class.php:117
 msgid "snapshot"
 msgstr ""
 
@@ -309,7 +309,7 @@
 #: templates/login.tpl
 #: templates/main.tpl
 #: templates/projectbase.tpl
-#: include/controller/ControllerBase.class.php:511
+#: include/controller/ControllerBase.class.php:516
 #: include/controller/Controller_ProjectList.class.php:76
 msgid "projects"
 msgstr ""
@@ -439,7 +439,7 @@
 msgstr ""
 
 # Error message when user tries to do an action that requires a project but a project isn't specified
-#: include/controller/Controller_Message.class.php:144
+#: include/controller/Controller_Message.class.php:150
 msgid "Project is required"
 msgstr ""
 
@@ -456,7 +456,7 @@
 
 # Error message when user tries to access a project that doesn't exist
 # %1$s: the project the user tried to access
-#: include/controller/Controller_Message.class.php:138
+#: include/controller/Controller_Message.class.php:144
 #, php-format
 msgid "Invalid project %1$s"
 msgstr ""
@@ -473,18 +473,18 @@
 msgstr ""
 
 # Error message when a user tries to search but searching has been disabled in the config
-#: include/controller/Controller_Message.class.php:155
+#: include/controller/Controller_Message.class.php:161
 msgid "Search has been disabled"
 msgstr ""
 
 # Error message when a user tries to do a file search but searching files has been disabled in the config
-#: include/controller/Controller_Message.class.php:151
+#: include/controller/Controller_Message.class.php:157
 msgid "File search has been disabled"
 msgstr ""
 
 # Error message when a user's search query is too short
 # %1$d: the minimum number of characters
-#: include/controller/Controller_Message.class.php:168
+#: include/controller/Controller_Message.class.php:174
 #, php-format
 msgid "You must enter search text of at least %1$d character"
 msgid_plural "You must enter search text of at least %1$d characters"
@@ -492,7 +492,7 @@
 msgstr[1] ""
 
 # Error message when the user enters an unsupported search type
-#: include/controller/Controller_Message.class.php:162
+#: include/controller/Controller_Message.class.php:168
 msgid "Invalid search type"
 msgstr ""
 
@@ -521,49 +521,49 @@
 
 # Error message when user specifies a path for a project root or project, but the path given isn't a directory
 # %1$s: the path the user specified
-#: include/controller/Controller_Message.class.php:198
+#: include/controller/Controller_Message.class.php:204
 #, php-format
 msgid "%1$s is not a directory"
 msgstr ""
 
 # Error message when a path specified in the config is not a git repository
 # %1$s: the specified path
-#: include/controller/Controller_Message.class.php:210
+#: include/controller/Controller_Message.class.php:216
 #, php-format
 msgid "%1$s is not a git repository"
 msgstr ""
 
 # Error message when a path specified is using '..' to break out of the project root (a hack attempt)
 # %1$s: The specified path
-#: include/controller/Controller_Message.class.php:222
+#: include/controller/Controller_Message.class.php:228
 #, php-format
 msgid "%1$s is attempting directory traversal"
 msgstr ""
 
 # Error message when a path specified is outside of the project root
 # %1$s: The specified path
-#: include/controller/Controller_Message.class.php:228
+#: include/controller/Controller_Message.class.php:234
 #, php-format
 msgid "%1$s is outside of the projectroot"
 msgstr ""
 
 # Error message when user tries to specify a file with a list of the projects, but it isn't a file
 # %1$s: the path the user specified
-#: include/controller/Controller_Message.class.php:204
+#: include/controller/Controller_Message.class.php:210
 #, php-format
 msgid "%1$s is not a file"
 msgstr ""
 
 # Error message when user tries to specify a file with a list of the projects, but the system can't read the file
 # %1$s: the file the user specified
-#: include/controller/Controller_Message.class.php:216
+#: include/controller/Controller_Message.class.php:222
 #, php-format
 msgid "Failed to open project list file %1$s"
 msgstr ""
 
 # Error message when a hash specified in a URL isn't a valid git hash
 # %1$s: the hash entered
-#: include/controller/Controller_Message.class.php:174
+#: include/controller/Controller_Message.class.php:180
 #, php-format
 msgid "Invalid hash %1$s"
 msgstr ""
@@ -638,7 +638,7 @@
 
 # Error message when user hasn't defined a project root in the config
 # "projectroot" refers to a root directory where the user's git projects are stored
-#: include/controller/Controller_Message.class.php:186
+#: include/controller/Controller_Message.class.php:192
 msgid "A projectroot must be set in the config"
 msgstr ""
 
@@ -720,7 +720,7 @@
 
 # Used as an error message when memcache is turned
 # on without the appropriate PHP extension installed
-#: include/controller/Controller_Message.class.php:192
+#: include/controller/Controller_Message.class.php:198
 msgid ""
 "The Memcached or Memcache PHP extension is required for Memcache support"
 msgstr ""
@@ -740,7 +740,7 @@
 # Error message displayed when the git executable isn't found or doesn't work
 # %1$s: the git executable the system is trying to run
 # %2$s: the config value the user needs to set to specify the correct path
-#: include/controller/Controller_Message.class.php:180
+#: include/controller/Controller_Message.class.php:186
 #, php-format
 msgid ""
 "Could not run the git executable \"%1$s\".  You may need to set the \"%2$s\" "
@@ -781,7 +781,7 @@
 
 # Message when the config file failed to load
 # %1$s: the config file that we tried to load
-#: include/controller/Controller_Message.class.php:234
+#: include/controller/Controller_Message.class.php:240
 #, php-format
 msgid "Could not load config file %1$s"
 msgstr ""
@@ -804,21 +804,21 @@
 # Message displayed when an abbreviated hash is given
 # but it is ambiguous because there are multiple hashes
 # in the system with this abbreviation
-#: include/controller/Controller_Message.class.php:240
+#: include/controller/Controller_Message.class.php:246
 #, php-format
 msgid "Ambiguous abbreviated hash %1$s"
 msgstr ""
 
 # Message displayed when a directory that doesn't exist
 # is specified
-#: include/controller/Controller_Message.class.php:247
+#: include/controller/Controller_Message.class.php:253
 #, php-format
 msgid "Directory %1$s not found"
 msgstr ""
 
 # Message displayed when a file that doesn't exist is
 # specified
-#: include/controller/Controller_Message.class.php:254
+#: include/controller/Controller_Message.class.php:260
 #, php-format
 msgid "File %1$s not found"
 msgstr ""
@@ -876,3 +876,11 @@
 msgid "Password is required"
 msgstr ""
 
+# Error message when a user tries to access a project they
+# don't have access to
+# %1$s: The project they tried to access
+#: include/controller/Controller_Message.class.php:267
+#, php-format
+msgid "You are not authorized to access project %1$s"
+msgstr ""
+

comments