Add default reaction types
authorJoshua Rüsweg <josh@bastelstu.be>
Thu, 2 Aug 2018 11:53:07 +0000 (13:53 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Thu, 2 Aug 2018 11:53:07 +0000 (13:53 +0200)
See #2508

wcfsetup/install/files/images/reaction/confused.svg [new file with mode: 0644]
wcfsetup/install/files/images/reaction/haha.svg [new file with mode: 0644]
wcfsetup/install/files/images/reaction/like.svg [new file with mode: 0644]
wcfsetup/install/files/images/reaction/sad.svg [new file with mode: 0644]
wcfsetup/install/files/images/reaction/thanks.svg [new file with mode: 0644]
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml
wcfsetup/setup/db/install.sql

diff --git a/wcfsetup/install/files/images/reaction/confused.svg b/wcfsetup/install/files/images/reaction/confused.svg
new file mode 100644 (file)
index 0000000..534330c
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" enable-background="new 0 0 64 64"><path d="m2.5 37.2c2.9 16.3 18.4 27.2 34.8 24.3 16.3-2.9 27.2-18.4 24.3-34.8-2.9-16.2-18.5-27.1-34.8-24.2-16.3 2.8-27.2 18.4-24.3 34.7" fill="#ffdd67"/><g fill="#664e27"><circle cx="42.4" cy="24.7" r="5"/><circle cx="19.7" cy="28.7" r="5"/><path d="m43.3 41.8c-5.8-1.5-12-.4-16.9 3-1.2.9 1.1 4 2.3 3.2 3.2-2.3 8.4-3.8 13.7-2.4 1.3.3 2.4-3.3.9-3.8"/></g></svg>
\ No newline at end of file
diff --git a/wcfsetup/install/files/images/reaction/haha.svg b/wcfsetup/install/files/images/reaction/haha.svg
new file mode 100644 (file)
index 0000000..9d3a840
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M62,32c0,16.6-13.4,30-30,30C15.4,62,2,48.6,2,32C2,15.4,15.4,2,32,2C48.6,2,62,15.4,62,32z" fill="#ffdd67" id="0"/><path d="m49 38c0-.8-.5-1.8-1.8-2.1-3.5-.7-8.6-1.3-15.2-1.3-6.6 0-11.7.7-15.2 1.3-1.3.3-1.8 1.3-1.8 2.1 0 7.3 5.6 14.6 17 14.6 11.4 0 17-7.3 17-14.6" fill="#664e27" id="1"/><path d="m28.5 26.9c-1.9-5.1-4.7-7.7-7.5-7.7s-5.6 2.6-7.5 7.7c-.2.5.8 1.4 1.3.9 1.8-1.9 4-2.7 6.2-2.7 2.2 0 4.4.8 6.2 2.7.6.5 1.5-.4 1.3-.9" fill="#664e27" id="2"/><path d="m50.4 26.9c-1.9-5.1-4.7-7.7-7.5-7.7-2.8 0-5.6 2.6-7.5 7.7-.2.5.8 1.4 1.3.9 1.8-1.9 4-2.7 6.2-2.7 2.3 0 4.4.8 6.2 2.7.5.5 1.5-.4 1.3-.9" fill="#664e27" id="3"/><path d="m44.7 38.3c-2.2-.4-6.8-1-12.7-1-5.9 0-10.5.6-12.7 1-1.3.2-1.4.7-1.3 1.5.1.4.1 1 .3 1.6.1.6.3.9 1.3.8 1.9-.2 23-.2 24.9 0 1 .1 1.1-.2 1.3-.8.1-.6.2-1.1.3-1.6 0-.8-.1-1.3-1.4-1.5" fill="#fff"/><use xlink:href="#0"/><use xlink:href="#1"/><use xlink:href="#2"/><use xlink:href="#3"/><path d="m44.7 38.3c-2.2-.4-6.8-1-12.7-1-5.9 0-10.5.6-12.7 1-1.3.2-1.4.7-1.3 1.5.1.4.1 1 .3 1.6.1.6.3.8 1.3.8 12.4 0 12.4 0 24.9 0 1 0 1.1-.2 1.3-.8.1-.6.2-1.1.3-1.6 0-.8-.1-1.3-1.4-1.5" fill="#fff"/></svg>
\ No newline at end of file
diff --git a/wcfsetup/install/files/images/reaction/like.svg b/wcfsetup/install/files/images/reaction/like.svg
new file mode 100644 (file)
index 0000000..12c6742
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" enable-background="new 0 0 64 64"><path d="m61.1 18.2c-6.4-17-27.2-9.4-29.1-.9-2.6-9-22.9-15.7-29.1.9-6.9 18.5 26.7 35.1 29.1 37.8 2.4-2.2 36-19.6 29.1-37.8" fill="#ff5a79"/></svg>
\ No newline at end of file
diff --git a/wcfsetup/install/files/images/reaction/sad.svg b/wcfsetup/install/files/images/reaction/sad.svg
new file mode 100644 (file)
index 0000000..e39209c
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" enable-background="new 0 0 64 64"><circle cx="32" cy="32" r="30" fill="#ffdd67"/><path d="m40.6 46.4c-5.4-2.5-11.8-2.5-17.2 0-1.3.6.3 4.2 1.7 3.5 3.6-1.7 8.9-2.3 13.9 0 1.3.6 3-2.8 1.6-3.5" fill="#664e27"/><path d="m54 31c0 5-4 9-9 9-5 0-9-4-9-9 0-5 4-9 9-9 5 0 9 4 9 9" fill="#fff"/><circle cx="45" cy="31" r="6" fill="#664e27"/><g fill="#fff"><ellipse cx="46.6" cy="35.5" rx="2.8" ry="3.2"/><ellipse cx="42.8" cy="31" rx="1.6" ry="1.9"/><path d="m28 31c0 5-4 9-9 9-5 0-9-4-9-9 0-5 4-9 9-9 5 0 9 4 9 9"/></g><circle cx="19" cy="31" r="6" fill="#664e27"/><g fill="#fff"><ellipse cx="20.6" cy="35.5" rx="2.8" ry="3.2"/><ellipse cx="16.8" cy="31" rx="1.6" ry="1.9"/></g><path d="m47 36c-5.1 6.8-8 13-8 18.1 0 4.4 3.6 7.9 8 7.9 4.4 0 8-3.5 8-7.9 0-5.1-3-11.4-8-18.1" fill="#65b1ef"/><g fill="#917524"><path d="m53.2 20.7c-3.2-2.7-7.5-3.9-11.7-3.1-.6.1-1.1-2-.4-2.2 4.8-.9 9.8.5 13.5 3.6.6.5-1 2.1-1.4 1.7"/><path d="m22.5 17.4c-4.2-.7-8.5.4-11.7 3.1-.4.4-2-1.2-1.4-1.7 3.7-3.2 8.7-4.5 13.5-3.6.7.2.2 2.3-.4 2.2"/></g></svg>
\ No newline at end of file
diff --git a/wcfsetup/install/files/images/reaction/thanks.svg b/wcfsetup/install/files/images/reaction/thanks.svg
new file mode 100644 (file)
index 0000000..8c32144
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" enable-background="new 0 0 64 64"><g fill="#f2b200"><path d="m12.687 31.713c-.54 0-1.062-.12-1.548-.365-1.309-.66-2.868-2.458-2.868-7.284 0-10.09-5.324-15.849-5.379-15.906l-.892-.945 4.736-5.213.81 1.222c.102.148 2.578 3.738 6.533 2.683l.549 2.579c-3.896 1.041-6.711-1.139-8.07-2.57l-1.207 1.329c1.679 2.223 5.286 8.02 5.286 16.821 0 2.62.537 4.394 1.473 4.866.71.357 1.765-.031 2.754-1.013 2.59-2.573 4.493-8.986 4.512-9.05l2.248.827c-.084.291-2.119 7.158-5.19 10.207-1.197 1.188-2.518 1.812-3.747 1.812"/><path d="m51.31 31.712c.541 0 1.063-.12 1.549-.365 1.309-.659 2.867-2.458 2.867-7.284 0-10.09 5.324-15.849 5.379-15.905l.892-.947-4.736-5.211-.811 1.221c-.102.148-2.578 3.739-6.533 2.682l-.549 2.579c3.896 1.041 6.711-1.138 8.07-2.57l1.207 1.328c-1.678 2.223-5.285 8.02-5.285 16.821 0 2.621-.537 4.395-1.473 4.866-.711.359-1.766-.03-2.754-1.012-2.59-2.572-4.494-8.985-4.514-9.05l-2.248.826c.086.291 2.121 7.158 5.191 10.207 1.197 1.189 2.519 1.813 3.748 1.813"/><path d="m28.95 24.931h6.099v24.478h-6.099z"/></g><path fill="#ffce31" d="m30.2 24.931h3.599v24.478h-3.599z"/><path fill="#f2b200" d="m11.825 2c1.72 15.382 10.1 27.718 20.18 27.718 10.08 0 18.455-12.336 20.17-27.718h-40.35"/><path fill="#ffce31" d="m15.716 2c1.389 15.561 8.152 28.04 16.284 28.04 8.132 0 14.894-12.481 16.283-28.04h-32.567"/><path fill="#f2b200" d="m47.648 54h-31.3c0 0 7.01-9.03 15.65-9.03 8.642 0 15.647 9.03 15.647 9.03"/><path fill="#ffce31" d="m43.873 54h-23.748c0 0 5.316-9.183 11.875-9.183 6.559 0 11.873 9.183 11.873 9.183"/><path fill="#bc845e" d="m11.816 56h40.37v6h-40.37z"/><path fill="#916140" d="m16.351 54h31.3v2h-31.3z"/><path fill="#f2b200" d="m22 57.5h20v3h-20z"/><path fill="#ce9c7a" d="m11.816 56h2v6h-2z"/><path fill="#916140" d="m50.18 56h2v6h-2z"/><path fill="#ffce31" d="m23 57.5h18v3h-18z"/></svg>
\ No newline at end of file
index a3e28e04e9db44dbbeee8bd90ebfe745819d09e6..9d6f7c9bc364cf622829f325d902144007b1c9fe 100644 (file)
@@ -3466,6 +3466,14 @@ E-Mail-Adresse: {@$emailAddress} {* this line ends with a space *}
                <item name="wcf.reactions.react"><![CDATA[Reagieren]]></item>
        </category>
        
+       <category name="wcf.reactionType">
+               <item name="wcf.reactionType.title1"><![CDATA[Gefällt mir!]]></item>
+               <item name="wcf.reactionType.title2"><![CDATA[Haha]]></item>
+               <item name="wcf.reactionType.title3"><![CDATA[Traurig]]></item>
+               <item name="wcf.reactionType.title4"><![CDATA[Verwirrend]]></item>
+               <item name="wcf.reactionType.title5"><![CDATA[Danke!]]></item>
+       </category>
+       
        <category name="wcf.recaptcha">
                <item name="wcf.recaptcha.title"><![CDATA[Sicherheitsabfrage („reCAPTCHA“)]]></item>
                <item name="wcf.recaptcha.description"><![CDATA[Bitte {if LANGUAGE_USE_INFORMAL_VARIANT}gib{else}geben Sie{/if} die untenstehenden Zeichen in das leere Feld ein. Groß- und Kleinschreibung müssen nicht beachtet werden. {if LANGUAGE_USE_INFORMAL_VARIANT}Solltest du{else}Sollten Sie{/if} das Bild trotz Neuladen nicht identifizieren können, {if LANGUAGE_USE_INFORMAL_VARIANT}wende dich{else}wenden Sie sich{/if} an den Administrator.]]></item>
index 3b255f926b0db492a80dc98fd7f4f515c1529fb2..d102840e88664d3be35825f40ac23fbb783df6e1 100644 (file)
@@ -3460,6 +3460,21 @@ Email: {@$emailAddress} {* this line ends with a space *}
                <item name="wcf.poll.endTimeInfo"><![CDATA[Poll ends on {@$poll->endTime|plainTime}]]></item>
        </category>
        
+       <category name="wcf.reactions">
+               <item name="wcf.reactions.summary.title"><![CDATA[Reactions]]></item>
+               <item name="wcf.reactions.summary.noReactions"><![CDATA[There are not any reactions at the moment.]]></item>
+               <item name="wcf.reactions.summary.listReactions"><![CDATA[List Reactions]]></item>
+               <item name="wcf.reactions.react"><![CDATA[React]]></item>
+       </category>
+       
+       <category name="wcf.reactionType">
+               <item name="wcf.reactionType.title1"><![CDATA[Like]]></item>
+               <item name="wcf.reactionType.title2"><![CDATA[Haha]]></item>
+               <item name="wcf.reactionType.title3"><![CDATA[Sad]]></item>
+               <item name="wcf.reactionType.title4"><![CDATA[Confused]]></item>
+               <item name="wcf.reactionType.title5"><![CDATA[Thanks!]]></item>
+       </category>
+       
        <category name="wcf.recaptcha">
                <item name="wcf.recaptcha.title"><![CDATA[Verification (“reCAPTCHA”)]]></item>
                <item name="wcf.recaptcha.description"><![CDATA[Please enter the letters that are displayed in the picture below (letters are not case-sensitive). If you cannot identify the captcha even after reloading it, please contact the administrator.]]></item>
index 6d26f6bd37df0da4df347de8269a5f2e3ea24d15..4f19d1fe6c0851bb8e12fb70de0f0b67bed98f1d 100644 (file)
@@ -2375,3 +2375,10 @@ INSERT INTO wcf1_contact_option (optionID, optionTitle, optionDescription, optio
 
 -- default recipient: site administrator
 INSERT INTO wcf1_contact_recipient (recipientID, name, email, isAdministrator, originIsSystem) VALUES (1, 'wcf.contact.recipient.name1', '', 1, 1);
+
+-- default reaction type
+INSERT INTO wcf1_reaction_type (title, type, showOrder, iconFile) VALUES ('wcf.reactionType.title1', 1, 1, 'like.svg');
+INSERT INTO wcf1_reaction_type (title, type, showOrder, iconFile) VALUES ('wcf.reactionType.title2', 1, 2, 'haha.svg');
+INSERT INTO wcf1_reaction_type (title, type, showOrder, iconFile) VALUES ('wcf.reactionType.title3', -1, 3, 'sad.svg');
+INSERT INTO wcf1_reaction_type (title, type, showOrder, iconFile) VALUES ('wcf.reactionType.title4', 0, 4, 'confused.svg');
+INSERT INTO wcf1_reaction_type (title, type, showOrder, iconFile) VALUES ('wcf.reactionType.title5', 1, 5, 'thanks.svg');
\ No newline at end of file