Skip to content

Commit e04926d

Browse files
authored
Merge pull request #34 from ruscher/main
Correct all the finishing touches.
2 parents f6069d0 + 88169d2 commit e04926d

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ __pycache__/
44
pkgbuild/src/
55
pkgbuild/pkg/
66
pkgbuild/*.pkg.tar*
7+
PLANNING.md

biglinux-config/locale/pt-BR.po

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ msgstr ""
1414
"MIME-Version: 1.0\n"
1515
"Content-Type: text/plain; charset=UTF-8\n"
1616
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1718

1819
msgid "Restaurar Configurações"
1920
msgstr "Restaurar Configurações"

biglinux-config/locale/pt.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ msgstr ""
1414
"Content-Type: text/plain; charset=utf-8\n"
1515
"Content-Transfer-Encoding: 8bit\n"
1616
"X-Generator: attranslate\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1718
#
1819
# File: biglinux-config/biglinux-config/usr/share/biglinux/biglinux-config/ui/welcome_dialog.py, line: 76
1920
msgid "Welcome to Restore Settings"
@@ -438,7 +439,8 @@ msgstr "Caminhos que serão substituídos"
438439
#, python-format
439440
msgid "%d path"
440441
msgid_plural "%d paths"
441-
msgstr[0] "%d caminho,%d caminhos"
442+
msgstr[0] "%d caminho"
443+
msgstr[1] "%d caminhos"
442444
#
443445
# File: biglinux-config/biglinux-config/usr/share/biglinux/biglinux-config/ui/restore_dialog.py, line: 302
444446
msgid "No settings found for this application."

biglinux-config/usr/share/biglinux/biglinux-config/data/app_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class AppEntry:
337337
icon="com.obsproject.Studio",
338338
binary="/usr/bin/obs",
339339
category="multimedia",
340-
config_paths=["~/.config/obs-studio"],
340+
config_paths=["~/.config/obs-studio", "~/.config/obs-portable"],
341341
),
342342
AppEntry(
343343
app_id="kdenlive",

biglinux-config/usr/share/biglinux/biglinux-config/ui/restore_dialog.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,14 @@ def _path_size(raw_path: str) -> int:
241241
# Expander row with path count and total size in subtitle
242242
expander = Adw.ExpanderRow()
243243
expander.set_title(_("Paths that will be replaced"))
244-
count_text = ngettext("%d path", "%d paths", len(entry.config_paths)) % len(entry.config_paths)
244+
n = len(entry.config_paths)
245+
count_base = ngettext("%d path", "%d paths", n)
246+
# Handle broken translations that might have "form1,form2" in a single msgstr
247+
if "," in count_base and count_base.count("%d") > 1:
248+
parts = count_base.split(",")
249+
count_base = parts[0] if n == 1 else parts[-1]
250+
251+
count_text = count_base % n
245252
expander.set_subtitle(f"{count_text}{format_size(total_size)}")
246253

247254
# Use add_prefix for consistent icon sizing with mode cards

0 commit comments

Comments
 (0)