Skip to content

Conversation

@Patrykb0802
Copy link
Contributor

@Patrykb0802 Patrykb0802 commented May 6, 2025

Summary by CodeRabbit

Release Notes

  • New Features

    • Added Binary Number renderer for displaying numeric values in binary format
    • Added Hexadecimal renderer for displaying numeric values in hexadecimal format with "0x" prefix
    • New renderers available for selection when editing data point display options
    • Added full internationalization support across 11 languages
  • Improvements

    • Updated existing Binary renderer label for clarity

✏️ Tip: You can customize this high-level summary in your review settings.

@Patrykb0802 Patrykb0802 requested review from Limraj and SoftQ as code owners May 6, 2025 15:32
@github-actions
Copy link

github-actions bot commented May 6, 2025

Java Script Mocha Unit Test Results

268 tests  ±0   268 ✅ ±0   3s ⏱️ ±0s
 70 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c995b8e. ± Comparison against base commit f2a519b.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented May 6, 2025

Java JUnit Test Results

3 440 tests  +220   3 440 ✅ +220   50s ⏱️ +2s
  134 suites +  6       0 💤 ±  0 
  134 files   +  6       0 ❌ ±  0 

Results for commit c995b8e. ± Comparison against base commit f2a519b.

♻️ This comment has been updated with latest results.

@Limraj Limraj added this to the 2.9.0 milestone May 30, 2025
Limraj and others added 23 commits July 31, 2025 15:38
- Updated use of @XssProtect annotation;
- Corrected definition tests in build.gradle for XssValidatorUtilsTestsSuite;
- Added support for List and Map for XssProtect annotations;
- Corrected protect in: FolderPointHierarchy, CompoundComponentDTO;
- Added support array for XssProtect annotation;
- Corrected protect for JsonEventSearch;
- Fixed select 'Add user' in MailingList;
- Added: UserIdentifier, AddressEntryJson, EmailRecipientJson, MailingListJson, UserEntryJson;
- Reduced data users in: ViewDwr, WatchListDwr, UsersDwr, ReportsDwr, MailingListsDwr, EventHandlersDwr, DataPointDetailsController;
- Corrected MailingListsDwr.getMailingList(int id);
- ReportsDwr.init;
…4_Updated_REST_API_with_incoming_data_for_XSS_protection
…I_with_incoming_data_for_XSS_protection

Feature/#3174 updated rest api with incoming data for xss protection
- Added block packages:
java.lang.Process.*
java.lang.invoke..*
java.io..*
java.nio..*

- Added access packages:
org.scada_lts..*
com.serotonin..*
cc.radiuino.scadabr..*
br.org.scadabr..*

java.util..*
java.lang..*
org.springframework.jdbc.core..*

- Added tests to ScriptExecutorTest;
- Added block packages:
java.lang.Process.*
java.lang.invoke..*
java.io..*
java.nio..*

- Added access packages:
java.util..*

- Added tests to ScriptExecutorTest;
- Added block packages:
java.lang.Process.*
java.lang.invoke..*
java.io..*
java.nio..*

- Added access packages:
java.util..*

- Added tests to ScriptExecutorTest;
- Refactor ScriptsAPI - using specially created exceptions for the REST API;
- Deprecated ScriptController and endpoint /script/execute/{xid} (use: /api/scripts/execute/{xid})
- Added or corrected name tests ScriptExecutorTestsSuite: JavaClassDeniedScriptExecutorTest,
JavaClassGrantedScriptExecutorTest,
JsScriptExecutorTest;
- Added migration: V2_8_1__SynopticPanelChangeDataTypeForColumnVectorImage
…t time:

