Skip to content

Commit

Permalink
Merge branch 'main' into Misleading-update-tooltip-filips123#575
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirPozdnyakov committed Jan 15, 2025
2 parents d179291 + 2aaeac7 commit 538c97f
Show file tree
Hide file tree
Showing 22 changed files with 1,184 additions and 1,318 deletions.
8 changes: 0 additions & 8 deletions extension/src/_locales/id/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,5 @@
"instructionsPageInstallNpackdStep2": {
"message": "Instal paketnya menggunakan ncl:",
"description": "The step 2 of the Npackd installation option"
},
"instructionsPageLinuxAurInstallSource": {
"message": "sumber",
"description": "The source AUR package"
},
"instructionsPageLinuxAurInstallPreBuilt": {
"message": "pra-muat",
"description": "The pre-built AUR package"
}
}
12 changes: 0 additions & 12 deletions extension/src/_locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -423,18 +423,6 @@
"message": "このプロジェクトのスポンサーであり、DEBとRPMパッケージのホスティングを無料で提供してくださった packagecloud.io に感謝します!",
"description": "A message that thanks packagecloud.io for sponsoring the project"
},
"instructionsPageLinuxAurInstallStep1": {
"message": "PWAsForFirefox AUR パッケージのいずれかをダウンロードし、インストールします:",
"description": "The step 1 of the Linux AUR installation option"
},
"instructionsPageLinuxAurInstallSource": {
"message": "ソース",
"description": "The source AUR package"
},
"instructionsPageLinuxAurInstallPreBuilt": {
"message": "プレビルド済み",
"description": "The pre-built AUR package"
},
"instructionsPageMacOSInstallStep1": {
"message": "<a href=\"https://brew.sh/\" target=\"_blank\">Homebrew</a> がインストールされていることを確認してください。",
"description": "The step 1 of the macOS installation option"
Expand Down
2,194 changes: 1,097 additions & 1,097 deletions extension/src/_locales/pt-BR/messages.json

Large diffs are not rendered by default.

84 changes: 31 additions & 53 deletions extension/src/_locales/ru/messages.json

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions extension/src/_locales/zh-CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,6 @@
"message": "若要手动安装该程序:",
"description": "The title of the manual MSI installation option"
},
"instructionsPageLinuxAurInstallSource": {
"message": "源代码",
"description": "The source AUR package"
},
"instructionsPageLinuxAurInstallPreBuilt": {
"message": "预构建版本",
"description": "The pre-built AUR package"
},
"installPageTitle": {
"message": "安装此网页应用",
"description": "The title of the install web app page"
Expand Down
8 changes: 0 additions & 8 deletions extension/src/_locales/zh-TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,6 @@
"message": "若要手動下載該程式:",
"description": "The title of the manual MSI installation option"
},
"instructionsPageLinuxAurInstallSource": {
"message": "來源碼",
"description": "The source AUR package"
},
"instructionsPageLinuxAurInstallPreBuilt": {
"message": "預搆建版本",
"description": "The pre-built AUR package"
},
"installPageTitle": {
"message": "下載此網頁應用",
"description": "The title of the install web app page"
Expand Down
21 changes: 21 additions & 0 deletions native/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ lto = true

[features]
portable = ["dep:phf"]
static = ["reqwest/native-tls-vendored", "bzip2/static"]
static = ["reqwest/native-tls-vendored", "bzip2/static", "xz2/static"]
immutable-runtime = []
linked-runtime = ["dep:blake3"]

Expand Down Expand Up @@ -81,6 +81,7 @@ blake3 = { version = "1.5.5", optional = true }

[target.'cfg(target_os = "linux")'.dependencies]
bzip2 = "0.5.0"
xz2 = "0.1.7"
tar = "0.4.43"

[target.'cfg(target_os = "macos")'.dependencies]
Expand Down
5 changes: 3 additions & 2 deletions native/packages/gentoo/firefoxpwa.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"
IUSE="custom-cflags lto static"

# Add app-arch/bzip2 when it finally get pkg-config file
DEPEND="
!static? (
app-arch/zstd:=
app-arch/bzip2:=
app-arch/xz-utils:=
dev-libs/openssl:=
)
"
Expand Down Expand Up @@ -75,7 +76,7 @@ src_configure() {
CXX="${CHOST}-clang++"
RUSTFLAGS="-Clinker=clang -Clink-arg=-fuse-ld=lld ${RUSTFLAGS}"

# Fix -flto[=n] not being recognized by clang.
# Fix -flto[=n] not being recognized by clang
if tc-is-clang && is-flag "-flto=*"; then
replace-flags "-flto=*" "-flto"
fi
Expand Down
27 changes: 24 additions & 3 deletions native/src/components/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,29 +288,50 @@ impl Runtime {
let _7zip = _7Zip::new()?;
let success = _7zip.run(vec!["x", &archive, &format!("-o{}", &extracted)]).context(EXTRACT_ERROR)?.success();
if !success { bail!(EXTRACT_ERROR) }

source.push("core");

} else if #[cfg(platform_linux)] {
use anyhow::bail;
use std::fs::File;
use std::io::Read;
use std::io::Seek;
use std::io::SeekFrom;
use bzip2::read::BzDecoder;
use xz2::read::XzDecoder;
use tar::Archive;

let mut compressed = Archive::new(BzDecoder::new(File::open(&archive)?));
compressed.unpack(&extracted).context(EXTRACT_ERROR)?;
let mut file = File::open(&archive).context(EXTRACT_ERROR)?;
let mut buffer = [0; 3];
file.read_exact(&mut buffer)?;
file.seek(SeekFrom::Start(0))?;

let compressed: Box<dyn std::io::Read> = match &buffer {
b"\x42\x5A\x68" => Box::new(BzDecoder::new(file)),
b"\xFD\x37\x7A" => Box::new(XzDecoder::new(file)),
_ => bail!("Unsupported compression method"),
};

let mut bundle = Archive::new(compressed);
bundle.unpack(&extracted).context(EXTRACT_ERROR)?;

source.push("firefox");

} else if #[cfg(platform_macos)] {
use dmg::Attach;

let info = Attach::new(&archive).with().context(EXTRACT_ERROR)?;
let mut options = CopyOptions::new();
let mut mount_point = info.mount_point.clone();

mount_point.push("Firefox.app");
source.push("Firefox.app");

let mut options = CopyOptions::new();
options.content_only = true;
copy(&mount_point, &source, &options)?;

source.pop();

} else {
panic!("{}", UNSUPPORTED_PLATFORM_ERROR);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ toolbar-tabs-ffpwa =
.toolbarname = Barra de abas
.aria-label = Abas
.accesskey = A
# The label for the tabs/icon bar, when the tabs mode is disabled
toolbar-icon-ffpwa =
.toolbarname = Barra de ícones
.aria-label = ícones
.accesskey = I
.aria-label = Ícones
.accesskey = Í
## Popup inputs should be translated in imperative mood, without any end punctuation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,21 @@
context-menu-image-view-current-tab =
.label = Abrir Imagem
.accesskey = { main-context-menu-image-view-new-tab.accesskey }
context-menu-image-view-new-tab =
.label = { main-context-menu-image-view-new-tab.label }
.accesskey = { main-context-menu-image-view-new-tab.accesskey }
context-menu-image-view-new-window =
.label = Abrir imagem em nova janela
.accesskey = { main-context-menu-image-view-new-tab.accesskey }
context-menu-video-view-current-tab =
.label = Abrir vídeo
.accesskey = { main-context-menu-video-view-new-tab.accesskey }
context-menu-video-view-new-tab =
.label = { main-context-menu-video-view-new-tab.label }
.accesskey = { main-context-menu-video-view-new-tab.accesskey }
context-menu-video-view-new-window =
.label = Abrir vídeo em uma nova janela
.accesskey = { main-context-menu-video-view-new-tab.accesskey }
context-menu-open-link-default-browser =
.label = Abrir link no navegador padrão
.accesskey = P
Original file line number Diff line number Diff line change
Expand Up @@ -7,81 +7,64 @@ firefoxpwa-group-note = Pode ser necessário reiniciar o navegador para aplicar

sites-set-theme-color =
.label = Permitir que aplicativos da web substituam uma cor de tema (barra de título)
sites-set-background-color =
.label = Permitir que aplicativos da web substituam uma cor de fundo (janela)
dynamic-theme-color =
.label = Permitir que aplicativos da web alterem dinamicamente a cor de um tema
## Titlebar Preferences

dynamic-window-title =
.label = Alterar o título da janela com base no título do aplicativo da web
dynamic-window-icon =
.label = Alterar o ícone da janela com base no ícone do aplicativo da web
native-window-controls =
.label = Sempre use controles de janela nativos
## User Experience Preferences

open-out-of-scope-in-default-browser =
.label = Abra URLs fora do escopo em um navegador padrão (pode quebrar alguns aplicativos da web)
enable-tabs-mode =
.label = Mostrar abas do navegador e habilitar o uso de aplicativos da web com várias abas
## Links Target Preference

links-target-description = Ao abrir um link que normalmente deveria abrir em uma nova janela ou aba
links-target-choice-current-tab =
.label = Forçar links na aba atual
links-target-choice-new-tab =
.label = Forçar links em uma nova aba
links-target-choice-new-window =
.label = Forçar links para uma nova janela
links-target-choice-keep =
.label = Não altere o comportamento do link
## Launch Type Preference

launch-type-description = Ao iniciar um aplicativo da web que já está aberto
launch-type-choice-new-window =
.label = Abra o aplicativo da web em uma nova janela
launch-type-choice-new-tab =
.label = Abra o aplicativo da web em uma nova guia
launch-type-choice-replace =
.label = Substituir a aba existente
launch-type-choice-focus =
.label = Focar a janela existente
## Address Bar Preference

display-address-bar-description = Exibir a barra de endereço
display-address-bar-choice-out-of-scope =
.label = Quando o URL está fora do escopo
display-address-bar-choice-always =
.label = Sempre
display-address-bar-choice-never =
.label = Nunca
## Allowed Domains Preference

allowed-domains-description = Domínios sempre podem ser abertos no navegador do aplicativo
allowed-domains-input =
.placeholder = Insira uma lista de domínios separados por vírgulas...
Expand All @@ -94,12 +77,9 @@ shortcuts-group-note = Pode ser necessário reiniciar o navegador para aplicar e

shortcuts-close-tab =
.label = Fechar aba ({ $shortcut })
shortcuts-close-window =
.label = Fechar janela ({ $shortcut })
shortcuts-quit-application =
.label = Sair do aplicativo ({ $shortcut })
shortcuts-private-browsing =
.label = Navegação privada ({ $shortcut })
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,36 @@
toolbar-button-mute =
.label = Alternar som
.tooltiptext = Alternar o som da página ({ $shortcut })
toolbar-button-reader-view =
.label = Visualização do leitor
.tooltiptext = Alternar a visualização do leitor ({ $shortcut })
toolbar-button-copy-link =
.label = Copiar link
.tooltiptext = Copie um link para esta página
toolbar-button-share-link =
.label = Compartilhar link
.tooltiptext = Compartilhe um link para esta página
toolbar-button-send-to-device =
.label = Enviar para o dispositivo
.tooltiptext = Enviar esta página para outro dispositivo
toolbar-button-open-in-browser =
.label = Abrir no navegador
.tooltiptext = Abra esta página no navegador
toolbar-button-tracking-protection =
.label = Proteção de rastreamento
.tooltiptext = Veja informações sobre proteção de rastreamento neste site
toolbar-button-identity =
.label = Informações do site
.tooltiptext = Ver informações sobre este site
toolbar-button-permissions =
.label = Permissões do site
.tooltiptext = Ver permissões concedidas a este site
toolbar-button-notifications =
.label = Notificações do site
.tooltiptext = Notificações pop-up para este site
toolbar-button-close =
.label = Fechar
.tooltiptext = Feche a página atual
toolbar-button-home-ffpwa =
.label = { navbar-home.label }
.tooltiptext = Página inicial do aplicativo
Expand All @@ -54,8 +43,7 @@ toolbar-button-home-ffpwa =

toolbar-button-back-ffpwa =
.label = { main-context-menu-back-2.aria-label }
.tooltiptext = { main-context-menu-back-2.tooltiptext }
.tooltiptext = { main-context-menu-back-2.tooltiptext }
toolbar-button-forward-ffpwa =
.label = { main-context-menu-forward-2.aria-label }
.tooltiptext = { main-context-menu-forward-2.tooltiptext }
.tooltiptext = { main-context-menu-forward-2.tooltiptext }
Loading

0 comments on commit 538c97f

Please sign in to comment.