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

Cannot create component with existed .po files #9318

Closed
2 tasks done
infureal opened this issue May 26, 2023 · 8 comments
Closed
2 tasks done

Cannot create component with existed .po files #9318

infureal opened this issue May 26, 2023 · 8 comments
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.

Comments

@infureal
Copy link

infureal commented May 26, 2023

Describe the issue

I'm trying to create component with VCS base on existed repo with .po files. But after some delay weblate shows this message.

This component is incomplete as there are no translations available. (translated from russian)

- It is possible to create new translations, especially in Weblate, and charge files based on the file mask.
- Whether the file mask of products/*.po files occurs in the repositories of your version control system.

Original message:

Этот компонент является неполным, так как отсутствуют какие-либо переводы.

- Возможно создание новых переводов, особенно в Weblate, и при этом обвинения файлов на основе маски файла.
- Встречается ли форма файла products/*.po файлов в репозиториях вашей системы контроля версий.

I'm trying to import two languages with 850k phrases each with ~60Mb file size.

Repo structure:

products
- ru.po
- kk.po
categories
- ru.po
- kk.po
properties
- ru.po
- kk.po

Other components (categpries, properties) imported well. But they don't have such big size.

Q: What can I do for bypass this problem?

I already tried

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

Steps to reproduce the behavior

  1. Need to have big .po file with ~850k phrases
  2. Upload this file to VCS
  3. Try to create component from repo where file localed

Expected behavior

All phrases are imported

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

PyPI module

Weblate versions

$ weblate list_versions
 * Weblate: 4.16.4
 * Django: 4.1.8
 * siphashc: 2.1
 * translate-toolkit: 3.8.6
 * lxml: 4.9.2
 * Pillow: 9.5.0
 * nh3: 0.2.9
 * python-dateutil: 2.8.2
 * social-auth-core: 4.4.1
 * social-auth-app-django: 5.2.0
 * django-crispy-forms: 2.0
 * oauthlib: 3.2.2
 * django-compressor: 4.3.1
 * djangorestframework: 3.14.0
 * django-filter: 22.1
 * django-appconf: 1.0.5
 * user-agents: 2.2.0
 * filelock: 3.10.7
 * rapidfuzz: 2.15.0
 * openpyxl: 3.1.2
 * celery: 5.2.7
 * django-celery-beat: 2.5.0
 * kombu: 5.2.4
 * translation-finder: 2.15
 * weblate-language-data: 2023.3
 * html2text: 2020.1.16
 * pycairo: 1.23.0
 * pygobject: 3.44.1
 * diff-match-patch: 20200713
 * requests: 2.28.2
 * django-redis: 5.2.0
 * hiredis: 2.2.2
 * sentry_sdk: 1.19.1
 * Cython: 0.29.34
 * misaka: 2.1.1
 * GitPython: 3.1.31
 * borgbackup: 1.2.4
 * pyparsing: 3.0.9
 * pyahocorasick: 2.0.0
 * python-redis-lock: 4.0.0
 * charset-normalizer: 3.1.0
 * Python: 3.11.2
 * Git: 2.39.1
 * psycopg2-binary: 2.9.6
 * phply: 1.2.6
 * ruamel.yaml: 0.17.21
 * tesserocr: 2.6.0
 * boto3: 1.26.109
 * zeep: 4.2.1
 * aeidon: 1.12
 * iniparse: 0.5
 * Mercurial: 6.4
 * git-svn: 2.39.1
 * git-review: 2.3.1
 * Redis server: 5.0.3
 * PostgreSQL server: 14.4
 * Database backends: django.db.backends.postgresql
 * Cache backends: default:RedisCache, avatar:FileBasedCache
 * Email setup: django.core.mail.backends.smtp.EmailBackend: <mail>
 * OS encoding: filesystem=utf-8, default=utf-8
 * Celery: redis://127.0.0.1:6379, redis://127.0.0.1:6379, regular
 * Platform: Linux 4.18.0-408.el8.x86_64 (x86_64)

Weblate deploy checks

No response

Additional context

No response

@infureal
Copy link
Author

Attaching screenshot of error

image

@burner1024
Copy link
Contributor

Probably easier to create the component with empty POs first, then add content and do loadpo.

@infureal
Copy link
Author

infureal commented May 26, 2023

@burner1024 how can I pull from git when content was added directly from cli?

@burner1024
Copy link
Contributor

I guess remove dir, create empty, git init, git add remote, then pull.

@infureal
Copy link
Author

@burner1024 Seems like after updating external git repo weblate automaticly starting loading po files and I cannot view any progress

@emmapeel2
Copy link
Contributor

@burner1024 how can I pull from git when content was added directly from cli?

You can pull from the weblate repo, the address will be on the 'info' page for the resource, for example for https://hosted.weblate.org/projects/tor/tpo-web/#information i can see:

Weblate repository | https://hosted.weblate.org/git/tor/tpo-web/

@nijel nijel added the question This is more a question for the support than an issue. label Jun 9, 2023
@github-actions
Copy link

github-actions bot commented Jun 9, 2023

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger.

In case your question is already answered, making a donation is the right way to say thank you!

@github-actions
Copy link

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label Jun 24, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

4 participants