Skip to content

Commit c8187cf

Browse files
authored
Merge branch 'openmultiplayer:master' into translate/pt-br
2 parents 44bb888 + 58e1573 commit c8187cf

35 files changed

Lines changed: 958 additions & 60 deletions

frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/reference/12-Assorted-tips.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Listagem: declaração de variável char
126126
new a[40]
127127
```
128128

129-
que, é claro, declara 40 células, cada uma sendo capaz de armazenar 1 caractere não empacotado. Pegar um caractere empacotado do array também exigiria um pouco de código: você precisa saber em qual célula o caractere está, e em qual byte da célula específica. O operador de chaves, {}, encapsula esse cálculo. Para obter o n-ésimo caractere do array a, diga "a{n}".
129+
que, é claro, declara 40 células, cada uma sendo capaz de armazenar 1 caractere não empacotado. Pegar um caractere empacotado do array também exigiria um pouco de código: você precisa saber em qual célula o caractere está, e em qual byte da célula específica. O operador de chaves, {}, encapsula esse cálculo. Para obter o n-ésimo caractere do array a, diga `a{n}`.
130130

131131
Como corolário para usar char no tamanho do array, você também pode usar char no índice do array. Digamos que você queira declarar uma variável que contenha qualquer número não negativo até 100.000 e que você deseja armazenar essa variável em um arquivo. É mais fácil escrever a variável como uma string "empacotada" do que como um número binário (32 bits), porque ler de volta exige cuidado, já que o analisador de arquivo pode não usar os mesmos padrões de ordenação de bytes e tamanho de palavras. Então você pode querer analisar a variável em uma string, calcular o número de bytes que ela precisa e armazenar os bytes em um arquivo.
132132

@@ -249,7 +249,7 @@ para cada constante.
249249

250250
Para indexar o n-ésimo caractere em uma string não empacotada armazenada na variável
251251
msg, você usa a expressão "msg[n]". Para strings empacotadas, você usa
252-
"msg{n}". Portanto, operações em strings empacotadas diferem de operações em
252+
`msg{n}`. Portanto, operações em strings empacotadas diferem de operações em
253253
strings não empacotadas apenas no uso de chaves, em vez de colchetes; veja a página 110
254254
para informações adicionais.
255255

frontend/i18n/zh-CN/code.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@
178178
"animations.title": {
179179
"message": "open.mp动画预览器"
180180
},
181+
"animations.subtitle": {
182+
"message": "浏览并预览 open.mp 中所有可用的动画。"
183+
},
181184
"animations.library": {
182185
"message": "动作库:"
183186
},
@@ -268,6 +271,51 @@
268271
"serverInfo.lastUpdated": {
269272
"message": "{time}前更新"
270273
},
274+
"downloads.server.pageTitle": {
275+
"message": "open.mp 服务器"
276+
},
277+
"downloads.server.pageSubtitle": {
278+
"message": "托管你自己的《侠盗猎车手:圣安地列斯》多人联机服务器。"
279+
},
280+
"downloads.launcher.pageTitle": {
281+
"message": "open.mp 启动器"
282+
},
283+
"downloads.launcher.pageSubtitle": {
284+
"message": "在 open.mp 和 SA-MP 服务器上游玩《侠盗猎车手:圣安地列斯》多人联机。"
285+
},
286+
"downloads.latestBadge": {
287+
"message": "最新"
288+
},
289+
"downloads.releaseDate": {
290+
"message": "发布于 {date}"
291+
},
292+
"downloads.release.highlights": {
293+
"message": "亮点"
294+
},
295+
"downloads.release.viewChangelog": {
296+
"message": "查看完整更新日志"
297+
},
298+
"downloads.release.viewOnGitHub": {
299+
"message": "在 GitHub 上查看发布"
300+
},
301+
"downloads.release.github": {
302+
"message": "GitHub"
303+
},
304+
"downloads.showOlderReleases": {
305+
"message": "查看 {count} 个历史发布"
306+
},
307+
"downloads.hideOlderReleases": {
308+
"message": "隐藏历史发布"
309+
},
310+
"downloads.opensourceTrust": {
311+
"message": "所有发布均为开源。从源代码编译,或直接从 GitHub 下载。"
312+
},
313+
"downloads.downloadFromGithub": {
314+
"message": "从 GitHub 下载"
315+
},
316+
"downloads.release.dynSslNote": {
317+
"message": "* DynSSL 版本要求你的 Linux 发行版中已安装 libssl。"
318+
},
271319
"theme.footer.title.Documentations": {
272320
"message": "文档"
273321
},
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
tag: v0.0.1
3+
publishedAt: "2023-11-10T10:19:44Z"
4+
htmlUrl: https://github.com/openmultiplayer/launcher/releases/tag/v0.0.1
5+
assets:
6+
- label: "下载启动器 (.exe)"
7+
url: https://github.com/openmultiplayer/launcher/releases/download/v0.0.1/omp-launcher_0.0.1_x64-setup.exe
8+
size: "3.6 MB"
9+
---
10+
11+
## open.mp 启动器首次发布
12+
13+
请注意,你仍需安装 SA-MP 才可进行游戏。你可从 https://sa-mp.mp/downloads/ 安装 SA-MP,之后启动 open.mp 启动器,即可畅享一份实时、可靠、服务器众多的列表,从中找寻你心仪的任意服务器进行游玩!
14+
更多功能将在未来版本中陆续推出,并直接整合于启动器内。
15+
16+
## 安装指南
17+
18+
你可选择便携版本,亦可将其如常规应用程序般安装于你所指定的路径。若需便携版本,仅需下载 **omp-launcher.exe** 即可;其余两者为安装程序,任你择一使用。
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
tag: v1.0.0
3+
publishedAt: "2024-01-29T00:29:08Z"
4+
htmlUrl: https://github.com/openmultiplayer/launcher/releases/tag/v1.0.0
5+
highlights:
6+
- 启动器用户界面完全重新设计
7+
- 内置 SA-MP 安装/版本选择流程
8+
- 服务器列表浏览器中支持展示服务器横幅及 Discord 链接
9+
- 性能与资源占用优化,并新增多种语言支持
10+
assets:
11+
- label: "下载启动器 (.exe)"
12+
url: https://github.com/openmultiplayer/launcher/releases/download/v1.0.0/omp-launcher-setup.exe
13+
size: "3.9 MB"
14+
---
15+
16+
## 安装指南
17+
18+
直接运行 `omp-launcher.exe` 即可。
19+
20+
### 注意:
21+
22+
对于仍在使用旧版 Windows 10、Windows 8(.1) 或 Windows 7 的用户,如果你未安装 WebView2 运行时(该运行时在较新的 Windows 10 和 11 系统中已预装,并随 Microsoft Edge 一同提供),则必须通过发布页中的安装程序文件来安装此启动器。
23+
24+
## 变更内容
25+
26+
启动器新版 **v1.0.0** 现已发布。在此版本中,整个用户界面进行了重构(特别感谢 @continue2048 的参与和帮助)。我们进行了大量改进以提升性能、优化资源占用,旨在为你使用本启动器浏览服务器并加入心仪服务器时,提供最佳体验。
27+
28+
以下是 open.mp 启动器最新版本的新增功能与变化列表:
29+
30+
- **全新设计**
31+
- **SA-MP 安装**:无需再单独下载 SA-MP 了!现在你可以从版本列表中选择,或直接使用已安装于你游戏目录中的 SA-MP 版本。
32+
- **服务器横幅与 Discord 链接**:如果服务器支持,将在浏览器中展示 open.mp 服务器横幅及 Discord 邀请链接。
33+
- 可在设置中切换 Discord 状态显示。
34+
- 性能与资源占用优化。
35+
- 新增数十种语言支持。
36+
37+
**完整更新日志**https://github.com/openmultiplayer/launcher/compare/v0.0.1...v1.0.0
38+
39+
特别感谢 @continue98 在用户界面设计稿方面做出的贡献。
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
tag: v1.4.0
3+
publishedAt: "2024-08-18T09:04:32Z"
4+
htmlUrl: https://github.com/openmultiplayer/launcher/releases/tag/v1.4.0
5+
highlights:
6+
- 广泛的稳定性和性能改进
7+
- 支持命令行界面 (CLI) 及深度链接 URI 处理(`omp://` 和 `samp://`)
8+
- 首次集成 open.mp 客户端,并改进了版本选择功能
9+
- 采用仅 x86 (32位) 打包,降低了杀毒软件误报风险
10+
assets:
11+
- label: "下载启动器 (.exe)"
12+
url: https://github.com/openmultiplayer/launcher/releases/download/v1.4.0/omp-launcher-setup.exe
13+
size: "3.1 MB"
14+
---
15+
16+
## 变更内容
17+
18+
- 新增并修复了更多语言本地化。
19+
- 大量性能修复。
20+
- 支持命令行参数,使用 `--help` 查看更多信息。
21+
- 加入服务器提示时,会通过显示服务器图标和横幅来展示服务器档案。
22+
- Discord 状态现在会使用服务器图标。
23+
- 可能为所有人修复了 samp.dll 注入问题。
24+
- 首次加入了 open.mp 客户端(第一个变体)。
25+
- 改进了 SA-MP 版本选择功能。
26+
- 新增深度链接和 URI 方案 `omp://ip:port` 并接管 `samp://`
27+
- 处理 URI 方案。
28+
- 在 Discord 状态按钮中添加下载启动器并与朋友一起游玩的选项。
29+
- 完全转向 x86 (32位) 架构,以便我们无需为不同用户分发多个版本。
30+
- 不再使用 UPX 压缩以减少杀毒软件的误报。
31+
- 修复了当服务器先前被锁定并存储了密码时的密码问题。
32+
33+
## 新贡献者
34+
35+
- @Ykpauneuhttps://github.com/openmultiplayer/launcher/pull/94 首次贡献
36+
- @midosvthttps://github.com/openmultiplayer/launcher/pull/97 首次贡献
37+
- @coool9https://github.com/openmultiplayer/launcher/pull/111 首次贡献
38+
- @tnz1992https://github.com/openmultiplayer/launcher/pull/114 首次贡献
39+
- @aujiz11https://github.com/openmultiplayer/launcher/pull/115 首次贡献
40+
- @lahaine42https://github.com/openmultiplayer/launcher/pull/117 首次贡献
41+
- @karthigeniushttps://github.com/openmultiplayer/launcher/pull/159 首次贡献
42+
- @ulasbayraktarhttps://github.com/openmultiplayer/launcher/pull/133 首次贡献
43+
- @Tornamichttps://github.com/openmultiplayer/launcher/pull/176 首次贡献
44+
45+
**完整更新日志**: https://github.com/openmultiplayer/launcher/compare/v1.0.0...v1.4.0
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
tag: v1.5.2
3+
publishedAt: "2025-01-10T02:42:10Z"
4+
htmlUrl: https://github.com/openmultiplayer/launcher/releases/tag/v1.5.2
5+
highlights:
6+
- 为 open.mp 服务器新增客户端-服务器端加密通信
7+
- 客户端重大稳定性和崩溃修复
8+
- 改进与 CLEO 脚本及其他模组的兼容性
9+
- 提升 Windows 支持并移除遗留依赖项
10+
admonition:
11+
assets:
12+
- label: "下载启动器 (.exe)"
13+
url: https://github.com/openmultiplayer/launcher/releases/download/v1.5.2/omp-launcher-setup.exe
14+
size: "3.9 MB"
15+
---
16+
17+
## 变更内容
18+
19+
### 启动器变更
20+
21+
- 如果可能,尽早注入 samp
22+
- 修复服务器数据中波兰语文本的编码问题
23+
- 修复版本字符串被修改时的 omp 服务器检查
24+
- 移除手动“以管理员身份运行”的启动方式,仅为无法理解此操作的用户提供 GIF 文件说明
25+
- 将数据存储移回 `localStorage`,以解决数据偶尔重置的问题
26+
- 移除 Discord 状态实现,交由原生模组处理
27+
- 移除 UPX 的使用
28+
- 改进深度链接
29+
- 在“添加服务器”模态框的文本输入框中添加“复制到剪贴板”功能
30+
- 修复缺失 d3dx9_25.dll 的问题
31+
- 使用正确的快捷方式名称
32+
33+
### 客户端模组变更
34+
35+
- 新增服务器到客户端的加密通信(仅限 open.mp 服务器),以安全地与服务器通信并防范恶意数据包。
36+
- 为所有 SA-MP 版本重新实现客户端检查类型 69 和 5(这意味着 0.3.7 R1 玩家也能拥有此功能)。
37+
- 修复动画加载,服务器端不再进行动画预加载,现在首次尝试播放即可成功。
38+
- 修复 `RemoveBuildingForPlayer` 崩溃并移除其限制。
39+
- 修复当玩家使用吸烟特殊动作并按下鼠标左键(LMB)时的吸烟动画。
40+
- 移除 LV 和 LS 体育馆的地图图标和无用的检查点。
41+
- 修复玩家在安装了液压组件时按下 H 键导致车辆喇叭为其他玩家播放的问题。
42+
- 将截图数量上限从 1000 提高到 1,000,000。
43+
- 原生实现 Discord 状态并将其内置于客户端模组中。
44+
- 支持 1.0 EU 版本。
45+
- 修复游戏在较新 Windows 版本上运行时的鼠标问题。
46+
- 移除对 DirectPlay 的依赖。
47+
- 一个小的堆损坏修复。
48+
- 修复发生在地址 0x0040FB80 和 0x006F5636 的崩溃问题(禁用 data/Paths/tracks2.dat 和 data\Paths\tracks4.dat 的加载)。
49+
- 完全改变此模组挂钩函数的方式。
50+
- 修复与某些 CLEO4 脚本以及 CLEO5 和 CLEO Redux 的兼容性问题。
51+
- 修复与各种模组的兼容性问题。
52+
- 妥善修复名称缓冲区溢出导致的动画问题。
53+
54+
### 其他人的贡献
55+
56+
- A tiny correction in RU localization by @NexiusTailer in https://github.com/openmultiplayer/launcher/pull/195
57+
- Translation Update zh-TW.ts by @XiaoNiaoa in https://github.com/openmultiplayer/launcher/pull/198
58+
- Update Arabic localization by @RouatbiH in https://github.com/openmultiplayer/launcher/pull/192
59+
- Translation Update zh-CN.ts by @XiaoNiaoa in https://github.com/openmultiplayer/launcher/pull/197
60+
- Implement Serbian Translation by @Trysha-rbrn in https://github.com/openmultiplayer/launcher/pull/213
61+
- Update Italian translation by @ReshiramZekrom1 in https://github.com/openmultiplayer/launcher/pull/214
62+
- update Vietnamese translation by @aujiz11 in https://github.com/openmultiplayer/launcher/pull/217
63+
- Added Georgian language by @Lasho4 in https://github.com/openmultiplayer/launcher/pull/236
64+
- Update Portuguese (Brazil) Translation File Format and Keys by @itsneufox in https://github.com/openmultiplayer/launcher/pull/234
65+
- update polish translation by @mpudliszewski in https://github.com/openmultiplayer/launcher/pull/237
66+
- fix encoding for polish strings by @mpudliszewski in https://github.com/openmultiplayer/launcher/pull/238
67+
- Check for `allowed_clients` rule instead of `allow_DL` to determine if server is open.mp by @xunder-matth in https://github.com/openmultiplayer/launcher/pull/253
68+
- Fixed missing password option in cli by @znemoe in https://github.com/openmultiplayer/launcher/pull/267
69+
- Add settings_advanced_discord_status_requires_restart key to PT translation by @itsneufox in https://github.com/openmultiplayer/launcher/pull/272
70+
71+
## 新贡献者
72+
73+
- @XiaoNiaoahttps://github.com/openmultiplayer/launcher/pull/198 首次贡献
74+
- @Trysha-rbrnhttps://github.com/openmultiplayer/launcher/pull/213 首次贡献
75+
- @Lasho4https://github.com/openmultiplayer/launcher/pull/236 首次贡献
76+
- @itsneufoxhttps://github.com/openmultiplayer/launcher/pull/234 首次贡献
77+
- @mpudliszewskihttps://github.com/openmultiplayer/launcher/pull/237 首次贡献
78+
- @xunder-matthhttps://github.com/openmultiplayer/launcher/pull/253 首次贡献
79+
- @znemoehttps://github.com/openmultiplayer/launcher/pull/267 首次贡献
80+
81+
**完整更新日志**: https://github.com/openmultiplayer/launcher/compare/v1.4.0...v1.5.2

0 commit comments

Comments
 (0)