- Corrected time for return to normal for DifferenceDetectorRT(NoChangeDetectorRT, NoUpdateDetectorRT);
- Corrected generate keystore added applicationUri, corrected other attributes;
- Set 20 for search depth limit;
- Revert scadalts.security.js.access.granted.class.regexes
Limraj and others added 22 commits December 1, 2025 15:22
- Removed import org.scada_lts.utils.PathSecureUtils in SvgProcessingUtils;
- Moved NettyTerminateUtils to impl package;
- Added PollingDataSourceUtils.terminateNetty;
- Moved NettyTerminateUtils to impl package;
- Added PollingDataSourceUtils.terminateNetty;
- Update docker-compose.yml, docker-compose-dev.yml;
- Created annotation java bean validation @scriptprotect: ScriptConstraintListValidator,ScriptValidator, ScriptValidatorUtils;
- Set @scriptprotect annotation: MetaPointLocatorJson, JsonScript,MetaPointLocatorVO, ScriptComponent, ScriptVO, PointLinkVO, ViewScriptComponentDTO;
- Set @XssProtect annotation: DataPointVO, UserComment, ImplDefinition, PointComponent, ScriptVO, ContextualizedScriptVO, ButtonComponent, ScriptButtonComponent, BinaryEventTextRenderer, MultistateEventValue, RangeEventValue, AlphanumericValue, PointEventDetectorVO, PointLinkVO;
- Added validation before execute script: ScriptExecutor, ContextualizedScriptRT;
- Added script validation before save: MetaPointLocatorVO, PointLinkVO, ScriptVO;
- Added classes: SandboxClassShutter,  ScriptContextUtils;
- Added exception: ScriptLocalizableException;
- Refactor ScriptsAPI.java;
- Removed deprecated classes: PointView.java,
AnalogImageSetRenderer.java
BaseGraphicRenderer.java
BasicImageRenderer.java
BasicRenderer.java
BinaryImageSetRenderer.java
DynamicImageRenderer.java
GraphicRenderer.java
ImageSetRenderer.java
MultistateImageSetRenderer.java
ScriptRenderer.java
ThumbnailRenderer.java;
- Fixed endpoint to test script, added: ScriptsAPI.executeScriptTest
- Corrected exception handler for Java Bean Validation error;
- Fixed endpoint /api/scripts/execute-test returned String message.
- Support deprecated endpoint /script;
- Added check isSecurityJsValidatorEnabled before validation;
- Added property scadalts.security.js.filter.enabled in env.properties;
…are_OPC_Server

#3213 How Connect to Kepware OPC Server:
- Corrected HeadersFromSystemSettingsWriter, if a given parameter exists, it is updated;
…_in_AuthenticationAPI

#3225 Wrong endpoint type in AuthenticationAPI
…ite_attribute_for_session_cookie

#3228 Configure SameSite attribute for session cookie
- Corrected V2_8_1__SynopticPanelChangeDataTypeForColumnVectorImage;
@Patrykb0802
Copy link
Contributor Author

@coderabbitai review

@coderabbitai
Copy link

coderabbitai bot commented Jan 9, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai
Copy link

coderabbitai bot commented Jan 9, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough

Walkthrough

This pull request introduces two new numeric text renderer types—Binary and Hexadecimal—into the text rendering system. The changes register these renderers in the infrastructure, wire them into the DWR-based UI save flow, update the JSP renderer interface, and add internationalization support across multiple language locales.

Changes

Cohort / File(s) Summary
New Renderer Implementations
src/com/serotonin/mango/view/text/BinaryRenderer.java, src/com/serotonin/mango/view/text/HexadecimalRenderer.java
Introduces two new text renderer classes extending BaseTextRenderer. BinaryRenderer formats numeric values as 4-bit grouped binary strings. HexadecimalRenderer formats numeric values as uppercase hex with "0x" prefix. Both include serialization hooks and ImplDefinition metadata.
Renderer Infrastructure Updates
src/com/serotonin/mango/view/text/BaseTextRenderer.java, src/com/serotonin/mango/view/text/BinaryTextRenderer.java, src/com/serotonin/mango/web/dwr/DataPointEditDwr.java
Registers new renderers in BaseTextRenderer definitions list. Updates BinaryTextRenderer label from "BINARY" to "BINARY (T/F)" to differentiate from new BinaryRenderer. Adds public methods setHexadecimalRenderer() and setBinaryRenderer() to DataPointEditDwr and switches to wildcard import for text renderers.
UI Layer
WebContent/WEB-INF/jsp/pointEdit/textRenderer.jsp
Adds hidden containers and type switch logic to handle the two new renderer types, routing them to corresponding DWR callbacks in the save flow.
Internationalization
webapp-resources/messages_*.properties (de, en, es, fi, fr, lu, nl, pl, pt, ru, zh)
Adds translation keys textRenderer.binary.number and textRenderer.hex across all locale property files.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested reviewers

  • SoftQ

