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

Problem creating new components. #11438

Closed
2 tasks done
tomkolp opened this issue Apr 19, 2024 · 2 comments
Closed
2 tasks done

Problem creating new components. #11438

tomkolp opened this issue Apr 19, 2024 · 2 comments
Assignees
Labels
bug Something is broken.
Milestone

Comments

@tomkolp
Copy link
Contributor

tomkolp commented Apr 19, 2024

Describe the issue

When new components are added, they are often created with zero strings and no Polish component. After clicking + for Polish, the English and Polish components are created correctly. The problem has been occurring for several months, I can't pinpoint when it started.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

From the very beginning of using weblate, I have been using components in the pootle format.
Creating new components looks like this:

  1. The script generates new .pot template files. This is what the file formatting looks like:
#. extracted from /home/weblate/csv/7949764.csv
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-11-26 12:24+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Translate Toolkit 2.5.0\n"

#: 267200725-0-27
msgctxt "267200725-0-27"
msgid "Tamriel"
msgstr ""

#: 267200725-0-1587
msgctxt "267200725-0-1587"
msgid "Dov-Vahl Shrine"
msgstr ""

#: 8290981-0-121099
msgctxt "8290981-0-121099"
msgid "Votary Nahlia^F"
msgstr ""

#: 55049764-0-16202
msgctxt "55049764-0-16202"
msgid "It feels like we're close. Whatever Ulfsild hid here will hopefully give you the answers we need.\n\nStay safe and keep an eye out for focal points. If the orcs haven't found it yet, it's likely because it's hidden behind her magics."
msgstr ""
  1. the .po file is a veritable copy of the .pot file and is located in a subfolder called: "pl"
  2. This is what the component detection add-on looks like:
    image
  3. Next addon:
    image
  4. The new component is added to the github repository and weblate automatically starts updating.
  5. After approximately 1 - 1.5 hours the updates ends. Some of the newly added components have a valid component in English and Polish (Polish is the only additional language).

Unfortunately, some components in the English source file have 0 strings and the Polish language has not been created. Then just click + next to Polish. After the operation is completed, the English component has all strings and the Polish component is also valid. When finished, Weblate displays the message: "Component exists".

Expected behavior

No response

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

5.5-dev — 51cc36b3ff9f6dd826596d168325ec5114db6256 -- 5.5-dev — [51cc36b](https://github.com/WeblateOrg/weblate/commits/51cc36b3ff9f6dd826596d168325ec5114db6256)

Weblate deploy checks

No response

Additional context

No response

@tomkolp
Copy link
Contributor Author

tomkolp commented Apr 19, 2024

image

@nijel nijel self-assigned this Apr 22, 2024
@nijel nijel added the bug Something is broken. label Apr 22, 2024
@nijel nijel added this to the 5.5.1 milestone Apr 22, 2024
@nijel nijel closed this as completed in c663eaa Apr 22, 2024
Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

No branches or pull requests

2 participants