Extract memcache error string
Extract memcache error string

--- a/include/cache/Memcache.class.php
+++ b/include/cache/Memcache.class.php
@@ -100,7 +100,7 @@
 			$this->memcacheObj = new Memcache();
 			$this->memcacheType = GitPHP_Memcache::Memcache;
 		} else {
-			throw new GitPHP_MessageException('The Memcached or Memcache PHP extension is required for Memcache support', true, 500);
+			throw new GitPHP_MessageException(__('The Memcached or Memcache PHP extension is required for Memcache support'), true, 500);
 		}
 	}
 

--- a/locale/gitphp.pot
+++ b/locale/gitphp.pot
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: GitPHP 0.2.1\n"
 "Report-Msgid-Bugs-To: xiphux@gmail.com\n"
-"POT-Creation-Date: 2010-10-11 19:28-0500\n"
+"POT-Creation-Date: 2010-10-23 00:09-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"
@@ -19,9 +19,9 @@
 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
 
 # Used as link to and title for page displaying a blob, which is what git calls a single file
-#: templates/tree.tpl
 #: templates/blobdiff.tpl
 #: templates/commit.tpl
+#: templates/treelist.tpl
 #: templates/searchfiles.tpl
 #: templates/history.tpl
 #: include/controller/Controller_Blob.class.php:78
@@ -29,8 +29,8 @@
 msgstr ""
 
 # Used as link to and title for the file history, which displays all commits that have modified a certain file
-#: templates/tree.tpl
-#: templates/commit.tpl
+#: templates/commit.tpl
+#: templates/treelist.tpl
 #: templates/searchfiles.tpl
 #: templates/blob.tpl
 #: include/controller/Controller_History.class.php:76
@@ -38,27 +38,28 @@
 msgstr ""
 
 # Used as title for and link to a list of files in a directory, which git calls a 'tree'
-#: templates/tree.tpl
 #: templates/search.tpl
 #: templates/commit.tpl
 #: templates/headlist.tpl
 #: templates/nav.tpl
+#: templates/treelist.tpl
 #: templates/searchfiles.tpl
 #: templates/log.tpl
 #: templates/projectlist.tpl
 #: templates/shortloglist.tpl
-#: include/controller/Controller_Tree.class.php:76
+#: include/controller/Controller_Tree.class.php:79
 msgid "tree"
 msgstr ""
 
 # Used as link to download a copy of the files in a given commit
-#: templates/tree.tpl
 #: templates/search.tpl
 #: templates/commit.tpl
 #: templates/taglist.tpl
-#: templates/projectlist.tpl
-#: templates/shortloglist.tpl
-#: include/controller/Controller_Snapshot.class.php:76
+#: templates/header.tpl
+#: templates/treelist.tpl
+#: templates/projectlist.tpl
+#: templates/shortloglist.tpl
+#: include/controller/Controller_Snapshot.class.php:85
 msgid "snapshot"
 msgstr ""
 
@@ -99,10 +100,10 @@
 msgstr ""
 
 # Used as a link to a plaintext version of a page
-#: templates/tree.tpl
 #: templates/blobdiff.tpl
 #: templates/commit.tpl
 #: templates/blame.tpl
+#: templates/treelist.tpl
 #: templates/commitdiff.tpl
 #: templates/blob.tpl
 msgid "plain"
@@ -279,7 +280,7 @@
 
 # Link back to the list of projects
 #: templates/header.tpl
-#: include/controller/ControllerBase.class.php:240
+#: include/controller/ControllerBase.class.php:250
 #: include/controller/Controller_ProjectList.class.php:94
 msgid "projects"
 msgstr ""
@@ -413,7 +414,7 @@
 #: include/controller/Controller_Commit.class.php:34
 #: include/controller/Controller_Log.class.php:34
 #: include/controller/Controller_Blame.class.php:34
-#: include/controller/Controller_Snapshot.class.php:34
+#: include/controller/Controller_Snapshot.class.php:43
 #: include/controller/Controller_Blob.class.php:34
 #: include/controller/Controller_Tag.class.php:34
 #: include/controller/Controller_Tags.class.php:34
@@ -439,7 +440,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/ControllerBase.class.php:84
+#: include/controller/ControllerBase.class.php:93
 #, php-format
 msgid "Invalid project %1$s"
 msgstr ""
@@ -504,28 +505,28 @@
 # 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/git/ProjectListDirectory.class.php:47
-#: include/git/Project.class.php:212
+#: include/git/Project.class.php:213
 #, 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/git/Project.class.php:216
+#: include/git/Project.class.php:217
 #, 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/git/Project.class.php:220
+#: include/git/Project.class.php:221
 #, 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/git/Project.class.php:226
+#: include/git/Project.class.php:227
 #, php-format
 msgid "%1$s is outside of the projectroot"
 msgstr ""
@@ -647,7 +648,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
-#: index.php:113
+#: index.php:114
 msgid "A projectroot must be set in the config"
 msgstr ""
 
@@ -726,3 +727,10 @@
 msgid "atom"
 msgstr ""
 
+# Used as an error message when memcache is turned
+# on without the appropriate PHP extension installed
+#: include/cache/Memcache.class.php:103
+msgid ""
+"The Memcached or Memcache PHP extension is required for Memcache support"
+msgstr ""
+

comments