Poem

🐰 Two new renderers hop into view,
Binary and Hex—now the choices grew!
From ones and zeros to 0xABCD bright,
All languages sing—what a wonderful sight! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding two new display format renderers for hexadecimal and binary numbers, which is fully supported by the changeset.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Patrykb0802
Copy link
Contributor Author

@coderabbitai review

@coderabbitai
Copy link

coderabbitai bot commented Jan 13, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In @src/com/serotonin/mango/view/text/BaseTextRenderer.java:
- Around line 53-54: The Factory.getType() method in BaseTextRenderer is missing
handling for BinaryRenderer and HexadecimalRenderer, causing a
ShouldNeverHappenException for those types; update Factory.getType() (the
if/else chain) to check for BinaryRenderer.class and HexadecimalRenderer.class
and return the corresponding type strings that match
BinaryRenderer.getDefinition() and HexadecimalRenderer.getDefinition(), placing
these checks before the final else/exception branch so JSON import/export
recognizes these renderer types.

In @webapp-resources/messages_pl.properties:
- Around line 3596-3598: The Polish locale file contains English values for the
new keys textRenderer.binary.number and textRenderer.hex; update
messages_pl.properties to provide proper Polish translations for these keys
(e.g., "Liczba binarna" for textRenderer.binary.number and "Szesnastkowy" or
"Szestnastkowy" for textRenderer.hex) or confirm that English is acceptable and
leave as-is; ensure you edit the entries for textRenderer.binary.number and
textRenderer.hex (and adjust systemSettings.scadaConfCheck if needed) so the PL
file consistently contains Polish strings.
🧹 Nitpick comments (2)
webapp-resources/messages_fr.properties (1)

3453-3455: English translations in French properties file.

The new translation keys are in English rather than French. While this is acceptable per project conventions (French is not actively maintained), consider adding proper French translations for consistency with existing keys:

  • systemSettings.scadaConfCheck=Vérifier la configuration
  • textRenderer.binary.number=Nombre binaire
  • textRenderer.hex=Hexadécimal

Based on learnings, non-maintained locales like French can contain English text and this should not block the PR.

src/com/serotonin/mango/web/dwr/DataPointEditDwr.java (1)

112-115: Fix formatting to match existing code style.

The new methods are functionally correct but use inconsistent formatting compared to the rest of the file. Other setter methods in this file use multi-line formatting with proper indentation.

♻️ Suggested formatting fix
-    public void setHexadecimalRenderer() {setTextRenderer(new HexadecimalRenderer()); }
-
-    public void setBinaryRenderer(){setTextRenderer(new BinaryRenderer());}
-
+    public void setHexadecimalRenderer() {
+        setTextRenderer(new HexadecimalRenderer());
+    }
+
+    public void setBinaryRenderer() {
+        setTextRenderer(new BinaryRenderer());
+    }
+
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 25acdfa and 5150b7c.

