Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,17 @@
</focusedlayout>
</control>

<!-- Empty state message -->
<control type="label">
<left>0</left><top>60</top><width>1920</width><height>975</height>
<label>No results found</label>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟑 Minor | ⚑ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

fd -t f 'strings\.po|strings\.xml' repo/plugin.video.nzbdav
rg -n 'LOCALIZE|ADDON\[|No results found' repo/plugin.video.nzbdav

Repository: Appz4Fun/nzbdavkodi

Length of output: 671


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- localization entries ---'
sed -n '330,375p' repo/plugin.video.nzbdav/resources/language/resource.language.en_gb/strings.po
printf '%s\n' '--- localization usage in skin XML ---'
rg -n -C 2 '\$LOCALIZE|\$ADDON\[|<label>[^<]*[A-Za-z][^<$]*</label>' repo/plugin.video.nzbdav/resources/skins repo/plugin.video.nzbdav
printf '%s\n' '--- related dialog and i18n code ---'
sed -n '235,285p' repo/plugin.video.nzbdav/resources/skins/Default/1080i/results-dialog.xml
sed -n '1,45p' repo/plugin.video.nzbdav/resources/lib/i18n.py
printf '%s\n' '--- numeric localization IDs ---'
awk '/^msgctxt / || /^msgid / || /^msgstr / {print NR ":" $0}' repo/plugin.video.nzbdav/resources/language/resource.language.en_gb/strings.po | tail -80

Repository: Appz4Fun/nzbdavkodi

Length of output: 50375


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- add-on ID ---'
rg -n '<addon ' repo/plugin.video.nzbdav/addon.xml

printf '%s\n' '--- localized-label syntax in repository ---'
rg -n --glob '*.xml' '\$LOCALIZE\[|\$ADDON\[' . || true

printf '%s\n' '--- exact empty-state localization entries and usages ---'
rg -n -C 1 'No results found($| for \{\})|30087|30089' \
  repo/plugin.video.nzbdav/resources/language \
  repo/plugin.video.nzbdav/resources/lib \
  repo/plugin.video.nzbdav/resources/skins

printf '%s\n' '--- i18n helper implementation ---'
rg -n -A 12 -B 4 'def (get_localized|localize)|getLocalizedString|get_localized' \
  repo/plugin.video.nzbdav/resources/lib/i18n.py

Repository: Appz4Fun/nzbdavkodi

Length of output: 3642


Localize the empty-state label.

Add a dedicated entry for No results found and reference it with the plugin.video.nzbdav add-on string ID. Do not reuse #30087; that entry requires a {} argument.

πŸ€– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@repo/plugin.video.nzbdav/resources/skins/Default/1080i/results-dialog.xml` at
line 269, Replace the hardcoded β€œNo results found” label in the results dialog
with a dedicated localized add-on string reference. Add the corresponding string
entry using a new unique ID, and do not reuse `#30087` because it requires a
format argument.

Source: MCP tools

<font>font13</font>
<textcolor>FF9CA3AF</textcolor>
<align>center</align>
<aligny>center</aligny>
<visible>Integer.IsEqual(Container(50).NumItems,0)</visible>
</control>

<!-- Scrollbar for the results list -->
<control type="scrollbar" id="60">
<left>1910</left><top>60</top><width>10</width><height>975</height>
Expand Down