diff --git a/LangCodes.php b/LangCodes.php new file mode 100644 index 0000000..b583e00 --- /dev/null +++ b/LangCodes.php @@ -0,0 +1,29 @@ +'fr_FR', + 'en_US'=>'en_US'//, + //'zh_CN'=>'zh_CN', + //'zh_TW'=>'zh_TW', + //'de_DE'=>'de_DE' + ); + return $all_lang[$code]; + } + public function getNameLang($code_lang){ + $name_lang=array( + 'fr_FR'=>'Français', + 'en_US'=>'English'//, + //'zh_CN'=>'中文 (中国)', + //'zh_TW'=>'中文 (台灣)', + //'de_DE'=>'Deutsch' + ); + return $name_lang[$code_lang]; + } +} +?> \ No newline at end of file diff --git a/admin.php b/admin.php index b0451c0..9755cc3 100644 --- a/admin.php +++ b/admin.php @@ -1,190 +1,190 @@ -. -** -************************************************************************************************************************** -*/ - -include_once 'directory.php'; - -$pageTitle='Administration'; -include 'templates/header.php'; - -//set referring page -$_SESSION['ref_script']=$currentPage; - -if ($user->isAdmin()){ - -?> - - - - -
-Users   -
add new user -

-
-Loading... -
-
- - - - -
-
- - - -
-Document Types   -
add new document type -

-
-Loading... -
-
- -
-
- - - -
-Note Types   -
add new note type -