📒 Files selected for processing (17)
  • WebContent/WEB-INF/jsp/pointEdit/textRenderer.jsp
  • src/com/serotonin/mango/view/text/BaseTextRenderer.java
  • src/com/serotonin/mango/view/text/BinaryRenderer.java
  • src/com/serotonin/mango/view/text/BinaryTextRenderer.java
  • src/com/serotonin/mango/view/text/HexadecimalRenderer.java
  • src/com/serotonin/mango/web/dwr/DataPointEditDwr.java
  • webapp-resources/messages_de.properties
  • webapp-resources/messages_en.properties
  • webapp-resources/messages_es.properties
  • webapp-resources/messages_fi.properties
  • webapp-resources/messages_fr.properties
  • webapp-resources/messages_lu.properties
  • webapp-resources/messages_nl.properties
  • webapp-resources/messages_pl.properties
  • webapp-resources/messages_pt.properties
  • webapp-resources/messages_ru.properties
  • webapp-resources/messages_zh.properties
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2026-01-05T14:39:51.606Z
Learnt from: Limraj
Repo: SCADA-LTS/Scada-LTS PR: 3239
File: webapp-resources/messages_fi.properties:3565-3565
Timestamp: 2026-01-05T14:39:51.606Z
Learning: SCADA-LTS maintains translations only for Polish and English. Do not invest in or expect active maintenance for other languages (e.g., messages_fi.properties, messages_de.properties). If a messages_*.properties file contains English text and is not maintained, it can be left as-is for now. AI translation may be used in the future. During reviews, prioritize Polish and English keys/text; non-maintained locales should not block changes.

Applied to files:

  • webapp-resources/messages_zh.properties
  • webapp-resources/messages_en.properties
  • webapp-resources/messages_es.properties
  • webapp-resources/messages_fi.properties
  • webapp-resources/messages_de.properties
  • webapp-resources/messages_nl.properties
  • webapp-resources/messages_pt.properties
  • webapp-resources/messages_pl.properties
  • webapp-resources/messages_ru.properties
  • webapp-resources/messages_fr.properties
  • webapp-resources/messages_lu.properties
📚 Learning: 2026-01-12T08:44:55.232Z
Learnt from: Limraj
Repo: SCADA-LTS/Scada-LTS PR: 3239
File: src/br/org/scadabr/view/component/ChartComparatorComponent.java:63-66
Timestamp: 2026-01-12T08:44:55.232Z
Learning: In ChartComparatorComponent, data point select dropdowns are intentionally rendered with Collections.emptyList() and populated client-side using lazy loading via the DataPointsSelect JavaScript class, initialized by loadPointsSelects("select[id^=chartComparator]", ...) in viewEdit.jsp and views.jsp.

Applied to files:

  • src/com/serotonin/mango/web/dwr/DataPointEditDwr.java
🧬 Code graph analysis (2)
src/com/serotonin/mango/view/text/HexadecimalRenderer.java (1)
src/com/serotonin/mango/view/text/BinaryRenderer.java (1)
  • JsonRemoteEntity (12-79)
src/com/serotonin/mango/view/text/BinaryRenderer.java (2)
src/com/serotonin/mango/view/text/BinaryTextRenderer.java (1)
  • JsonRemoteEntity (40-168)
src/com/serotonin/mango/view/text/HexadecimalRenderer.java (1)
  • JsonRemoteEntity (13-72)
🔇 Additional comments (18)
webapp-resources/messages_pt.properties (1)

3612-3613: English text in Portuguese locale file - acceptable per project guidelines.

The new i18n keys use English values ("Binary number", "Hexadecimal") rather than Portuguese translations. While most other entries in this file are properly localized to Portuguese, this inconsistency is acceptable.

Based on learnings, SCADA-LTS actively maintains only Polish and English translations. Non-maintained locales like Portuguese may contain English text and this should not block the changes. AI translation may be used in the future to localize these entries.

For future reference, Portuguese translations would be:

  • textRenderer.binary.number=Número binário
  • textRenderer.hex=Hexadecimal (same in Portuguese)
webapp-resources/messages_lu.properties (1)

3473-3474: LGTM! English text in non-maintained locale is acceptable.

The new localization keys for Binary and Hexadecimal text renderers have been added correctly. While the values are in English rather than Luxembourgish, this is acceptable for this locale file.

Based on learnings, SCADA-LTS maintains translations only for Polish and English. Non-maintained locales like messages_lu.properties can contain English text and should not block feature changes. AI translation may be applied to these files in the future.

The keys follow the existing naming convention (textRenderer.*) and align with the newly introduced Binary and Hexadecimal text renderers mentioned in the PR context.

webapp-resources/messages_zh.properties (1)

3559-3561: LGTM!

