]> Untitled Git - lemmy-ui.git/commitdiff
Remove active in the last (#419)
authorDessalines <dessalines@users.noreply.github.com>
Sat, 18 Sep 2021 17:06:12 +0000 (13:06 -0400)
committerGitHub <noreply@github.com>
Sat, 18 Sep 2021 17:06:12 +0000 (13:06 -0400)
* Updating translations.

* Removing active_in_the_last for i18n.

- Fixes https://github.com/LemmyNet/lemmy-translations/issues/17

lemmy-translations
src/shared/components/community/sidebar.tsx
src/shared/components/home/home.tsx

index 183033e0f796b450911e4e8f708ddd5969b12b77..a700edf2dc9c290050b036b6d33e0ea351c92274 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 183033e0f796b450911e4e8f708ddd5969b12b77
+Subproject commit a700edf2dc9c290050b036b6d33e0ea351c92274
index d4a5bc51cd06a37dae2cabe28d07640ff7c6e7d3..0e7358f29c1f023d1b320d5da62c35cfc0fd7c53 100644 (file)
@@ -156,10 +156,10 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
         </li>
         <li
           className="list-inline-item badge badge-secondary pointer"
-          data-tippy-content={`${i18n.t("number_of_users", {
+          data-tippy-content={i18n.t("active_users_in_the_last_day", {
             count: counts.users_active_day,
             formattedCount: counts.users_active_day,
-          })} ${i18n.t("active_in_the_last")} ${i18n.t("day")}`}
+          })}
         >
           {i18n.t("number_of_users", {
             count: counts.users_active_day,
@@ -169,10 +169,10 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
         </li>
         <li
           className="list-inline-item badge badge-secondary pointer"
-          data-tippy-content={`${i18n.t("number_of_users", {
+          data-tippy-content={i18n.t("active_users_in_the_last_week", {
             count: counts.users_active_week,
             formattedCount: counts.users_active_week,
-          })} ${i18n.t("active_in_the_last")} ${i18n.t("week")}`}
+          })}
         >
           {i18n.t("number_of_users", {
             count: counts.users_active_week,
@@ -182,10 +182,10 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
         </li>
         <li
           className="list-inline-item badge badge-secondary pointer"
-          data-tippy-content={`${i18n.t("number_of_users", {
+          data-tippy-content={i18n.t("active_users_in_the_last_month", {
             count: counts.users_active_month,
             formattedCount: counts.users_active_month,
-          })} ${i18n.t("active_in_the_last")} ${i18n.t("month")}`}
+          })}
         >
           {i18n.t("number_of_users", {
             count: counts.users_active_month,
@@ -195,13 +195,10 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
         </li>
         <li
           className="list-inline-item badge badge-secondary pointer"
-          data-tippy-content={`${i18n.t("number_of_users", {
+          data-tippy-content={i18n.t("active_users_in_the_last_six_months", {
             count: counts.users_active_half_year,
             formattedCount: counts.users_active_half_year,
-          })} ${i18n.t("active_in_the_last")} ${i18n.t("number_of_months", {
-            count: 6,
-            formattedCount: 6,
-          })}`}
+          })}
         >
           {i18n.t("number_of_users", {
             count: counts.users_active_half_year,
index a22a95930dedfa90d2578e19a96309d072562fd7..ec581c006517e65d83802b5f03ffde72ac8c3118 100644 (file)
@@ -511,10 +511,10 @@ export class Home extends Component<any, HomeState> {
         </li>
         <li
           className="list-inline-item badge badge-secondary pointer"
-          data-tippy-content={`${i18n.t("number_of_users", {
+          data-tippy-content={i18n.t("active_users_in_the_last_day", {
             count: counts.users_active_day,
-            formattedCount: counts.users_active_day,
-          })} ${i18n.t("active_in_the_last")} ${i18n.t("day")}`}
+            formattedCount: numToSI(counts.users_active_day),
+          })}
         >
           {i18n.t("number_of_users", {
             count: counts.users_active_day,
@@ -524,10 +524,10 @@ export class Home extends Component<any, HomeState> {
         </li>
         <li
           className="list-inline-item badge badge-secondary pointer"
-          data-tippy-content={`${i18n.t("number_of_users", {
+          data-tippy-content={i18n.t("active_users_in_the_last_week", {
             count: counts.users_active_week,
             formattedCount: counts.users_active_week,
-          })} ${i18n.t("active_in_the_last")} ${i18n.t("week")}`}
+          })}
         >
           {i18n.t("number_of_users", {
             count: counts.users_active_week,
@@ -537,10 +537,10 @@ export class Home extends Component<any, HomeState> {
         </li>
         <li
           className="list-inline-item badge badge-secondary pointer"
-          data-tippy-content={`${i18n.t("number_of_users", {
+          data-tippy-content={i18n.t("active_users_in_the_last_month", {
             count: counts.users_active_month,
             formattedCount: counts.users_active_month,
-          })} ${i18n.t("active_in_the_last")} ${i18n.t("month")}`}
+          })}
         >
           {i18n.t("number_of_users", {
             count: counts.users_active_month,
@@ -550,13 +550,10 @@ export class Home extends Component<any, HomeState> {
         </li>
         <li
           className="list-inline-item badge badge-secondary pointer"
-          data-tippy-content={`${i18n.t("number_of_users", {
+          data-tippy-content={i18n.t("active_users_in_the_last_six_months", {
             count: counts.users_active_half_year,
             formattedCount: counts.users_active_half_year,
-          })} ${i18n.t("active_in_the_last")} ${i18n.t("number_of_months", {
-            count: 6,
-            formattedCount: 6,
-          })}`}
+          })}
         >
           {i18n.t("number_of_users", {
             count: counts.users_active_half_year,