]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Add “translate” class to other user strings
authorThibG <thib@sitedethib.com>
Fri, 22 Jan 2021 09:09:23 +0000 (10:09 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Tue, 26 Jan 2021 13:05:24 +0000 (14:05 +0100)
Port 5fcac81302ad323a86ab43243c242c4a10cd338a to glitch-soc

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/components/poll.js
app/javascript/flavours/glitch/features/compose/components/reply_indicator.js
app/javascript/flavours/glitch/features/directory/components/account_card.js
app/javascript/flavours/glitch/features/follow_requests/components/account_authorize.js

index 6f57c19509abed7d5d79d6df14d539a5360343ba..f230823cc3e88f5ee6c611b99eb7fe9e11b84cc6 100644 (file)
@@ -153,7 +153,7 @@ class Poll extends ImmutablePureComponent {
           </span>}
 
           <span
-            className='poll__option__text'
+            className='poll__option__text translate'
             dangerouslySetInnerHTML={{ __html: titleEmojified }}
           />
 
index 0fd07c282cf9d40629cb5549d1a9fd26536994fa..37ae9cab9bdfcc02b0d410083d807a5de78f9b1f 100644 (file)
@@ -66,7 +66,7 @@ class ReplyIndicator extends ImmutablePureComponent {
           )}
         </header>
         <div
-          className='content'
+          className='content translate'
           dangerouslySetInnerHTML={{ __html: content || '' }}
         />
         {attachments.size > 0 && (
index 2ef9d5ba40b9ab78dfed1f4d10da3705d806248f..5f952b382516f03cadeef2c24d0459d56659da38 100644 (file)
@@ -241,7 +241,7 @@ class AccountCard extends ImmutablePureComponent {
 
         <div className='directory__card__extra' ref={this.setRef}>
           <div
-            className='account__header__content'
+            className='account__header__content translate'
             dangerouslySetInnerHTML={{ __html: account.get('note_emojified') }}
           />
         </div>
index bf145cb6774c6491cbdcd989f287d9d7807c5da1..eb9f3db7e9b62b7aaa8ab81b04ef964a8cb4598e 100644 (file)
@@ -35,7 +35,7 @@ class AccountAuthorize extends ImmutablePureComponent {
             <DisplayName account={account} />
           </Permalink>
 
-          <div className='account__header__content' dangerouslySetInnerHTML={content} />
+          <div className='account__header__content translate' dangerouslySetInnerHTML={content} />
         </div>
 
         <div className='account--panel'>