The new localization keys textRenderer.binary.number and textRenderer.hex are correctly added to support the new Binary and Hexadecimal text renderers. Based on learnings, English text for non-maintained locales (like Chinese) is acceptable as SCADA-LTS only actively maintains Polish and English translations.

src/com/serotonin/mango/view/text/BinaryTextRenderer.java (1)

42-43: LGTM!

The display name change from "BINARY" to "BINARY (T/F)" appropriately disambiguates this existing true/false label renderer from the new BinaryRenderer that displays numeric values as binary numbers. The TYPE_NAME constant remains unchanged, preserving backward compatibility for serialization and configuration.

webapp-resources/messages_de.properties (1)

3456-3458: I18n keys are properly integrated with their runtime lookups.

All three keys are correctly referenced in the Java source:

  • textRenderer.hexHexadecimalRenderer.java
  • textRenderer.binary.numberBinaryRenderer.java
  • systemSettings.scadaConfCheck → All property files

No discrepancies found. The entries are consistent across all 10 locale files.

webapp-resources/messages_nl.properties (1)

3574-3576: Verify inclusion of systemSettings.scadaConfCheck entry and confirm English text is intentional.

Three new translation entries have been added to the Dutch locale file:

  1. Lines 3575-3576 (textRenderer.binary.number and textRenderer.hex) align with the PR's stated objective of adding binary and hexadecimal display format support.

  2. Line 3574 (systemSettings.scadaConfCheck=Check configuration) appears unrelated to the binary/hex renderer feature described in the PR title. Please verify whether this entry:

    • Is intentionally included as part of this PR
    • Should be removed as an accidental inclusion from another change
    • Is actually related to the feature but not mentioned in the PR description
  3. All three entries use English text in a Dutch translation file (messages_nl.properties). Based on learnings, SCADA-LTS only actively maintains Polish and English translations, so English placeholders in other locale files are acceptable and should not block this PR.

Based on learnings, Dutch translations are not actively maintained in SCADA-LTS, so English text in this file is acceptable.

webapp-resources/messages_ru.properties (1)

3607-3609: Key names verified and correct.

All three keys are properly referenced in the codebase:

  • textRenderer.binary.number → referenced in BinaryRenderer.java
  • textRenderer.hex → referenced in HexadecimalRenderer.java
  • systemSettings.scadaConfCheck → used across the application

The English values are consistent across all 11 locale files, so this is not a Russian-specific issue. If desired, these entries could be translated to Russian for completeness, but the English fallback will function without runtime warnings.

webapp-resources/messages_en.properties (2)

3461-3461: LGTM! Clean addition for hexadecimal renderer.

The key follows the established naming convention and the translation value is clear and appropriate.


3460-3460: No changes needed. The keys textRenderer.binary and textRenderer.binary.number are intentionally distinct and serve different renderers: BinaryTextRenderer (for boolean binary values) and BinaryRenderer (for numeric binary representation), respectively. This hierarchical naming is consistent across all 11 language files and is a deliberate design choice.

webapp-resources/messages_es.properties (1)

3500-3501: LGTM!

The new translation keys for binary and hexadecimal renderers are correctly added. Based on learnings, Spanish is not an actively maintained locale (only Polish and English are), so English text is acceptable here.

src/com/serotonin/mango/web/dwr/DataPointEditDwr.java (1)

33-33: Wildcard import is acceptable here.

Given that this file uses multiple classes from the com.serotonin.mango.view.text package (AnalogRenderer, BinaryTextRenderer, MultistateRenderer, NoneRenderer, PlainRenderer, RangeRenderer, TimeRenderer, and now HexadecimalRenderer and BinaryRenderer), the wildcard import is reasonable.

webapp-resources/messages_fi.properties (1)

3583-3586: New translation keys added correctly.

The new keys textRenderer.binary.number and textRenderer.hex are properly added for the new renderers. Based on learnings, Finnish translations are not actively maintained, so using English text here is acceptable.

WebContent/WEB-INF/jsp/pointEdit/textRenderer.jsp (2)

163-166: Empty containers added correctly for configuration-less renderers.

The empty <tbody> elements are appropriate since these renderers have no user-configurable options.


