From: Friendika
Date: Fri, 17 Dec 2010 03:38:52 +0000 (-0800)
Subject: pull strings from connection request templates
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70f4f172dc1785f9a68b5f0dafbfb4cc365a449f;p=friendica.git
pull strings from connection request templates
---
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php
index 65a2c771ed..9c8064db52 100644
--- a/mod/dfrn_request.php
+++ b/mod/dfrn_request.php
@@ -535,6 +535,20 @@ function dfrn_request_content(&$a) {
else
$tpl = load_view_file('view/auto_request.tpl');
$o .= replace_macros($tpl,array(
+ '$header' => t('Friend/Connection Request'),
+ '$pls_answer' => t('Please answer the following:'),
+ '$does_know' => t('Does $name know you?'),
+ '$yes' => t('Yes'),
+ '$no' => t('No'),
+ '$add_note' => t('Add a personal note:'),
+ '$page_desc' => t('Please enter your profile address from one of the following supported social networks:'),
+ '$friendika' => t('Friendika'),
+ '$statusnet' => t('StatusNet/Federated Social Web'),
+ '$private_net' => t("Private \x28secure\x29 network"),
+ '$public_net' => t("Public \x28insecure\x29 network"),
+ '$your_address' => t('Your profile address:'),
+ '$submit' => t('Submit Request'),
+ '$cancel' => t('Cancel'),
'$nickname' => $a->argv[1],
'$name' => $a->profile['name'],
'$myaddr' => $myaddr
diff --git a/view/auto_request.tpl b/view/auto_request.tpl
new file mode 100644
index 0000000000..b8d2d1a729
--- /dev/null
+++ b/view/auto_request.tpl
@@ -0,0 +1,29 @@
+
+$header
+
+
+$page_desc
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/view/dfrn_request.tpl b/view/dfrn_request.tpl
new file mode 100644
index 0000000000..9cb1e8749b
--- /dev/null
+++ b/view/dfrn_request.tpl
@@ -0,0 +1,59 @@
+
+$header
+
+
+$page_desc
+
+
+
+
+
+
+
+
+$pls_answer
+
+
+
+
+
+
+$does_know
+
+
+
+
+
+
+
+$add_note
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/view/en/auto_request.tpl b/view/en/auto_request.tpl
deleted file mode 100644
index 97e750083c..0000000000
--- a/view/en/auto_request.tpl
+++ /dev/null
@@ -1,29 +0,0 @@
-
-Friend/Connection Request
-
-
-Please enter your profile address from one of the following supported social networks:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/view/en/dfrn_request.tpl b/view/en/dfrn_request.tpl
deleted file mode 100644
index 4dd8c04899..0000000000
--- a/view/en/dfrn_request.tpl
+++ /dev/null
@@ -1,59 +0,0 @@
-
-Friend/Connection Request
-
-
-You may request a connection with this member if you have a valid profile address
-on one of the following social networks:
-
-
-
-
-
-
-
-
-
-
-
-
-Please answer the following:
-
-
-
-
-
-Does $name know you?
-
-
-
-
-
-
-
-Add a personal note:
-
-
-
-
-
-
-
-
-
-
-
-
-