Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta to master #17140

Merged
merged 8 commits into from
Sep 9, 2024
Merged

Beta to master #17140

merged 8 commits into from
Sep 9, 2024

Conversation

seanbudd
Copy link
Member

@seanbudd seanbudd commented Sep 9, 2024

Summary by CodeRabbit

  • New Features

    • Enhanced upload process for translation files to Crowdin, improving efficiency by checking for changes before uploading.
    • Updated braille table descriptions for better clarity and added new options for Greek and Thai braille tables.
    • Significant updates to localization files for various languages, improving accuracy and clarity of translations for braille tables and NVDA commands.
  • Bug Fixes

    • Improved string formatting in the Albatross driver for clearer user instructions.
  • Documentation

    • Updated development environment documentation to reflect the latest version of the liblouis dependency.

michaelDCurran and others added 8 commits September 3, 2024 20:04
…es from Crowdin (#17106)

This pr adds a newly generated changes.xliff for English, which has also been uploaded to Crowdin.
This PR updates the user docs github action to upload the English changes.xliff to Crowdin if it has changed.
This pr also includes the initial set of translated user docs xliff files from Crowdin.
So far that is 20 translations of the user guide, and 7 translations of changes (what's new).
scons will see that these are newer than their markdown files, and rebuild the markdown files from these, and then build the html from the rebuilt markdown files.
Summary of the issue:
Liblouis 3.31 has been released. Among new tables, this release contains a bug fix for Spanish causing digits to be presented incorrectly, see liblouis/liblouis#1624.

Description of user facing changes
Update to Liblouis 3.31, adding new tables as mentioned in the changelog.

Description of development approach
Update the submodule, added and updated definitions in brailleTables.py
Summary of the issue:
In Albatross driver, a string consisting in the concatenation of normal strings (`"..."`) and an f-string) is passed to the `_` translation function. As a consequence:
* Only a part of the concatenated string appears in the `.pot` file instead of the full concatenation
* In any case, f-strings cannot be used for translatable messages since the formatting should be applied only after the gettext function has been called

Thus, this message was not translated.

Description of user facing changes
The message of the Albatross driver is now translated.

Description of development approach
Do not use f-string. Instead used `.format` function, applied to the translated string. Slightly reworded the returned message for clarity.

Testing strategy:
- Check in the `.pot` file that we have the full message

Known issues with pull request:
None
Fixes #17026

Summary of the issue:
Trying to compile NVDA with Visual Studio 2022 V17.11 produces the following error:

build\x86\local\beeps.cpp(19): error C2039: 'min': is not a member of 'std'
std::min and std::max are defined in <algorithm> which we never include in beeps.cpp. I assume that <cmath> used to include <algorithm> and now it does not.

Description of user facing changes
None.

Description of development approach
Include <algorithm> in beeps.cpp.
Update translations
@seanbudd seanbudd requested a review from a team as a code owner September 9, 2024 04:14
@seanbudd seanbudd merged commit 88be74a into master Sep 9, 2024
2 of 6 checks passed
@github-actions github-actions bot added this to the 2025.1 milestone Sep 9, 2024
Copy link
Contributor

coderabbitai bot commented Sep 9, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

The pull request introduces several updates across various files, including enhancements to the workflow for uploading translation files to Crowdin, modifications to the liblouis dependency version, clarifications in braille table descriptions, and updates to localization files for improved accuracy. These changes aim to streamline the translation process and enhance the overall clarity of documentation and user messages.

Changes

File Path Change Summary
.github/workflows/regenerate_english_userDocs_translation_source.yml Added a conditional block to check for changes in changes.xliff before uploading to Crowdin.
include/liblouis Updated subproject commit reference to a newer commit hash.
projectDocs/dev/createDevEnvironment.md Updated liblouis dependency version from 3.30.0 to 3.31.0.
source/brailleTables.py Enhanced descriptions of braille tables and added new entries for better clarity.
source/locale/*.po Updated localization files with revised message identifiers and translations for better accuracy.

Possibly related issues

Possibly related PRs

  • Update translations #17137: This PR involves updates to localization files, specifically enhancing braille table descriptions, which aligns with the focus of this PR on improving translation file uploads.

Tip

New features

Walkthrough comment now includes:

  • Possibly related PRs: A list of potentially related PRs to help you recall past context.
  • Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs. You can also provide custom labeling instructions in the UI or configuration file.

Notes:

  • Please share any feedback in the discussion post on our Discord.
  • Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@codeofdusk
Copy link
Contributor

This merge overwrote the 2025.1 changelog: when I look at "what's new" on the latest master, I only see 2024.4 changes, no 2025.1 ones.

@seanbudd
Copy link
Member Author

seanbudd commented Sep 9, 2024

@codeofdusk
Copy link
Contributor

The generated artefact isn't...

@seanbudd
Copy link
Member Author

seanbudd commented Sep 9, 2024

@codeofdusk - I believe that's because we are using the xliff data from beta to generate html files now. @michaelDCurran - can you please confirm this is expected?

@michaelDCurran
Copy link
Member

michaelDCurran commented Sep 9, 2024 via email

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.

7 participants