diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2019-07-28 18:45:37 -0400 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2019-07-28 18:45:37 -0400 |
commit | b875a8debc771b6192b37db04570009fca1d0a6c (patch) | |
tree | f9fe1318c188cbd1a801abe6773329315df865ea | |
parent | Translated using Weblate (English) (diff) | |
download | nheko-b875a8debc771b6192b37db04570009fca1d0a6c.tar.xz |
Update translation context
-rw-r--r-- | resources/langs/nheko_de.ts | 79 | ||||
-rw-r--r-- | resources/langs/nheko_el.ts | 75 | ||||
-rw-r--r-- | resources/langs/nheko_en.ts | 103 | ||||
-rw-r--r-- | resources/langs/nheko_fi.ts | 79 | ||||
-rw-r--r-- | resources/langs/nheko_fr.ts | 75 | ||||
-rw-r--r-- | resources/langs/nheko_nl.ts | 75 | ||||
-rw-r--r-- | resources/langs/nheko_pl.ts | 75 | ||||
-rw-r--r-- | resources/langs/nheko_ru.ts | 75 | ||||
-rw-r--r-- | resources/langs/nheko_zh_CN.ts | 75 | ||||
-rw-r--r-- | src/Utils.h | 18 |
10 files changed, 405 insertions, 324 deletions
diff --git a/resources/langs/nheko_de.ts b/resources/langs/nheko_de.ts index 35240772..15497d60 100644 --- a/resources/langs/nheko_de.ts +++ b/resources/langs/nheko_de.ts @@ -1049,82 +1049,91 @@ Medien-Größe: %2 </message> </context> <context> - <name>utils</name> + <name>message-description sent:</name> <message> - <location filename="../../src/Utils.cpp" line="+46"/> - <location filename="../../src/Utils.h" line="+141"/> - <source>You</source> - <translation>Du</translation> + <location filename="../../src/Utils.h" line="+104"/> + <source>%1 an audio clip</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+219"/> - <source>sent a file.</source> + <location line="+2"/> + <source>%1 an image</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an image.</source> + <location line="+2"/> + <source>%1 a file</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an audio file.</source> + <location line="+2"/> + <source>%1 a video clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent a video</source> + <location line="+2"/> + <source>%1 a sticker</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../src/Utils.h" line="-45"/> - <source>sent</source> - <comment>For when you are the sender</comment> + <location line="+2"/> + <source>%1 a notification</source> <translation type="unfinished"></translation> </message> <message> - <location line="+1"/> - <source>sent</source> - <comment>For when someone else is the sender</comment> + <location line="+6"/> + <source>%1 an encrypted message</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description:</name> <message> - <location line="+3"/> - <source>%1 an audio clip</source> + <location line="-19"/> + <source>sent</source> + <comment>For when someone else is the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description: </name> <message> - <location line="+2"/> - <source>%1 an image</source> + <location line="-2"/> + <source>sent</source> + <comment>For when you are the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>utils</name> <message> - <location line="+2"/> - <source>%1 a file</source> - <translation type="unfinished"></translation> + <location filename="../../src/Utils.cpp" line="+46"/> + <location filename="../../src/Utils.h" line="+47"/> + <source>You</source> + <translation>Du</translation> </message> <message> - <location line="+2"/> - <source>%1 a video clip</source> + <location line="+219"/> + <source>sent a file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a sticker</source> + <location line="+3"/> + <source>sent an image.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a notification</source> + <location line="+3"/> + <source>sent an audio file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+6"/> - <source>%1 an encrypted message</source> + <location line="+3"/> + <source>sent a video</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> + <location filename="../../src/Utils.h" line="-23"/> <source>Unknown Message Type</source> <translation type="unfinished"></translation> </message> diff --git a/resources/langs/nheko_el.ts b/resources/langs/nheko_el.ts index c8805905..84b76ba4 100644 --- a/resources/langs/nheko_el.ts +++ b/resources/langs/nheko_el.ts @@ -1047,82 +1047,91 @@ Media size: %2 </message> </context> <context> - <name>utils</name> + <name>message-description sent:</name> <message> - <location filename="../../src/Utils.cpp" line="+46"/> - <location filename="../../src/Utils.h" line="+141"/> - <source>You</source> + <location filename="../../src/Utils.h" line="+104"/> + <source>%1 an audio clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+219"/> - <source>sent a file.</source> + <location line="+2"/> + <source>%1 an image</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an image.</source> + <location line="+2"/> + <source>%1 a file</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an audio file.</source> + <location line="+2"/> + <source>%1 a video clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent a video</source> + <location line="+2"/> + <source>%1 a sticker</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../src/Utils.h" line="-45"/> - <source>sent</source> - <comment>For when you are the sender</comment> + <location line="+2"/> + <source>%1 a notification</source> <translation type="unfinished"></translation> </message> <message> - <location line="+1"/> - <source>sent</source> - <comment>For when someone else is the sender</comment> + <location line="+6"/> + <source>%1 an encrypted message</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description:</name> <message> - <location line="+3"/> - <source>%1 an audio clip</source> + <location line="-19"/> + <source>sent</source> + <comment>For when someone else is the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description: </name> <message> - <location line="+2"/> - <source>%1 an image</source> + <location line="-2"/> + <source>sent</source> + <comment>For when you are the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>utils</name> <message> - <location line="+2"/> - <source>%1 a file</source> + <location filename="../../src/Utils.cpp" line="+46"/> + <location filename="../../src/Utils.h" line="+47"/> + <source>You</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a video clip</source> + <location line="+219"/> + <source>sent a file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a sticker</source> + <location line="+3"/> + <source>sent an image.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a notification</source> + <location line="+3"/> + <source>sent an audio file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+6"/> - <source>%1 an encrypted message</source> + <location line="+3"/> + <source>sent a video</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> + <location filename="../../src/Utils.h" line="-23"/> <source>Unknown Message Type</source> <translation type="unfinished"></translation> </message> diff --git a/resources/langs/nheko_en.ts b/resources/langs/nheko_en.ts index 794647c1..f44f8a73 100644 --- a/resources/langs/nheko_en.ts +++ b/resources/langs/nheko_en.ts @@ -1051,82 +1051,91 @@ Media size: %2 </message> </context> <context> - <name>utils</name> - <message> - <location filename="../../src/Utils.cpp" line="+46"/> - <location filename="../../src/Utils.h" line="+141"/> - <source>You</source> - <translation>You</translation> - </message> - <message> - <location line="+219"/> - <source>sent a file.</source> - <translation>sent a file.</translation> - </message> - <message> - <location line="+3"/> - <source>sent an image.</source> - <translation>sent an image.</translation> - </message> - <message> - <location line="+3"/> - <source>sent an audio file.</source> - <translation>sent an audio file.</translation> - </message> - <message> - <location line="+3"/> - <source>sent a video</source> - <translation>sent a video.</translation> - </message> + <name>message-description sent:</name> <message> - <location filename="../../src/Utils.h" line="-45"/> - <source>sent</source> - <comment>For when you are the sender</comment> - <translation>sent</translation> - </message> - <message> - <location line="+1"/> - <source>sent</source> - <comment>For when someone else is the sender</comment> - <translation>sent</translation> - </message> - <message> - <location line="+3"/> + <location filename="../../src/Utils.h" line="+104"/> <source>%1 an audio clip</source> - <translation>%1 an audio clip</translation> + <translation type="unfinished">%1 an audio clip</translation> </message> <message> <location line="+2"/> <source>%1 an image</source> - <translation>%1 an image</translation> + <translation type="unfinished">%1 an image</translation> </message> <message> <location line="+2"/> <source>%1 a file</source> - <translation>%1 a file</translation> + <translation type="unfinished">%1 a file</translation> </message> <message> <location line="+2"/> <source>%1 a video clip</source> - <translation>%1 a video clip</translation> + <translation type="unfinished">%1 a video clip</translation> </message> <message> <location line="+2"/> <source>%1 a sticker</source> - <translation>%1 a sticker</translation> + <translation type="unfinished">%1 a sticker</translation> </message> <message> <location line="+2"/> <source>%1 a notification</source> - <translation>%1 a notification</translation> + <translation type="unfinished">%1 a notification</translation> </message> <message> <location line="+6"/> <source>%1 an encrypted message</source> - <translation>%1 an encrypted message</translation> + <translation type="unfinished">%1 an encrypted message</translation> + </message> +</context> +<context> + <name>message-description:</name> + <message> + <location line="-19"/> + <source>sent</source> + <comment>For when someone else is the sender</comment> + <translation type="unfinished">sent</translation> + </message> +</context> +<context> + <name>message-description: </name> + <message> + <location line="-2"/> + <source>sent</source> + <comment>For when you are the sender</comment> + <translation type="unfinished">sent</translation> + </message> +</context> +<context> + <name>utils</name> + <message> + <location filename="../../src/Utils.cpp" line="+46"/> + <location filename="../../src/Utils.h" line="+47"/> + <source>You</source> + <translation>You</translation> + </message> + <message> + <location line="+219"/> + <source>sent a file.</source> + <translation>sent a file.</translation> + </message> + <message> + <location line="+3"/> + <source>sent an image.</source> + <translation>sent an image.</translation> </message> <message> <location line="+3"/> + <source>sent an audio file.</source> + <translation>sent an audio file.</translation> + </message> + <message> + <location line="+3"/> + <source>sent a video</source> + <translation>sent a video.</translation> + </message> + <message> + <location filename="../../src/Utils.h" line="-23"/> <source>Unknown Message Type</source> <translation>Unknown Message Type</translation> </message> diff --git a/resources/langs/nheko_fi.ts b/resources/langs/nheko_fi.ts index e3116dfe..6494664a 100644 --- a/resources/langs/nheko_fi.ts +++ b/resources/langs/nheko_fi.ts @@ -1051,82 +1051,91 @@ Median koko: %2 </message> </context> <context> - <name>utils</name> + <name>message-description sent:</name> <message> - <location filename="../../src/Utils.cpp" line="+46"/> - <location filename="../../src/Utils.h" line="+141"/> - <source>You</source> - <translation>Sinä</translation> + <location filename="../../src/Utils.h" line="+104"/> + <source>%1 an audio clip</source> + <translation type="unfinished"></translation> </message> <message> - <location line="+219"/> - <source>sent a file.</source> + <location line="+2"/> + <source>%1 an image</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an image.</source> + <location line="+2"/> + <source>%1 a file</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an audio file.</source> + <location line="+2"/> + <source>%1 a video clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent a video</source> + <location line="+2"/> + <source>%1 a sticker</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../src/Utils.h" line="-45"/> - <source>sent</source> - <comment>For when you are the sender</comment> + <location line="+2"/> + <source>%1 a notification</source> <translation type="unfinished"></translation> </message> <message> - <location line="+1"/> - <source>sent</source> - <comment>For when someone else is the sender</comment> + <location line="+6"/> + <source>%1 an encrypted message</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description:</name> <message> - <location line="+3"/> - <source>%1 an audio clip</source> + <location line="-19"/> + <source>sent</source> + <comment>For when someone else is the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description: </name> <message> - <location line="+2"/> - <source>%1 an image</source> + <location line="-2"/> + <source>sent</source> + <comment>For when you are the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>utils</name> <message> - <location line="+2"/> - <source>%1 a file</source> - <translation type="unfinished"></translation> + <location filename="../../src/Utils.cpp" line="+46"/> + <location filename="../../src/Utils.h" line="+47"/> + <source>You</source> + <translation>Sinä</translation> </message> <message> - <location line="+2"/> - <source>%1 a video clip</source> + <location line="+219"/> + <source>sent a file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a sticker</source> + <location line="+3"/> + <source>sent an image.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a notification</source> + <location line="+3"/> + <source>sent an audio file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+6"/> - <source>%1 an encrypted message</source> + <location line="+3"/> + <source>sent a video</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> + <location filename="../../src/Utils.h" line="-23"/> <source>Unknown Message Type</source> <translation type="unfinished"></translation> </message> diff --git a/resources/langs/nheko_fr.ts b/resources/langs/nheko_fr.ts index 100b78aa..600d191c 100644 --- a/resources/langs/nheko_fr.ts +++ b/resources/langs/nheko_fr.ts @@ -1050,82 +1050,91 @@ Taille du média : %2 </message> </context> <context> - <name>utils</name> + <name>message-description sent:</name> <message> - <location filename="../../src/Utils.cpp" line="+46"/> - <location filename="../../src/Utils.h" line="+141"/> - <source>You</source> + <location filename="../../src/Utils.h" line="+104"/> + <source>%1 an audio clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+219"/> - <source>sent a file.</source> + <location line="+2"/> + <source>%1 an image</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an image.</source> + <location line="+2"/> + <source>%1 a file</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an audio file.</source> + <location line="+2"/> + <source>%1 a video clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent a video</source> + <location line="+2"/> + <source>%1 a sticker</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../src/Utils.h" line="-45"/> - <source>sent</source> - <comment>For when you are the sender</comment> + <location line="+2"/> + <source>%1 a notification</source> <translation type="unfinished"></translation> </message> <message> - <location line="+1"/> - <source>sent</source> - <comment>For when someone else is the sender</comment> + <location line="+6"/> + <source>%1 an encrypted message</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description:</name> <message> - <location line="+3"/> - <source>%1 an audio clip</source> + <location line="-19"/> + <source>sent</source> + <comment>For when someone else is the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description: </name> <message> - <location line="+2"/> - <source>%1 an image</source> + <location line="-2"/> + <source>sent</source> + <comment>For when you are the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>utils</name> <message> - <location line="+2"/> - <source>%1 a file</source> + <location filename="../../src/Utils.cpp" line="+46"/> + <location filename="../../src/Utils.h" line="+47"/> + <source>You</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a video clip</source> + <location line="+219"/> + <source>sent a file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a sticker</source> + <location line="+3"/> + <source>sent an image.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a notification</source> + <location line="+3"/> + <source>sent an audio file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+6"/> - <source>%1 an encrypted message</source> + <location line="+3"/> + <source>sent a video</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> + <location filename="../../src/Utils.h" line="-23"/> <source>Unknown Message Type</source> <translation type="unfinished"></translation> </message> diff --git a/resources/langs/nheko_nl.ts b/resources/langs/nheko_nl.ts index 59642683..aa1c6928 100644 --- a/resources/langs/nheko_nl.ts +++ b/resources/langs/nheko_nl.ts @@ -1049,82 +1049,91 @@ Mediagrootte: %2 </message> </context> <context> - <name>utils</name> + <name>message-description sent:</name> <message> - <location filename="../../src/Utils.cpp" line="+46"/> - <location filename="../../src/Utils.h" line="+141"/> - <source>You</source> + <location filename="../../src/Utils.h" line="+104"/> + <source>%1 an audio clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+219"/> - <source>sent a file.</source> + <location line="+2"/> + <source>%1 an image</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an image.</source> + <location line="+2"/> + <source>%1 a file</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an audio file.</source> + <location line="+2"/> + <source>%1 a video clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent a video</source> + <location line="+2"/> + <source>%1 a sticker</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../src/Utils.h" line="-45"/> - <source>sent</source> - <comment>For when you are the sender</comment> + <location line="+2"/> + <source>%1 a notification</source> <translation type="unfinished"></translation> </message> <message> - <location line="+1"/> - <source>sent</source> - <comment>For when someone else is the sender</comment> + <location line="+6"/> + <source>%1 an encrypted message</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description:</name> <message> - <location line="+3"/> - <source>%1 an audio clip</source> + <location line="-19"/> + <source>sent</source> + <comment>For when someone else is the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description: </name> <message> - <location line="+2"/> - <source>%1 an image</source> + <location line="-2"/> + <source>sent</source> + <comment>For when you are the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>utils</name> <message> - <location line="+2"/> - <source>%1 a file</source> + <location filename="../../src/Utils.cpp" line="+46"/> + <location filename="../../src/Utils.h" line="+47"/> + <source>You</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a video clip</source> + <location line="+219"/> + <source>sent a file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a sticker</source> + <location line="+3"/> + <source>sent an image.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a notification</source> + <location line="+3"/> + <source>sent an audio file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+6"/> - <source>%1 an encrypted message</source> + <location line="+3"/> + <source>sent a video</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> + <location filename="../../src/Utils.h" line="-23"/> <source>Unknown Message Type</source> <translation type="unfinished"></translation> </message> diff --git a/resources/langs/nheko_pl.ts b/resources/langs/nheko_pl.ts index 74d08608..4c90292f 100644 --- a/resources/langs/nheko_pl.ts +++ b/resources/langs/nheko_pl.ts @@ -1053,82 +1053,91 @@ Rozmiar multimediów: %2 </message> </context> <context> - <name>utils</name> + <name>message-description sent:</name> <message> - <location filename="../../src/Utils.cpp" line="+46"/> - <location filename="../../src/Utils.h" line="+141"/> - <source>You</source> + <location filename="../../src/Utils.h" line="+104"/> + <source>%1 an audio clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+219"/> - <source>sent a file.</source> + <location line="+2"/> + <source>%1 an image</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an image.</source> + <location line="+2"/> + <source>%1 a file</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an audio file.</source> + <location line="+2"/> + <source>%1 a video clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent a video</source> + <location line="+2"/> + <source>%1 a sticker</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../src/Utils.h" line="-45"/> - <source>sent</source> - <comment>For when you are the sender</comment> + <location line="+2"/> + <source>%1 a notification</source> <translation type="unfinished"></translation> </message> <message> - <location line="+1"/> - <source>sent</source> - <comment>For when someone else is the sender</comment> + <location line="+6"/> + <source>%1 an encrypted message</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description:</name> <message> - <location line="+3"/> - <source>%1 an audio clip</source> + <location line="-19"/> + <source>sent</source> + <comment>For when someone else is the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description: </name> <message> - <location line="+2"/> - <source>%1 an image</source> + <location line="-2"/> + <source>sent</source> + <comment>For when you are the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>utils</name> <message> - <location line="+2"/> - <source>%1 a file</source> + <location filename="../../src/Utils.cpp" line="+46"/> + <location filename="../../src/Utils.h" line="+47"/> + <source>You</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a video clip</source> + <location line="+219"/> + <source>sent a file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a sticker</source> + <location line="+3"/> + <source>sent an image.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a notification</source> + <location line="+3"/> + <source>sent an audio file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+6"/> - <source>%1 an encrypted message</source> + <location line="+3"/> + <source>sent a video</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> + <location filename="../../src/Utils.h" line="-23"/> <source>Unknown Message Type</source> <translation type="unfinished"></translation> </message> diff --git a/resources/langs/nheko_ru.ts b/resources/langs/nheko_ru.ts index b2b18ee3..958e93fa 100644 --- a/resources/langs/nheko_ru.ts +++ b/resources/langs/nheko_ru.ts @@ -1052,82 +1052,91 @@ Media size: %2 </message> </context> <context> - <name>utils</name> + <name>message-description sent:</name> <message> - <location filename="../../src/Utils.cpp" line="+46"/> - <location filename="../../src/Utils.h" line="+141"/> - <source>You</source> + <location filename="../../src/Utils.h" line="+104"/> + <source>%1 an audio clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+219"/> - <source>sent a file.</source> + <location line="+2"/> + <source>%1 an image</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an image.</source> + <location line="+2"/> + <source>%1 a file</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an audio file.</source> + <location line="+2"/> + <source>%1 a video clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent a video</source> + <location line="+2"/> + <source>%1 a sticker</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../src/Utils.h" line="-45"/> - <source>sent</source> - <comment>For when you are the sender</comment> + <location line="+2"/> + <source>%1 a notification</source> <translation type="unfinished"></translation> </message> <message> - <location line="+1"/> - <source>sent</source> - <comment>For when someone else is the sender</comment> + <location line="+6"/> + <source>%1 an encrypted message</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description:</name> <message> - <location line="+3"/> - <source>%1 an audio clip</source> + <location line="-19"/> + <source>sent</source> + <comment>For when someone else is the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description: </name> <message> - <location line="+2"/> - <source>%1 an image</source> + <location line="-2"/> + <source>sent</source> + <comment>For when you are the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>utils</name> <message> - <location line="+2"/> - <source>%1 a file</source> + <location filename="../../src/Utils.cpp" line="+46"/> + <location filename="../../src/Utils.h" line="+47"/> + <source>You</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a video clip</source> + <location line="+219"/> + <source>sent a file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a sticker</source> + <location line="+3"/> + <source>sent an image.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a notification</source> + <location line="+3"/> + <source>sent an audio file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+6"/> - <source>%1 an encrypted message</source> + <location line="+3"/> + <source>sent a video</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> + <location filename="../../src/Utils.h" line="-23"/> <source>Unknown Message Type</source> <translation type="unfinished"></translation> </message> diff --git a/resources/langs/nheko_zh_CN.ts b/resources/langs/nheko_zh_CN.ts index 772b32d2..8c7b2d34 100644 --- a/resources/langs/nheko_zh_CN.ts +++ b/resources/langs/nheko_zh_CN.ts @@ -1057,82 +1057,91 @@ Media size: %2 </message> </context> <context> - <name>utils</name> + <name>message-description sent:</name> <message> - <location filename="../../src/Utils.cpp" line="+46"/> - <location filename="../../src/Utils.h" line="+141"/> - <source>You</source> + <location filename="../../src/Utils.h" line="+104"/> + <source>%1 an audio clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+219"/> - <source>sent a file.</source> + <location line="+2"/> + <source>%1 an image</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an image.</source> + <location line="+2"/> + <source>%1 a file</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent an audio file.</source> + <location line="+2"/> + <source>%1 a video clip</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> - <source>sent a video</source> + <location line="+2"/> + <source>%1 a sticker</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../../src/Utils.h" line="-45"/> - <source>sent</source> - <comment>For when you are the sender</comment> + <location line="+2"/> + <source>%1 a notification</source> <translation type="unfinished"></translation> </message> <message> - <location line="+1"/> - <source>sent</source> - <comment>For when someone else is the sender</comment> + <location line="+6"/> + <source>%1 an encrypted message</source> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description:</name> <message> - <location line="+3"/> - <source>%1 an audio clip</source> + <location line="-19"/> + <source>sent</source> + <comment>For when someone else is the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>message-description: </name> <message> - <location line="+2"/> - <source>%1 an image</source> + <location line="-2"/> + <source>sent</source> + <comment>For when you are the sender</comment> <translation type="unfinished"></translation> </message> +</context> +<context> + <name>utils</name> <message> - <location line="+2"/> - <source>%1 a file</source> + <location filename="../../src/Utils.cpp" line="+46"/> + <location filename="../../src/Utils.h" line="+47"/> + <source>You</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a video clip</source> + <location line="+219"/> + <source>sent a file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a sticker</source> + <location line="+3"/> + <source>sent an image.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+2"/> - <source>%1 a notification</source> + <location line="+3"/> + <source>sent an audio file.</source> <translation type="unfinished"></translation> </message> <message> - <location line="+6"/> - <source>%1 an encrypted message</source> + <location line="+3"/> + <source>sent a video</source> <translation type="unfinished"></translation> </message> <message> - <location line="+3"/> + <location filename="../../src/Utils.h" line="-23"/> <source>Unknown Message Type</source> <translation type="unfinished"></translation> </message> diff --git a/src/Utils.h b/src/Utils.h index d2aa6d93..40906b6a 100644 --- a/src/Utils.h +++ b/src/Utils.h @@ -96,28 +96,28 @@ messageDescription(const QString &username = "", // Sometimes the verb form of sent changes in some languages depending on the actor. auto remoteSent = - QCoreApplication::translate("utils", "sent", "For when you are the sender"); + QCoreApplication::translate("message-description: ", "sent", "For when you are the sender"); auto localSent = - QCoreApplication::translate("utils", "sent", "For when someone else is the sender"); + QCoreApplication::translate("message-description:", "sent", "For when someone else is the sender"); QString sentVerb = isLocal ? localSent : remoteSent; if (std::is_same<T, AudioItem>::value || std::is_same<T, Audio>::value) { - return QCoreApplication::translate("utils", "%1 an audio clip").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 an audio clip").arg(sentVerb); } else if (std::is_same<T, ImageItem>::value || std::is_same<T, Image>::value) { - return QCoreApplication::translate("utils", "%1 an image").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 an image").arg(sentVerb); } else if (std::is_same<T, FileItem>::value || std::is_same<T, File>::value) { - return QCoreApplication::translate("utils", "%1 a file").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a file").arg(sentVerb); } else if (std::is_same<T, VideoItem>::value || std::is_same<T, Video>::value) { - return QCoreApplication::translate("utils", "%1 a video clip").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a video clip").arg(sentVerb); } else if (std::is_same<T, StickerItem>::value || std::is_same<T, Sticker>::value) { - return QCoreApplication::translate("utils", "%1 a sticker").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a sticker").arg(sentVerb); } else if (std::is_same<T, Notice>::value) { - return QCoreApplication::translate("utils", "%1 a notification").arg(sentVerb); + return QCoreApplication::translate("message-description sent:", "%1 a notification").arg(sentVerb); } else if (std::is_same<T, Text>::value) { return QString(": %1").arg(body); } else if (std::is_same<T, Emote>::value) { return QString("* %1 %2").arg(username).arg(body); } else if (std::is_same<T, Encrypted>::value) { - return QCoreApplication::translate("utils", "%1 an encrypted message") + return QCoreApplication::translate("message-description sent:", "%1 an encrypted message") .arg(sentVerb); } else { return QCoreApplication::translate("utils", "Unknown Message Type"); |