fix "insert web link" for those without richtext feature enabled

This commit is contained in:
friendica 2012-12-03 16:31:28 -08:00
parent 8b5288d0f7
commit 8ab24858fb
3 changed files with 85 additions and 82 deletions

View File

@ -12,7 +12,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php');
require_once('include/features.php'); require_once('include/features.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '3.0.1545' ); define ( 'FRIENDICA_VERSION', '3.0.1546' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1157 ); define ( 'DB_UPDATE_VERSION', 1157 );

View File

@ -239,6 +239,9 @@ function parse_url_content(&$a) {
if(local_user() && intval(get_pconfig(local_user(),'system','plaintext'))) if(local_user() && intval(get_pconfig(local_user(),'system','plaintext')))
$textmode = true; $textmode = true;
if(local_user() && (! feature_enabled(local_user(),'richtext')))
$textmode = true;
//if($textmode) //if($textmode)
$br = (($textmode) ? "\n" : '<br />'); $br = (($textmode) ? "\n" : '<br />');

View File

@ -6,9 +6,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 3.0.1545\n" "Project-Id-Version: 3.0.1546\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-12-02 10:00-0800\n" "POT-Creation-Date: 2012-12-03 10:00-0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -54,7 +54,7 @@ msgstr ""
#: ../../mod/allfriends.php:9 ../../mod/nogroup.php:25 #: ../../mod/allfriends.php:9 ../../mod/nogroup.php:25
#: ../../mod/wall_upload.php:66 ../../mod/follow.php:9 #: ../../mod/wall_upload.php:66 ../../mod/follow.php:9
#: ../../mod/display.php:165 ../../mod/profiles.php:7 #: ../../mod/display.php:165 ../../mod/profiles.php:7
#: ../../mod/profiles.php:424 ../../mod/delegate.php:6 #: ../../mod/profiles.php:431 ../../mod/delegate.php:6
#: ../../mod/suggest.php:28 ../../mod/invite.php:13 ../../mod/invite.php:81 #: ../../mod/suggest.php:28 ../../mod/invite.php:13 ../../mod/invite.php:81
#: ../../mod/dfrn_confirm.php:53 ../../addon/facebook/facebook.php:510 #: ../../mod/dfrn_confirm.php:53 ../../addon/facebook/facebook.php:510
#: ../../addon/facebook/facebook.php:516 ../../addon/fbpost/fbpost.php:159 #: ../../addon/facebook/facebook.php:516 ../../addon/fbpost/fbpost.php:159
@ -141,7 +141,7 @@ msgstr ""
#: ../../mod/settings.php:1017 ../../mod/group.php:85 ../../mod/mood.php:137 #: ../../mod/settings.php:1017 ../../mod/group.php:85 ../../mod/mood.php:137
#: ../../mod/message.php:301 ../../mod/message.php:487 ../../mod/admin.php:445 #: ../../mod/message.php:301 ../../mod/message.php:487 ../../mod/admin.php:445
#: ../../mod/admin.php:692 ../../mod/admin.php:829 ../../mod/admin.php:1028 #: ../../mod/admin.php:692 ../../mod/admin.php:829 ../../mod/admin.php:1028
#: ../../mod/admin.php:1115 ../../mod/profiles.php:597 #: ../../mod/admin.php:1115 ../../mod/profiles.php:604
#: ../../mod/invite.php:119 ../../addon/fromgplus/fromgplus.php:40 #: ../../mod/invite.php:119 ../../addon/fromgplus/fromgplus.php:40
#: ../../addon/facebook/facebook.php:619 #: ../../addon/facebook/facebook.php:619
#: ../../addon/snautofollow/snautofollow.php:64 #: ../../addon/snautofollow/snautofollow.php:64
@ -415,7 +415,7 @@ msgstr ""
#: ../../mod/settings.php:1004 ../../mod/settings.php:1005 #: ../../mod/settings.php:1004 ../../mod/settings.php:1005
#: ../../mod/settings.php:1006 ../../mod/settings.php:1007 #: ../../mod/settings.php:1006 ../../mod/settings.php:1007
#: ../../mod/settings.php:1008 ../../mod/register.php:237 #: ../../mod/settings.php:1008 ../../mod/register.php:237
#: ../../mod/profiles.php:577 #: ../../mod/profiles.php:584
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
@ -427,7 +427,7 @@ msgstr ""
#: ../../mod/settings.php:1004 ../../mod/settings.php:1005 #: ../../mod/settings.php:1004 ../../mod/settings.php:1005
#: ../../mod/settings.php:1006 ../../mod/settings.php:1007 #: ../../mod/settings.php:1006 ../../mod/settings.php:1007
#: ../../mod/settings.php:1008 ../../mod/register.php:238 #: ../../mod/settings.php:1008 ../../mod/register.php:238
#: ../../mod/profiles.php:578 #: ../../mod/profiles.php:585
msgid "No" msgid "No"
msgstr "" msgstr ""
@ -4290,8 +4290,8 @@ msgstr ""
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: ../../mod/profiles.php:21 ../../mod/profiles.php:434 #: ../../mod/profiles.php:21 ../../mod/profiles.php:441
#: ../../mod/profiles.php:548 ../../mod/dfrn_confirm.php:62 #: ../../mod/profiles.php:555 ../../mod/dfrn_confirm.php:62
msgid "Profile not found." msgid "Profile not found."
msgstr "" msgstr ""
@ -4299,303 +4299,303 @@ msgstr ""
msgid "Profile Name is required." msgid "Profile Name is required."
msgstr "" msgstr ""
#: ../../mod/profiles.php:171 #: ../../mod/profiles.php:178
msgid "Marital Status" msgid "Marital Status"
msgstr "" msgstr ""
#: ../../mod/profiles.php:175 #: ../../mod/profiles.php:182
msgid "Romantic Partner" msgid "Romantic Partner"
msgstr "" msgstr ""
#: ../../mod/profiles.php:179 #: ../../mod/profiles.php:186
msgid "Likes" msgid "Likes"
msgstr "" msgstr ""
#: ../../mod/profiles.php:183 #: ../../mod/profiles.php:190
msgid "Dislikes" msgid "Dislikes"
msgstr "" msgstr ""
#: ../../mod/profiles.php:187 #: ../../mod/profiles.php:194
msgid "Work/Employment" msgid "Work/Employment"
msgstr "" msgstr ""
#: ../../mod/profiles.php:190 #: ../../mod/profiles.php:197
msgid "Religion" msgid "Religion"
msgstr "" msgstr ""
#: ../../mod/profiles.php:194 #: ../../mod/profiles.php:201
msgid "Political Views" msgid "Political Views"
msgstr "" msgstr ""
#: ../../mod/profiles.php:198 #: ../../mod/profiles.php:205
msgid "Gender" msgid "Gender"
msgstr "" msgstr ""
#: ../../mod/profiles.php:202 #: ../../mod/profiles.php:209
msgid "Sexual Preference" msgid "Sexual Preference"
msgstr "" msgstr ""
#: ../../mod/profiles.php:206 #: ../../mod/profiles.php:213
msgid "Homepage" msgid "Homepage"
msgstr "" msgstr ""
#: ../../mod/profiles.php:210 #: ../../mod/profiles.php:217
msgid "Interests" msgid "Interests"
msgstr "" msgstr ""
#: ../../mod/profiles.php:214 #: ../../mod/profiles.php:221
msgid "Address" msgid "Address"
msgstr "" msgstr ""
#: ../../mod/profiles.php:221 ../../addon/dav/common/wdcal_edit.inc.php:183 #: ../../mod/profiles.php:228 ../../addon/dav/common/wdcal_edit.inc.php:183
#: ../../addon.old/dav/common/wdcal_edit.inc.php:183 #: ../../addon.old/dav/common/wdcal_edit.inc.php:183
msgid "Location" msgid "Location"
msgstr "" msgstr ""
#: ../../mod/profiles.php:304 #: ../../mod/profiles.php:311
msgid "Profile updated." msgid "Profile updated."
msgstr "" msgstr ""
#: ../../mod/profiles.php:371 #: ../../mod/profiles.php:378
msgid " and " msgid " and "
msgstr "" msgstr ""
#: ../../mod/profiles.php:379 #: ../../mod/profiles.php:386
msgid "public profile" msgid "public profile"
msgstr "" msgstr ""
#: ../../mod/profiles.php:382 #: ../../mod/profiles.php:389
#, php-format #, php-format
msgid "%1$s changed %2$s to &ldquo;%3$s&rdquo;" msgid "%1$s changed %2$s to &ldquo;%3$s&rdquo;"
msgstr "" msgstr ""
#: ../../mod/profiles.php:383 #: ../../mod/profiles.php:390
#, php-format #, php-format
msgid " - Visit %1$s's %2$s" msgid " - Visit %1$s's %2$s"
msgstr "" msgstr ""
#: ../../mod/profiles.php:386 #: ../../mod/profiles.php:393
#, php-format #, php-format
msgid "%1$s has an updated %2$s, changing %3$s." msgid "%1$s has an updated %2$s, changing %3$s."
msgstr "" msgstr ""
#: ../../mod/profiles.php:453 #: ../../mod/profiles.php:460
msgid "Profile deleted." msgid "Profile deleted."
msgstr "" msgstr ""
#: ../../mod/profiles.php:471 ../../mod/profiles.php:505 #: ../../mod/profiles.php:478 ../../mod/profiles.php:512
msgid "Profile-" msgid "Profile-"
msgstr "" msgstr ""
#: ../../mod/profiles.php:490 ../../mod/profiles.php:532 #: ../../mod/profiles.php:497 ../../mod/profiles.php:539
msgid "New profile created." msgid "New profile created."
msgstr "" msgstr ""
#: ../../mod/profiles.php:511 #: ../../mod/profiles.php:518
msgid "Profile unavailable to clone." msgid "Profile unavailable to clone."
msgstr "" msgstr ""
#: ../../mod/profiles.php:576 #: ../../mod/profiles.php:583
msgid "Hide your contact/friend list from viewers of this profile?" msgid "Hide your contact/friend list from viewers of this profile?"
msgstr "" msgstr ""
#: ../../mod/profiles.php:596 #: ../../mod/profiles.php:603
msgid "Edit Profile Details" msgid "Edit Profile Details"
msgstr "" msgstr ""
#: ../../mod/profiles.php:598 #: ../../mod/profiles.php:605
msgid "View this profile" msgid "View this profile"
msgstr "" msgstr ""
#: ../../mod/profiles.php:599 #: ../../mod/profiles.php:606
msgid "Create a new profile using these settings" msgid "Create a new profile using these settings"
msgstr "" msgstr ""
#: ../../mod/profiles.php:600 #: ../../mod/profiles.php:607
msgid "Clone this profile" msgid "Clone this profile"
msgstr "" msgstr ""
#: ../../mod/profiles.php:601 #: ../../mod/profiles.php:608
msgid "Delete this profile" msgid "Delete this profile"
msgstr "" msgstr ""
#: ../../mod/profiles.php:602 #: ../../mod/profiles.php:609
msgid "Profile Name:" msgid "Profile Name:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:603 #: ../../mod/profiles.php:610
msgid "Your Full Name:" msgid "Your Full Name:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:604 #: ../../mod/profiles.php:611
msgid "Title/Description:" msgid "Title/Description:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:605 #: ../../mod/profiles.php:612
msgid "Your Gender:" msgid "Your Gender:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:606 #: ../../mod/profiles.php:613
#, php-format #, php-format
msgid "Birthday (%s):" msgid "Birthday (%s):"
msgstr "" msgstr ""
#: ../../mod/profiles.php:607 #: ../../mod/profiles.php:614
msgid "Street Address:" msgid "Street Address:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:608 #: ../../mod/profiles.php:615
msgid "Locality/City:" msgid "Locality/City:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:609 #: ../../mod/profiles.php:616
msgid "Postal/Zip Code:" msgid "Postal/Zip Code:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:610 #: ../../mod/profiles.php:617
msgid "Country:" msgid "Country:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:611 #: ../../mod/profiles.php:618
msgid "Region/State:" msgid "Region/State:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:612 #: ../../mod/profiles.php:619
msgid "<span class=\"heart\">&hearts;</span> Marital Status:" msgid "<span class=\"heart\">&hearts;</span> Marital Status:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:613 #: ../../mod/profiles.php:620
msgid "Who: (if applicable)" msgid "Who: (if applicable)"
msgstr "" msgstr ""
#: ../../mod/profiles.php:614 #: ../../mod/profiles.php:621
msgid "Examples: cathy123, Cathy Williams, cathy@example.com" msgid "Examples: cathy123, Cathy Williams, cathy@example.com"
msgstr "" msgstr ""
#: ../../mod/profiles.php:615 #: ../../mod/profiles.php:622
msgid "Since [date]:" msgid "Since [date]:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:616 ../../include/profile_advanced.php:46 #: ../../mod/profiles.php:623 ../../include/profile_advanced.php:46
msgid "Sexual Preference:" msgid "Sexual Preference:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:617 #: ../../mod/profiles.php:624
msgid "Homepage URL:" msgid "Homepage URL:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:618 ../../include/profile_advanced.php:50 #: ../../mod/profiles.php:625 ../../include/profile_advanced.php:50
msgid "Hometown:" msgid "Hometown:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:619 ../../include/profile_advanced.php:54 #: ../../mod/profiles.php:626 ../../include/profile_advanced.php:54
msgid "Political Views:" msgid "Political Views:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:620 #: ../../mod/profiles.php:627
msgid "Religious Views:" msgid "Religious Views:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:621 #: ../../mod/profiles.php:628
msgid "Public Keywords:" msgid "Public Keywords:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:622 #: ../../mod/profiles.php:629
msgid "Private Keywords:" msgid "Private Keywords:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:623 ../../include/profile_advanced.php:62 #: ../../mod/profiles.php:630 ../../include/profile_advanced.php:62
msgid "Likes:" msgid "Likes:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:624 ../../include/profile_advanced.php:64 #: ../../mod/profiles.php:631 ../../include/profile_advanced.php:64
msgid "Dislikes:" msgid "Dislikes:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:625 #: ../../mod/profiles.php:632
msgid "Example: fishing photography software" msgid "Example: fishing photography software"
msgstr "" msgstr ""
#: ../../mod/profiles.php:626 #: ../../mod/profiles.php:633
msgid "(Used for suggesting potential friends, can be seen by others)" msgid "(Used for suggesting potential friends, can be seen by others)"
msgstr "" msgstr ""
#: ../../mod/profiles.php:627 #: ../../mod/profiles.php:634
msgid "(Used for searching profiles, never shown to others)" msgid "(Used for searching profiles, never shown to others)"
msgstr "" msgstr ""
#: ../../mod/profiles.php:628 #: ../../mod/profiles.php:635
msgid "Tell us about yourself..." msgid "Tell us about yourself..."
msgstr "" msgstr ""
#: ../../mod/profiles.php:629 #: ../../mod/profiles.php:636
msgid "Hobbies/Interests" msgid "Hobbies/Interests"
msgstr "" msgstr ""
#: ../../mod/profiles.php:630 #: ../../mod/profiles.php:637
msgid "Contact information and Social Networks" msgid "Contact information and Social Networks"
msgstr "" msgstr ""
#: ../../mod/profiles.php:631 #: ../../mod/profiles.php:638
msgid "Musical interests" msgid "Musical interests"
msgstr "" msgstr ""
#: ../../mod/profiles.php:632 #: ../../mod/profiles.php:639
msgid "Books, literature" msgid "Books, literature"
msgstr "" msgstr ""
#: ../../mod/profiles.php:633 #: ../../mod/profiles.php:640
msgid "Television" msgid "Television"
msgstr "" msgstr ""
#: ../../mod/profiles.php:634 #: ../../mod/profiles.php:641
msgid "Film/dance/culture/entertainment" msgid "Film/dance/culture/entertainment"
msgstr "" msgstr ""
#: ../../mod/profiles.php:635 #: ../../mod/profiles.php:642
msgid "Love/romance" msgid "Love/romance"
msgstr "" msgstr ""
#: ../../mod/profiles.php:636 #: ../../mod/profiles.php:643
msgid "Work/employment" msgid "Work/employment"
msgstr "" msgstr ""
#: ../../mod/profiles.php:637 #: ../../mod/profiles.php:644
msgid "School/education" msgid "School/education"
msgstr "" msgstr ""
#: ../../mod/profiles.php:642 #: ../../mod/profiles.php:649
msgid "" msgid ""
"This is your <strong>public</strong> profile.<br />It <strong>may</strong> " "This is your <strong>public</strong> profile.<br />It <strong>may</strong> "
"be visible to anybody using the internet." "be visible to anybody using the internet."
msgstr "" msgstr ""
#: ../../mod/profiles.php:652 ../../mod/directory.php:111 #: ../../mod/profiles.php:659 ../../mod/directory.php:111
#: ../../addon/forumdirectory/forumdirectory.php:133 #: ../../addon/forumdirectory/forumdirectory.php:133
msgid "Age: " msgid "Age: "
msgstr "" msgstr ""
#: ../../mod/profiles.php:691 #: ../../mod/profiles.php:698
msgid "Edit/Manage Profiles" msgid "Edit/Manage Profiles"
msgstr "" msgstr ""
#: ../../mod/profiles.php:692 ../../boot.php:1244 #: ../../mod/profiles.php:699 ../../boot.php:1244
msgid "Change profile photo" msgid "Change profile photo"
msgstr "" msgstr ""
#: ../../mod/profiles.php:693 ../../boot.php:1245 #: ../../mod/profiles.php:700 ../../boot.php:1245
msgid "Create New Profile" msgid "Create New Profile"
msgstr "" msgstr ""
#: ../../mod/profiles.php:704 ../../boot.php:1255 #: ../../mod/profiles.php:711 ../../boot.php:1255
msgid "Profile Image" msgid "Profile Image"
msgstr "" msgstr ""
#: ../../mod/profiles.php:706 ../../boot.php:1258 #: ../../mod/profiles.php:713 ../../boot.php:1258
msgid "visible to everybody" msgid "visible to everybody"
msgstr "" msgstr ""
#: ../../mod/profiles.php:707 ../../boot.php:1259 #: ../../mod/profiles.php:714 ../../boot.php:1259
msgid "Edit visibility" msgid "Edit visibility"
msgstr "" msgstr ""