255-258: Save logic wired correctly to DWR methods.

The save flow properly calls DataPointEditDwr.setHexadecimalRenderer(callback) and DataPointEditDwr.setBinaryRenderer(callback) for the new renderer types.

src/com/serotonin/mango/view/text/HexadecimalRenderer.java (2)

47-55: Implementation looks correct for typical numeric values.

The conversion logic is straightforward. Note that:

  • Fractional values are truncated (e.g., 3.70x3)
  • Negative numbers are rendered as two's complement (e.g., -10xFFFFFFFFFFFFFFFF)

This behavior seems intentional for low-level/bit-level display use cases, but consider documenting this in a comment if it's the expected behavior.


1-72: New HexadecimalRenderer follows established patterns.

The class structure, serialization, and integration with the text renderer framework are consistent with existing renderers.

src/com/serotonin/mango/view/text/BinaryRenderer.java (2)

46-62: Binary formatting with 4-bit grouping is well-implemented.

The algorithm correctly pads to the nearest 4-bit boundary and groups bits with spaces for readability (e.g., 255"1111 1111", 5"0101").

Same edge case behavior as HexadecimalRenderer applies: fractional truncation and two's complement for negative values.


1-79: New BinaryRenderer follows established patterns and is consistent with HexadecimalRenderer.

The class structure, serialization, and framework integration are correct.

Comment on lines +53 to +54
d.add(BinaryRenderer.getDefinition());
d.add(HexadecimalRenderer.getDefinition());
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

New renderer definitions registered correctly, but Factory is incomplete.

The new renderers are properly added to the definitions list. However, the Factory.getType() method (lines 203-218) lacks handling for BinaryRenderer and HexadecimalRenderer. When importing/exporting JSON with these renderer types, the code will throw ShouldNeverHappenException("What's this?: ...") because the if-else chain doesn't include them.

🐛 Proposed fix to add missing cases in Factory.getType()

Add the following cases before the else clause at line 217:

             else if (def == TimeRenderer.getDefinition())
                 clazz = TimeRenderer.class;
+            else if (def == BinaryRenderer.getDefinition())
+                clazz = BinaryRenderer.class;
+            else if (def == HexadecimalRenderer.getDefinition())
+                clazz = HexadecimalRenderer.class;
             else
                 throw new ShouldNeverHappenException("What's this?: " + def.getName());
🤖 Prompt for AI Agents
In @src/com/serotonin/mango/view/text/BaseTextRenderer.java around lines 53 -
54, The Factory.getType() method in BaseTextRenderer is missing handling for
BinaryRenderer and HexadecimalRenderer, causing a ShouldNeverHappenException for
those types; update Factory.getType() (the if/else chain) to check for
BinaryRenderer.class and HexadecimalRenderer.class and return the corresponding
type strings that match BinaryRenderer.getDefinition() and
HexadecimalRenderer.getDefinition(), placing these checks before the final
else/exception branch so JSON import/export recognizes these renderer types.

Comment on lines 3596 to 3598
systemSettings.scadaConfCheck=Check configuration
textRenderer.binary.number=Binary number
textRenderer.hex=Hexadecimal
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Polish locale: consider providing actual PL translations for the new renderer labels.

textRenderer.binary.number and textRenderer.hex are added, but values are still English. If messages_pl.properties is expected to be maintained, please translate these strings (or confirm English is acceptable here going forward). Based on learnings, prioritize Polish/English correctness.

🤖 Prompt for AI Agents
In @webapp-resources/messages_pl.properties around lines 3596 - 3598, The Polish
locale file contains English values for the new keys textRenderer.binary.number
and textRenderer.hex; update messages_pl.properties to provide proper Polish
translations for these keys (e.g., "Liczba binarna" for
textRenderer.binary.number and "Szesnastkowy" or "Szestnastkowy" for
textRenderer.hex) or confirm that English is acceptable and leave as-is; ensure
you edit the entries for textRenderer.binary.number and textRenderer.hex (and
adjust systemSettings.scadaConfCheck if needed) so the PL file consistently
contains Polish strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants