From def1a6c317cd88c8cc0bcef7de3785d3b45f83a4 Mon Sep 17 00:00:00 2001
From: Martin Haase <martin.haase@daasi.de>
Date: Thu, 6 Sep 2012 07:51:43 +0000
Subject: [PATCH] German translation --> SVN, Some I18N Library errors

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@13505 7c539038-3410-0410-b1ec-0f2a7bf1c452
---
 .../i18n_inc/class.I18Nlocale.inc.php         |   5 +
 .../i18n_inc/class.I18NtranslatorBase.inc.php |   2 +
 .../locale/de/lang_main.inc                   | 144 +++++++++---------
 .../locale/en/lang_main.inc                   |  34 ++---
 4 files changed, 96 insertions(+), 89 deletions(-)

diff --git a/info.textgrid.middleware.tgauth.webauth/i18n_inc/class.I18Nlocale.inc.php b/info.textgrid.middleware.tgauth.webauth/i18n_inc/class.I18Nlocale.inc.php
index 951349d..bfac92b 100755
--- a/info.textgrid.middleware.tgauth.webauth/i18n_inc/class.I18Nlocale.inc.php
+++ b/info.textgrid.middleware.tgauth.webauth/i18n_inc/class.I18Nlocale.inc.php
@@ -151,6 +151,11 @@ class I18Nlocale extends I18Nbase {
 	* @uses I18Nlocale::$countries
 	*/
 	protected function readUserHeader() {
+		// MH inserted next 3 lines for less warnings
+		if (!isset ($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
+		   return (boolean) FALSE;
+		}
+
 		$client_header = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
 
 		if (count($client_header) < 1) {
diff --git a/info.textgrid.middleware.tgauth.webauth/i18n_inc/class.I18NtranslatorBase.inc.php b/info.textgrid.middleware.tgauth.webauth/i18n_inc/class.I18NtranslatorBase.inc.php
index acdf3b2..4d7870b 100755
--- a/info.textgrid.middleware.tgauth.webauth/i18n_inc/class.I18NtranslatorBase.inc.php
+++ b/info.textgrid.middleware.tgauth.webauth/i18n_inc/class.I18NtranslatorBase.inc.php
@@ -201,6 +201,7 @@ abstract class I18NtranslatorBase extends I18Nbase {
 	protected function setTranslatorLocale() {
 		$user_locales = $this->locale->getI18NLocales();
 		$available_locales = array_keys($this->getLocales());
+		if (!is_array ($user_locales)) {$user_locales = array($user_locales);} //MH
 		$matches = array_intersect($user_locales, $available_locales);
 
 		if (count($matches) > 0) {
@@ -208,6 +209,7 @@ abstract class I18NtranslatorBase extends I18Nbase {
 			return (boolean) TRUE;
 		} // end if
 		$user_languages = $this->locale->getI18NLanguages();
+		if (!is_array ($user_languages)) {$user_languages = array($user_languages);} //MH
 		$matches = array_intersect($user_languages, $available_locales);
 		if (count($matches) < 1) {
 			$this->translator_locale = new I18Nlocale(parent::getI18Nsetting('default_locale'));
diff --git a/info.textgrid.middleware.tgauth.webauth/locale/de/lang_main.inc b/info.textgrid.middleware.tgauth.webauth/locale/de/lang_main.inc
index 7185199..64dec16 100644
--- a/info.textgrid.middleware.tgauth.webauth/locale/de/lang_main.inc
+++ b/info.textgrid.middleware.tgauth.webauth/locale/de/lang_main.inc
@@ -1,150 +1,150 @@
-authn_error_status = TextGrid could not authenticate you.
+authn_error_status = TextGrid konnte Sie nicht authentifizieren.
 
-further_information = Further Information
+further_information = Weitere Angaben
 
-login_name = Login Name
+login_name = Nutzername
 
-only_shib_knowns = only known at your home organization
+only_shib_knowns = nur an Ihrer Heimatuniversit&auml;t bekannt
 
-tgauth_instance = TgAuth Instance
+tgauth_instance = TgAuth-Instanz
 
 idp_entityid = Shibboleth Identity ProviderID
 
-authn_method = User ID Attribute Name
+authn_method = Benutzer-ID Merkmal-Name
 
-user_id = User ID Value
+user_id = Benutzer-ID Wert
 
-sid = TgAuth Session ID
+sid = TgAuth-Sitzungs-ID
 
-error_details_blabla_goback = If not indicated otherwise in the above details, it could be that some service is not responding temporarily. In this case, please <a href="javascript:history.back()">go back</a> or re-open the TextGridLab and try again.
+error_details_blabla_goback = Wenn nicht anders in obigen Informationen angegeben, k&ouml;nnte es sein, dass ein Dienst vor&uuml;bergehend nicht antwortet. In diesem Fall <a href="javascript:history.back()">gehen Sie bitte zur&uuml;ck</a> oder &ouml;ffnen Sie das TextGridLab erneut und versuchen Sie es noch einmal.
 
-error_details_blabla_date = If the problem persists, please report this bug together with its time of occurence (%1$s). In the TextGridLab, choose 'Help-&gt;Report Bug'.
+error_details_blabla_date = Wenn das Problem bestehen bleibt, melden Sie bitte diesen Fehler zusammen mit dem Zeitpunkt seines Auftretens (%1$s). W&auml;hlen Sie 'Hilfe -&gt; Bug-Report ...' im TextGridLab.
 
-no_tgauth_instance_heading = No TgAuth Instance provided
+no_tgauth_instance_heading = Keine TgAuth-Instanz angegeben
 
-no_tgauth_instance_detail = Please provide a valid string in the authZinstance variable.
+no_tgauth_instance_detail = Bitte geben Sie eine g&uuml;ltige Zeichenkette in der authZinstance-Variable an.
 
-authn_failure_heading = Failure authenticating at TextGrid Community Account Server
+authn_failure_heading = Authentifizierung am TextGrid-Community-Account-Server fehlgeschlagen
 
-authn_failure_detail_id_missing = Could not authenticate, no login ID provided. In case you forgot your password, please use the button below.
+authn_failure_detail_id_missing = Authentifizierung nicht m&ouml;glich, keine Benutzer-ID angegeben. Wenn Sie Ihr Passwort vergessen haben, klicken Sie bitte auf die nachstehende Schaltfl&auml;che.
 
-authn_failure_detail_password_missing = Could not authenticate, no password provided. In case you forgot your password, please use the button below.
+authn_failure_detail_password_missing = Authentifizierung nicht m&ouml;glich, kein Passwort angegeben. Wenn Sie Ihr Passwort vergessen haben, klicken Sie bitte auf die nachstehende Schaltfl&auml;che.
 
-authn_failure_detail_both_missing = Could not authenticate, no login ID and password provided. In case you forgot your password, please use the button below.
+authn_failure_detail_both_missing = Authentifizierung nicht m&ouml;glich, keine Benutzer-ID und kein Passwort angegeben. Wenn Sie Ihr Passwort vergessen haben, klicken Sie bitte auf die nachstehende Schaltfl&auml;che.
 
-authn_failure_detail_nothing_to_do = WebAuth does not know what to do (no login or password provided, no remote user, and no session Id). In case you forgot your password, please use the button below.
+authn_failure_detail_nothing_to_do = WebAuth wei&szlig; nicht, was zu tun ist (kein Benutzername oder Passwort angegeben, kein Remote-Nutzer und keine Sizungs-ID). Wenn Sie Ihr Passwort vergessen haben, klicken Sie bitte auf die nachstehende Schaltfl&auml;che.
 
-sid_create_failure_heading = Failure Creating Session in RBAC
+sid_create_failure_heading = Sitzungserstellung in RBAC fehlgeschlagen
 
-shib_login_failure_heading = Shibboleth Login via DFN-AAI failed
+shib_login_failure_heading = Shibboleth-Anmeldung &uuml;ber DFN-AAI fehlgeschlagen
 
-shib_login_failure_detail = No identifier provided. TextGrid needs the attribute <b>eduPersonPrincipalName</b> to identify you, but your organisation did not provide it. Please inquire with your organisation's computing centre to release this attribute to TextGrid. See <a href=\"http://www.textgrid.de/1-0/registrierung.html\">http://www.textgrid.de/1-0/registrierung.html</a>.
+shib_login_failure_detail = Kein Identifizierer angegeben. TextGrid ben&ouml;tigt das Attribut <b>eduPersonPrincipalName</b>, um Sie zu identifizieren, aber Ihre Organisation hat dieses nicht angegeben. Bitte setzen Sie sicht mit dem Rechenzentrum Ihrer Organisation in Verbindung, um dieses Attribut an TextGrid zu &uuml;bermitteln. Siehe dazu <a href=\"http://www.textgrid.de/1-0/registrierung.html\">http://www.textgrid.de/1-0/registrierung.html</a>.
 
-authn_succeeded_heading = Authentication Succeeded
+authn_succeeded_heading = Authentifizierung erfolgreich
 
-authn_failure_pagetitle = Authentication failed
+authn_failure_pagetitle = Authentifizierung fehlgeschlagen
 
-update_attr_please_pagetitle = Please Complete your User Attributes
+update_attr_please_pagetitle = Bitte vervollst&auml;ndigen Sie Ihre Nutzermerkmale
 
-modify_attr_pagetitle = Your User Attributes for Modification
+modify_attr_pagetitle = Ihre Nutzermerkmale zur Bearbeitung
 
-update_attr_success_pagetitle = Successfully updated User Attributes
+update_attr_success_pagetitle = Nutzermerkmale erfolgreich aktualisiert
 
-update_attr_thank_you = Thank you, %1$s, your user attributes are now up to date.<br/>You can close this dialogue.
+update_attr_thank_you = Vielen Dank, %1$s, Ihre Nutzermerkmale wurden jetzt aktualisiert.<br/>Sie k&ouml;nnen diesen Dialog schlie&szlig;en.
 
-auth_success_text = You were successfully authenticated with User ID '<b>%1$s</b>'. You may now access remote resources using the TextGrid Lab. This window can be closed.
+auth_success_text = Sie wurden erfolgreich mit der Benutzer-ID '<b>%1$s</b>' authentifiziert. Sie haben jetzt durch das TextGridLab Zugriff auf entfernte Ressourcen. Dieses Fenster kann geschlossen werden.
 
-more_details = More <a href="%1$s">Details</a>.
+more_details = N&auml;here <a href="%1$s">Informationen</a>.
 
-authn_details_heading = Authentication Details
+authn_details_heading = Authentifizierungsmerkmale
 
-login_heading = TextGridLab Login
+login_heading = TextGridLab-Anmeldung
 
-login_option_ldap = textgrid.de account
+login_option_ldap = textgrid.de-Account
 
-login_option_shib = Home account
+login_option_shib = Account an Heimatinstitution
 
-login_label_id = Login:
+login_label_id = Nutzername:
 
-login_label_password = Password:
+login_label_password = Passwort:
 
-login_button_shib = log in via DFN-AAI
+login_button_shib = Anmelden &uuml;ber DFN-AAI
 
-login_shib_explanation = If your school is not listed among the organizations on the DFN-AAI page, or if you encounter problems during log-in, you are welcome to <b>request a textgrid.de account</b> using the form on <a href="http://www.textgrid.de/1-0/registrierung.html">http://www.textgrid.de/beta/installation.html</a>. 
+login_shib_explanation = Wenn Ihre Institution nicht in der Liste der Organisationen auf der DFN-AAI-Webseite gef&uuml;hrt wird, oder wenn Sie w&auml;hrend des Anmeldevorgangs auf ein Problem sto&szlig;en, k&ouml;nnen Sie gerne &uuml;ber das Webformular einen <a href="http://www.textgrid.de/1-0/registrierung.html"><b>TextGrid-Account beantragen</b></a>.
 
-attr_givenname = Given Name
+attr_givenname = Vorname
 
-attr_givenname_description = Your First Name
+attr_givenname_description = Ihr Vorname
 
-attr_surname = Surname
+attr_surname = Nachname
 
-attr_surname_description = Your Last Name
+attr_surname_description = Ihr Familienname
 
-attr_displayname = Full Name
+attr_displayname = Vollst&auml;ndiger Name
 
-attr_displayname_description = Your Name for Display Purposes
+attr_displayname_description = Ihr in TextGrid angezeigter Name
 
 attr_mail = E-Mail
 
-attr_mail_description = Your Electronic Mail Address
+attr_mail_description = Ihre Elektronische Mail-Address
 
 attr_organisation = Institution
 
-attr_organisation_description = Institute or Organisation
+attr_organisation_description = Institut oder Organisation
 
-attr_orgunit = Department
+attr_orgunit = Fachbereich
 
-attr_orgunit_description = Organisational Unit
+attr_orgunit_description = Organisationseinheit
 
-attr_street = Street
+attr_street = Stra&szlig;e
 
-attr_street_description = Institution\'s Street Address incl. Number
+attr_street_description = Stra&szlig;enname der Institution inkl. Nummer
 
-attr_plz = Zip Code
+attr_plz = PLZ
 
-attr_plz_description = Postal Code, Zipcode or PLZ
+attr_plz_description = Postleitzahl oder Zipcode
 
-attr_city = City
+attr_city = Stadt
 
-attr_city_description = Location of Institute
+attr_city_description = Heimatort Ihrer Institution
 
-attr_country = Country
+attr_country = Land
 
-attr_country_description = Country of Residence
+attr_country_description = Heimatland Ihrer Institution
 
-attr_tel = Phone
+attr_tel = Telefon
 
-attr_tel_description = Phone Number, International Format
+attr_tel_description = Telefonnummer (internationales Format)
 
-attr_citizenship = Citizenship
+attr_citizenship = Nationalit&auml;t
 
-attr_citizenship_description = Your Country of Citizenship
+attr_citizenship_description = Ihre Nationalit&auml;t
 
-attr_interest = Field of Interest
+attr_interest = Interessengebiet
 
-attr_interest_description = Optional specification of fields of research interests in conjuction with TextGrid
+attr_interest_description = Optionale Spezifizierung Ihrer Forschungsinteressen in Verbindung mit TextGrid
 
-attr_personid = Person ID
+attr_personid = Personen-ID
 
-attr_personid_description = PND / URI for Person, e.g. http://xyz.org/~johndoe
+attr_personid_description = PND / URI f&uuml;r Person, z.B. http://xyz.org/~johndoe
 
-attr_agreesearch = Searchable
+attr_agreesearch = Suchbar
 
-attr_agreesearch_description = If this option is set, other TextGrid users can find you by Name, Institution or E-Mail-Address
+attr_agreesearch_description = Wenn diese Option gew&auml;hlt wird, k&ouml;nnen andere TextGrid-Nutzer Sie mittels Name, Institution oder E-Mail-Adresse finden
 
-attr_ToUversion = Terms Of Use
+attr_ToUversion = Nutzungsbedingungen
 
-attr_ToUversion_description = Latest Version of Terms Of Use that has been accepted by user
+attr_ToUversion_description = Aktuellste Version der Nutzungsbedingungen, die vom Nutzer akzeptiert wurde
 
-ToU_check_label =  I accept the <a href="%1$s">TextGrid Terms of Use</a>
+ToU_check_label =  Ich akzeptiere die <a href="%1$s">TextGrid-Nutzungsbedingungen</a>
 
-ToU_alert = You must accept the Terms of Use in order to proceed.
+ToU_alert = Sie m&uuml;ssen die Nutzungsbedingungen akzeptieren, um fortfahren zu k&ouml;nnen.
 
-mandatory_field_empty_alert = Please specify your %1$s \n (%2$s).
+mandatory_field_empty_alert = Bitte f&uuml;llen Sie das Feld %1$s aus \n (%2$s).
 
-email_missing_alert = Please specify your valid E-Mail-Address.
+email_missing_alert = Bitte geben Sie Ihre g&uuml;ltige E-Mail-Adresse an.
 
-cancel_button = cancel
+cancel_button = Abbrechen
 
-submit_button = submit
+submit_button = Speichern
 
diff --git a/info.textgrid.middleware.tgauth.webauth/locale/en/lang_main.inc b/info.textgrid.middleware.tgauth.webauth/locale/en/lang_main.inc
index 7185199..059dd43 100644
--- a/info.textgrid.middleware.tgauth.webauth/locale/en/lang_main.inc
+++ b/info.textgrid.middleware.tgauth.webauth/locale/en/lang_main.inc
@@ -16,9 +16,9 @@ user_id = User ID Value
 
 sid = TgAuth Session ID
 
-error_details_blabla_goback = If not indicated otherwise in the above details, it could be that some service is not responding temporarily. In this case, please <a href="javascript:history.back()">go back</a> or re-open the TextGridLab and try again.
+error_details_blabla_goback = If not indicated otherwise in the above details, it is possible that some service is not responding temporarily. In this case, please <a href="javascript:history.back()">go back</a> or re-open the TextGridLab and try again.
 
-error_details_blabla_date = If the problem persists, please report this bug together with its time of occurence (%1$s). In the TextGridLab, choose 'Help-&gt;Report Bug'.
+error_details_blabla_date = If the problem persists, please report this bug together with its time of occurrence (%1$s). In the TextGridLab, choose 'Help -&gt; Report Bug ...'.
 
 no_tgauth_instance_heading = No TgAuth Instance provided
 
@@ -26,13 +26,13 @@ no_tgauth_instance_detail = Please provide a valid string in the authZinstance v
 
 authn_failure_heading = Failure authenticating at TextGrid Community Account Server
 
-authn_failure_detail_id_missing = Could not authenticate, no login ID provided. In case you forgot your password, please use the button below.
+authn_failure_detail_id_missing = Could not authenticate, no login ID provided. In case you forgot your password, please click the button below.
 
-authn_failure_detail_password_missing = Could not authenticate, no password provided. In case you forgot your password, please use the button below.
+authn_failure_detail_password_missing = Could not authenticate, no password provided. In case you forgot your password, please click the button below.
 
-authn_failure_detail_both_missing = Could not authenticate, no login ID and password provided. In case you forgot your password, please use the button below.
+authn_failure_detail_both_missing = Could not authenticate, no login ID and password provided. In case you forgot your password, please click the button below.
 
-authn_failure_detail_nothing_to_do = WebAuth does not know what to do (no login or password provided, no remote user, and no session Id). In case you forgot your password, please use the button below.
+authn_failure_detail_nothing_to_do = WebAuth does not know what to do (no login or password provided, no remote user, and no session Id). In case you forgot your password, please click the button below.
 
 sid_create_failure_heading = Failure Creating Session in RBAC
 
@@ -40,7 +40,7 @@ shib_login_failure_heading = Shibboleth Login via DFN-AAI failed
 
 shib_login_failure_detail = No identifier provided. TextGrid needs the attribute <b>eduPersonPrincipalName</b> to identify you, but your organisation did not provide it. Please inquire with your organisation's computing centre to release this attribute to TextGrid. See <a href=\"http://www.textgrid.de/1-0/registrierung.html\">http://www.textgrid.de/1-0/registrierung.html</a>.
 
-authn_succeeded_heading = Authentication Succeeded
+authn_succeeded_heading = Authentication succeeded
 
 authn_failure_pagetitle = Authentication failed
 
@@ -52,7 +52,7 @@ update_attr_success_pagetitle = Successfully updated User Attributes
 
 update_attr_thank_you = Thank you, %1$s, your user attributes are now up to date.<br/>You can close this dialogue.
 
-auth_success_text = You were successfully authenticated with User ID '<b>%1$s</b>'. You may now access remote resources using the TextGrid Lab. This window can be closed.
+auth_success_text = You were successfully authenticated with User ID '<b>%1$s</b>'. You may now access remote resources using the TextGridLab. This window can be closed.
 
 more_details = More <a href="%1$s">Details</a>.
 
@@ -64,17 +64,17 @@ login_option_ldap = textgrid.de account
 
 login_option_shib = Home account
 
-login_label_id = Login:
+login_label_id = Username:
 
 login_label_password = Password:
 
 login_button_shib = log in via DFN-AAI
 
-login_shib_explanation = If your school is not listed among the organizations on the DFN-AAI page, or if you encounter problems during log-in, you are welcome to <b>request a textgrid.de account</b> using the form on <a href="http://www.textgrid.de/1-0/registrierung.html">http://www.textgrid.de/beta/installation.html</a>. 
+login_shib_explanation = If your school is not listed among the organizations on the DFN-AAI page, or if you encounter problems during log-in, you are welcome to <a href="http://www.textgrid.de/en/1-0/registrierung.html"><b>request a TextGrid account</b></a> using the form.
 
-attr_givenname = Given Name
+attr_givenname = First Name
 
-attr_givenname_description = Your First Name
+attr_givenname_description = Your Given Name
 
 attr_surname = Surname
 
@@ -106,15 +106,15 @@ attr_plz_description = Postal Code, Zipcode or PLZ
 
 attr_city = City
 
-attr_city_description = Location of Institute
+attr_city_description = Location of Institution
 
 attr_country = Country
 
-attr_country_description = Country of Residence
+attr_country_description = Institution's Country of Residence
 
 attr_tel = Phone
 
-attr_tel_description = Phone Number, International Format
+attr_tel_description = Phone Number (International Format)
 
 attr_citizenship = Citizenship
 
@@ -144,7 +144,7 @@ mandatory_field_empty_alert = Please specify your %1$s \n (%2$s).
 
 email_missing_alert = Please specify your valid E-Mail-Address.
 
-cancel_button = cancel
+cancel_button = Cancel
 
-submit_button = submit
+submit_button = Submit
 
-- 
GitLab