Skip to content

Commit

Permalink
Translations refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Feb 23, 2024
1 parent 973d562 commit 5ea493b
Show file tree
Hide file tree
Showing 26 changed files with 2,641 additions and 448 deletions.
6 changes: 6 additions & 0 deletions Editor/editing/_scenes/level/itemmsgbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,12 @@ void ItemMsgBox::updateDialogueSize(bool showPreview)
QRect self = this->geometry();
QRect selfL = ui->dialogueLayout->geometry();

QString buttonText = tr("Preview", "The text on the switch button");

if(showPreview)
{
ui->previewShow->setText(QString("%1 <<").arg(buttonText));

ui->previewArea->setVisible(showPreview);
qApp->processEvents(QEventLoop::ExcludeUserInputEvents|QEventLoop::ExcludeSocketNotifiers);
QSize area = ui->previewArea->size();
Expand All @@ -151,6 +155,8 @@ void ItemMsgBox::updateDialogueSize(bool showPreview)
}
else
{
ui->previewShow->setText(QString("%1 >>").arg(buttonText));

QSize area = ui->previewArea->size();
ui->previewArea->setVisible(showPreview);
this->update();
Expand Down
6 changes: 2 additions & 4 deletions Editor/editing/_scenes/level/itemmsgbox.ui
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
<item row="5" column="0" colspan="2">
<widget class="QPlainTextEdit" name="msgTextBox">
<property name="whatsThis">
<string>This is a message, what will be displayed if player will do talk with this NPC or will be requested by the event.

Note: All quotes and new-line characters will be removed.</string>
<string>This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered.</string>
</property>
<property name="frameShape">
<enum>QFrame::WinPanel</enum>
Expand Down Expand Up @@ -223,7 +221,7 @@ depending on which playable character is used.</string>
<string>Show/Hide the message box preview area</string>
</property>
<property name="text">
<string>Preview &gt;&gt;</string>
<string notr="true">Preview [text in the code]</string>
</property>
<property name="checkable">
<bool>true</bool>
Expand Down
118 changes: 101 additions & 17 deletions Editor/languages/editor_bg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1659,12 +1659,6 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec
<source>Please enter the name of event:</source>
<translation>Моля, въведете името на събитието:</translation>
</message>
<message>
<source>Please enter the message which will be shown.
(Max line length is 27 characters)</source>
<translation>Моля, въведете съобщението, което ще бъде показано.
(Максималната дължина на реда е 27 знака)</translation>
</message>
<message>
<source>Hit message text</source>
<translation>Текст на съобщението при удар</translation>
Expand Down Expand Up @@ -1693,6 +1687,10 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec
<source>Array-ID: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Please enter the message text that which will be shown:</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ItemBoxListModel</name>
Expand Down Expand Up @@ -1939,16 +1937,103 @@ as well as toolboxes in toolbars and menus. This editor also allows you to selec
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This is a message, what will be displayed if player will do talk with this NPC.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Note:&lt;/span&gt; All quotes and new-line characters will be removed.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&lt;p&gt;Това е съобщението, което ще се покаже, ако играчът разговаря с това NPC.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;&quot;&gt;Забележка:&lt;/span&gt; Всички кавички и знаци за нов ред ще бъдат премахнати.&lt;/p&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;</translation>
</message>
<message>
<source>Enter the NPC&apos;s dialog message:
(Max length per line is 27 characters)</source>
<translation>Въведете диалоговото съобщение на NPC:
(Максималната дължина на един ред е 27 знака)</translation>
</message>
<message>
<source>Friendly (Non-friendly NPCs can&apos;t be talked to)</source>
<translation>Приятелски (с неприятелски NPC не може да се разговаря)</translation>
</message>
<message>
<source>Preview settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Font size:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Defines the size of the font in this preview.

This field does NOT affects the result shown in the game itself,
it&apos;s only used for the preview convenience in this dialogue.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Preprocessor is the sepecial feature of TheXTech engine since the version 1.3.6.1 which allows
you to make the message box being different depending on various factors, for example,
depending on which playable character is used.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Preprocessor</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Player number:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>State number</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Show/Hide the message box preview area</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Enter the NPC&apos;s dialogue message text:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Target engine:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This field allows you to preview the message box like it shown in different engines
that has different behaviour of the message box displaying:

- The SMBX 1.3 / X2 doesn&apos;t support line break characters at all. Characters of line break
gets printed as spaces. Additionally, SMBX 1.3 does NOT support non-ASCII characters
that gets printed as spaces. Too long words never gets broken and they gets printed
out of the dialogue box area.

- The Moondust / TheXTech has a full support for line breaks as well as unicode
characters. Too long words gets broken and they will never go out of the dialogue
box area.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The basic message box of &lt;b&gt;SMBX 1.3 / X2&lt;/b&gt; has the next restrictions:
&lt;ul&gt;
&lt;li&gt;New line &lt;b&gt;CAN NOT be done via the &quot;Return&quot;/&quot;Enter&quot; key&lt;/b&gt;&lt;br/&gt;
(you should use spaces as a workaround).&lt;li&gt;
&lt;li&gt;Line breaks happen automatically after &lt;b&gt;27 characters&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Very long words doesn&apos;t breaks and gets printed out of screen.&lt;br/&gt;
So, please break these words to avoid this.&lt;/li&gt;
&lt;li&gt;You can&apos;t use any Unicode characters: &lt;b&gt;ASCII only&lt;/b&gt; works.&lt;/li&gt;
&lt;/ul&gt;</source>
<comment>Message box behaviour explanation</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>The message box of &lt;b&gt;Moondust / TheXTech&lt;/b&gt; has the next restrictions:
&lt;ul&gt;
&lt;li&gt;New line &lt;b&gt;CAN be done by &quot;Return&quot;/&quot;Enter&quot; key&lt;/b&gt; easily.&lt;/li&gt;
&lt;li&gt;Line breaks also happen automatically after &lt;b&gt;27 characters&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Very long words gets broken forcibly.&lt;/li&gt;
&lt;li&gt;You can use &lt;b&gt;any Unicode&lt;/b&gt; characters.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Preprocessor&apos;s macros&lt;/b&gt; can be used.&lt;/li&gt;
&lt;/ul&gt;</source>
<comment>Message box behaviour explanation</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>Preview</source>
<comment>The text on the switch button</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>This is a text of the message that will be shown when the player tries to talk to the NPC, or when an event with a non-empty message text is triggered.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ItemMusic</name>
Expand Down Expand Up @@ -3507,11 +3592,6 @@ Do you want to continue?</source>
<source>Please, set current section to %1 for capture data for this event</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Please, enter message
(Max line length is 27 characters)</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Autoscroll section (Legacy)</source>
<translation type="unfinished"></translation>
Expand Down Expand Up @@ -3548,6 +3628,10 @@ Do you want to continue?</source>
<source>Disabled by the strict SMBX64 mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Please, enter the message box text:</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>LvlHistoryManager</name>
Expand Down
Loading

0 comments on commit 5ea493b

Please sign in to comment.