-
-Loading... -
-
- - - - - - - - - - -settings->organizationsModule != 'Y'){ ?> - - -
-
- - - -
- Categories   -
add new category -

-
- Loading... -
-
- -
-
- - - -
- - - - - +. +** +************************************************************************************************************************** +*/ + +include_once 'directory.php'; + +$pageTitle=_('Administration'); +include 'templates/header.php'; + +//set referring page +$_SESSION['ref_script']=$currentPage; + +if ($user->isAdmin()){ + +?> + + + + +
+   +
+

+
+ +
+
+ + + + +
+
+ + + +
+   +
+

+
+ +
+
+ +
+
+ + + +
+   +
+

+
+ +
+
+ + + + + + + + + + +settings->organizationsModule != 'Y'){ ?> + + +
+
+ + + +
+    +
+

+
+ +
+
+ +
+
+ + + +
+ + + + + diff --git a/admin/classes/common/Configuration.php b/admin/classes/common/Configuration.php index a3ad799..a77e097 100644 --- a/admin/classes/common/Configuration.php +++ b/admin/classes/common/Configuration.php @@ -1,7 +1,7 @@ - Document
+
- +
- +
- '> - '> + '> + '> - +?> -
+

- add type +
- +
" />
- - +?> - +
There was an error processing this request - please verify configuration.ini is set up for organizations correctly and the database and tables have been created."; + echo " " . _("There was an error processing this request - please verify configuration.ini is set up for organizations correctly and the database and tables have been created.") . ""; } ?> @@ -171,13 +171,13 @@ if (($config->settings->organizationsModule == 'N') || (!$config->settings->organizationsModule)){ ?>
- add category - + - + - + "; - } + } ?> - + - Add Optional Note + @@ -1116,9 +1118,9 @@ if(e.keyCode == 13) { updateData("", ""); } - }); + }); - + $loginID))); }else{ - $update='Add New'; + $update=_('Add New'); } $util = new Utility(); ?> -
+

- - - - - + + + + @@ -1195,8 +1197,8 @@
"; }?> - - + +
User



- +
- +
@@ -1182,10 +1184,10 @@ //if not configured to use SFX, hide the Terms Tool Report if ($util->useTermsTool()) { ?> -
- + ' href="">
            
@@ -1215,10 +1217,10 @@ if (isset($_GET['expressionTypeID'])) $expressionTypeID = $_GET['expressionTypeID']; else $expressionTypeID = ''; if ($expressionTypeID){ - $update='Update'; + $update=_('Update'); $expressionType = new ExpressionType(new NamedArguments(array('primaryKey' => $expressionTypeID))); }else{ - $update='Add New'; + $update=_('Add New'); } @@ -1226,9 +1228,9 @@
- - - + + - + - - + +
Expression Type



* Note type of display allows for terms tool use
@@ -1260,10 +1262,10 @@ if (isset($_GET['qualifierID'])) $qualifierID = $_GET['qualifierID']; else $qualifierID = ''; if ($qualifierID){ - $update='Update'; + $update=_('Update'); $qualifier = new Qualifier(new NamedArguments(array('primaryKey' => $qualifierID))); }else{ - $update='Add New'; + $update=_('Add New'); } @@ -1271,9 +1273,9 @@
- + - - + - - + +
Qualifier



@@ -1311,9 +1313,9 @@ if(e.keyCode == 13) { submitQualifier(); } - }); + }); - + \ No newline at end of file +?> diff --git a/ajax_htmldata.php b/ajax_htmldata.php index b19de8e..dce091f 100644 --- a/ajax_htmldata.php +++ b/ajax_htmldata.php @@ -45,7 +45,7 @@ canEdit()){?> - edit | remove + | "; @@ -56,8 +56,8 @@ if ($config->settings->organizationsModule == 'Y') { $util = new Utility(); - echo "
Description: " . $license->description()."
"; - echo 'Categories:
'; + echo "
" . _("Description: ") . $license->description() . "
"; + echo _("Categories:") . "
"; if ($licenseconsortiumids = $license->getConsortiumsByLicense()) { echo '
canEdit() && 1 == 2){ // supress ?> - License Status:
+
- records per page + @@ -555,10 +555,10 @@ ?> - - - - + + + + There was an error processing this request - please verify configuration.ini is set up for organizations correctly and the database and tables have been created."; + echo "" . _("There was an error processing this request - please verify configuration.ini is set up for organizations correctly and the database and tables have been created.") . ""; } break; @@ -627,9 +627,9 @@ if ($user->canEdit()){ - echo "\n
NamePublisher / ProviderConsortiumStatus
view / edit license  view / edit " . strtolower($expressionType->noteType) . " notes  view document
"; + echo "\n" . _("view / edit license") . "  " . _("view / edit ") . strtolower($expressionType->noteType) . _(" notes") . "  " . _("view document") . ""; }else{ - echo "\nview license  view document"; + echo "\n" . _("view license") . "  " . _("view document") . ""; } echo "
"; @@ -639,7 +639,7 @@ } - $expr_notes = "
" . ucfirst($expressionTypeArray['noteType']) . " Notes: "; + $expr_notes = "
" . ucfirst($expressionTypeArray['noteType']) . _(" Notes: ") . ""; $expression = new Expression(new NamedArguments(array('primaryKey' => $expressionTypeArray['expressionID']))); $expressionNotes = $expression->getExpressionNotes(); @@ -665,7 +665,7 @@ if ($expressionTypeArray['qualifiers']){ - echo "
Qualifiers:
" . $expressionTypeArray['qualifiers']; + echo "
" . _("Qualifiers:") . "
" . $expressionTypeArray['qualifiers']; } echo "
"; @@ -722,21 +722,21 @@ ?> - License - noteType); ?> Notes - Document Text + + noteType) . _(" Notes");?> + " . $expressionTypeArray['document'] . " view license"; + echo "\n" . $expressionTypeArray['document'] . " " . _("view license") . ""; if ($expressionTypeArray['documentText']){ $documentText = $expressionTypeArray['documentText']; }else{ - $documentText = "(document text not entered)"; + $documentText = _("(document text not entered)"); } echo "\n"; @@ -744,7 +744,7 @@ echo ""; - $expr_notes = ucfirst($expressionTypeArray['noteType']) . " Notes: