File tree Expand file tree Collapse file tree 5 files changed +14
-3
lines changed
usr/share/biglinux/biglinux-config Expand file tree Collapse file tree 5 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ __pycache__/
44pkgbuild /src /
55pkgbuild /pkg /
66pkgbuild /* .pkg.tar *
7+ PLANNING.md
Original file line number Diff line number Diff 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
1819msgid "Restaurar Configurações"
1920msgstr "Restaurar Configurações"
Original file line number Diff line number Diff 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
1920msgid "Welcome to Restore Settings"
@@ -438,7 +439,8 @@ msgstr "Caminhos que serão substituídos"
438439#, python-format
439440msgid "%d path"
440441msgid_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
444446msgid "No settings found for this application."
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments