https://git.reactos.org/?p=reactos.git;a=commitdiff;h=824b190a5b88c26f226b9…
commit 824b190a5b88c26f226b94b02b5acda8c203c057
Author: Jose Carlos Jesus <zecarlos1957(a)hotmail.com>
AuthorDate: Sat Aug 31 06:50:19 2024 -0400
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Aug 31 13:50:19 2024 +0300
[BROWSEUI] Improve Portuguese (pt-PT) translation (#7232)
- Fix typos and improve pt-PT translation.
- Add file header.
---
dll/win32/browseui/lang/pt-PT.rc | 36 +++++++++++++++++++++---------------
1 file changed, 21 insertions(+), 15 deletions(-)
diff --git a/dll/win32/browseui/lang/pt-PT.rc b/dll/win32/browseui/lang/pt-PT.rc
index 961b84e66a9..2e1cd2c708a 100644
--- a/dll/win32/browseui/lang/pt-PT.rc
+++ b/dll/win32/browseui/lang/pt-PT.rc
@@ -1,4 +1,10 @@
-/* Brazilian Portuguese translation by Edison Henrique Andreassy (ehasis(a)hotmail.com) */
+/*
+ * PROJECT: ReactOS Win32 BrowseUI
+ * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
+ * PURPOSE: Portuguese (Portugal) resource file
+ * TRANSLATORS: Copyright 2019-2024 Jose Carlos Jesus <zecarlos1957(a)hotmail.com>
+ * Copyright 2021 Gabriel Aguiar <fgsoftwarestudio(a)gmail.com>
+ */
LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
@@ -10,7 +16,7 @@ BEGIN
BEGIN
MENUITEM "&Botões padrão", IDM_TOOLBARS_STANDARDBUTTONS, MFT_STRING, MFS_ENABLED
MENUITEM "Barra de &endereços", IDM_TOOLBARS_ADDRESSBAR, MFT_STRING, MFS_ENABLED
- MENUITEM "&Links", IDM_TOOLBARS_LINKSBAR, MFT_STRING, MFS_ENABLED
+ MENUITEM "&Hiperligações", IDM_TOOLBARS_LINKSBAR, MFT_STRING, MFS_ENABLED
MENUITEM "", -1, MFT_SEPARATOR
MENUITEM "Bloquear barra de &ferramentas", IDM_TOOLBARS_LOCKTOOLBARS, MFT_STRING, MFS_ENABLED
MENUITEM "Per&sonalizar...", IDM_TOOLBARS_CUSTOMIZE, MFT_STRING, MFS_ENABLED
@@ -68,7 +74,7 @@ BEGIN
BEGIN
MENUITEM "&Mapear unidades de rede...", IDM_TOOLS_MAPNETWORKDRIVE
MENUITEM "&Desligar unidade de rede...", IDM_TOOLS_DISCONNECTNETWORKDRIVE
- MENUITEM "&Sincrinizar...", IDM_TOOLS_SYNCHRONIZE
+ MENUITEM "&Sincronizar...", IDM_TOOLS_SYNCHRONIZE
MENUITEM "", -1, MFT_SEPARATOR
MENUITEM "&Opções de pasta...", IDM_TOOLS_FOLDEROPTIONS
END
@@ -101,8 +107,8 @@ BEGIN
BEGIN
POPUP "&Vista", IDM_VIEW_MENU
BEGIN
- MENUITEM "Icones &grandes", IDM_LARGE_ICONS
- MENUITEM "Icones &pequenos", IDM_SMALL_ICONS
+ MENUITEM "Ícones &grandes", IDM_LARGE_ICONS
+ MENUITEM "Ícones &pequenos", IDM_SMALL_ICONS
END
MENUITEM "&Abrir pasta", IDM_OPEN_FOLDER
MENUITEM "&Mostrar texto", IDM_SHOW_TEXT
@@ -140,7 +146,7 @@ FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "Procurar por um dos seguintes critérios.", IDC_SEARCH_LABEL, 4, 2, 120, 20
- LTEXT "A totalidade &ou parte do nome de ficheiro:", -1, 10, 25, 500, 10
+ LTEXT "A totalidade &ou parte do nome do ficheiro:", -1, 10, 25, 500, 10
EDITTEXT IDC_SEARCH_FILENAME, 10, 35, 100, 12, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP
LTEXT "&Uma palavra ou frase no ficheiro:", -1, 10, 50, 500, 10
@@ -226,7 +232,7 @@ END
STRINGTABLE
BEGIN
9250 "Mostra informações sobre o programa, o número da versão e os direitos autorais."
- 9252 "Mostra infomrações para depuração."
+ 9252 "Mostra informações para depuração."
END
STRINGTABLE
@@ -245,12 +251,12 @@ END
STRINGTABLE
BEGIN
- 9505 "Mostra ou oculta barras de ferramentas."
- 9506 "Mostra ou oculta barra de status."
+ 9505 "Mostra ou oculta as barras de ferramentas."
+ 9506 "Mostra ou oculta a barra de estado."
9508 "Mostra os botões padrão da barra de ferramentas."
9509 "Mostra a barra de endereços."
- 9510 "Mostra a barra de ferramentas 'Links rápidos'."
- 9516 "Bloqueia tamanhos e posições de barras das ferramentas."
+ 9510 "Mostra a barra de ferramentas 'Hiperligações'."
+ 9516 "Bloqueia tamanhos e posições das barras de ferramentas."
END
STRINGTABLE
@@ -260,12 +266,12 @@ END
STRINGTABLE
BEGIN
- 9552 "Mostra ou oculta uma barra do Explorer."
+ 9552 "Mostra ou oculta uma barra do Explorador."
9553 "Mostra a barra de pesquisa."
9554 "Mostra a barra 'Favoritos'."
9555 "Mostra a barra do histórico."
9557 "Mostra a barra de pastas."
- 9559 "Mostra a barra de media."
+ 9559 "Mostra a barra de média."
END
STRINGTABLE
@@ -295,7 +301,7 @@ END
STRINGTABLE
BEGIN
- IDS_ADDRESSMENUTEXT "&Address"
+ IDS_ADDRESSMENUTEXT "E&ndereço"
IDS_HISTORYTEXT "&Histórico\tCtrl+H"
END
@@ -313,7 +319,7 @@ END
STRINGTABLE
BEGIN
- IDS_STANDARD_TOOLBAR, "|Voltar|Avançar|Acima|Pesquisar|Pastas|Mover para|Copiar para|Excluir|Desfazer|Modos de exibição|Parar|Actualizar|Página inicial|Mapear unidade|Desconectar|Favoritos|Histórico|Ecrã inteiro|Propriedades|Recortar|Copiar|Colar|Opções de pasta||"
+ IDS_STANDARD_TOOLBAR, "|Voltar|Avançar|Acima|Pesquisar|Pastas|Mover para|Copiar para|Excluir|Retroceder|Modos de exibição|Parar|Actualizar|Página inicial|Mapear unidade|Desconectar|Favoritos|Histórico|Ecrã inteiro|Propriedades|Recortar|Copiar|Colar|Opções de pasta||"
END
STRINGTABLE
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f80d978fc039ceb1bc070…
commit f80d978fc039ceb1bc070d6e8a5b6eca5abe2f13
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Thu Aug 29 20:57:30 2024 +0300
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Fri Aug 30 06:29:13 2024 +0300
[CRT] Fix link issues with __ftol2 when compiling for NT6
__ftol2 is exported from msvcrt on NT6+, not from ntdll for some reason. So native apps still need to statically link _ftol2 and _ftoul2_legacy, but apps linking to msvcrt only need to statically link _ftoul2_legacy (via msvcrtex), when on NT6+.
---
sdk/lib/crt/CMakeLists.txt | 1 +
sdk/lib/crt/math/i386/ftol2_asm.s | 66 ++--------------------
.../math/i386/{ftol2_asm.s => ftoul2_legacy_asm.s} | 15 +----
sdk/lib/crt/math/math.cmake | 1 +
sdk/lib/crt/msvcrtex.cmake | 3 +-
5 files changed, 12 insertions(+), 74 deletions(-)
diff --git a/sdk/lib/crt/CMakeLists.txt b/sdk/lib/crt/CMakeLists.txt
index 6c38c518e56..740b9aec154 100644
--- a/sdk/lib/crt/CMakeLists.txt
+++ b/sdk/lib/crt/CMakeLists.txt
@@ -49,6 +49,7 @@ target_compile_definitions(user32_wsprintf PRIVATE _USER32_WSPRINTF)
if(MSVC AND ARCH STREQUAL "i386")
add_asm_files(ftol2_asm
math/i386/ftol2_asm.s
+ math/i386/ftoul2_legacy_asm.s
)
add_library(ftol2 ${ftol2_asm})
set_target_properties(ftol2 PROPERTIES LINKER_LANGUAGE "C")
diff --git a/sdk/lib/crt/math/i386/ftol2_asm.s b/sdk/lib/crt/math/i386/ftol2_asm.s
index a15a7031abc..974d6f5a468 100644
--- a/sdk/lib/crt/math/i386/ftol2_asm.s
+++ b/sdk/lib/crt/math/i386/ftol2_asm.s
@@ -1,8 +1,10 @@
/*
- * PROJECT: ReactOS CRT
- * LICENSE: MIT (https://spdx.org/licenses/MIT)
- * PURPOSE: Floating point conversion routines
- * COPYRIGHT: Copyright 2024 Timo Kreuzer <timo.kreuzer(a)reactos.org>
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS kernel
+ * PURPOSE: Run-Time Library
+ * FILE: lib/sdk/crt/math/i386/ftol2_asm.s
+ * PROGRAMER:
+ *
*/
#include <asm.inc>
@@ -10,7 +12,6 @@
EXTERN __ftol:PROC
PUBLIC __ftol2
PUBLIC __ftol2_sse
-PUBLIC __ftoul2_legacy
/* FUNCTIONS ***************************************************************/
.code
@@ -24,59 +25,4 @@ __ftol2:
__ftol2_sse:
jmp __ftol
-__real@43e0000000000000:
- .quad HEX(43e0000000000000)
-
-__ftoul2_legacy:
-
- /* Compare the fp number, passed in st(0), against (LLONG_MAX + 1)
- aka 9223372036854775808.0 (which is 0x43e0000000000000 in double format).
- If it is smaller, it fits into an __int64, so we can pass it to _ftol2.
- After this the original fp value has moved to st(1) */
- fld qword ptr [__real@43e0000000000000]
- fcom
-
- /* Put the comparison result bits into ax */
- fnstsw ax
-
- /* Here we test the bits for c0 (0x01) and c3 (0x40).
- We check the parity bit after the test. If it is set,
- an even number of bits were set.
- If both are 0, st(1) < st(0), i.e. our value is ok.
- If both are 1, the value is NaN/Inf and we let _ftol2 handle it. */
- test ah, HEX(41)
- jnp __ftoul2_legacy2
-
- /* Clean up the fp stack and forward to _ftol2 */
- fstp st(0)
- jmp __ftol2
-
-__ftoul2_legacy2:
-
- /* Subtract (LLONG_MAX + 1) from the given fp value and put the result in st(1).
- st(0) = 9223372036854775808.0
- st(1) = original fp value - 9223372036854775808.0 */
- fsub st(1), st(0)
-
- /* Compare the result to (LLONG_MAX + 1) again and pop the fp stack.
- Here we check, whether c0 and c3 are both 0, indicating that st(0) > st(1),
- i.e. fp - (LLONG_MAX + 1) < (LLONG_MAX + 1) */
- fcomp
- fnstsw ax
- test ah, HEX(41)
- jnz __ftoul2_legacy3
-
- /* We have established that fp - (LLONG_MAX + 1) fits into an __int64,
- so pass that to _ftol2 and manually add the difference to the result */
- call __ftol2
- add edx, HEX(80000000)
- ret
-
-__ftoul2_legacy3:
-
- /* The value is too large, just return the error value */
- xor eax, eax
- mov edx, HEX(80000000)
- ret
-
END
diff --git a/sdk/lib/crt/math/i386/ftol2_asm.s b/sdk/lib/crt/math/i386/ftoul2_legacy_asm.s
similarity index 87%
copy from sdk/lib/crt/math/i386/ftol2_asm.s
copy to sdk/lib/crt/math/i386/ftoul2_legacy_asm.s
index a15a7031abc..432d95435f1 100644
--- a/sdk/lib/crt/math/i386/ftol2_asm.s
+++ b/sdk/lib/crt/math/i386/ftoul2_legacy_asm.s
@@ -7,26 +7,15 @@
#include <asm.inc>
-EXTERN __ftol:PROC
-PUBLIC __ftol2
-PUBLIC __ftol2_sse
-PUBLIC __ftoul2_legacy
+EXTERN __ftol2:PROC
/* FUNCTIONS ***************************************************************/
.code
-/*
- * This routine is called by MSVC-generated code to convert from floating point
- * to integer representation. The floating point number to be converted is
- * on the top of the floating point stack.
- */
-__ftol2:
-__ftol2_sse:
- jmp __ftol
-
__real@43e0000000000000:
.quad HEX(43e0000000000000)
+PUBLIC __ftoul2_legacy
__ftoul2_legacy:
/* Compare the fp number, passed in st(0), against (LLONG_MAX + 1)
diff --git a/sdk/lib/crt/math/math.cmake b/sdk/lib/crt/math/math.cmake
index 5821259646a..3a6c69995b5 100644
--- a/sdk/lib/crt/math/math.cmake
+++ b/sdk/lib/crt/math/math.cmake
@@ -40,6 +40,7 @@ if(ARCH STREQUAL "i386")
math/i386/floor_asm.s
math/i386/ftol_asm.s
math/i386/ftol2_asm.s
+ math/i386/ftoul2_legacy_asm.s
math/i386/log_asm.s
math/i386/log10_asm.s
math/i386/pow_asm.s
diff --git a/sdk/lib/crt/msvcrtex.cmake b/sdk/lib/crt/msvcrtex.cmake
index 6377cfa688b..232f7bda6bd 100644
--- a/sdk/lib/crt/msvcrtex.cmake
+++ b/sdk/lib/crt/msvcrtex.cmake
@@ -47,7 +47,8 @@ if(ARCH STREQUAL "i386")
endif()
if(MSVC AND DLL_EXPORT_VERSION LESS 0x600)
list(APPEND MSVCRTEX_ASM_SOURCE
- except/i386/__CxxFrameHandler3.s)
+ except/i386/__CxxFrameHandler3.s
+ math/i386/ftoul2_legacy_asm.s)
list(APPEND MSVCRTEX_SOURCE
except/i386/CxxHandleV8Frame.c)
endif()