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

Import File doesn't work with bigger PO files #1071

Open
AlexanderZender opened this issue Aug 3, 2023 · 2 comments
Open

Import File doesn't work with bigger PO files #1071

AlexanderZender opened this issue Aug 3, 2023 · 2 comments

Comments

@AlexanderZender
Copy link

I encountered an issue that I can not import my PO files using the admin page if the file exceeds 32256 bytes.

In this screenshot, on the left is my en-US.po file, it is processed correctly until the Start {0} entry begins.
In the bottom, you can see the byte list of the MemoryStream representing the file within the Translations.cs file in the bottom ends with 0x00 values at that point.
The buffer is the correct length, but the next 10k bytes are all 0x00.

image

Within the LocalizationController, you can see that the received text stops mid PO entry:

image

I try to rearrange the PO file entries, but it will always set everything to 0x00 after 32256 bytes.

My PO file works with Poedit:
image

Here is my PO file:
https://github.com/hochschule-darmstadt/MetaAutoML/blob/main/frontend/src/Server/BlazorBoilerplate.Server/Localization/en-US.po

@GioviQ
Copy link
Collaborator

GioviQ commented Aug 4, 2023

Have you tried with MAUI branch?

@Aleph-Dev
Copy link

I have had this also with Blazor in Server mode, it should work fine with WASM, it did for me.

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

No branches or pull requests

3 participants