[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/common/include Plugin.class,1.4,1.5
From: |
cbayle |
Subject: |
[Gforge-commits] gforge/common/include Plugin.class,1.4,1.5 |
Date: |
Wed, 21 Jul 2004 16:58:14 -0500 |
Update of /cvsroot/gforge/gforge/common/include
In directory db.perdue.net:/tmp/cvs-serv30945/common/include
Modified Files:
Plugin.class
Log Message:
Necessary stuffs for i18n in plugins thanks to Kikov and GSmet
Index: Plugin.class
===================================================================
RCS file: /cvsroot/gforge/gforge/common/include/Plugin.class,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Plugin.class 12 Feb 2003 17:23:47 -0000 1.4
+++ Plugin.class 21 Jul 2004 21:58:11 -0000 1.5
@@ -66,6 +66,24 @@
function CallHook ($hookname, $params) {
return true ;
}
+
+ /**
+ * GetLanguagePath() - get the path where we can find i18n for the
plugin
+ *
+ * @return string path
+ */
+ function GetLanguagePath() {
+ return
$GLOBALS['sys_plugins_path'].'/'.$this->name.'/include/languages/';
+ }
+
+ /**
+ * GetSpecificLanguagePath() - get the path where we can find
installation specific language files
+ *
+ * @return string path
+ */
+ function GetSpecificLanguagePath() {
+ return '/etc/gforge/plugins/'.$this->name.'/languages/';
+ }
}
// Local Variables:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/common/include Plugin.class,1.4,1.5,
cbayle <=
- Prev by Date:
[Gforge-commits] gforge-plugin-scmcvs README,1.2,1.3
- Next by Date:
[Gforge-commits] gforge/common/include Group.class, 1.44, 1.45 account.php, 1.8, 1.9
- Previous by thread:
[Gforge-commits] gforge-plugin-scmcvs README,1.2,1.3
- Next by thread:
[Gforge-commits] gforge/common/include Group.class, 1.44, 1.45 account.php, 1.8, 1.9
- Index(es):