Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate custom buttons #5

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Manual/publish/skins/Charcoal_Grey/html5.skn
Original file line number Diff line number Diff line change
Expand Up @@ -136,31 +136,31 @@
<image>expand_all.svg</image>
<name>Expand/Collapse All</name>
<onclick>rh.model.publish(rh.consts(&#39;EVT_EXPAND_COLLAPSE_ALL&#39;));return false;</onclick>
<title>Expand/Collapse All</title>
<title>すべてを展開/折りたたむ</title>
<id>0</id>
<key>41076</key>
</custom_buttonsitem>
<custom_buttonsitem>
<image>removesearch_mark.svg</image>
<name>RemoveHighlight</name>
<onclick>rh.model.publish(rh.consts(&#39;EVT_REMOVE_HIGHLIGHT&#39;));return false;</onclick>
<title>Remove Highlight</title>
<title>ハイライトの削除</title>
<id>1</id>
<key>41077</key>
</custom_buttonsitem>
<custom_buttonsitem>
<image>print_desktop.png</image>
<name>Print</name>
<onclick>rh.model.publish(rh.consts(&#39;EVT_PRINT_TOPIC&#39;));return false;</onclick>
<title>Print</title>
<title>印刷する</title>
<id>2</id>
<key>41078</key>
</custom_buttonsitem>
<custom_buttonsitem>
<name>ReportaBug</name>
<id>3</id>
<key>41079</key>
<title>Report a Problem</title>
<title>問題を報告する</title>
<href>https://github.com/YoYoGames/GameMaker-Bugs/issues/new?assignees=&amp;labels=docs-bug&amp;projects=&amp;template=docs_bug_report.yml</href>
<image>bug-report-final.png</image>
</custom_buttonsitem>
Expand All @@ -170,7 +170,7 @@
<key>41080</key>
<image>go-to-page.png</image>
<selected_image>go-to-page.png</selected_image>
<title>Go To GitHub File (There may be newer changes in the source file)</title>
<title>GitHubファイルへ (ソースファイルに新しい変更があるかもしれません)</title>
<onclick>let local = (location.hostname === &#39;localhost&#39; || location.hostname === &#39;127.0.0.1&#39;); let curl = window.location.href; let parts = curl.split(&#39;/&#39;); let version = parts[3]; let lang = parts[4]; if (lang==&#39;br&#39;) lang=&#39;pt-br&#39;; let repo = &#39;GameMaker-Manual&#39;; if (!local &amp;&amp; lang != &#39;en&#39;) repo = repo + &#39;-&#39; + lang; let branch = (!local &amp;&amp; version==&#39;lts&#39;) ? &#39;main-lts&#39; : &#39;develop&#39;; let match = (local ? /https?:\/\/.*:[0-9]+|https?:\/\/localhost\// : /https:\/\/manual\.gamemaker\.io\/[a-zA-Z]+\/[a-zA-Z]+\//).exec(curl); let path = curl.replace(match[0], &#39;&#39;).replace(&#39;index.htm?#t=&#39;, &#39;&#39;).replace(&#39;index.htm#t=&#39;, &#39;&#39;).replace(&#39;#t=&#39;, &#39;&#39;).replace(&#39;%2F&#39;, &#39;/&#39;).split(&#39;%23&#39;)[0]; path = `https://github.com/YoYoGames/${repo}/tree/${branch}/Manual/contents/${path}`; window.open(path, &#39;_blank&#39;).focus();</onclick>
</custom_buttonsitem>
</custom_buttons>
Expand Down
Loading